costy-plus 1.0.36-0 → 1.0.38-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/node_modules/.pnpm/tslib@2.3.0/node_modules/tslib/tslib.es6.js +34 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/Element.js +447 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/Handler.js +169 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/Storage.js +76 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/Animation.js +67 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/Animator.js +382 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/Clip.js +34 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/cubicEasing.js +18 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/easing.js +105 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/requestAnimationFrame.js +9 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/config.js +11 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/arc.js +24 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/cubic.js +13 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/line.js +16 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/path.js +148 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/quadratic.js +13 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/text.js +96 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/util.js +7 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/windingLine.js +11 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/BoundingRect.js +65 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/Eventful.js +98 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/GestureMgr.js +63 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/LRU.js +53 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/PathProxy.js +303 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/Point.js +73 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/Transformable.js +106 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/bbox.js +44 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/curve.js +152 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/dom.js +50 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/env.js +22 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/event.js +65 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/fourPointsTransform.js +41 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/matrix.js +38 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/platform.js +48 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/timsort.js +288 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/util.js +252 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/vector.js +47 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/dom/HandlerProxy.js +189 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Displayable.js +147 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Group.js +96 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Image.js +56 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Path.js +218 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/TSpan.js +53 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Text.js +217 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/constants.js +6 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/image.js +16 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/parseText.js +205 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/poly.js +22 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/roundRect.js +9 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/smoothBezier.js +29 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +28 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Circle.js +24 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Line.js +43 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Polygon.js +25 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Polyline.js +30 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Rect.js +34 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/mixin/Draggable.js +30 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/svg/helper.js +21 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/tool/color.js +258 -0
- package/dist/es/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/zrender.js +121 -0
- package/dist/es/src/EcgWave/index.vue_vue_type_script_lang.js +1 -1
- package/dist/es/src/EcgWave/method.js +55 -49
- package/dist/es/src/EnlargeWave/index.vue_vue_type_script_lang.js +4 -4
- package/dist/es/src/EnlargeWave/medthod.js +29 -24
- package/dist/es/src/FCGWave/components/And2V5LeadPower.vue_vue_type_script_lang.js +138 -133
- package/dist/es/src/FCGWave/components/LeadPower12.vue_vue_type_script_lang.js +72 -67
- package/dist/es/src/FCGWave/components/PowerHistogram.vue_vue_type_script_lang.js +26 -20
- package/dist/es/src/HFECGWave/components/Detail.vue_vue_type_script_lang.js +47 -41
- package/dist/es/src/HFECGWave/components/Routine.vue_vue_type_script_lang.js +23 -18
- package/dist/es/src/MagnifierWave/index.vue_vue_type_script_lang.js +4 -4
- package/dist/es/src/MagnifierWave/medthod.js +16 -15
- package/dist/es/src/MeasuringRuler/index.vue_vue_type_script_lang.js +33 -29
- package/dist/es/src/ParallelRuler/index.vue_vue_type_script_lang.js +24 -19
- package/dist/lib/node_modules/.pnpm/tslib@2.3.0/node_modules/tslib/tslib.es6.js +14 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/Element.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/Handler.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/Storage.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/Animation.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/Animator.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/Clip.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/cubicEasing.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/easing.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/animation/requestAnimationFrame.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/config.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/arc.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/cubic.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/line.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/path.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/quadratic.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/text.js +2 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/util.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/contain/windingLine.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/BoundingRect.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/Eventful.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/GestureMgr.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/LRU.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/PathProxy.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/Point.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/Transformable.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/bbox.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/curve.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/dom.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/env.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/event.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/fourPointsTransform.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/matrix.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/platform.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/timsort.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/util.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/core/vector.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/dom/HandlerProxy.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Displayable.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Group.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Image.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Path.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/TSpan.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/Text.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/constants.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/image.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/parseText.js +7 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/poly.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/roundRect.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/smoothBezier.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Circle.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Line.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Polygon.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Polyline.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/graphic/shape/Rect.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/mixin/Draggable.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/svg/helper.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/tool/color.js +1 -0
- package/dist/lib/node_modules/.pnpm/zrender@5.4.0/node_modules/zrender/lib/zrender.js +9 -0
- package/dist/lib/src/EcgWave/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/EcgWave/method.js +1 -1
- package/dist/lib/src/EnlargeWave/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/EnlargeWave/medthod.js +1 -1
- package/dist/lib/src/FCGWave/components/And2V5LeadPower.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/FCGWave/components/LeadPower12.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/FCGWave/components/PowerHistogram.vue_vue_type_script_lang.js +3 -3
- package/dist/lib/src/HFECGWave/components/Detail.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/HFECGWave/components/Routine.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/MagnifierWave/index.vue_vue_type_script_lang.js +1 -1
- package/dist/lib/src/MagnifierWave/medthod.js +1 -1
- package/dist/lib/src/MeasuringRuler/index.vue_vue_type_script_lang.js +2 -2
- package/dist/lib/src/ParallelRuler/index.vue_vue_type_script_lang.js +1 -1
- package/package.json +1 -1
- /package/dist/es/node_modules/.pnpm/{vuescroll@4.17.5_vue@2.6.14 → vuescroll@4.17.5_vue@2.7.14}/node_modules/vuescroll/dist/vuescroll-native.js +0 -0
- /package/dist/lib/node_modules/.pnpm/{vuescroll@4.17.5_vue@2.6.14 → vuescroll@4.17.5_vue@2.7.14}/node_modules/vuescroll/dist/vuescroll-native.js +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
var c = function(n, t) {
|
|
16
|
+
return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, r) {
|
|
17
|
+
o.__proto__ = r;
|
|
18
|
+
} || function(o, r) {
|
|
19
|
+
for (var e in r)
|
|
20
|
+
Object.prototype.hasOwnProperty.call(r, e) && (o[e] = r[e]);
|
|
21
|
+
}, c(n, t);
|
|
22
|
+
};
|
|
23
|
+
function i(n, t) {
|
|
24
|
+
if (typeof t != "function" && t !== null)
|
|
25
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
26
|
+
c(n, t);
|
|
27
|
+
function o() {
|
|
28
|
+
this.constructor = n;
|
|
29
|
+
}
|
|
30
|
+
n.prototype = t === null ? Object.create(t) : (o.prototype = t.prototype, new o());
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
i as __extends
|
|
34
|
+
};
|
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import V, { TRANSFORMABLE_PROPS as U } from "./core/Transformable.js";
|
|
2
|
+
import W, { cloneValue as b } from "./animation/Animator.js";
|
|
3
|
+
import O from "./core/BoundingRect.js";
|
|
4
|
+
import j from "./core/Eventful.js";
|
|
5
|
+
import { calculateTextPosition as K, parsePercent as F } from "./contain/text.js";
|
|
6
|
+
import { reduce as k, extend as x, isObject as H, keys as Y, indexOf as P, logError as Z, mixin as X, isArrayLike as R, isGradientObject as tt, filter as M, guid as it, isTypedArray as rt } from "./core/util.js";
|
|
7
|
+
import { LIGHT_LABEL_COLOR as et, DARK_LABEL_COLOR as ot } from "./config.js";
|
|
8
|
+
import { parse as nt, stringify as st } from "./tool/color.js";
|
|
9
|
+
import { REDRAW_BIT as y } from "./graphic/constants.js";
|
|
10
|
+
var L = "__zr_normal__", N = U.concat(["ignore"]), at = k(U, function(e, t) {
|
|
11
|
+
return e[t] = !0, e;
|
|
12
|
+
}, { ignore: !1 }), w = {}, ht = new O(0, 0, 0, 0), B = function() {
|
|
13
|
+
function e(t) {
|
|
14
|
+
this.id = it(), this.animators = [], this.currentStates = [], this.states = {}, this._init(t);
|
|
15
|
+
}
|
|
16
|
+
return e.prototype._init = function(t) {
|
|
17
|
+
this.attr(t);
|
|
18
|
+
}, e.prototype.drift = function(t, i, r) {
|
|
19
|
+
switch (this.draggable) {
|
|
20
|
+
case "horizontal":
|
|
21
|
+
i = 0;
|
|
22
|
+
break;
|
|
23
|
+
case "vertical":
|
|
24
|
+
t = 0;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
var n = this.transform;
|
|
28
|
+
n || (n = this.transform = [1, 0, 0, 1, 0, 0]), n[4] += t, n[5] += i, this.decomposeTransform(), this.markRedraw();
|
|
29
|
+
}, e.prototype.beforeUpdate = function() {
|
|
30
|
+
}, e.prototype.afterUpdate = function() {
|
|
31
|
+
}, e.prototype.update = function() {
|
|
32
|
+
this.updateTransform(), this.__dirty && this.updateInnerText();
|
|
33
|
+
}, e.prototype.updateInnerText = function(t) {
|
|
34
|
+
var i = this._textContent;
|
|
35
|
+
if (i && (!i.ignore || t)) {
|
|
36
|
+
this.textConfig || (this.textConfig = {});
|
|
37
|
+
var r = this.textConfig, n = r.local, o = i.innerTransformable, s = void 0, f = void 0, h = !1;
|
|
38
|
+
o.parent = n ? this : null;
|
|
39
|
+
var v = !1;
|
|
40
|
+
if (o.copyTransform(i), r.position != null) {
|
|
41
|
+
var a = ht;
|
|
42
|
+
r.layoutRect ? a.copy(r.layoutRect) : a.copy(this.getBoundingRect()), n || a.applyTransform(this.transform), this.calculateTextPosition ? this.calculateTextPosition(w, r, a) : K(w, r, a), o.x = w.x, o.y = w.y, s = w.align, f = w.verticalAlign;
|
|
43
|
+
var p = r.origin;
|
|
44
|
+
if (p && r.rotation != null) {
|
|
45
|
+
var _ = void 0, m = void 0;
|
|
46
|
+
p === "center" ? (_ = a.width * 0.5, m = a.height * 0.5) : (_ = F(p[0], a.width), m = F(p[1], a.height)), v = !0, o.originX = -o.x + _ + (n ? 0 : a.x), o.originY = -o.y + m + (n ? 0 : a.y);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
r.rotation != null && (o.rotation = r.rotation);
|
|
50
|
+
var d = r.offset;
|
|
51
|
+
d && (o.x += d[0], o.y += d[1], v || (o.originX = -d[0], o.originY = -d[1]));
|
|
52
|
+
var l = r.inside == null ? typeof r.position == "string" && r.position.indexOf("inside") >= 0 : r.inside, c = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {}), u = void 0, g = void 0, C = void 0;
|
|
53
|
+
l && this.canBeInsideText() ? (u = r.insideFill, g = r.insideStroke, (u == null || u === "auto") && (u = this.getInsideTextFill()), (g == null || g === "auto") && (g = this.getInsideTextStroke(u), C = !0)) : (u = r.outsideFill, g = r.outsideStroke, (u == null || u === "auto") && (u = this.getOutsideFill()), (g == null || g === "auto") && (g = this.getOutsideStroke(u), C = !0)), u = u || "#000", (u !== c.fill || g !== c.stroke || C !== c.autoStroke || s !== c.align || f !== c.verticalAlign) && (h = !0, c.fill = u, c.stroke = g, c.autoStroke = C, c.align = s, c.verticalAlign = f, i.setDefaultTextStyle(c)), i.__dirty |= y, h && i.dirtyStyle(!0);
|
|
54
|
+
}
|
|
55
|
+
}, e.prototype.canBeInsideText = function() {
|
|
56
|
+
return !0;
|
|
57
|
+
}, e.prototype.getInsideTextFill = function() {
|
|
58
|
+
return "#fff";
|
|
59
|
+
}, e.prototype.getInsideTextStroke = function(t) {
|
|
60
|
+
return "#000";
|
|
61
|
+
}, e.prototype.getOutsideFill = function() {
|
|
62
|
+
return this.__zr && this.__zr.isDarkMode() ? et : ot;
|
|
63
|
+
}, e.prototype.getOutsideStroke = function(t) {
|
|
64
|
+
var i = this.__zr && this.__zr.getBackgroundColor(), r = typeof i == "string" && nt(i);
|
|
65
|
+
r || (r = [255, 255, 255, 1]);
|
|
66
|
+
for (var n = r[3], o = this.__zr.isDarkMode(), s = 0; s < 3; s++)
|
|
67
|
+
r[s] = r[s] * n + (o ? 0 : 255) * (1 - n);
|
|
68
|
+
return r[3] = 1, st(r, "rgba");
|
|
69
|
+
}, e.prototype.traverse = function(t, i) {
|
|
70
|
+
}, e.prototype.attrKV = function(t, i) {
|
|
71
|
+
t === "textConfig" ? this.setTextConfig(i) : t === "textContent" ? this.setTextContent(i) : t === "clipPath" ? this.setClipPath(i) : t === "extra" ? (this.extra = this.extra || {}, x(this.extra, i)) : this[t] = i;
|
|
72
|
+
}, e.prototype.hide = function() {
|
|
73
|
+
this.ignore = !0, this.markRedraw();
|
|
74
|
+
}, e.prototype.show = function() {
|
|
75
|
+
this.ignore = !1, this.markRedraw();
|
|
76
|
+
}, e.prototype.attr = function(t, i) {
|
|
77
|
+
if (typeof t == "string")
|
|
78
|
+
this.attrKV(t, i);
|
|
79
|
+
else if (H(t))
|
|
80
|
+
for (var r = t, n = Y(r), o = 0; o < n.length; o++) {
|
|
81
|
+
var s = n[o];
|
|
82
|
+
this.attrKV(s, t[s]);
|
|
83
|
+
}
|
|
84
|
+
return this.markRedraw(), this;
|
|
85
|
+
}, e.prototype.saveCurrentToNormalState = function(t) {
|
|
86
|
+
this._innerSaveToNormal(t);
|
|
87
|
+
for (var i = this._normalState, r = 0; r < this.animators.length; r++) {
|
|
88
|
+
var n = this.animators[r], o = n.__fromStateTransition;
|
|
89
|
+
if (!(n.getLoop() || o && o !== L)) {
|
|
90
|
+
var s = n.targetName, f = s ? i[s] : i;
|
|
91
|
+
n.saveTo(f);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}, e.prototype._innerSaveToNormal = function(t) {
|
|
95
|
+
var i = this._normalState;
|
|
96
|
+
i || (i = this._normalState = {}), t.textConfig && !i.textConfig && (i.textConfig = this.textConfig), this._savePrimaryToNormal(t, i, N);
|
|
97
|
+
}, e.prototype._savePrimaryToNormal = function(t, i, r) {
|
|
98
|
+
for (var n = 0; n < r.length; n++) {
|
|
99
|
+
var o = r[n];
|
|
100
|
+
t[o] != null && !(o in i) && (i[o] = this[o]);
|
|
101
|
+
}
|
|
102
|
+
}, e.prototype.hasState = function() {
|
|
103
|
+
return this.currentStates.length > 0;
|
|
104
|
+
}, e.prototype.getState = function(t) {
|
|
105
|
+
return this.states[t];
|
|
106
|
+
}, e.prototype.ensureState = function(t) {
|
|
107
|
+
var i = this.states;
|
|
108
|
+
return i[t] || (i[t] = {}), i[t];
|
|
109
|
+
}, e.prototype.clearStates = function(t) {
|
|
110
|
+
this.useState(L, !1, t);
|
|
111
|
+
}, e.prototype.useState = function(t, i, r, n) {
|
|
112
|
+
var o = t === L, s = this.hasState();
|
|
113
|
+
if (!(!s && o)) {
|
|
114
|
+
var f = this.currentStates, h = this.stateTransition;
|
|
115
|
+
if (!(P(f, t) >= 0 && (i || f.length === 1))) {
|
|
116
|
+
var v;
|
|
117
|
+
if (this.stateProxy && !o && (v = this.stateProxy(t)), v || (v = this.states && this.states[t]), !v && !o) {
|
|
118
|
+
Z("State " + t + " not exists.");
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
o || this.saveCurrentToNormalState(v);
|
|
122
|
+
var a = !!(v && v.hoverLayer || n);
|
|
123
|
+
a && this._toggleHoverLayerFlag(!0), this._applyStateObj(t, v, this._normalState, i, !r && !this.__inHover && h && h.duration > 0, h);
|
|
124
|
+
var p = this._textContent, _ = this._textGuide;
|
|
125
|
+
return p && p.useState(t, i, r, a), _ && _.useState(t, i, r, a), o ? (this.currentStates = [], this._normalState = {}) : i ? this.currentStates.push(t) : this.currentStates = [t], this._updateAnimationTargets(), this.markRedraw(), !a && this.__inHover && (this._toggleHoverLayerFlag(!1), this.__dirty &= ~y), v;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}, e.prototype.useStates = function(t, i, r) {
|
|
129
|
+
if (!t.length)
|
|
130
|
+
this.clearStates();
|
|
131
|
+
else {
|
|
132
|
+
var n = [], o = this.currentStates, s = t.length, f = s === o.length;
|
|
133
|
+
if (f) {
|
|
134
|
+
for (var h = 0; h < s; h++)
|
|
135
|
+
if (t[h] !== o[h]) {
|
|
136
|
+
f = !1;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (f)
|
|
141
|
+
return;
|
|
142
|
+
for (var h = 0; h < s; h++) {
|
|
143
|
+
var v = t[h], a = void 0;
|
|
144
|
+
this.stateProxy && (a = this.stateProxy(v, t)), a || (a = this.states[v]), a && n.push(a);
|
|
145
|
+
}
|
|
146
|
+
var p = n[s - 1], _ = !!(p && p.hoverLayer || r);
|
|
147
|
+
_ && this._toggleHoverLayerFlag(!0);
|
|
148
|
+
var m = this._mergeStates(n), d = this.stateTransition;
|
|
149
|
+
this.saveCurrentToNormalState(m), this._applyStateObj(t.join(","), m, this._normalState, !1, !i && !this.__inHover && d && d.duration > 0, d);
|
|
150
|
+
var l = this._textContent, c = this._textGuide;
|
|
151
|
+
l && l.useStates(t, i, _), c && c.useStates(t, i, _), this._updateAnimationTargets(), this.currentStates = t.slice(), this.markRedraw(), !_ && this.__inHover && (this._toggleHoverLayerFlag(!1), this.__dirty &= ~y);
|
|
152
|
+
}
|
|
153
|
+
}, e.prototype._updateAnimationTargets = function() {
|
|
154
|
+
for (var t = 0; t < this.animators.length; t++) {
|
|
155
|
+
var i = this.animators[t];
|
|
156
|
+
i.targetName && i.changeTarget(this[i.targetName]);
|
|
157
|
+
}
|
|
158
|
+
}, e.prototype.removeState = function(t) {
|
|
159
|
+
var i = P(this.currentStates, t);
|
|
160
|
+
if (i >= 0) {
|
|
161
|
+
var r = this.currentStates.slice();
|
|
162
|
+
r.splice(i, 1), this.useStates(r);
|
|
163
|
+
}
|
|
164
|
+
}, e.prototype.replaceState = function(t, i, r) {
|
|
165
|
+
var n = this.currentStates.slice(), o = P(n, t), s = P(n, i) >= 0;
|
|
166
|
+
o >= 0 ? s ? n.splice(o, 1) : n[o] = i : r && !s && n.push(i), this.useStates(n);
|
|
167
|
+
}, e.prototype.toggleState = function(t, i) {
|
|
168
|
+
i ? this.useState(t, !0) : this.removeState(t);
|
|
169
|
+
}, e.prototype._mergeStates = function(t) {
|
|
170
|
+
for (var i = {}, r, n = 0; n < t.length; n++) {
|
|
171
|
+
var o = t[n];
|
|
172
|
+
x(i, o), o.textConfig && (r = r || {}, x(r, o.textConfig));
|
|
173
|
+
}
|
|
174
|
+
return r && (i.textConfig = r), i;
|
|
175
|
+
}, e.prototype._applyStateObj = function(t, i, r, n, o, s) {
|
|
176
|
+
var f = !(i && n);
|
|
177
|
+
i && i.textConfig ? (this.textConfig = x({}, n ? this.textConfig : r.textConfig), x(this.textConfig, i.textConfig)) : f && r.textConfig && (this.textConfig = r.textConfig);
|
|
178
|
+
for (var h = {}, v = !1, a = 0; a < N.length; a++) {
|
|
179
|
+
var p = N[a], _ = o && at[p];
|
|
180
|
+
i && i[p] != null ? _ ? (v = !0, h[p] = i[p]) : this[p] = i[p] : f && r[p] != null && (_ ? (v = !0, h[p] = r[p]) : this[p] = r[p]);
|
|
181
|
+
}
|
|
182
|
+
if (!o)
|
|
183
|
+
for (var a = 0; a < this.animators.length; a++) {
|
|
184
|
+
var m = this.animators[a], d = m.targetName;
|
|
185
|
+
m.getLoop() || m.__changeFinalValue(d ? (i || r)[d] : i || r);
|
|
186
|
+
}
|
|
187
|
+
v && this._transitionState(t, h, s);
|
|
188
|
+
}, e.prototype._attachComponent = function(t) {
|
|
189
|
+
if (t.__zr && !t.__hostTarget) {
|
|
190
|
+
if (process.env.NODE_ENV !== "production")
|
|
191
|
+
throw new Error("Text element has been added to zrender.");
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
if (t === this) {
|
|
195
|
+
if (process.env.NODE_ENV !== "production")
|
|
196
|
+
throw new Error("Recursive component attachment.");
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
var i = this.__zr;
|
|
200
|
+
i && t.addSelfToZr(i), t.__zr = i, t.__hostTarget = this;
|
|
201
|
+
}, e.prototype._detachComponent = function(t) {
|
|
202
|
+
t.__zr && t.removeSelfFromZr(t.__zr), t.__zr = null, t.__hostTarget = null;
|
|
203
|
+
}, e.prototype.getClipPath = function() {
|
|
204
|
+
return this._clipPath;
|
|
205
|
+
}, e.prototype.setClipPath = function(t) {
|
|
206
|
+
this._clipPath && this._clipPath !== t && this.removeClipPath(), this._attachComponent(t), this._clipPath = t, this.markRedraw();
|
|
207
|
+
}, e.prototype.removeClipPath = function() {
|
|
208
|
+
var t = this._clipPath;
|
|
209
|
+
t && (this._detachComponent(t), this._clipPath = null, this.markRedraw());
|
|
210
|
+
}, e.prototype.getTextContent = function() {
|
|
211
|
+
return this._textContent;
|
|
212
|
+
}, e.prototype.setTextContent = function(t) {
|
|
213
|
+
var i = this._textContent;
|
|
214
|
+
if (i !== t) {
|
|
215
|
+
if (i && i !== t && this.removeTextContent(), process.env.NODE_ENV !== "production" && t.__zr && !t.__hostTarget)
|
|
216
|
+
throw new Error("Text element has been added to zrender.");
|
|
217
|
+
t.innerTransformable = new V(), this._attachComponent(t), this._textContent = t, this.markRedraw();
|
|
218
|
+
}
|
|
219
|
+
}, e.prototype.setTextConfig = function(t) {
|
|
220
|
+
this.textConfig || (this.textConfig = {}), x(this.textConfig, t), this.markRedraw();
|
|
221
|
+
}, e.prototype.removeTextConfig = function() {
|
|
222
|
+
this.textConfig = null, this.markRedraw();
|
|
223
|
+
}, e.prototype.removeTextContent = function() {
|
|
224
|
+
var t = this._textContent;
|
|
225
|
+
t && (t.innerTransformable = null, this._detachComponent(t), this._textContent = null, this._innerTextDefaultStyle = null, this.markRedraw());
|
|
226
|
+
}, e.prototype.getTextGuideLine = function() {
|
|
227
|
+
return this._textGuide;
|
|
228
|
+
}, e.prototype.setTextGuideLine = function(t) {
|
|
229
|
+
this._textGuide && this._textGuide !== t && this.removeTextGuideLine(), this._attachComponent(t), this._textGuide = t, this.markRedraw();
|
|
230
|
+
}, e.prototype.removeTextGuideLine = function() {
|
|
231
|
+
var t = this._textGuide;
|
|
232
|
+
t && (this._detachComponent(t), this._textGuide = null, this.markRedraw());
|
|
233
|
+
}, e.prototype.markRedraw = function() {
|
|
234
|
+
this.__dirty |= y;
|
|
235
|
+
var t = this.__zr;
|
|
236
|
+
t && (this.__inHover ? t.refreshHover() : t.refresh()), this.__hostTarget && this.__hostTarget.markRedraw();
|
|
237
|
+
}, e.prototype.dirty = function() {
|
|
238
|
+
this.markRedraw();
|
|
239
|
+
}, e.prototype._toggleHoverLayerFlag = function(t) {
|
|
240
|
+
this.__inHover = t;
|
|
241
|
+
var i = this._textContent, r = this._textGuide;
|
|
242
|
+
i && (i.__inHover = t), r && (r.__inHover = t);
|
|
243
|
+
}, e.prototype.addSelfToZr = function(t) {
|
|
244
|
+
if (this.__zr !== t) {
|
|
245
|
+
this.__zr = t;
|
|
246
|
+
var i = this.animators;
|
|
247
|
+
if (i)
|
|
248
|
+
for (var r = 0; r < i.length; r++)
|
|
249
|
+
t.animation.addAnimator(i[r]);
|
|
250
|
+
this._clipPath && this._clipPath.addSelfToZr(t), this._textContent && this._textContent.addSelfToZr(t), this._textGuide && this._textGuide.addSelfToZr(t);
|
|
251
|
+
}
|
|
252
|
+
}, e.prototype.removeSelfFromZr = function(t) {
|
|
253
|
+
if (!!this.__zr) {
|
|
254
|
+
this.__zr = null;
|
|
255
|
+
var i = this.animators;
|
|
256
|
+
if (i)
|
|
257
|
+
for (var r = 0; r < i.length; r++)
|
|
258
|
+
t.animation.removeAnimator(i[r]);
|
|
259
|
+
this._clipPath && this._clipPath.removeSelfFromZr(t), this._textContent && this._textContent.removeSelfFromZr(t), this._textGuide && this._textGuide.removeSelfFromZr(t);
|
|
260
|
+
}
|
|
261
|
+
}, e.prototype.animate = function(t, i, r) {
|
|
262
|
+
var n = t ? this[t] : this;
|
|
263
|
+
if (process.env.NODE_ENV !== "production" && !n) {
|
|
264
|
+
Z('Property "' + t + '" is not existed in element ' + this.id);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
var o = new W(n, i, r);
|
|
268
|
+
return t && (o.targetName = t), this.addAnimator(o, t), o;
|
|
269
|
+
}, e.prototype.addAnimator = function(t, i) {
|
|
270
|
+
var r = this.__zr, n = this;
|
|
271
|
+
t.during(function() {
|
|
272
|
+
n.updateDuringAnimation(i);
|
|
273
|
+
}).done(function() {
|
|
274
|
+
var o = n.animators, s = P(o, t);
|
|
275
|
+
s >= 0 && o.splice(s, 1);
|
|
276
|
+
}), this.animators.push(t), r && r.animation.addAnimator(t), r && r.wakeUp();
|
|
277
|
+
}, e.prototype.updateDuringAnimation = function(t) {
|
|
278
|
+
this.markRedraw();
|
|
279
|
+
}, e.prototype.stopAnimation = function(t, i) {
|
|
280
|
+
for (var r = this.animators, n = r.length, o = [], s = 0; s < n; s++) {
|
|
281
|
+
var f = r[s];
|
|
282
|
+
!t || t === f.scope ? f.stop(i) : o.push(f);
|
|
283
|
+
}
|
|
284
|
+
return this.animators = o, this;
|
|
285
|
+
}, e.prototype.animateTo = function(t, i, r) {
|
|
286
|
+
D(this, t, i, r);
|
|
287
|
+
}, e.prototype.animateFrom = function(t, i, r) {
|
|
288
|
+
D(this, t, i, r, !0);
|
|
289
|
+
}, e.prototype._transitionState = function(t, i, r, n) {
|
|
290
|
+
for (var o = D(this, i, r, n), s = 0; s < o.length; s++)
|
|
291
|
+
o[s].__fromStateTransition = t;
|
|
292
|
+
}, e.prototype.getBoundingRect = function() {
|
|
293
|
+
return null;
|
|
294
|
+
}, e.prototype.getPaintRect = function() {
|
|
295
|
+
return null;
|
|
296
|
+
}, e.initDefaultProps = function() {
|
|
297
|
+
var t = e.prototype;
|
|
298
|
+
t.type = "element", t.name = "", t.ignore = t.silent = t.isGroup = t.draggable = t.dragging = t.ignoreClip = t.__inHover = !1, t.__dirty = y;
|
|
299
|
+
var i = {};
|
|
300
|
+
function r(o, s, f) {
|
|
301
|
+
i[o + s + f] || (console.warn("DEPRECATED: '" + o + "' has been deprecated. use '" + s + "', '" + f + "' instead"), i[o + s + f] = !0);
|
|
302
|
+
}
|
|
303
|
+
function n(o, s, f, h) {
|
|
304
|
+
Object.defineProperty(t, o, {
|
|
305
|
+
get: function() {
|
|
306
|
+
if (process.env.NODE_ENV !== "production" && r(o, f, h), !this[s]) {
|
|
307
|
+
var a = this[s] = [];
|
|
308
|
+
v(this, a);
|
|
309
|
+
}
|
|
310
|
+
return this[s];
|
|
311
|
+
},
|
|
312
|
+
set: function(a) {
|
|
313
|
+
process.env.NODE_ENV !== "production" && r(o, f, h), this[f] = a[0], this[h] = a[1], this[s] = a, v(this, a);
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
function v(a, p) {
|
|
317
|
+
Object.defineProperty(p, 0, {
|
|
318
|
+
get: function() {
|
|
319
|
+
return a[f];
|
|
320
|
+
},
|
|
321
|
+
set: function(_) {
|
|
322
|
+
a[f] = _;
|
|
323
|
+
}
|
|
324
|
+
}), Object.defineProperty(p, 1, {
|
|
325
|
+
get: function() {
|
|
326
|
+
return a[h];
|
|
327
|
+
},
|
|
328
|
+
set: function(_) {
|
|
329
|
+
a[h] = _;
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
Object.defineProperty && (n("position", "_legacyPos", "x", "y"), n("scale", "_legacyScale", "scaleX", "scaleY"), n("origin", "_legacyOrigin", "originX", "originY"));
|
|
335
|
+
}(), e;
|
|
336
|
+
}();
|
|
337
|
+
X(B, j);
|
|
338
|
+
X(B, V);
|
|
339
|
+
function D(e, t, i, r, n) {
|
|
340
|
+
i = i || {};
|
|
341
|
+
var o = [];
|
|
342
|
+
$(e, "", e, t, i, r, o, n);
|
|
343
|
+
var s = o.length, f = !1, h = i.done, v = i.aborted, a = function() {
|
|
344
|
+
f = !0, s--, s <= 0 && (f ? h && h() : v && v());
|
|
345
|
+
}, p = function() {
|
|
346
|
+
s--, s <= 0 && (f ? h && h() : v && v());
|
|
347
|
+
};
|
|
348
|
+
s || h && h(), o.length > 0 && i.during && o[0].during(function(d, l) {
|
|
349
|
+
i.during(l);
|
|
350
|
+
});
|
|
351
|
+
for (var _ = 0; _ < o.length; _++) {
|
|
352
|
+
var m = o[_];
|
|
353
|
+
a && m.done(a), p && m.aborted(p), i.force && m.duration(i.duration), m.start(i.easing);
|
|
354
|
+
}
|
|
355
|
+
return o;
|
|
356
|
+
}
|
|
357
|
+
function z(e, t, i) {
|
|
358
|
+
for (var r = 0; r < i; r++)
|
|
359
|
+
e[r] = t[r];
|
|
360
|
+
}
|
|
361
|
+
function ft(e) {
|
|
362
|
+
return R(e[0]);
|
|
363
|
+
}
|
|
364
|
+
function ut(e, t, i) {
|
|
365
|
+
if (R(t[i]))
|
|
366
|
+
if (R(e[i]) || (e[i] = []), rt(t[i])) {
|
|
367
|
+
var r = t[i].length;
|
|
368
|
+
e[i].length !== r && (e[i] = new t[i].constructor(r), z(e[i], t[i], r));
|
|
369
|
+
} else {
|
|
370
|
+
var n = t[i], o = e[i], s = n.length;
|
|
371
|
+
if (ft(n))
|
|
372
|
+
for (var f = n[0].length, h = 0; h < s; h++)
|
|
373
|
+
o[h] ? z(o[h], n[h], f) : o[h] = Array.prototype.slice.call(n[h]);
|
|
374
|
+
else
|
|
375
|
+
z(o, n, s);
|
|
376
|
+
o.length = n.length;
|
|
377
|
+
}
|
|
378
|
+
else
|
|
379
|
+
e[i] = t[i];
|
|
380
|
+
}
|
|
381
|
+
function pt(e, t) {
|
|
382
|
+
return e === t || R(e) && R(t) && vt(e, t);
|
|
383
|
+
}
|
|
384
|
+
function vt(e, t) {
|
|
385
|
+
var i = e.length;
|
|
386
|
+
if (i !== t.length)
|
|
387
|
+
return !1;
|
|
388
|
+
for (var r = 0; r < i; r++)
|
|
389
|
+
if (e[r] !== t[r])
|
|
390
|
+
return !1;
|
|
391
|
+
return !0;
|
|
392
|
+
}
|
|
393
|
+
function $(e, t, i, r, n, o, s, f) {
|
|
394
|
+
for (var h = Y(r), v = n.duration, a = n.delay, p = n.additive, _ = n.setToFinal, m = !H(o), d = e.animators, l = [], c = 0; c < h.length; c++) {
|
|
395
|
+
var u = h[c], g = r[u];
|
|
396
|
+
if (g != null && i[u] != null && (m || o[u]))
|
|
397
|
+
if (H(g) && !R(g) && !tt(g)) {
|
|
398
|
+
if (t) {
|
|
399
|
+
f || (i[u] = g, e.updateDuringAnimation(t));
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
$(e, u, i[u], g, n, o && o[u], s, f);
|
|
403
|
+
} else
|
|
404
|
+
l.push(u);
|
|
405
|
+
else
|
|
406
|
+
f || (i[u] = g, e.updateDuringAnimation(t), l.push(u));
|
|
407
|
+
}
|
|
408
|
+
var C = l.length;
|
|
409
|
+
if (!p && C)
|
|
410
|
+
for (var T = 0; T < d.length; T++) {
|
|
411
|
+
var S = d[T];
|
|
412
|
+
if (S.targetName === t) {
|
|
413
|
+
var q = S.stopTracks(l);
|
|
414
|
+
if (q) {
|
|
415
|
+
var J = P(d, S);
|
|
416
|
+
d.splice(J, 1);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
if (n.force || (l = M(l, function(I) {
|
|
421
|
+
return !pt(r[I], i[I]);
|
|
422
|
+
}), C = l.length), C > 0 || n.force && !s.length) {
|
|
423
|
+
var A = void 0, G = void 0, E = void 0;
|
|
424
|
+
if (f) {
|
|
425
|
+
G = {}, _ && (A = {});
|
|
426
|
+
for (var T = 0; T < C; T++) {
|
|
427
|
+
var u = l[T];
|
|
428
|
+
G[u] = i[u], _ ? A[u] = r[u] : i[u] = r[u];
|
|
429
|
+
}
|
|
430
|
+
} else if (_) {
|
|
431
|
+
E = {};
|
|
432
|
+
for (var T = 0; T < C; T++) {
|
|
433
|
+
var u = l[T];
|
|
434
|
+
E[u] = b(i[u]), ut(i, r, u);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
var S = new W(i, !1, !1, p ? M(d, function(Q) {
|
|
438
|
+
return Q.targetName === t;
|
|
439
|
+
}) : null);
|
|
440
|
+
S.targetName = t, n.scope && (S.scope = n.scope), _ && A && S.whenWithKeys(0, A, l), E && S.whenWithKeys(0, E, l), S.whenWithKeys(v == null ? 500 : v, f ? G : r, l).delay(a || 0), e.addAnimator(S, t), s.push(S);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
const xt = B;
|
|
444
|
+
export {
|
|
445
|
+
L as PRESERVED_NORMAL_STATE,
|
|
446
|
+
xt as default
|
|
447
|
+
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { __extends as y } from "../../../../tslib@2.3.0/node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { each as _ } from "./core/util.js";
|
|
3
|
+
import { dist as k } from "./core/vector.js";
|
|
4
|
+
import B from "./mixin/Draggable.js";
|
|
5
|
+
import w from "./core/Eventful.js";
|
|
6
|
+
import { stop as X } from "./core/event.js";
|
|
7
|
+
import { GestureMgr as Y } from "./core/GestureMgr.js";
|
|
8
|
+
import T from "./core/BoundingRect.js";
|
|
9
|
+
var E = "silent";
|
|
10
|
+
function O(a, o, t) {
|
|
11
|
+
return {
|
|
12
|
+
type: a,
|
|
13
|
+
event: t,
|
|
14
|
+
target: o.target,
|
|
15
|
+
topTarget: o.topTarget,
|
|
16
|
+
cancelBubble: !1,
|
|
17
|
+
offsetX: t.zrX,
|
|
18
|
+
offsetY: t.zrY,
|
|
19
|
+
gestureEvent: t.gestureEvent,
|
|
20
|
+
pinchX: t.pinchX,
|
|
21
|
+
pinchY: t.pinchY,
|
|
22
|
+
pinchScale: t.pinchScale,
|
|
23
|
+
wheelDelta: t.zrDelta,
|
|
24
|
+
zrByTouch: t.zrByTouch,
|
|
25
|
+
which: t.which,
|
|
26
|
+
stop: R
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function R() {
|
|
30
|
+
X(this.event);
|
|
31
|
+
}
|
|
32
|
+
var D = function(a) {
|
|
33
|
+
y(o, a);
|
|
34
|
+
function o() {
|
|
35
|
+
var t = a !== null && a.apply(this, arguments) || this;
|
|
36
|
+
return t.handler = null, t;
|
|
37
|
+
}
|
|
38
|
+
return o.prototype.dispose = function() {
|
|
39
|
+
}, o.prototype.setCursor = function() {
|
|
40
|
+
}, o;
|
|
41
|
+
}(w), f = function() {
|
|
42
|
+
function a(o, t) {
|
|
43
|
+
this.x = o, this.y = t;
|
|
44
|
+
}
|
|
45
|
+
return a;
|
|
46
|
+
}(), L = [
|
|
47
|
+
"click",
|
|
48
|
+
"dblclick",
|
|
49
|
+
"mousewheel",
|
|
50
|
+
"mouseout",
|
|
51
|
+
"mouseup",
|
|
52
|
+
"mousedown",
|
|
53
|
+
"mousemove",
|
|
54
|
+
"contextmenu"
|
|
55
|
+
], d = new T(0, 0, 0, 0), z = function(a) {
|
|
56
|
+
y(o, a);
|
|
57
|
+
function o(t, r, s, n, i) {
|
|
58
|
+
var e = a.call(this) || this;
|
|
59
|
+
return e._hovered = new f(0, 0), e.storage = t, e.painter = r, e.painterRoot = n, e._pointerSize = i, s = s || new D(), e.proxy = null, e.setHandlerProxy(s), e._draggingMgr = new B(e), e;
|
|
60
|
+
}
|
|
61
|
+
return o.prototype.setHandlerProxy = function(t) {
|
|
62
|
+
this.proxy && this.proxy.dispose(), t && (_(L, function(r) {
|
|
63
|
+
t.on && t.on(r, this[r], this);
|
|
64
|
+
}, this), t.handler = this), this.proxy = t;
|
|
65
|
+
}, o.prototype.mousemove = function(t) {
|
|
66
|
+
var r = t.zrX, s = t.zrY, n = H(this, r, s), i = this._hovered, e = i.target;
|
|
67
|
+
e && !e.__zr && (i = this.findHover(i.x, i.y), e = i.target);
|
|
68
|
+
var u = this._hovered = n ? new f(r, s) : this.findHover(r, s), h = u.target, c = this.proxy;
|
|
69
|
+
c.setCursor && c.setCursor(h ? h.cursor : "default"), e && h !== e && this.dispatchToElement(i, "mouseout", t), this.dispatchToElement(u, "mousemove", t), h && h !== e && this.dispatchToElement(u, "mouseover", t);
|
|
70
|
+
}, o.prototype.mouseout = function(t) {
|
|
71
|
+
var r = t.zrEventControl;
|
|
72
|
+
r !== "only_globalout" && this.dispatchToElement(this._hovered, "mouseout", t), r !== "no_globalout" && this.trigger("globalout", { type: "globalout", event: t });
|
|
73
|
+
}, o.prototype.resize = function() {
|
|
74
|
+
this._hovered = new f(0, 0);
|
|
75
|
+
}, o.prototype.dispatch = function(t, r) {
|
|
76
|
+
var s = this[t];
|
|
77
|
+
s && s.call(this, r);
|
|
78
|
+
}, o.prototype.dispose = function() {
|
|
79
|
+
this.proxy.dispose(), this.storage = null, this.proxy = null, this.painter = null;
|
|
80
|
+
}, o.prototype.setCursorStyle = function(t) {
|
|
81
|
+
var r = this.proxy;
|
|
82
|
+
r.setCursor && r.setCursor(t);
|
|
83
|
+
}, o.prototype.dispatchToElement = function(t, r, s) {
|
|
84
|
+
t = t || {};
|
|
85
|
+
var n = t.target;
|
|
86
|
+
if (!(n && n.silent)) {
|
|
87
|
+
for (var i = "on" + r, e = O(r, t, s); n && (n[i] && (e.cancelBubble = !!n[i].call(n, e)), n.trigger(r, e), n = n.__hostTarget ? n.__hostTarget : n.parent, !e.cancelBubble); )
|
|
88
|
+
;
|
|
89
|
+
e.cancelBubble || (this.trigger(r, e), this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer(function(u) {
|
|
90
|
+
typeof u[i] == "function" && u[i].call(u, e), u.trigger && u.trigger(r, e);
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
}, o.prototype.findHover = function(t, r, s) {
|
|
94
|
+
var n = this.storage.getDisplayList(), i = new f(t, r);
|
|
95
|
+
if (m(n, i, t, r, s), this._pointerSize && !i.target) {
|
|
96
|
+
for (var e = [], u = this._pointerSize, h = u / 2, c = new T(t - h, r - h, u, u), v = n.length - 1; v >= 0; v--) {
|
|
97
|
+
var p = n[v];
|
|
98
|
+
p !== s && !p.ignore && !p.ignoreCoarsePointer && (!p.parent || !p.parent.ignoreCoarsePointer) && (d.copy(p.getBoundingRect()), p.transform && d.applyTransform(p.transform), d.intersect(c) && e.push(p));
|
|
99
|
+
}
|
|
100
|
+
if (e.length)
|
|
101
|
+
for (var b = 4, P = Math.PI / 12, C = Math.PI * 2, l = 0; l < h; l += b)
|
|
102
|
+
for (var g = 0; g < C; g += P) {
|
|
103
|
+
var x = t + l * Math.cos(g), M = r + l * Math.sin(g);
|
|
104
|
+
if (m(e, i, x, M, s), i.target)
|
|
105
|
+
return i;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return i;
|
|
109
|
+
}, o.prototype.processGesture = function(t, r) {
|
|
110
|
+
this._gestureMgr || (this._gestureMgr = new Y());
|
|
111
|
+
var s = this._gestureMgr;
|
|
112
|
+
r === "start" && s.clear();
|
|
113
|
+
var n = s.recognize(t, this.findHover(t.zrX, t.zrY, null).target, this.proxy.dom);
|
|
114
|
+
if (r === "end" && s.clear(), n) {
|
|
115
|
+
var i = n.type;
|
|
116
|
+
t.gestureEvent = i;
|
|
117
|
+
var e = new f();
|
|
118
|
+
e.target = n.target, this.dispatchToElement(e, i, n.event);
|
|
119
|
+
}
|
|
120
|
+
}, o;
|
|
121
|
+
}(w);
|
|
122
|
+
_(["click", "mousedown", "mouseup", "mousewheel", "dblclick", "contextmenu"], function(a) {
|
|
123
|
+
z.prototype[a] = function(o) {
|
|
124
|
+
var t = o.zrX, r = o.zrY, s = H(this, t, r), n, i;
|
|
125
|
+
if ((a !== "mouseup" || !s) && (n = this.findHover(t, r), i = n.target), a === "mousedown")
|
|
126
|
+
this._downEl = i, this._downPoint = [o.zrX, o.zrY], this._upEl = i;
|
|
127
|
+
else if (a === "mouseup")
|
|
128
|
+
this._upEl = i;
|
|
129
|
+
else if (a === "click") {
|
|
130
|
+
if (this._downEl !== this._upEl || !this._downPoint || k(this._downPoint, [o.zrX, o.zrY]) > 4)
|
|
131
|
+
return;
|
|
132
|
+
this._downPoint = null;
|
|
133
|
+
}
|
|
134
|
+
this.dispatchToElement(n, a, o);
|
|
135
|
+
};
|
|
136
|
+
});
|
|
137
|
+
function G(a, o, t) {
|
|
138
|
+
if (a[a.rectHover ? "rectContain" : "contain"](o, t)) {
|
|
139
|
+
for (var r = a, s = void 0, n = !1; r; ) {
|
|
140
|
+
if (r.ignoreClip && (n = !0), !n) {
|
|
141
|
+
var i = r.getClipPath();
|
|
142
|
+
if (i && !i.contain(o, t))
|
|
143
|
+
return !1;
|
|
144
|
+
r.silent && (s = !0);
|
|
145
|
+
}
|
|
146
|
+
var e = r.__hostTarget;
|
|
147
|
+
r = e || r.parent;
|
|
148
|
+
}
|
|
149
|
+
return s ? E : !0;
|
|
150
|
+
}
|
|
151
|
+
return !1;
|
|
152
|
+
}
|
|
153
|
+
function m(a, o, t, r, s) {
|
|
154
|
+
for (var n = a.length - 1; n >= 0; n--) {
|
|
155
|
+
var i = a[n], e = void 0;
|
|
156
|
+
if (i !== s && !i.ignore && (e = G(i, t, r)) && (!o.topTarget && (o.topTarget = i), e !== E)) {
|
|
157
|
+
o.target = i;
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function H(a, o, t) {
|
|
163
|
+
var r = a.painter;
|
|
164
|
+
return o < 0 || o > r.getWidth() || t < 0 || t > r.getHeight();
|
|
165
|
+
}
|
|
166
|
+
const I = z;
|
|
167
|
+
export {
|
|
168
|
+
I as default
|
|
169
|
+
};
|