@visactor/vrender 1.0.37-alpha.1 → 1.0.38
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/index.d.ts +1 -1
- package/cjs/index.js +10 -11
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +355 -355
- package/dist/index.js +355 -355
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -10077,6 +10077,7 @@ class Graphic extends Node {
|
|
|
10077
10077
|
var _a;
|
|
10078
10078
|
if (!states.length) return void this.clearStates(hasAnimation);
|
|
10079
10079
|
if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
|
|
10080
|
+
this.stateSort && (states = states.sort(this.stateSort));
|
|
10080
10081
|
const stateAttrs = {};
|
|
10081
10082
|
states.forEach(stateName => {
|
|
10082
10083
|
var _a;
|
|
@@ -12309,7 +12310,7 @@ class Glyph extends Graphic {
|
|
|
12309
12310
|
var _a;
|
|
12310
12311
|
if (!states.length) return void this.clearStates(hasAnimation);
|
|
12311
12312
|
if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
|
|
12312
|
-
this.stopStateAnimates();
|
|
12313
|
+
this.stopStateAnimates(), this.stateSort && (states = states.sort(this.stateSort));
|
|
12313
12314
|
const stateAttrs = {},
|
|
12314
12315
|
subAttrs = this.subGraphic.map(() => ({}));
|
|
12315
12316
|
states.forEach(stateName => {
|
|
@@ -24722,7 +24723,7 @@ let BrowserContext2d = class {
|
|
|
24722
24723
|
return !!this._inuse;
|
|
24723
24724
|
}
|
|
24724
24725
|
set inuse(use) {
|
|
24725
|
-
use !== !!this._inuse && (this._inuse = use, use ? (this.nativeContext.save(), this.reset()) : this.nativeContext.restore());
|
|
24726
|
+
use !== !!this._inuse && (this._inuse = use, use ? (this.nativeContext.save(), this.reset()) : (this.nativeContext.restore(), this._font = ""));
|
|
24726
24727
|
}
|
|
24727
24728
|
constructor(canvas, dpr) {
|
|
24728
24729
|
this.fillAttributes = Object.assign(Object.assign({}, DefaultFillStyle), {
|
|
@@ -29916,6 +29917,343 @@ const gifImageModule = new ContainerModule(bind => {
|
|
|
29916
29917
|
loadGifImageModule || (loadGifImageModule = !0, bind(DefaultCanvasGifImageRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasGifImageRender));
|
|
29917
29918
|
});
|
|
29918
29919
|
|
|
29920
|
+
const browser = isBrowserEnv();
|
|
29921
|
+
|
|
29922
|
+
function _registerArc() {
|
|
29923
|
+
_registerArc.__loaded || (_registerArc.__loaded = !0, registerArcGraphic(), container.load(arcModule), container.load(browser ? arcCanvasPickModule : arcMathPickModule));
|
|
29924
|
+
}
|
|
29925
|
+
_registerArc.__loaded = !1;
|
|
29926
|
+
const registerArc = _registerArc;
|
|
29927
|
+
|
|
29928
|
+
function _registerArc3d() {
|
|
29929
|
+
_registerArc3d.__loaded || (_registerArc3d.__loaded = !0, registerArc3dGraphic(), registerDirectionalLight(), registerOrthoCamera(), container.load(arc3dModule), container.load(arc3dCanvasPickModule));
|
|
29930
|
+
}
|
|
29931
|
+
_registerArc3d.__loaded = !1;
|
|
29932
|
+
const registerArc3d = _registerArc3d;
|
|
29933
|
+
|
|
29934
|
+
function _registerArea() {
|
|
29935
|
+
_registerArea.__loaded || (_registerArea.__loaded = !0, registerAreaGraphic(), container.load(areaModule), container.load(browser ? areaCanvasPickModule : areaMathPickModule));
|
|
29936
|
+
}
|
|
29937
|
+
_registerArea.__loaded = !1;
|
|
29938
|
+
const registerArea = _registerArea;
|
|
29939
|
+
|
|
29940
|
+
function _registerCircle() {
|
|
29941
|
+
_registerCircle.__loaded || (_registerCircle.__loaded = !0, registerCircleGraphic(), container.load(circleModule), container.load(browser ? circleCanvasPickModule : circleMathPickModule));
|
|
29942
|
+
}
|
|
29943
|
+
_registerCircle.__loaded = !1;
|
|
29944
|
+
const registerCircle = _registerCircle;
|
|
29945
|
+
|
|
29946
|
+
function _registerGlyph() {
|
|
29947
|
+
_registerGlyph.__loaded || (_registerGlyph.__loaded = !0, registerGlyphGraphic(), container.load(glyphModule), container.load(browser ? glyphCanvasPickModule : glyphMathPickModule));
|
|
29948
|
+
}
|
|
29949
|
+
_registerGlyph.__loaded = !1;
|
|
29950
|
+
const registerGlyph = _registerGlyph;
|
|
29951
|
+
|
|
29952
|
+
function _registerGroup() {
|
|
29953
|
+
_registerGroup.__loaded || (_registerGroup.__loaded = !0, registerGroupGraphic());
|
|
29954
|
+
}
|
|
29955
|
+
_registerGroup.__loaded = !1;
|
|
29956
|
+
const registerGroup = _registerGroup;
|
|
29957
|
+
|
|
29958
|
+
function _registerImage() {
|
|
29959
|
+
_registerImage.__loaded || (_registerImage.__loaded = !0, registerImageGraphic(), container.load(imageModule), container.load(browser ? imageCanvasPickModule : imageMathPickModule));
|
|
29960
|
+
}
|
|
29961
|
+
_registerImage.__loaded = !1;
|
|
29962
|
+
const registerImage = _registerImage;
|
|
29963
|
+
|
|
29964
|
+
function _registerLine() {
|
|
29965
|
+
_registerLine.__loaded || (_registerLine.__loaded = !0, registerLineGraphic(), container.load(lineModule), container.load(browser ? lineCanvasPickModule : lineMathPickModule));
|
|
29966
|
+
}
|
|
29967
|
+
_registerLine.__loaded = !1;
|
|
29968
|
+
const registerLine = _registerLine;
|
|
29969
|
+
|
|
29970
|
+
function _registerPath() {
|
|
29971
|
+
_registerPath.__loaded || (_registerPath.__loaded = !0, registerPathGraphic(), container.load(pathModule), container.load(browser ? pathCanvasPickModule : pathMathPickModule));
|
|
29972
|
+
}
|
|
29973
|
+
_registerPath.__loaded = !1;
|
|
29974
|
+
const registerPath = _registerPath;
|
|
29975
|
+
|
|
29976
|
+
function _registerPolygon() {
|
|
29977
|
+
_registerPolygon.__loaded || (_registerPolygon.__loaded = !0, registerPolygonGraphic(), container.load(polygonModule), container.load(browser ? polygonCanvasPickModule : polygonMathPickModule));
|
|
29978
|
+
}
|
|
29979
|
+
_registerPolygon.__loaded = !1;
|
|
29980
|
+
const registerPolygon = _registerPolygon;
|
|
29981
|
+
|
|
29982
|
+
function _registerPyramid3d() {
|
|
29983
|
+
_registerPyramid3d.__loaded || (_registerPyramid3d.__loaded = !0, registerPyramid3dGraphic(), registerDirectionalLight(), registerOrthoCamera(), container.load(pyramid3dModule), container.load(pyramid3dCanvasPickModule));
|
|
29984
|
+
}
|
|
29985
|
+
_registerPyramid3d.__loaded = !1;
|
|
29986
|
+
const registerPyramid3d = _registerPyramid3d;
|
|
29987
|
+
|
|
29988
|
+
function _registerRect() {
|
|
29989
|
+
_registerRect.__loaded || (_registerRect.__loaded = !0, registerRectGraphic(), container.load(rectModule), container.load(browser ? rectCanvasPickModule : rectMathPickModule));
|
|
29990
|
+
}
|
|
29991
|
+
_registerRect.__loaded = !1;
|
|
29992
|
+
const registerRect = _registerRect;
|
|
29993
|
+
|
|
29994
|
+
function _registerRect3d() {
|
|
29995
|
+
_registerRect3d.__loaded || (_registerRect3d.__loaded = !0, registerRect3dGraphic(), container.load(rect3dModule), container.load(rect3dCanvasPickModule));
|
|
29996
|
+
}
|
|
29997
|
+
_registerRect3d.__loaded = !1;
|
|
29998
|
+
const registerRect3d = _registerRect3d;
|
|
29999
|
+
|
|
30000
|
+
function _registerRichtext() {
|
|
30001
|
+
_registerRichtext.__loaded || (_registerRichtext.__loaded = !0, registerRichtextGraphic(), container.load(richtextModule), container.load(browser ? richtextCanvasPickModule : richTextMathPickModule));
|
|
30002
|
+
}
|
|
30003
|
+
_registerRichtext.__loaded = !1;
|
|
30004
|
+
const registerRichtext = _registerRichtext;
|
|
30005
|
+
|
|
30006
|
+
function _registerShadowRoot() {
|
|
30007
|
+
_registerShadowRoot.__loaded || (_registerShadowRoot.__loaded = !0, registerShadowRootGraphic());
|
|
30008
|
+
}
|
|
30009
|
+
_registerShadowRoot.__loaded = !1;
|
|
30010
|
+
const registerShadowRoot = _registerShadowRoot;
|
|
30011
|
+
|
|
30012
|
+
function _registerSymbol() {
|
|
30013
|
+
_registerSymbol.__loaded || (_registerSymbol.__loaded = !0, registerSymbolGraphic(), container.load(symbolModule), container.load(browser ? symbolCanvasPickModule : symbolMathPickModule));
|
|
30014
|
+
}
|
|
30015
|
+
_registerSymbol.__loaded = !1;
|
|
30016
|
+
const registerSymbol = _registerSymbol;
|
|
30017
|
+
|
|
30018
|
+
function _registerText() {
|
|
30019
|
+
_registerText.__loaded || (_registerText.__loaded = !0, registerTextGraphic(), container.load(textModule), container.load(browser ? textCanvasPickModule : textMathPickModule));
|
|
30020
|
+
}
|
|
30021
|
+
_registerText.__loaded = !1;
|
|
30022
|
+
const registerText = _registerText;
|
|
30023
|
+
|
|
30024
|
+
var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30025
|
+
var d,
|
|
30026
|
+
c = arguments.length,
|
|
30027
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30028
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30029
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30030
|
+
},
|
|
30031
|
+
__metadata$1 = undefined && undefined.__metadata || function (k, v) {
|
|
30032
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30033
|
+
},
|
|
30034
|
+
__param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
30035
|
+
return function (target, key) {
|
|
30036
|
+
decorator(target, key, paramIndex);
|
|
30037
|
+
};
|
|
30038
|
+
};
|
|
30039
|
+
let DefaultCanvasStarPicker = class extends PickerBase {
|
|
30040
|
+
constructor(canvasRenderer) {
|
|
30041
|
+
super(), this.canvasRenderer = canvasRenderer, this.type = "star", this.numberType = STAR_NUMBER_TYPE;
|
|
30042
|
+
}
|
|
30043
|
+
};
|
|
30044
|
+
DefaultCanvasStarPicker = __decorate$5([injectable(), __param$1(0, inject(StarRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasStarPicker);
|
|
30045
|
+
|
|
30046
|
+
let loadStarPick = !1;
|
|
30047
|
+
const starCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
30048
|
+
loadStarPick || (loadStarPick = !0, bind(CanvasStarPicker).to(DefaultCanvasStarPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasStarPicker));
|
|
30049
|
+
});
|
|
30050
|
+
|
|
30051
|
+
function _registerStar() {
|
|
30052
|
+
_registerStar.__loaded || (_registerStar.__loaded = !0, registerStarGraphic(), container.load(starModule), container.load(starCanvasPickModule));
|
|
30053
|
+
}
|
|
30054
|
+
_registerStar.__loaded = !1;
|
|
30055
|
+
const registerStar = _registerStar;
|
|
30056
|
+
|
|
30057
|
+
function _registerWrapText() {
|
|
30058
|
+
_registerWrapText.__loaded || (_registerWrapText.__loaded = !0, registerWrapTextGraphic());
|
|
30059
|
+
}
|
|
30060
|
+
_registerWrapText.__loaded = !1;
|
|
30061
|
+
const registerWrapText = _registerWrapText;
|
|
30062
|
+
|
|
30063
|
+
function registerGifGraphic() {
|
|
30064
|
+
graphicCreator.RegisterGraphicCreator("gif", createGifImage);
|
|
30065
|
+
}
|
|
30066
|
+
function _registerGifImage() {
|
|
30067
|
+
_registerGifImage.__loaded || (_registerGifImage.__loaded = !0, registerGifGraphic(), container.load(gifImageModule), container.load(gifImageCanvasPickModule));
|
|
30068
|
+
}
|
|
30069
|
+
_registerGifImage.__loaded = !1;
|
|
30070
|
+
const registerGifImage = _registerGifImage;
|
|
30071
|
+
|
|
30072
|
+
function pseudoRandom(n) {
|
|
30073
|
+
let seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
30074
|
+
let hash = 3735928559 ^ seed;
|
|
30075
|
+
return hash = (2654435769 ^ hash) + (hash << 6) + (hash >> 2), hash = 3432918353 * (hash ^ n), hash = hash << 15 | hash >>> 17, hash ^= hash << 25, hash += hash << 9, hash ^= hash >> 4, hash ^= hash << 18, hash |= 1, (hash >>> 0) % 2147483647 / 2147483647;
|
|
30076
|
+
}
|
|
30077
|
+
function randomOpacity(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30078
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30079
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30080
|
+
const targetRandomValue = 2 * pseudoRandom(row * columnCount + column) * Math.PI,
|
|
30081
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI + targetRandomValue) + 1) / 2;
|
|
30082
|
+
return Math.min(1, Math.max(0, _r));
|
|
30083
|
+
}
|
|
30084
|
+
function columnLeftToRight(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30085
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30086
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30087
|
+
const delay = column / columnCount,
|
|
30088
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30089
|
+
return Math.min(1, Math.max(0, _r));
|
|
30090
|
+
}
|
|
30091
|
+
function columnRightToLeft(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30092
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30093
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30094
|
+
const delay = (columnCount - 1 - column) / columnCount,
|
|
30095
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30096
|
+
return Math.min(1, Math.max(0, _r));
|
|
30097
|
+
}
|
|
30098
|
+
function rowTopToBottom(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30099
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30100
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30101
|
+
const delay = row / rowCount,
|
|
30102
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30103
|
+
return Math.min(1, Math.max(0, _r));
|
|
30104
|
+
}
|
|
30105
|
+
function rowBottomToTop(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30106
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30107
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30108
|
+
const delay = (rowCount - 1 - row) / rowCount,
|
|
30109
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30110
|
+
return Math.min(1, Math.max(0, _r));
|
|
30111
|
+
}
|
|
30112
|
+
function diagonalCenterToEdge(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30113
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30114
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30115
|
+
const centerRow = rowCount / 2,
|
|
30116
|
+
centerCol = columnCount / 2,
|
|
30117
|
+
distance = Math.sqrt(Math.pow((row - centerRow) / rowCount, 2) + Math.pow((column - centerCol) / columnCount, 2)),
|
|
30118
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30119
|
+
return Math.min(1, Math.max(0, _r));
|
|
30120
|
+
}
|
|
30121
|
+
function diagonalTopLeftToBottomRight(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30122
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30123
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30124
|
+
const delay = (row / rowCount + column / columnCount) / 2,
|
|
30125
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30126
|
+
return Math.min(1, Math.max(0, _r));
|
|
30127
|
+
}
|
|
30128
|
+
function rotationScan(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30129
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30130
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30131
|
+
const centerRow = rowCount / 2,
|
|
30132
|
+
centerCol = columnCount / 2,
|
|
30133
|
+
angle = Math.atan2(row - centerRow, column - centerCol),
|
|
30134
|
+
delay = (angle < 0 ? angle + 2 * Math.PI : angle) / (2 * Math.PI),
|
|
30135
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30136
|
+
return Math.min(1, Math.max(0, _r));
|
|
30137
|
+
}
|
|
30138
|
+
function rippleEffect(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30139
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30140
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30141
|
+
const centerRow = rowCount / 2,
|
|
30142
|
+
centerCol = columnCount / 2,
|
|
30143
|
+
normalizedDistance = Math.sqrt(Math.pow(row - centerRow, 2) + Math.pow(column - centerCol, 2)) / Math.sqrt(Math.pow(rowCount / 2, 2) + Math.pow(columnCount / 2, 2)),
|
|
30144
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI * 3 - 2 * normalizedDistance * Math.PI) + 1) / 2;
|
|
30145
|
+
return Math.min(1, Math.max(0, _r));
|
|
30146
|
+
}
|
|
30147
|
+
function snakeWave(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30148
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30149
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30150
|
+
const delay = (row + column) % (rowCount + columnCount) / (rowCount + columnCount),
|
|
30151
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 4 * delay * Math.PI) + 1) / 2;
|
|
30152
|
+
return Math.min(1, Math.max(0, _r));
|
|
30153
|
+
}
|
|
30154
|
+
function alternatingWave(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30155
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30156
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30157
|
+
const rowPhase = row / rowCount,
|
|
30158
|
+
colPhase = column / columnCount,
|
|
30159
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * rowPhase * Math.PI) * Math.sin(2 * ratio * Math.PI - 2 * colPhase * Math.PI) + 1) / 2;
|
|
30160
|
+
return Math.min(1, Math.max(0, _r));
|
|
30161
|
+
}
|
|
30162
|
+
function spiralEffect(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30163
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30164
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30165
|
+
const centerRow = rowCount / 2,
|
|
30166
|
+
centerCol = columnCount / 2,
|
|
30167
|
+
distance = Math.sqrt(Math.pow(row - centerRow, 2) + Math.pow(column - centerCol, 2)),
|
|
30168
|
+
angle = Math.atan2(row - centerRow, column - centerCol),
|
|
30169
|
+
delay = (distance / Math.sqrt(Math.pow(rowCount / 2, 2) + Math.pow(columnCount / 2, 2)) + angle / (2 * Math.PI)) / 2,
|
|
30170
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 4 * delay * Math.PI) + 1) / 2;
|
|
30171
|
+
return Math.min(1, Math.max(0, _r));
|
|
30172
|
+
}
|
|
30173
|
+
function columnCenterToEdge(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30174
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30175
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30176
|
+
const centerCol = columnCount / 2,
|
|
30177
|
+
distance = Math.abs(column - centerCol) / centerCol,
|
|
30178
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30179
|
+
return Math.min(1, Math.max(0, _r));
|
|
30180
|
+
}
|
|
30181
|
+
function columnEdgeToCenter(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30182
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30183
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30184
|
+
const centerCol = columnCount / 2,
|
|
30185
|
+
distance = 1 - Math.abs(column - centerCol) / centerCol,
|
|
30186
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30187
|
+
return Math.min(1, Math.max(0, _r));
|
|
30188
|
+
}
|
|
30189
|
+
function rowCenterToEdge(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30190
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30191
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30192
|
+
const centerRow = rowCount / 2,
|
|
30193
|
+
distance = Math.abs(row - centerRow) / centerRow,
|
|
30194
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30195
|
+
return Math.min(1, Math.max(0, _r));
|
|
30196
|
+
}
|
|
30197
|
+
function rowEdgeToCenter(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30198
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30199
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30200
|
+
const centerRow = rowCount / 2,
|
|
30201
|
+
distance = 1 - Math.abs(row - centerRow) / centerRow,
|
|
30202
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30203
|
+
return Math.min(1, Math.max(0, _r));
|
|
30204
|
+
}
|
|
30205
|
+
function cornerToCenter(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30206
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30207
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30208
|
+
const centerRow = rowCount / 2,
|
|
30209
|
+
centerCol = columnCount / 2,
|
|
30210
|
+
distance = Math.sqrt(Math.pow((row - centerRow) / centerRow, 2) + Math.pow((column - centerCol) / centerCol, 2)),
|
|
30211
|
+
normalizedDistance = Math.min(distance, 1),
|
|
30212
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * normalizedDistance * Math.PI) + 1) / 2;
|
|
30213
|
+
return Math.min(1, Math.max(0, _r));
|
|
30214
|
+
}
|
|
30215
|
+
function centerToCorner(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30216
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30217
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30218
|
+
const centerRow = rowCount / 2,
|
|
30219
|
+
centerCol = columnCount / 2,
|
|
30220
|
+
distance = Math.sqrt(Math.pow((row - centerRow) / centerRow, 2) + Math.pow((column - centerCol) / centerCol, 2)),
|
|
30221
|
+
normalizedDistance = 1 - Math.min(distance, 1),
|
|
30222
|
+
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * normalizedDistance * Math.PI) + 1) / 2;
|
|
30223
|
+
return Math.min(1, Math.max(0, _r));
|
|
30224
|
+
}
|
|
30225
|
+
function pulseWave(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30226
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30227
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30228
|
+
const centerRow = rowCount / 2,
|
|
30229
|
+
centerCol = columnCount / 2,
|
|
30230
|
+
distance = Math.sqrt(Math.pow((row - centerRow) / centerRow, 2) + Math.pow((column - centerCol) / centerCol, 2)),
|
|
30231
|
+
normalizedDistance = Math.min(distance, 1),
|
|
30232
|
+
wavePhase = 2 * ratio * Math.PI * 3,
|
|
30233
|
+
decay = Math.max(0, 1 - normalizedDistance),
|
|
30234
|
+
_r = minRatio + amplitude * ((Math.sin(wavePhase - 4 * normalizedDistance * Math.PI) + 1) / 2) * (.7 * decay + .3);
|
|
30235
|
+
return Math.min(1, Math.max(0, _r));
|
|
30236
|
+
}
|
|
30237
|
+
function particleEffect(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30238
|
+
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30239
|
+
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30240
|
+
const index = row * columnCount + column,
|
|
30241
|
+
phase = 2 * pseudoRandom(index, 0) * Math.PI,
|
|
30242
|
+
speed = .5 * pseudoRandom(index, 1) + .5,
|
|
30243
|
+
direction = 2 * pseudoRandom(index, 2) * Math.PI,
|
|
30244
|
+
centerRow = rowCount / 2,
|
|
30245
|
+
centerCol = columnCount / 2,
|
|
30246
|
+
distance = Math.sqrt(Math.pow((row - centerRow) / centerRow, 2) + Math.pow((column - centerCol) / centerCol, 2)),
|
|
30247
|
+
normalizedDistance = Math.min(distance, 1),
|
|
30248
|
+
scatterRatio = (ratio - .4) / .6,
|
|
30249
|
+
movement = Math.sin(scatterRatio * speed * 8 * Math.PI + phase + direction * scatterRatio),
|
|
30250
|
+
distanceEffect = Math.cos(normalizedDistance * Math.PI + scatterRatio * Math.PI),
|
|
30251
|
+
_r = minRatio + amplitude * ((movement + 1) / 2 * Math.max(0, 1 - 1.2 * scatterRatio) * (.3 + .7 * distanceEffect));
|
|
30252
|
+
return Math.min(1, Math.max(0, _r));
|
|
30253
|
+
}
|
|
30254
|
+
|
|
30255
|
+
const roughModule = _roughModule;
|
|
30256
|
+
|
|
29919
30257
|
var lottie = {exports: {}};
|
|
29920
30258
|
|
|
29921
30259
|
(function(module,exports){typeof navigator!=="undefined"&&function(global,factory){module.exports=factory();}(commonjsGlobal,function(){var svgNS='http://www.w3.org/2000/svg';var locationHref='';var _useWebWorker=false;var initialDefaultFrame=-999999;var setWebWorker=function setWebWorker(flag){_useWebWorker=!!flag;};var getWebWorker=function getWebWorker(){return _useWebWorker;};var setLocationHref=function setLocationHref(value){locationHref=value;};var getLocationHref=function getLocationHref(){return locationHref;};function createTag(type){// return {appendChild:function(){},setAttribute:function(){},style:{}}
|
|
@@ -30639,17 +30977,17 @@ function createLottie(attributes) {
|
|
|
30639
30977
|
return new Lottie(attributes);
|
|
30640
30978
|
}
|
|
30641
30979
|
|
|
30642
|
-
var __decorate$
|
|
30980
|
+
var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30643
30981
|
var d,
|
|
30644
30982
|
c = arguments.length,
|
|
30645
30983
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30646
30984
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30647
30985
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30648
30986
|
},
|
|
30649
|
-
__metadata
|
|
30987
|
+
__metadata = undefined && undefined.__metadata || function (k, v) {
|
|
30650
30988
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30651
30989
|
},
|
|
30652
|
-
__param
|
|
30990
|
+
__param = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
30653
30991
|
return function (target, key) {
|
|
30654
30992
|
decorator(target, key, paramIndex);
|
|
30655
30993
|
};
|
|
@@ -30659,14 +30997,14 @@ let DefaultCanvasLottiePicker = class extends RectPickerBase {
|
|
|
30659
30997
|
super(), this.canvasRenderer = canvasRenderer;
|
|
30660
30998
|
}
|
|
30661
30999
|
};
|
|
30662
|
-
DefaultCanvasLottiePicker = __decorate$
|
|
31000
|
+
DefaultCanvasLottiePicker = __decorate$4([injectable(), __param(0, inject(RectRender)), __metadata("design:paramtypes", [Object])], DefaultCanvasLottiePicker);
|
|
30663
31001
|
|
|
30664
31002
|
let loadLottiePick = !1;
|
|
30665
31003
|
const lottieCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
30666
31004
|
loadLottiePick || (loadLottiePick = !0, bind(CanvasLottiePicker).to(DefaultCanvasLottiePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLottiePicker));
|
|
30667
31005
|
});
|
|
30668
31006
|
|
|
30669
|
-
var __decorate$
|
|
31007
|
+
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30670
31008
|
var d,
|
|
30671
31009
|
c = arguments.length,
|
|
30672
31010
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30698,350 +31036,13 @@ let DefaultCanvasLottieRender = class extends DefaultCanvasRectRender {
|
|
|
30698
31036
|
context.fill();
|
|
30699
31037
|
}
|
|
30700
31038
|
};
|
|
30701
|
-
DefaultCanvasLottieRender = __decorate$
|
|
31039
|
+
DefaultCanvasLottieRender = __decorate$3([injectable()], DefaultCanvasLottieRender);
|
|
30702
31040
|
|
|
30703
31041
|
let loadLottieModule = !1;
|
|
30704
31042
|
const lottieModule = new ContainerModule(bind => {
|
|
30705
31043
|
loadLottieModule || (loadLottieModule = !0, bind(DefaultCanvasLottieRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasLottieRender));
|
|
30706
31044
|
});
|
|
30707
31045
|
|
|
30708
|
-
const browser = isBrowserEnv();
|
|
30709
|
-
|
|
30710
|
-
function _registerArc() {
|
|
30711
|
-
_registerArc.__loaded || (_registerArc.__loaded = !0, registerArcGraphic(), container.load(arcModule), container.load(browser ? arcCanvasPickModule : arcMathPickModule));
|
|
30712
|
-
}
|
|
30713
|
-
_registerArc.__loaded = !1;
|
|
30714
|
-
const registerArc = _registerArc;
|
|
30715
|
-
|
|
30716
|
-
function _registerArc3d() {
|
|
30717
|
-
_registerArc3d.__loaded || (_registerArc3d.__loaded = !0, registerArc3dGraphic(), registerDirectionalLight(), registerOrthoCamera(), container.load(arc3dModule), container.load(arc3dCanvasPickModule));
|
|
30718
|
-
}
|
|
30719
|
-
_registerArc3d.__loaded = !1;
|
|
30720
|
-
const registerArc3d = _registerArc3d;
|
|
30721
|
-
|
|
30722
|
-
function _registerArea() {
|
|
30723
|
-
_registerArea.__loaded || (_registerArea.__loaded = !0, registerAreaGraphic(), container.load(areaModule), container.load(browser ? areaCanvasPickModule : areaMathPickModule));
|
|
30724
|
-
}
|
|
30725
|
-
_registerArea.__loaded = !1;
|
|
30726
|
-
const registerArea = _registerArea;
|
|
30727
|
-
|
|
30728
|
-
function _registerCircle() {
|
|
30729
|
-
_registerCircle.__loaded || (_registerCircle.__loaded = !0, registerCircleGraphic(), container.load(circleModule), container.load(browser ? circleCanvasPickModule : circleMathPickModule));
|
|
30730
|
-
}
|
|
30731
|
-
_registerCircle.__loaded = !1;
|
|
30732
|
-
const registerCircle = _registerCircle;
|
|
30733
|
-
|
|
30734
|
-
function _registerGlyph() {
|
|
30735
|
-
_registerGlyph.__loaded || (_registerGlyph.__loaded = !0, registerGlyphGraphic(), container.load(glyphModule), container.load(browser ? glyphCanvasPickModule : glyphMathPickModule));
|
|
30736
|
-
}
|
|
30737
|
-
_registerGlyph.__loaded = !1;
|
|
30738
|
-
const registerGlyph = _registerGlyph;
|
|
30739
|
-
|
|
30740
|
-
function _registerGroup() {
|
|
30741
|
-
_registerGroup.__loaded || (_registerGroup.__loaded = !0, registerGroupGraphic());
|
|
30742
|
-
}
|
|
30743
|
-
_registerGroup.__loaded = !1;
|
|
30744
|
-
const registerGroup = _registerGroup;
|
|
30745
|
-
|
|
30746
|
-
function _registerImage() {
|
|
30747
|
-
_registerImage.__loaded || (_registerImage.__loaded = !0, registerImageGraphic(), container.load(imageModule), container.load(browser ? imageCanvasPickModule : imageMathPickModule));
|
|
30748
|
-
}
|
|
30749
|
-
_registerImage.__loaded = !1;
|
|
30750
|
-
const registerImage = _registerImage;
|
|
30751
|
-
|
|
30752
|
-
function _registerLine() {
|
|
30753
|
-
_registerLine.__loaded || (_registerLine.__loaded = !0, registerLineGraphic(), container.load(lineModule), container.load(browser ? lineCanvasPickModule : lineMathPickModule));
|
|
30754
|
-
}
|
|
30755
|
-
_registerLine.__loaded = !1;
|
|
30756
|
-
const registerLine = _registerLine;
|
|
30757
|
-
|
|
30758
|
-
function _registerPath() {
|
|
30759
|
-
_registerPath.__loaded || (_registerPath.__loaded = !0, registerPathGraphic(), container.load(pathModule), container.load(browser ? pathCanvasPickModule : pathMathPickModule));
|
|
30760
|
-
}
|
|
30761
|
-
_registerPath.__loaded = !1;
|
|
30762
|
-
const registerPath = _registerPath;
|
|
30763
|
-
|
|
30764
|
-
function _registerPolygon() {
|
|
30765
|
-
_registerPolygon.__loaded || (_registerPolygon.__loaded = !0, registerPolygonGraphic(), container.load(polygonModule), container.load(browser ? polygonCanvasPickModule : polygonMathPickModule));
|
|
30766
|
-
}
|
|
30767
|
-
_registerPolygon.__loaded = !1;
|
|
30768
|
-
const registerPolygon = _registerPolygon;
|
|
30769
|
-
|
|
30770
|
-
function _registerPyramid3d() {
|
|
30771
|
-
_registerPyramid3d.__loaded || (_registerPyramid3d.__loaded = !0, registerPyramid3dGraphic(), registerDirectionalLight(), registerOrthoCamera(), container.load(pyramid3dModule), container.load(pyramid3dCanvasPickModule));
|
|
30772
|
-
}
|
|
30773
|
-
_registerPyramid3d.__loaded = !1;
|
|
30774
|
-
const registerPyramid3d = _registerPyramid3d;
|
|
30775
|
-
|
|
30776
|
-
function _registerRect() {
|
|
30777
|
-
_registerRect.__loaded || (_registerRect.__loaded = !0, registerRectGraphic(), container.load(rectModule), container.load(browser ? rectCanvasPickModule : rectMathPickModule));
|
|
30778
|
-
}
|
|
30779
|
-
_registerRect.__loaded = !1;
|
|
30780
|
-
const registerRect = _registerRect;
|
|
30781
|
-
|
|
30782
|
-
function _registerRect3d() {
|
|
30783
|
-
_registerRect3d.__loaded || (_registerRect3d.__loaded = !0, registerRect3dGraphic(), container.load(rect3dModule), container.load(rect3dCanvasPickModule));
|
|
30784
|
-
}
|
|
30785
|
-
_registerRect3d.__loaded = !1;
|
|
30786
|
-
const registerRect3d = _registerRect3d;
|
|
30787
|
-
|
|
30788
|
-
function _registerRichtext() {
|
|
30789
|
-
_registerRichtext.__loaded || (_registerRichtext.__loaded = !0, registerRichtextGraphic(), container.load(richtextModule), container.load(browser ? richtextCanvasPickModule : richTextMathPickModule));
|
|
30790
|
-
}
|
|
30791
|
-
_registerRichtext.__loaded = !1;
|
|
30792
|
-
const registerRichtext = _registerRichtext;
|
|
30793
|
-
|
|
30794
|
-
function _registerShadowRoot() {
|
|
30795
|
-
_registerShadowRoot.__loaded || (_registerShadowRoot.__loaded = !0, registerShadowRootGraphic());
|
|
30796
|
-
}
|
|
30797
|
-
_registerShadowRoot.__loaded = !1;
|
|
30798
|
-
const registerShadowRoot = _registerShadowRoot;
|
|
30799
|
-
|
|
30800
|
-
function _registerSymbol() {
|
|
30801
|
-
_registerSymbol.__loaded || (_registerSymbol.__loaded = !0, registerSymbolGraphic(), container.load(symbolModule), container.load(browser ? symbolCanvasPickModule : symbolMathPickModule));
|
|
30802
|
-
}
|
|
30803
|
-
_registerSymbol.__loaded = !1;
|
|
30804
|
-
const registerSymbol = _registerSymbol;
|
|
30805
|
-
|
|
30806
|
-
function _registerText() {
|
|
30807
|
-
_registerText.__loaded || (_registerText.__loaded = !0, registerTextGraphic(), container.load(textModule), container.load(browser ? textCanvasPickModule : textMathPickModule));
|
|
30808
|
-
}
|
|
30809
|
-
_registerText.__loaded = !1;
|
|
30810
|
-
const registerText = _registerText;
|
|
30811
|
-
|
|
30812
|
-
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30813
|
-
var d,
|
|
30814
|
-
c = arguments.length,
|
|
30815
|
-
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30816
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30817
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30818
|
-
},
|
|
30819
|
-
__metadata = undefined && undefined.__metadata || function (k, v) {
|
|
30820
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30821
|
-
},
|
|
30822
|
-
__param = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
30823
|
-
return function (target, key) {
|
|
30824
|
-
decorator(target, key, paramIndex);
|
|
30825
|
-
};
|
|
30826
|
-
};
|
|
30827
|
-
let DefaultCanvasStarPicker = class extends PickerBase {
|
|
30828
|
-
constructor(canvasRenderer) {
|
|
30829
|
-
super(), this.canvasRenderer = canvasRenderer, this.type = "star", this.numberType = STAR_NUMBER_TYPE;
|
|
30830
|
-
}
|
|
30831
|
-
};
|
|
30832
|
-
DefaultCanvasStarPicker = __decorate$3([injectable(), __param(0, inject(StarRender)), __metadata("design:paramtypes", [Object])], DefaultCanvasStarPicker);
|
|
30833
|
-
|
|
30834
|
-
let loadStarPick = !1;
|
|
30835
|
-
const starCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
30836
|
-
loadStarPick || (loadStarPick = !0, bind(CanvasStarPicker).to(DefaultCanvasStarPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasStarPicker));
|
|
30837
|
-
});
|
|
30838
|
-
|
|
30839
|
-
function _registerStar() {
|
|
30840
|
-
_registerStar.__loaded || (_registerStar.__loaded = !0, registerStarGraphic(), container.load(starModule), container.load(starCanvasPickModule));
|
|
30841
|
-
}
|
|
30842
|
-
_registerStar.__loaded = !1;
|
|
30843
|
-
const registerStar = _registerStar;
|
|
30844
|
-
|
|
30845
|
-
function _registerWrapText() {
|
|
30846
|
-
_registerWrapText.__loaded || (_registerWrapText.__loaded = !0, registerWrapTextGraphic());
|
|
30847
|
-
}
|
|
30848
|
-
_registerWrapText.__loaded = !1;
|
|
30849
|
-
const registerWrapText = _registerWrapText;
|
|
30850
|
-
|
|
30851
|
-
function registerGifGraphic() {
|
|
30852
|
-
graphicCreator.RegisterGraphicCreator("gif", createGifImage);
|
|
30853
|
-
}
|
|
30854
|
-
function _registerGifImage() {
|
|
30855
|
-
_registerGifImage.__loaded || (_registerGifImage.__loaded = !0, registerGifGraphic(), container.load(gifImageModule), container.load(gifImageCanvasPickModule));
|
|
30856
|
-
}
|
|
30857
|
-
_registerGifImage.__loaded = !1;
|
|
30858
|
-
const registerGifImage = _registerGifImage;
|
|
30859
|
-
|
|
30860
|
-
function pseudoRandom(n) {
|
|
30861
|
-
let seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
30862
|
-
let hash = 3735928559 ^ seed;
|
|
30863
|
-
return hash = (2654435769 ^ hash) + (hash << 6) + (hash >> 2), hash = 3432918353 * (hash ^ n), hash = hash << 15 | hash >>> 17, hash ^= hash << 25, hash += hash << 9, hash ^= hash >> 4, hash ^= hash << 18, hash |= 1, (hash >>> 0) % 2147483647 / 2147483647;
|
|
30864
|
-
}
|
|
30865
|
-
function randomOpacity(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30866
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30867
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30868
|
-
const targetRandomValue = 2 * pseudoRandom(row * columnCount + column) * Math.PI,
|
|
30869
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI + targetRandomValue) + 1) / 2;
|
|
30870
|
-
return Math.min(1, Math.max(0, _r));
|
|
30871
|
-
}
|
|
30872
|
-
function columnLeftToRight(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30873
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30874
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30875
|
-
const delay = column / columnCount,
|
|
30876
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30877
|
-
return Math.min(1, Math.max(0, _r));
|
|
30878
|
-
}
|
|
30879
|
-
function columnRightToLeft(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30880
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30881
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30882
|
-
const delay = (columnCount - 1 - column) / columnCount,
|
|
30883
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30884
|
-
return Math.min(1, Math.max(0, _r));
|
|
30885
|
-
}
|
|
30886
|
-
function rowTopToBottom(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30887
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30888
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30889
|
-
const delay = row / rowCount,
|
|
30890
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30891
|
-
return Math.min(1, Math.max(0, _r));
|
|
30892
|
-
}
|
|
30893
|
-
function rowBottomToTop(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30894
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30895
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30896
|
-
const delay = (rowCount - 1 - row) / rowCount,
|
|
30897
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30898
|
-
return Math.min(1, Math.max(0, _r));
|
|
30899
|
-
}
|
|
30900
|
-
function diagonalCenterToEdge(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30901
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30902
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30903
|
-
const centerRow = rowCount / 2,
|
|
30904
|
-
centerCol = columnCount / 2,
|
|
30905
|
-
distance = Math.sqrt(Math.pow((row - centerRow) / rowCount, 2) + Math.pow((column - centerCol) / columnCount, 2)),
|
|
30906
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30907
|
-
return Math.min(1, Math.max(0, _r));
|
|
30908
|
-
}
|
|
30909
|
-
function diagonalTopLeftToBottomRight(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30910
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30911
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30912
|
-
const delay = (row / rowCount + column / columnCount) / 2,
|
|
30913
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30914
|
-
return Math.min(1, Math.max(0, _r));
|
|
30915
|
-
}
|
|
30916
|
-
function rotationScan(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30917
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30918
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30919
|
-
const centerRow = rowCount / 2,
|
|
30920
|
-
centerCol = columnCount / 2,
|
|
30921
|
-
angle = Math.atan2(row - centerRow, column - centerCol),
|
|
30922
|
-
delay = (angle < 0 ? angle + 2 * Math.PI : angle) / (2 * Math.PI),
|
|
30923
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * delay * Math.PI) + 1) / 2;
|
|
30924
|
-
return Math.min(1, Math.max(0, _r));
|
|
30925
|
-
}
|
|
30926
|
-
function rippleEffect(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30927
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30928
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30929
|
-
const centerRow = rowCount / 2,
|
|
30930
|
-
centerCol = columnCount / 2,
|
|
30931
|
-
normalizedDistance = Math.sqrt(Math.pow(row - centerRow, 2) + Math.pow(column - centerCol, 2)) / Math.sqrt(Math.pow(rowCount / 2, 2) + Math.pow(columnCount / 2, 2)),
|
|
30932
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI * 3 - 2 * normalizedDistance * Math.PI) + 1) / 2;
|
|
30933
|
-
return Math.min(1, Math.max(0, _r));
|
|
30934
|
-
}
|
|
30935
|
-
function snakeWave(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30936
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30937
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30938
|
-
const delay = (row + column) % (rowCount + columnCount) / (rowCount + columnCount),
|
|
30939
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 4 * delay * Math.PI) + 1) / 2;
|
|
30940
|
-
return Math.min(1, Math.max(0, _r));
|
|
30941
|
-
}
|
|
30942
|
-
function alternatingWave(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30943
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30944
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30945
|
-
const rowPhase = row / rowCount,
|
|
30946
|
-
colPhase = column / columnCount,
|
|
30947
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * rowPhase * Math.PI) * Math.sin(2 * ratio * Math.PI - 2 * colPhase * Math.PI) + 1) / 2;
|
|
30948
|
-
return Math.min(1, Math.max(0, _r));
|
|
30949
|
-
}
|
|
30950
|
-
function spiralEffect(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30951
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30952
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30953
|
-
const centerRow = rowCount / 2,
|
|
30954
|
-
centerCol = columnCount / 2,
|
|
30955
|
-
distance = Math.sqrt(Math.pow(row - centerRow, 2) + Math.pow(column - centerCol, 2)),
|
|
30956
|
-
angle = Math.atan2(row - centerRow, column - centerCol),
|
|
30957
|
-
delay = (distance / Math.sqrt(Math.pow(rowCount / 2, 2) + Math.pow(columnCount / 2, 2)) + angle / (2 * Math.PI)) / 2,
|
|
30958
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 4 * delay * Math.PI) + 1) / 2;
|
|
30959
|
-
return Math.min(1, Math.max(0, _r));
|
|
30960
|
-
}
|
|
30961
|
-
function columnCenterToEdge(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30962
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30963
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30964
|
-
const centerCol = columnCount / 2,
|
|
30965
|
-
distance = Math.abs(column - centerCol) / centerCol,
|
|
30966
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30967
|
-
return Math.min(1, Math.max(0, _r));
|
|
30968
|
-
}
|
|
30969
|
-
function columnEdgeToCenter(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30970
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30971
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30972
|
-
const centerCol = columnCount / 2,
|
|
30973
|
-
distance = 1 - Math.abs(column - centerCol) / centerCol,
|
|
30974
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30975
|
-
return Math.min(1, Math.max(0, _r));
|
|
30976
|
-
}
|
|
30977
|
-
function rowCenterToEdge(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30978
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30979
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30980
|
-
const centerRow = rowCount / 2,
|
|
30981
|
-
distance = Math.abs(row - centerRow) / centerRow,
|
|
30982
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30983
|
-
return Math.min(1, Math.max(0, _r));
|
|
30984
|
-
}
|
|
30985
|
-
function rowEdgeToCenter(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30986
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30987
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30988
|
-
const centerRow = rowCount / 2,
|
|
30989
|
-
distance = 1 - Math.abs(row - centerRow) / centerRow,
|
|
30990
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * distance * Math.PI) + 1) / 2;
|
|
30991
|
-
return Math.min(1, Math.max(0, _r));
|
|
30992
|
-
}
|
|
30993
|
-
function cornerToCenter(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
30994
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
30995
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
30996
|
-
const centerRow = rowCount / 2,
|
|
30997
|
-
centerCol = columnCount / 2,
|
|
30998
|
-
distance = Math.sqrt(Math.pow((row - centerRow) / centerRow, 2) + Math.pow((column - centerCol) / centerCol, 2)),
|
|
30999
|
-
normalizedDistance = Math.min(distance, 1),
|
|
31000
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * normalizedDistance * Math.PI) + 1) / 2;
|
|
31001
|
-
return Math.min(1, Math.max(0, _r));
|
|
31002
|
-
}
|
|
31003
|
-
function centerToCorner(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
31004
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
31005
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
31006
|
-
const centerRow = rowCount / 2,
|
|
31007
|
-
centerCol = columnCount / 2,
|
|
31008
|
-
distance = Math.sqrt(Math.pow((row - centerRow) / centerRow, 2) + Math.pow((column - centerCol) / centerCol, 2)),
|
|
31009
|
-
normalizedDistance = 1 - Math.min(distance, 1),
|
|
31010
|
-
_r = minRatio + amplitude * (Math.sin(2 * ratio * Math.PI - 2 * normalizedDistance * Math.PI) + 1) / 2;
|
|
31011
|
-
return Math.min(1, Math.max(0, _r));
|
|
31012
|
-
}
|
|
31013
|
-
function pulseWave(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
31014
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
31015
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
31016
|
-
const centerRow = rowCount / 2,
|
|
31017
|
-
centerCol = columnCount / 2,
|
|
31018
|
-
distance = Math.sqrt(Math.pow((row - centerRow) / centerRow, 2) + Math.pow((column - centerCol) / centerCol, 2)),
|
|
31019
|
-
normalizedDistance = Math.min(distance, 1),
|
|
31020
|
-
wavePhase = 2 * ratio * Math.PI * 3,
|
|
31021
|
-
decay = Math.max(0, 1 - normalizedDistance),
|
|
31022
|
-
_r = minRatio + amplitude * ((Math.sin(wavePhase - 4 * normalizedDistance * Math.PI) + 1) / 2) * (.7 * decay + .3);
|
|
31023
|
-
return Math.min(1, Math.max(0, _r));
|
|
31024
|
-
}
|
|
31025
|
-
function particleEffect(ctx, row, column, rowCount, columnCount, ratio, graphic) {
|
|
31026
|
-
let minRatio = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;
|
|
31027
|
-
let amplitude = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 1;
|
|
31028
|
-
const index = row * columnCount + column,
|
|
31029
|
-
phase = 2 * pseudoRandom(index, 0) * Math.PI,
|
|
31030
|
-
speed = .5 * pseudoRandom(index, 1) + .5,
|
|
31031
|
-
direction = 2 * pseudoRandom(index, 2) * Math.PI,
|
|
31032
|
-
centerRow = rowCount / 2,
|
|
31033
|
-
centerCol = columnCount / 2,
|
|
31034
|
-
distance = Math.sqrt(Math.pow((row - centerRow) / centerRow, 2) + Math.pow((column - centerCol) / centerCol, 2)),
|
|
31035
|
-
normalizedDistance = Math.min(distance, 1),
|
|
31036
|
-
scatterRatio = (ratio - .4) / .6,
|
|
31037
|
-
movement = Math.sin(scatterRatio * speed * 8 * Math.PI + phase + direction * scatterRatio),
|
|
31038
|
-
distanceEffect = Math.cos(normalizedDistance * Math.PI + scatterRatio * Math.PI),
|
|
31039
|
-
_r = minRatio + amplitude * ((movement + 1) / 2 * Math.max(0, 1 - 1.2 * scatterRatio) * (.3 + .7 * distanceEffect));
|
|
31040
|
-
return Math.min(1, Math.max(0, _r));
|
|
31041
|
-
}
|
|
31042
|
-
|
|
31043
|
-
const roughModule = _roughModule;
|
|
31044
|
-
|
|
31045
31046
|
class Easing {
|
|
31046
31047
|
constructor() {}
|
|
31047
31048
|
static linear(t) {
|
|
@@ -31987,8 +31988,8 @@ class AnimateExecutor {
|
|
|
31987
31988
|
}
|
|
31988
31989
|
parseParams(params, isTimeline, child) {
|
|
31989
31990
|
var _a, _b;
|
|
31990
|
-
const totalTime = this.resolveValue(params.totalTime,
|
|
31991
|
-
startTime = this.resolveValue(params.startTime,
|
|
31991
|
+
const totalTime = this.resolveValue(params.totalTime, child, void 0),
|
|
31992
|
+
startTime = this.resolveValue(params.startTime, child, 0),
|
|
31992
31993
|
parsedParams = Object.assign({}, params);
|
|
31993
31994
|
parsedParams.oneByOneDelay = 0, parsedParams.startTime = startTime, parsedParams.totalTime = totalTime;
|
|
31994
31995
|
const oneByOne = this.resolveValue(params.oneByOne, child, !1);
|
|
@@ -32037,11 +32038,10 @@ class AnimateExecutor {
|
|
|
32037
32038
|
let oneByOneDelay = 0;
|
|
32038
32039
|
oneByOne && (oneByOneDelay = "number" == typeof oneByOne ? oneByOne : oneByOne ? delay + delayAfter + duration : 0), parsedParams.oneByOneDelay = oneByOneDelay, parsedParams.custom = null !== (_a = params.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = params.type) && void 0 !== _b ? _b : "fromTo"];
|
|
32039
32040
|
const customType = getCustomType(parsedParams.custom);
|
|
32040
|
-
|
|
32041
|
-
|
|
32042
|
-
|
|
32043
|
-
|
|
32044
|
-
}
|
|
32041
|
+
parsedParams.customType = customType;
|
|
32042
|
+
const _totalTime = delay + delayAfter + duration + oneByOneDelay * (this._target.count - 2),
|
|
32043
|
+
scale = isValidNumber$1(totalTime) ? totalTime / _totalTime : 1;
|
|
32044
|
+
parsedParams.delay = delay * scale, parsedParams.delayAfter = delayAfter * scale, parsedParams.duration = duration * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime;
|
|
32045
32045
|
}
|
|
32046
32046
|
return parsedParams;
|
|
32047
32047
|
}
|
|
@@ -32494,7 +32494,7 @@ class AComponentAnimate extends ACustomAnimate {
|
|
|
32494
32494
|
}
|
|
32495
32495
|
class AStageAnimate extends ACustomAnimate {
|
|
32496
32496
|
constructor(customFrom, customTo, duration, easing, params) {
|
|
32497
|
-
super(customFrom, customTo, duration, easing, params), this.willCallBeforeStageRender = !0, this.willCallAfterStageRender = !0, this._beforeStageRender = () => {
|
|
32497
|
+
super(customFrom, customTo, duration, easing, params), this.willCallBeforeStageRender = !0, this.willCallAfterStageRender = !0, this.checkStatusAfterRender = !0, this._beforeStageRender = () => {
|
|
32498
32498
|
if (!this.willCallBeforeStageRender) return;
|
|
32499
32499
|
this.willCallBeforeStageRender = !1;
|
|
32500
32500
|
const stage = this.target.stage,
|
|
@@ -32507,7 +32507,7 @@ class AStageAnimate extends ACustomAnimate {
|
|
|
32507
32507
|
const stage = this.target.stage,
|
|
32508
32508
|
canvas = stage.window.getContext().canvas.nativeCanvas,
|
|
32509
32509
|
outputCanvas = this.afterStageRender(stage, canvas);
|
|
32510
|
-
outputCanvas && this.renderToStage(stage, outputCanvas);
|
|
32510
|
+
outputCanvas && this.renderToStage(stage, outputCanvas), this.checkStatusAfterRender && this.animate.status === AnimateStatus.END && this.animate.timeline.removeAnimate(this.animate);
|
|
32511
32511
|
}, this.props = {};
|
|
32512
32512
|
}
|
|
32513
32513
|
beforeStageRender(stage, canvas) {
|
|
@@ -53028,7 +53028,7 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
53028
53028
|
select: !0
|
|
53029
53029
|
};
|
|
53030
53030
|
|
|
53031
|
-
const version = "1.0.
|
|
53031
|
+
const version = "1.0.38";
|
|
53032
53032
|
preLoadAllModule();
|
|
53033
53033
|
if (isBrowserEnv()) {
|
|
53034
53034
|
loadBrowserEnv(container);
|