@antv/g-svg 1.1.8-alpha.0 → 1.1.8
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/ContextRegisterPlugin.d.ts +1 -2
- package/dist/ContextRegisterPlugin.d.ts.map +1 -1
- package/dist/SVGContextService.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +4 -5
- package/dist/index.js +6 -7
- package/dist/index.umd.js +26 -26
- package/dist/index.umd.min.js +5 -5
- package/package.json +7 -7
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Syringe } from '
|
|
2
|
-
import type { RendererPlugin } from '@antv/g';
|
|
1
|
+
import type { RendererPlugin, Syringe } from '@antv/g';
|
|
3
2
|
export declare class ContextRegisterPlugin implements RendererPlugin {
|
|
4
3
|
name: string;
|
|
5
4
|
init(container: Syringe.Container): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextRegisterPlugin.d.ts","sourceRoot":"","sources":["../src/ContextRegisterPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ContextRegisterPlugin.d.ts","sourceRoot":"","sources":["../src/ContextRegisterPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAWvD,qBAAa,qBAAsB,YAAW,cAAc;IAC1D,IAAI,SAA0B;IAC9B,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,GAAG,IAAI;IAGxC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,GAAG,IAAI;CAG5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGContextService.d.ts","sourceRoot":"","sources":["../src/SVGContextService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"SVGContextService.d.ts","sourceRoot":"","sources":["../src/SVGContextService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAA+B,MAAM,SAAS,CAAC;AAGpF,qBACa,iBAAkB,YAAW,cAAc,CAAC,UAAU,CAAC;IAClE,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,GAAG,CAAS;IAGpB,OAAO,CAAC,YAAY,CAAe;IAE7B,IAAI;IAwBV,aAAa;IAIb,UAAU;IAIV,MAAM;IAIN,qBAAqB;IAIrB,OAAO;IAOP,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAOpC,gBAAgB,CAAC,MAAM,EAAE,MAAM;CAKhC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RendererConfig } from '@antv/g';
|
|
2
2
|
import { AbstractRenderer } from '@antv/g';
|
|
3
3
|
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
|
|
4
|
-
import * as SVGRenderer from '@antv/g-plugin-svg-renderer';
|
|
5
4
|
import * as SVGPicker from '@antv/g-plugin-svg-picker';
|
|
6
|
-
|
|
5
|
+
import * as SVGRenderer from '@antv/g-plugin-svg-renderer';
|
|
6
|
+
export { DomInteraction, SVGPicker, SVGRenderer };
|
|
7
7
|
export declare class Renderer extends AbstractRenderer {
|
|
8
8
|
constructor(config?: Partial<RendererConfig>);
|
|
9
9
|
}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;AAElD,qBAAa,QAAS,SAAQ,gBAAgB;gBAChC,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;CAQ7C"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { CanvasConfig, ContextService, isString, AbstractRenderer } from '@antv/g';
|
|
1
|
+
import { inject, CanvasConfig, singleton, ContextService, isString, Module, AbstractRenderer } from '@antv/g';
|
|
2
2
|
import { Plugin as Plugin$1 } from '@antv/g-plugin-dom-interaction';
|
|
3
3
|
import * as DomInteraction from '@antv/g-plugin-dom-interaction';
|
|
4
4
|
export { DomInteraction };
|
|
5
|
-
import { createSVGElement, Plugin } from '@antv/g-plugin-svg-renderer';
|
|
6
|
-
import * as SVGRenderer from '@antv/g-plugin-svg-renderer';
|
|
7
|
-
export { SVGRenderer };
|
|
8
5
|
import { Plugin as Plugin$2 } from '@antv/g-plugin-svg-picker';
|
|
9
6
|
import * as SVGPicker from '@antv/g-plugin-svg-picker';
|
|
10
7
|
export { SVGPicker };
|
|
11
|
-
import {
|
|
8
|
+
import { createSVGElement, Plugin } from '@antv/g-plugin-svg-renderer';
|
|
9
|
+
import * as SVGRenderer from '@antv/g-plugin-svg-renderer';
|
|
10
|
+
export { SVGRenderer };
|
|
12
11
|
import { __decorate, __metadata } from 'tslib';
|
|
13
12
|
|
|
14
13
|
function _regeneratorRuntime() {
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var g = require('@antv/g');
|
|
6
6
|
var DomInteraction = require('@antv/g-plugin-dom-interaction');
|
|
7
|
-
var SVGRenderer = require('@antv/g-plugin-svg-renderer');
|
|
8
7
|
var SVGPicker = require('@antv/g-plugin-svg-picker');
|
|
9
|
-
var
|
|
8
|
+
var SVGRenderer = require('@antv/g-plugin-svg-renderer');
|
|
10
9
|
var tslib = require('tslib');
|
|
11
10
|
|
|
12
11
|
function _interopNamespace(e) {
|
|
@@ -30,8 +29,8 @@ function _interopNamespace(e) {
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
var DomInteraction__namespace = /*#__PURE__*/_interopNamespace(DomInteraction);
|
|
33
|
-
var SVGRenderer__namespace = /*#__PURE__*/_interopNamespace(SVGRenderer);
|
|
34
32
|
var SVGPicker__namespace = /*#__PURE__*/_interopNamespace(SVGPicker);
|
|
33
|
+
var SVGRenderer__namespace = /*#__PURE__*/_interopNamespace(SVGRenderer);
|
|
35
34
|
|
|
36
35
|
function _regeneratorRuntime() {
|
|
37
36
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -525,13 +524,13 @@ var SVGContextService = /*#__PURE__*/function () {
|
|
|
525
524
|
return SVGContextService;
|
|
526
525
|
}();
|
|
527
526
|
|
|
528
|
-
tslib.__decorate([
|
|
527
|
+
tslib.__decorate([g.inject(g.CanvasConfig), tslib.__metadata("design:type", Object)], SVGContextService.prototype, "canvasConfig", void 0);
|
|
529
528
|
|
|
530
|
-
SVGContextService = tslib.__decorate([
|
|
529
|
+
SVGContextService = tslib.__decorate([g.singleton({
|
|
531
530
|
token: g.ContextService
|
|
532
531
|
})], SVGContextService);
|
|
533
532
|
|
|
534
|
-
var containerModule =
|
|
533
|
+
var containerModule = g.Module(function (register) {
|
|
535
534
|
/**
|
|
536
535
|
* implements ContextService
|
|
537
536
|
*/
|
|
@@ -578,6 +577,6 @@ var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
|
|
|
578
577
|
}(g.AbstractRenderer);
|
|
579
578
|
|
|
580
579
|
exports.DomInteraction = DomInteraction__namespace;
|
|
581
|
-
exports.SVGRenderer = SVGRenderer__namespace;
|
|
582
580
|
exports.SVGPicker = SVGPicker__namespace;
|
|
581
|
+
exports.SVGRenderer = SVGRenderer__namespace;
|
|
583
582
|
exports.Renderer = Renderer;
|
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@antv/g')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@antv/g'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.G = global.G || {}, global.G.SVG = {}), global.window.G
|
|
5
|
-
}(this, (function (exports, g
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@antv/g')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@antv/g'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.G = global.G || {}, global.G.SVG = {}), global.window.G));
|
|
5
|
+
}(this, (function (exports, g) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _regeneratorRuntime() {
|
|
8
8
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -967,14 +967,14 @@
|
|
|
967
967
|
return DOMInteractionPlugin;
|
|
968
968
|
}(), _class.tag = 'DOMInteraction', _class);
|
|
969
969
|
|
|
970
|
-
__decorate([
|
|
970
|
+
__decorate([g.inject(g.ContextService), __metadata("design:type", Object)], DOMInteractionPlugin.prototype, "contextService", void 0);
|
|
971
971
|
|
|
972
|
-
__decorate([
|
|
972
|
+
__decorate([g.inject(g.RenderingContext), __metadata("design:type", Object)], DOMInteractionPlugin.prototype, "renderingContext", void 0);
|
|
973
973
|
|
|
974
|
-
DOMInteractionPlugin = DOMInteractionPlugin_1 = __decorate([
|
|
974
|
+
DOMInteractionPlugin = DOMInteractionPlugin_1 = __decorate([g.singleton({
|
|
975
975
|
contrib: g.RenderingPluginContribution
|
|
976
976
|
})], DOMInteractionPlugin);
|
|
977
|
-
var containerModule =
|
|
977
|
+
var containerModule = g.Module(function (register) {
|
|
978
978
|
register(DOMInteractionPlugin);
|
|
979
979
|
});
|
|
980
980
|
|
|
@@ -1346,7 +1346,7 @@
|
|
|
1346
1346
|
d = "M 0,0 l " + width.value + ",0 l 0," + height.value + " l" + -width.value + " 0 z";
|
|
1347
1347
|
} else {
|
|
1348
1348
|
var _radius$map = radius.map(function (r) {
|
|
1349
|
-
return r.value;
|
|
1349
|
+
return g.clamp(r.value, 0, Math.min(width.value / 2, height.value / 2));
|
|
1350
1350
|
}),
|
|
1351
1351
|
tlr = _radius$map[0],
|
|
1352
1352
|
trr = _radius$map[1],
|
|
@@ -1448,7 +1448,7 @@
|
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
|
|
1451
|
-
var CreateElementContribution =
|
|
1451
|
+
var CreateElementContribution = g.Syringe.defineToken('CreateElementContribution', {
|
|
1452
1452
|
multiple: false
|
|
1453
1453
|
});
|
|
1454
1454
|
|
|
@@ -1528,9 +1528,9 @@
|
|
|
1528
1528
|
return DefaultCreateElementContribution;
|
|
1529
1529
|
}();
|
|
1530
1530
|
|
|
1531
|
-
__decorate([
|
|
1531
|
+
__decorate([g.inject(g.CanvasConfig), __metadata("design:type", Object)], DefaultCreateElementContribution.prototype, "canvasConfig", void 0);
|
|
1532
1532
|
|
|
1533
|
-
DefaultCreateElementContribution = __decorate([
|
|
1533
|
+
DefaultCreateElementContribution = __decorate([g.singleton({
|
|
1534
1534
|
token: CreateElementContribution
|
|
1535
1535
|
})], DefaultCreateElementContribution);
|
|
1536
1536
|
|
|
@@ -3573,20 +3573,20 @@
|
|
|
3573
3573
|
return SVGRendererPlugin;
|
|
3574
3574
|
}(), _class$1.tag = 'SVGRenderer', _class$1);
|
|
3575
3575
|
|
|
3576
|
-
__decorate([
|
|
3576
|
+
__decorate([g.inject(g.CanvasConfig), __metadata("design:type", Object)], SVGRendererPlugin.prototype, "canvasConfig", void 0);
|
|
3577
3577
|
|
|
3578
|
-
__decorate([
|
|
3578
|
+
__decorate([g.inject(g.DefaultCamera), __metadata("design:type", g.Camera)], SVGRendererPlugin.prototype, "camera", void 0);
|
|
3579
3579
|
|
|
3580
|
-
__decorate([
|
|
3580
|
+
__decorate([g.inject(g.ContextService), __metadata("design:type", Object)], SVGRendererPlugin.prototype, "contextService", void 0);
|
|
3581
3581
|
|
|
3582
|
-
__decorate([
|
|
3582
|
+
__decorate([g.inject(g.RenderingContext), __metadata("design:type", Object)], SVGRendererPlugin.prototype, "renderingContext", void 0);
|
|
3583
3583
|
|
|
3584
|
-
__decorate([
|
|
3584
|
+
__decorate([g.inject(CreateElementContribution), __metadata("design:type", Object)], SVGRendererPlugin.prototype, "createElementContribution", void 0);
|
|
3585
3585
|
|
|
3586
|
-
SVGRendererPlugin = SVGRendererPlugin_1 = __decorate([
|
|
3586
|
+
SVGRendererPlugin = SVGRendererPlugin_1 = __decorate([g.singleton({
|
|
3587
3587
|
contrib: g.RenderingPluginContribution
|
|
3588
3588
|
})], SVGRendererPlugin);
|
|
3589
|
-
var containerModule$1 =
|
|
3589
|
+
var containerModule$1 = g.Module(function (register) {
|
|
3590
3590
|
register(DefaultCreateElementContribution);
|
|
3591
3591
|
register(SVGRendererPlugin);
|
|
3592
3592
|
});
|
|
@@ -4160,14 +4160,14 @@
|
|
|
4160
4160
|
return SVGPickerPlugin;
|
|
4161
4161
|
}(), _class$2.tag = 'SVGPicker', _class$2);
|
|
4162
4162
|
|
|
4163
|
-
__decorate([
|
|
4163
|
+
__decorate([g.inject(g.CanvasConfig), __metadata("design:type", Object)], SVGPickerPlugin.prototype, "canvasConfig", void 0);
|
|
4164
4164
|
|
|
4165
|
-
__decorate([
|
|
4165
|
+
__decorate([g.inject(g.DisplayObjectPool), __metadata("design:type", g.DisplayObjectPool)], SVGPickerPlugin.prototype, "displayObjectPool", void 0);
|
|
4166
4166
|
|
|
4167
|
-
SVGPickerPlugin = SVGPickerPlugin_1 = __decorate([
|
|
4167
|
+
SVGPickerPlugin = SVGPickerPlugin_1 = __decorate([g.singleton({
|
|
4168
4168
|
contrib: g.RenderingPluginContribution
|
|
4169
4169
|
})], SVGPickerPlugin);
|
|
4170
|
-
var containerModule$2 =
|
|
4170
|
+
var containerModule$2 = g.Module(function (register) {
|
|
4171
4171
|
register(SVGPickerPlugin);
|
|
4172
4172
|
});
|
|
4173
4173
|
|
|
@@ -4289,13 +4289,13 @@
|
|
|
4289
4289
|
return SVGContextService;
|
|
4290
4290
|
}();
|
|
4291
4291
|
|
|
4292
|
-
__decorate([
|
|
4292
|
+
__decorate([g.inject(g.CanvasConfig), __metadata("design:type", Object)], SVGContextService.prototype, "canvasConfig", void 0);
|
|
4293
4293
|
|
|
4294
|
-
SVGContextService = __decorate([
|
|
4294
|
+
SVGContextService = __decorate([g.singleton({
|
|
4295
4295
|
token: g.ContextService
|
|
4296
4296
|
})], SVGContextService);
|
|
4297
4297
|
|
|
4298
|
-
var containerModule$3 =
|
|
4298
|
+
var containerModule$3 = g.Module(function (register) {
|
|
4299
4299
|
/**
|
|
4300
4300
|
* implements ContextService
|
|
4301
4301
|
*/
|
package/dist/index.umd.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g")
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g")):"function"==typeof define&&define.amd?define(["exports","@antv/g"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVG={}),t.window.G)}(this,(function(t,e){"use strict";function r(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
|
|
3
|
+
r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),i=new L(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function d(){}function p(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(A([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,c(m,"constructor",p),c(p,"constructor",d),d.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(this.prev>=i.tryLoc){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(i.catchLoc>this.prev)return r(i.catchLoc,!0);if(i.finallyLoc>this.prev)return r(i.finallyLoc)}else if(u){if(i.catchLoc>this.prev)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(this.prev>=o.tryLoc&&n.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function n(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e,r,n){var o,i=arguments.length,a=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(3>i?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(){
|
|
4
4
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
5
|
-
c=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),i=new L(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(A([])));g&&g!==e&&r.call(g,o)&&(v=g);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,u(m,"constructor",p),u(p,"constructor",d),d.displayName=u(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),u(m,a,"Generator"),u(m,o,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function s(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,u,"next",t)}function u(t){s(i,n,o,a,u,"throw",t)}a(void 0)}))}}var f,h,d=(f=function(){function t(){this.contextService=void 0,this.renderingContext=void 0}return t.prototype.apply=function(t){var e=this,r=this.renderingContext.root.ownerDocument.defaultView,n=function(e){t.hooks.pointerMove.call(e)},o=function(e){t.hooks.pointerUp.call(e)},i=function(e){t.hooks.pointerDown.call(e)},a=function(e){t.hooks.pointerOver.call(e)},u=function(e){t.hooks.pointerOut.call(e)},s=function(e){t.hooks.pointerCancel.call(e)},f=function(e){t.hooks.pointerWheel.call(e)},d=function(t){globalThis.document.addEventListener("pointermove",n,!0),t.addEventListener("pointerdown",i,!0),t.addEventListener("pointerleave",u,!0),t.addEventListener("pointerover",a,!0),globalThis.addEventListener("pointerup",o,!0)},p=function(t){t.addEventListener("touchstart",i,!0),t.addEventListener("touchend",o,!0),t.addEventListener("touchmove",n,!0),t.addEventListener("touchcancel",s,!0)},v=function(t){globalThis.document.addEventListener("mousemove",n,!0),t.addEventListener("mousedown",i,!0),t.addEventListener("mouseout",u,!0),t.addEventListener("mouseover",a,!0),globalThis.addEventListener("mouseup",o,!0)};t.hooks.init.tapPromise(h.tag,l(c().mark((function t(){var n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.contextService.getDomElement(),globalThis.navigator.msPointerEnabled?(n.style.msContentZooming="none",n.style.msTouchAction="none"):r.supportsPointerEvents&&(n.style.touchAction="none"),r.supportsPointerEvents?d(n):v(n),r.supportsTouchEvents&&p(n),n.addEventListener("wheel",f,{passive:!0,capture:!0});case 5:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(h.tag,(function(){var t=e.contextService.getDomElement();r.supportsPointerEvents?function(t){globalThis.document.removeEventListener("pointermove",n,!0),t.removeEventListener("pointerdown",i,!0),t.removeEventListener("pointerleave",u,!0),t.removeEventListener("pointerover",a,!0),globalThis.removeEventListener("pointerup",o,!0)}(t):function(t){globalThis.document.removeEventListener("mousemove",n,!0),t.removeEventListener("mousedown",i,!0),t.removeEventListener("mouseout",u,!0),t.removeEventListener("mouseover",a,!0),globalThis.removeEventListener("mouseup",o,!0)}(t),r.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",i,!0),t.removeEventListener("touchend",o,!0),t.removeEventListener("touchmove",n,!0)}(t),t.removeEventListener("wheel",f,!0)}))},t}(),f.tag="DOMInteraction",h=f);a([r.inject(e.ContextService),u("design:type",Object)],d.prototype,"contextService",void 0),a([r.inject(e.RenderingContext),u("design:type",Object)],d.prototype,"renderingContext",void 0),d=h=a([r.singleton({contrib:e.RenderingPluginContribution})],d);var p=r.Module((function(t){t(d)})),v=function(){function t(){this.name="dom-interaction"}var e=t.prototype;return e.init=function(t){t.load(p,!0)},e.destroy=function(t){t.unload(p)},t}(),y=Object.freeze({__proto__:null,Plugin:v}),g=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;i>o;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},m=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},b=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},w=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},E=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},x=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},S=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,L=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],A=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function C(t){return t?O(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new x:"undefined"!=typeof navigator?O(navigator.userAgent):"undefined"!=typeof process&&process.version?new b(process.version.slice(1)):null}function O(t){var e=function(t){return""!==t&&L.reduce((function(e,r){var n=r[0];if(e)return e;var o=r[1].exec(t);return!!o&&[n,o]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new E;var o=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);o?3>o.length&&(o=g(g([],o,!0),function(t){for(var e=[],r=0;t>r;r++)e.push("0");return e}(3-o.length),!0)):o=[];var i=o.join("."),a=function(t){for(var e=0,r=A.length;r>e;e++){var n=A[e],o=n[0];if(n[1].exec(t))return o}return null}(t),u=S.exec(t);return u&&u[1]?new w(r,i,a,u[1]):new m(r,i,a)}var T=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function k(t,r){var n=r.img,o=void 0===n?"":n,i=r.width,a=r.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),e.isString(o))t.setAttribute("href",o);else if(o instanceof Image)i||t.setAttribute("width",""+o.width),a||t.setAttribute("height",""+o.height),t.setAttribute("href",o.src);else if(o instanceof HTMLElement&&e.isString(o.nodeName)&&"CANVAS"===o.nodeName.toUpperCase())t.setAttribute("href",o.toDataURL());else if(o instanceof ImageData){var u=document.createElement("canvas");u.setAttribute("width",""+o.width),u.setAttribute("height",""+o.height);var c=u.getContext("2d");c&&(c.putImageData(o,0,0),i||t.setAttribute("width",""+o.width),a||t.setAttribute("height",""+o.height),t.setAttribute("href",u.toDataURL()))}}function _(t,e){var r=e.y1,n=e.x2,o=e.y2,i=e.defX,a=e.defY;t.setAttribute("x1",""+(e.x1.value-i)),t.setAttribute("y1",""+(r.value-a)),t.setAttribute("x2",""+(n.value-i)),t.setAttribute("y2",""+(o.value-a))}function G(t,e){var r=e.defX,n=e.defY;t.setAttribute("d",function(t,e,r){var n=t.map((function(t){switch(t[0]){case"M":return"M "+(t[1]-e)+","+(t[2]-r);case"L":return"L "+(t[1]-e)+","+(t[2]-r);case"Q":return"Q "+(t[1]-e)+" "+(t[2]-r)+","+(t[3]-e)+" "+(t[4]-r);case"C":return"C "+(t[1]-e)+" "+(t[2]-r)+","+(t[3]-e)+" "+(t[4]-r)+","+(t[5]-e)+" "+(t[6]-r);case"A":return"A "+t[1]+" "+t[2]+" "+t[3]+" "+t[4]+" "+t[5]+" "+(t[6]-e)+" "+(t[7]-r);case"Z":return"Z"}})).join(" ");if(~n.indexOf("NaN"))return"";return n}(e.path.absolutePath,void 0===r?0:r,void 0===n?0:n))}function P(t,e){var r=e.points,n=e.defX,o=void 0===n?0:n,i=e.defY,a=void 0===i?0:i;r&&r.points&&r.points.length>=2&&t.setAttribute("points",r.points.map((function(t){return t[0]-o+","+(t[1]-a)})).join(" "))}function N(t,e){var r=e.radius,n=e.width,o=e.height,i="";if(r&&r.some((function(t){return 0!==t.value}))){var a=r.map((function(t){return t.value})),u=a[0],c=a[1],s=a[2],l=a[3];i=[["M "+u+",0"],["l "+(n.value-u-c)+",0"],["a "+c+","+c+",0,0,1,"+c+","+c],["l 0,"+(o.value-c-s)],["a "+s+","+s+",0,0,1,"+-s+","+s],["l "+(s+l-n.value)+",0"],["a "+l+","+l+",0,0,1,"+-l+","+-l],["l 0,"+(l+u-o.value)],["a "+u+","+u+",0,0,1,"+u+","+-u],["z"]].join(" ")}else i="M 0,0 l "+n.value+",0 l 0,"+o.value+" l"+-n.value+" 0 z";t.setAttribute("d",i)}function j(t){return t.toFixed(6).replace(".000000","")}function M(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"}))}T.tag="c-svg-element";var $={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},R={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function I(t,e){var r=e.textBaseline,n=e.lineWidth,o=e.metrics,i=e.dx,a=e.dy,u=C();u&&"firefox"===u.name?t.setAttribute("dominant-baseline",R[r.value]||"alphabetic"):(t.setAttribute("dominant-baseline",R[r.value]),t.setAttribute("alignment-baseline",$[r.value])),t.setAttribute("paint-order","stroke");var c=o.lines,s=o.lineHeight,l=o.height,f=c.length;t.setAttribute("style","transform:translate("+i.toString()+", "+a.toString()+");"),1===f?(t.innerHTML=M(c[0]),t.setAttribute("dx",""+n.value/2)):t.innerHTML=c.map((function(t,e){var o=0;return 0===e?"middle"===r.value?o=s/2-l/2:"top"===r.value||"hanging"===r.value?o=0:"bottom"!==r.value&&"alphabetic"!==r.value&&"ideographic"!==r.value||(o=-s*(f-1)):o=s,'<tspan x="0" dx="'+n.value/2+'" dy="'+o+'">'+M(t)+"</tspan>"})).join("")}var W,D,V=r.Syringe.defineToken("CreateElementContribution",{multiple:!1});function F(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}var B=((W={})[e.Shape.RECT]="path",W[e.Shape.CIRCLE]="circle",W[e.Shape.ELLIPSE]="ellipse",W[e.Shape.IMAGE]="image",W[e.Shape.GROUP]="g",W[e.Shape.LINE]="line",W[e.Shape.POLYLINE]="polyline",W[e.Shape.POLYGON]="polygon",W[e.Shape.TEXT]="text",W[e.Shape.PATH]="path",W[e.Shape.HTML]="foreignObject",W),U=((D={})[e.Shape.CIRCLE]=["r"],D[e.Shape.ELLIPSE]=["rx","ry"],D[e.Shape.RECT]=["width","height","radius"],D[e.Shape.IMAGE]=["img","width","height"],D[e.Shape.LINE]=["x1","y1","x2","y2"],D[e.Shape.POLYLINE]=["points"],D[e.Shape.POLYGON]=["points"],D[e.Shape.PATH]=["path"],D[e.Shape.TEXT]=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","leading","textBaseline","textAlign","textTransform","whiteSpace","dx","dy"],D),H=function(){function t(){this.canvasConfig=void 0}var r=t.prototype;return r.createElement=function(t){return F(B[t.nodeName]||"g",this.canvasConfig.document||document)},r.shouldUpdateElementAttribute=function(t,e){return(U[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:k(r,n);break;case e.Shape.RECT:N(r,n);break;case e.Shape.LINE:_(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:P(r,n);break;case e.Shape.PATH:G(r,n);break;case e.Shape.TEXT:I(r,n)}},t}();function Y(){
|
|
5
|
+
u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=Object.create((e&&e.prototype instanceof h?e:h).prototype),i=new L(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function d(){}function p(){}var v={};c(v,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(A([])));g&&g!==e&&r.call(g,o)&&(v=g);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,u){var c=l(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,c(m,"constructor",p),c(p,"constructor",d),d.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function c(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)}))}}var l,f,h=(l=function(){function t(){this.contextService=void 0,this.renderingContext=void 0}return t.prototype.apply=function(t){var e=this,r=this.renderingContext.root.ownerDocument.defaultView,n=function(e){t.hooks.pointerMove.call(e)},o=function(e){t.hooks.pointerUp.call(e)},i=function(e){t.hooks.pointerDown.call(e)},a=function(e){t.hooks.pointerOver.call(e)},c=function(e){t.hooks.pointerOut.call(e)},l=function(e){t.hooks.pointerCancel.call(e)},h=function(e){t.hooks.pointerWheel.call(e)},d=function(t){globalThis.document.addEventListener("pointermove",n,!0),t.addEventListener("pointerdown",i,!0),t.addEventListener("pointerleave",c,!0),t.addEventListener("pointerover",a,!0),globalThis.addEventListener("pointerup",o,!0)},p=function(t){t.addEventListener("touchstart",i,!0),t.addEventListener("touchend",o,!0),t.addEventListener("touchmove",n,!0),t.addEventListener("touchcancel",l,!0)},v=function(t){globalThis.document.addEventListener("mousemove",n,!0),t.addEventListener("mousedown",i,!0),t.addEventListener("mouseout",c,!0),t.addEventListener("mouseover",a,!0),globalThis.addEventListener("mouseup",o,!0)};t.hooks.init.tapPromise(f.tag,s(u().mark((function t(){var n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.contextService.getDomElement(),globalThis.navigator.msPointerEnabled?(n.style.msContentZooming="none",n.style.msTouchAction="none"):r.supportsPointerEvents&&(n.style.touchAction="none"),r.supportsPointerEvents?d(n):v(n),r.supportsTouchEvents&&p(n),n.addEventListener("wheel",h,{passive:!0,capture:!0});case 5:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(f.tag,(function(){var t=e.contextService.getDomElement();r.supportsPointerEvents?function(t){globalThis.document.removeEventListener("pointermove",n,!0),t.removeEventListener("pointerdown",i,!0),t.removeEventListener("pointerleave",c,!0),t.removeEventListener("pointerover",a,!0),globalThis.removeEventListener("pointerup",o,!0)}(t):function(t){globalThis.document.removeEventListener("mousemove",n,!0),t.removeEventListener("mousedown",i,!0),t.removeEventListener("mouseout",c,!0),t.removeEventListener("mouseover",a,!0),globalThis.removeEventListener("mouseup",o,!0)}(t),r.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",i,!0),t.removeEventListener("touchend",o,!0),t.removeEventListener("touchmove",n,!0)}(t),t.removeEventListener("wheel",h,!0)}))},t}(),l.tag="DOMInteraction",f=l);i([e.inject(e.ContextService),a("design:type",Object)],h.prototype,"contextService",void 0),i([e.inject(e.RenderingContext),a("design:type",Object)],h.prototype,"renderingContext",void 0),h=f=i([e.singleton({contrib:e.RenderingPluginContribution})],h);var d=e.Module((function(t){t(h)})),p=function(){function t(){this.name="dom-interaction"}var e=t.prototype;return e.init=function(t){t.load(d,!0)},e.destroy=function(t){t.unload(d)},t}(),v=Object.freeze({__proto__:null,Plugin:p}),y=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;i>o;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},g=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},m=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},b=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},w=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},E=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},x=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,S=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],L=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function A(t){return t?C(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new E:"undefined"!=typeof navigator?C(navigator.userAgent):"undefined"!=typeof process&&process.version?new m(process.version.slice(1)):null}function C(t){var e=function(t){return""!==t&&S.reduce((function(e,r){var n=r[0];if(e)return e;var o=r[1].exec(t);return!!o&&[n,o]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new w;var o=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);o?3>o.length&&(o=y(y([],o,!0),function(t){for(var e=[],r=0;t>r;r++)e.push("0");return e}(3-o.length),!0)):o=[];var i=o.join("."),a=function(t){for(var e=0,r=L.length;r>e;e++){var n=L[e],o=n[0];if(n[1].exec(t))return o}return null}(t),u=x.exec(t);return u&&u[1]?new b(r,i,a,u[1]):new g(r,i,a)}var O=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function T(t,r){var n=r.img,o=void 0===n?"":n,i=r.width,a=r.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),e.isString(o))t.setAttribute("href",o);else if(o instanceof Image)i||t.setAttribute("width",""+o.width),a||t.setAttribute("height",""+o.height),t.setAttribute("href",o.src);else if(o instanceof HTMLElement&&e.isString(o.nodeName)&&"CANVAS"===o.nodeName.toUpperCase())t.setAttribute("href",o.toDataURL());else if(o instanceof ImageData){var u=document.createElement("canvas");u.setAttribute("width",""+o.width),u.setAttribute("height",""+o.height);var c=u.getContext("2d");c&&(c.putImageData(o,0,0),i||t.setAttribute("width",""+o.width),a||t.setAttribute("height",""+o.height),t.setAttribute("href",u.toDataURL()))}}function k(t,e){var r=e.y1,n=e.x2,o=e.y2,i=e.defX,a=e.defY;t.setAttribute("x1",""+(e.x1.value-i)),t.setAttribute("y1",""+(r.value-a)),t.setAttribute("x2",""+(n.value-i)),t.setAttribute("y2",""+(o.value-a))}function _(t,e){var r=e.defX,n=e.defY;t.setAttribute("d",function(t,e,r){var n=t.map((function(t){switch(t[0]){case"M":return"M "+(t[1]-e)+","+(t[2]-r);case"L":return"L "+(t[1]-e)+","+(t[2]-r);case"Q":return"Q "+(t[1]-e)+" "+(t[2]-r)+","+(t[3]-e)+" "+(t[4]-r);case"C":return"C "+(t[1]-e)+" "+(t[2]-r)+","+(t[3]-e)+" "+(t[4]-r)+","+(t[5]-e)+" "+(t[6]-r);case"A":return"A "+t[1]+" "+t[2]+" "+t[3]+" "+t[4]+" "+t[5]+" "+(t[6]-e)+" "+(t[7]-r);case"Z":return"Z"}})).join(" ");if(~n.indexOf("NaN"))return"";return n}(e.path.absolutePath,void 0===r?0:r,void 0===n?0:n))}function G(t,e){var r=e.points,n=e.defX,o=void 0===n?0:n,i=e.defY,a=void 0===i?0:i;r&&r.points&&r.points.length>=2&&t.setAttribute("points",r.points.map((function(t){return t[0]-o+","+(t[1]-a)})).join(" "))}function P(t,r){var n=r.radius,o=r.width,i=r.height,a="";if(n&&n.some((function(t){return 0!==t.value}))){var u=n.map((function(t){return e.clamp(t.value,0,Math.min(o.value/2,i.value/2))})),c=u[0],s=u[1],l=u[2],f=u[3];a=[["M "+c+",0"],["l "+(o.value-c-s)+",0"],["a "+s+","+s+",0,0,1,"+s+","+s],["l 0,"+(i.value-s-l)],["a "+l+","+l+",0,0,1,"+-l+","+l],["l "+(l+f-o.value)+",0"],["a "+f+","+f+",0,0,1,"+-f+","+-f],["l 0,"+(f+c-i.value)],["a "+c+","+c+",0,0,1,"+c+","+-c],["z"]].join(" ")}else a="M 0,0 l "+o.value+",0 l 0,"+i.value+" l"+-o.value+" 0 z";t.setAttribute("d",a)}function N(t){return t.toFixed(6).replace(".000000","")}function j(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&":"<"===t?"<":">"===t?">":'"'===t?""":"'"}))}O.tag="c-svg-element";var M={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},$={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function R(t,e){var r=e.textBaseline,n=e.lineWidth,o=e.metrics,i=e.dx,a=e.dy,u=A();u&&"firefox"===u.name?t.setAttribute("dominant-baseline",$[r.value]||"alphabetic"):(t.setAttribute("dominant-baseline",$[r.value]),t.setAttribute("alignment-baseline",M[r.value])),t.setAttribute("paint-order","stroke");var c=o.lines,s=o.lineHeight,l=o.height,f=c.length;t.setAttribute("style","transform:translate("+i.toString()+", "+a.toString()+");"),1===f?(t.innerHTML=j(c[0]),t.setAttribute("dx",""+n.value/2)):t.innerHTML=c.map((function(t,e){var o=0;return 0===e?"middle"===r.value?o=s/2-l/2:"top"===r.value||"hanging"===r.value?o=0:"bottom"!==r.value&&"alphabetic"!==r.value&&"ideographic"!==r.value||(o=-s*(f-1)):o=s,'<tspan x="0" dx="'+n.value/2+'" dy="'+o+'">'+j(t)+"</tspan>"})).join("")}var I,W,D=e.Syringe.defineToken("CreateElementContribution",{multiple:!1});function V(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}var F=((I={})[e.Shape.RECT]="path",I[e.Shape.CIRCLE]="circle",I[e.Shape.ELLIPSE]="ellipse",I[e.Shape.IMAGE]="image",I[e.Shape.GROUP]="g",I[e.Shape.LINE]="line",I[e.Shape.POLYLINE]="polyline",I[e.Shape.POLYGON]="polygon",I[e.Shape.TEXT]="text",I[e.Shape.PATH]="path",I[e.Shape.HTML]="foreignObject",I),B=((W={})[e.Shape.CIRCLE]=["r"],W[e.Shape.ELLIPSE]=["rx","ry"],W[e.Shape.RECT]=["width","height","radius"],W[e.Shape.IMAGE]=["img","width","height"],W[e.Shape.LINE]=["x1","y1","x2","y2"],W[e.Shape.POLYLINE]=["points"],W[e.Shape.POLYGON]=["points"],W[e.Shape.PATH]=["path"],W[e.Shape.TEXT]=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","leading","textBaseline","textAlign","textTransform","whiteSpace","dx","dy"],W),U=function(){function t(){this.canvasConfig=void 0}var r=t.prototype;return r.createElement=function(t){return V(F[t.nodeName]||"g",this.canvasConfig.document||document)},r.shouldUpdateElementAttribute=function(t,e){return(B[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:T(r,n);break;case e.Shape.RECT:P(r,n);break;case e.Shape.LINE:k(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:G(r,n);break;case e.Shape.PATH:_(r,n);break;case e.Shape.TEXT:R(r,n)}},t}();function H(){
|
|
6
6
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
7
|
-
Y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),i=new S(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function h(){}function d(){}var p={};u(p,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==e&&r.call(y,o)&&(p=y);var g=d.prototype=f.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=d,u(g,"constructor",d),u(d,"constructor",h),h.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),u(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,a,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function X(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function q(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){X(i,n,o,a,u,"next",t)}function u(t){X(i,n,o,a,u,"throw",t)}a(void 0)}))}}a([r.inject(e.CanvasConfig),u("design:type",Object)],H.prototype,"canvasConfig",void 0),H=a([r.singleton({token:V})],H);var z="undefined"!=typeof Float32Array?Float32Array:Array;function Q(t,e){var r=e[4],n=e[5],o=e[6],i=e[8],a=e[9],u=e[10];return t[0]=Math.hypot(e[0],e[1],e[2]),t[1]=Math.hypot(r,n,o),t[2]=Math.hypot(i,a,u),t}function K(){var t=new z(3);return z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function J(t,e,r){var n=new z(3);return n[0]=t,n[1]=e,n[2]=r,n}function Z(t,e,r){var n=e[0],o=e[1],i=e[2],a=r[0],u=r[1],c=r[2];return t[0]=o*c-i*u,t[1]=i*a-n*c,t[2]=n*u-o*a,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var tt,et=function(t){return Math.hypot(t[0],t[1],t[2])};tt=K();!function(){var t,e=(t=new z(4),z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t)}();function rt(){var t=new z(4);return z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function nt(t,e,r,n){var o,i,a,u,c,s=e[0],l=e[1],f=e[2],h=e[3],d=r[0],p=r[1],v=r[2],y=r[3];return 0>(i=s*d+l*p+f*v+h*y)&&(i=-i,d=-d,p=-p,v=-v,y=-y),1-i>1e-6?(o=Math.acos(i),a=Math.sin(o),u=Math.sin((1-n)*o)/a,c=Math.sin(n*o)/a):(u=1-n,c=n),t[0]=u*s+c*d,t[1]=u*l+c*p,t[2]=u*f+c*v,t[3]=u*h+c*y,t}var ot,it,at,ut,ct,st,lt,ft=function(t,e){var r=e[0],n=e[1],o=e[2],i=e[3],a=r*r+n*n+o*o+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=r*a,t[1]=n*a,t[2]=o*a,t[3]=i*a,t};ot=K(),it=J(1,0,0),at=J(0,1,0),ut=rt(),ct=rt(),st=new z(9),z!=Float32Array&&(st[1]=0,st[2]=0,st[3]=0,st[5]=0,st[6]=0,st[7]=0),st[0]=1,st[4]=1,st[8]=1,lt=st;function ht(t,r,n,o,i){var a="g-filter-"+n.entity,u=r.querySelectorAll("[name="+a+"]");if(u.length&&u.forEach((function(t){r.removeChild(t)})),0===i.length)null==o||o.removeAttribute("filter");else{var c=i.map((function(n,o){var i=n.name,u=n.params,c=F("filter",t);return c.setAttribute("filterUnits","userSpaceOnUse"),"blur"===i?function(t,e,r){var n=F("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,c,u):"brightness"===i?function(t,e,r){var n=dt(r[0]);pt(t,e,{type:"linear",slope:n,intercept:0})}(t,c,u):"drop-shadow"===i?function(t,e,r){var n=r[0].value,o=r[1].value,i=r[2].value,a=r[3].formatted,u=F("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+i),e.appendChild(u);var c=F("feOffset",t);c.setAttribute("dx",""+n),c.setAttribute("dy",""+o),c.setAttribute("result","offsetblur"),e.appendChild(c);var s=F("feFlood",t);s.setAttribute("flood-color",a),e.appendChild(s);var l=F("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var f=F("feMerge",t);e.appendChild(f);var h=F("feMergeNode",t),d=F("feMergeNode",t);d.setAttribute("in","SourceGraphic"),f.appendChild(h),f.appendChild(d)}(t,c,u):"contrast"===i?function(t,e,r){var n=dt(r[0]);pt(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,c,u):"grayscale"===i?function(t,e,r){var n=dt(r[0]);vt(t,e,[.2126+.7874*(1-n),.7152-.7152*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152+.2848*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152-.7152*(1-n),.0722+.9278*(1-n),0,0,0,0,0,1,0])}(t,c,u):"sepia"===i?function(t,e,r){var n=dt(r[0]);vt(t,e,[.393+.607*(1-n),.769-.769*(1-n),.189-.189*(1-n),0,0,.349-.349*(1-n),.686+.314*(1-n),.168-.168*(1-n),0,0,.272-.272*(1-n),.534-.534*(1-n),.131+.869*(1-n),0,0,0,0,0,1,0])}(t,c,u):"saturate"===i?function(t,e,r){var n=dt(r[0]),o=F("feColorMatrix",t);o.setAttribute("type","saturate"),o.setAttribute("values",""+n),e.appendChild(o)}(t,c,u):"hue-rotate"===i?function(t,r,n){var o=F("feColorMatrix",t);o.setAttribute("type","hueRotate"),o.setAttribute("values",""+n[0].to(e.UnitType.kDegrees).value),r.appendChild(o)}(t,c,u):"invert"===i&&function(t,e,r){var n=dt(r[0]);pt(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,c,u),c.id=a+"-"+o,c.setAttribute("name",a),r.appendChild(c),c.id}));null==o||o.setAttribute("filter",c.map((function(t){return"url(#"+t+")"})).join(" "))}}function dt(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function pt(t,e,r){var n=r.type,o=r.slope,i=r.intercept,a=r.tableValues,u=F("feComponentTransfer",t);[F("feFuncR",t),F("feFuncG",t),F("feFuncB",t)].forEach((function(t){t.setAttribute("type",n),"table"===n?t.setAttribute("tableValues",""+a):(t.setAttribute("slope",""+o),t.setAttribute("intercept",""+i)),u.appendChild(t)})),e.appendChild(u)}function vt(t,e,r){var n=F("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var yt={},gt=0;function mt(t,r,n,o,i,a){i&&(i instanceof e.CSSRGB?"currentColor"===n.style[a]?null==o||o.setAttribute(a,"currentColor"):null==o||o.setAttribute(a,i.isNone?"none":i.toString()):i.type===e.GradientPatternType.Pattern?function(t,e,r,n,o){var i=bt(o);if(!e.querySelector("#"+i)){var a=o.value.src,u=F("pattern",t);u.setAttribute("patternUnits","userSpaceOnUse");var c=F("image",t);u.appendChild(c),u.id=i,e.appendChild(u),null==r||r.setAttribute(n,"url(#"+i+")"),c.setAttribute("href",a);var s=new window.Image;a.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=a;var l=function(){u.setAttribute("width",""+s.width),u.setAttribute("height",""+s.height)};s.complete?l():(s.onload=l,s.src=s.src)}}(t,r,o,a,i):function(t,r,n,o,i,a){var u=bt(a),c=n.querySelector("#"+u);if(!c){(c=F(a.type===e.GradientPatternType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var s="";a.value.steps.forEach((function(t){s+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),c.innerHTML=s,c.id=u,n.appendChild(c),null==o||o.setAttribute(i,"url(#"+u+")")}var l=r.getGeometryBounds(),f=l&&2*l.halfExtents[0]||0,h=l&&2*l.halfExtents[1]||0;if(a.type===e.GradientPatternType.LinearGradient){var d=a.value,p=d.y0,v=d.x1,y=d.y1;c.setAttribute("x1",""+d.x0*f),c.setAttribute("y1",""+p*h),c.setAttribute("x2",""+v*f),c.setAttribute("y2",""+y*h)}else{var g=Math.sqrt(f*f+h*h)/2,m=a.value,b=m.y0,w=m.r1;c.setAttribute("cx",""+m.x0*f),c.setAttribute("cy",""+b*h),c.setAttribute("r",""+w*g)}}(t,n,r,o,a,i))}function bt(t){var r="";if(t instanceof e.CSSGradientValue){var n=t.type;if(n===e.GradientPatternType.Pattern)r=t.value.src;else if(n===e.GradientPatternType.LinearGradient||n===e.GradientPatternType.RadialGradient){var o=t.value;r=""+n+o.x0+o.y0+o.x1+o.y1+(o.r1||0)+o.steps.map((function(t){return t.join("")})).join("")}r&&(yt[r]||(yt[r]="_pattern_"+n+"_"+gt++))}return yt[r]}var wt,Et;var xt={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor"},St={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},Lt={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit"},At="g_svg",Ct=(wt=function(){function t(){this.canvasConfig=void 0,this.camera=void 0,this.contextService=void 0,this.renderingContext=void 0,this.createElementContribution=void 0,this.$def=void 0,this.$camera=void 0,this.renderQueue=[],this.pendingReorderQueue=new Set}var r=t.prototype;return r.apply=function(t){var r=this,n=this.canvasConfig.document,o=function(t){r.createSVGDom(n,t.target,r.$camera)},i=function(t){r.removeSVGDom(t.target)},a=function(t){var e=t.target;if(e.elementSVG){var o=t.attrName;if("zIndex"===o){var i,a,u=e.parentNode,c=null===(i=e.parentNode)||void 0===i||null===(a=i.elementSVG)||void 0===a?void 0:a.$groupEl,s=((null==u?void 0:u.children)||[]).slice();c&&r.reorderChildren(n,c,s)}else if("increasedLineWidthForHitTesting"===o){var l=e.elementSVG;r.createOrUpdateHitArea(e,l.$el,l.$groupEl)}r.updateAttribute(e,[o])}},u=function(t){var o,i=r.canvasConfig.document,a=t.target,u=null===(o=a.elementSVG)||void 0===o?void 0:o.$el,c=a.parsedStyle,s=c.fill,l=c.stroke;!s||s instanceof e.CSSRGB||mt(i||n,r.$def,a,u,s,"fill"),!l||l instanceof e.CSSRGB||mt(i||n,r.$def,a,u,l,"stroke")};t.hooks.init.tapPromise(Et.tag,q(Y().mark((function t(){var n,c,s,l;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:c=(n=r.canvasConfig).background,r.$def=F("defs",s=n.document),l=r.contextService.getContext(),c&&(l.style.background=c),l.appendChild(r.$def),l.setAttribute("color-interpolation-filters","sRGB"),r.$camera=F("g",s),r.$camera.id="g_svg_camera",r.applyTransform(r.$camera,r.camera.getOrthoMatrix()),l.appendChild(r.$camera),r.renderingContext.root.addEventListener(e.ElementEvent.MOUNTED,o),r.renderingContext.root.addEventListener(e.ElementEvent.UNMOUNTED,i),r.renderingContext.root.addEventListener(e.ElementEvent.ATTR_MODIFIED,a),r.renderingContext.root.addEventListener(e.ElementEvent.GEOMETRY_BOUNDS_CHANGED,u);case 14:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(Et.tag,(function(){r.renderingContext.root.removeEventListener(e.ElementEvent.MOUNTED,o),r.renderingContext.root.removeEventListener(e.ElementEvent.UNMOUNTED,i),r.renderingContext.root.removeEventListener(e.ElementEvent.ATTR_MODIFIED,a),r.renderingContext.root.removeEventListener(e.ElementEvent.GEOMETRY_BOUNDS_CHANGED,u)})),t.hooks.render.tap(Et.tag,(function(t){r.renderQueue.push(t)})),t.hooks.beginFrame.tap(Et.tag,(function(){var t=r.canvasConfig.document;r.pendingReorderQueue.size&&(r.pendingReorderQueue.forEach((function(e){var o,i=((null==e?void 0:e.children)||[]).slice(),a=null==e||null===(o=e.elementSVG)||void 0===o?void 0:o.$groupEl;a&&r.reorderChildren(t||n,a,i||[])})),r.pendingReorderQueue.clear())})),t.hooks.endFrame.tap(Et.tag,(function(){r.renderingContext.renderReasons.has(e.RenderReason.CAMERA_CHANGED)&&r.applyTransform(r.$camera,r.camera.getOrthoMatrix()),r.renderQueue.forEach((function(t){var e,n,o=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,i=null===(n=t.elementSVG)||void 0===n?void 0:n.$groupEl;o&&i&&(r.applyTransform(i,t.getLocalTransform()),t.renderable.dirty=!1)})),r.renderQueue=[]}))},r.reorderChildren=function(t,e,r){if(r.sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})),r.length){var n=(t||document).createDocumentFragment();r.forEach((function(t){if(t.isConnected){var e=t.elementSVG.$groupEl;e&&n.appendChild(e)}})),e.appendChild(n)}},r.applyTransform=function(t,r){var n=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}(K(),r),o=Q(K(),r),i=function(t,e){var r=new z(3);Q(r,e);var n=1/r[0],o=1/r[1],i=1/r[2],a=e[0]*n,u=e[1]*o,c=e[2]*i,s=e[4]*n,l=e[5]*o,f=e[6]*i,h=e[8]*n,d=e[9]*o,p=e[10]*i,v=a+l+p,y=0;return v>0?(y=2*Math.sqrt(v+1),t[3]=.25*y,t[0]=(f-d)/y,t[1]=(h-c)/y,t[2]=(u-s)/y):a>l&&a>p?(y=2*Math.sqrt(1+a-l-p),t[3]=(f-d)/y,t[0]=.25*y,t[1]=(u+s)/y,t[2]=(h+c)/y):l>p?(y=2*Math.sqrt(1+l-a-p),t[3]=(h-c)/y,t[0]=(u+s)/y,t[1]=.25*y,t[2]=(f+d)/y):(y=2*Math.sqrt(1+p-a-l),t[3]=(u-s)/y,t[0]=(h+c)/y,t[1]=(f+d)/y,t[2]=.25*y),t}(rt(),r),a=n[0],u=n[1],c=o[0],s=o[1],l=e.getEuler(K(),i),f=e.fromRotationTranslationScale(l[0]||l[2],a,u,c,s);t.setAttribute("transform","matrix("+j(f[0])+","+j(f[1])+","+j(f[3])+","+j(f[4])+","+j(f[6])+","+j(f[7])+")")},r.applyAttributes=function(t){var r=t.elementSVG,n=null==r?void 0:r.$el;if(n&&(null==r?void 0:r.$groupEl)){var o=t.nodeName,i=t.attributes;n.setAttribute("fill","none"),o===e.Shape.IMAGE&&n.setAttribute("preserveAspectRatio","none"),this.updateAttribute(t,Object.keys(i))}},r.updateAttribute=function(t,r){var n=this,o=this.canvasConfig.document,i=t.elementSVG,a=i.$el,u=i.$groupEl,c=i.$hitTestingEl,s=t.parsedStyle,l=t.computedStyle;r.some((function(e){return n.createElementContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,c].forEach((function(r){r&&(n.createElementContribution.updateElementAttribute(t,r),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var i=xt[r],f=l[r],h=s[r];if(t.nodeName===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(h.value||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r)t.nodeName===e.Shape.HTML?a.style.background=h.toString():mt(o,n.$def,t,a,h,i);else if("stroke"===r)t.nodeName===e.Shape.HTML?(a.style["border-color"]=h.toString(),a.style["border-style"]="solid"):mt(o,n.$def,t,a,h,i);else if("visibility"===r&&"unset"!==f.value)null==u||u.setAttribute(i,""+f.value);else if("clipPath"===r)n.createOrUpdateClipPath(o,h,u);else if("shadowColor"===r||"shadowBlur"===r||"shadowOffsetX"===r||"shadowOffsetY"===r)!function(t,r,n,o,i){var a="filter-dropshadow-"+n.entity,u=r.querySelector("#"+a);if(!u){u=F("filter",t);var c=F("feDropShadow",t);c.setAttribute("dx","0"),c.setAttribute("dy","0"),u.appendChild(c),u.id=a,u.setAttribute("filterUnits","userSpaceOnUse"),r.appendChild(u)}var s=u.children[0];if("shadowColor"===i)s.setAttribute("flood-color",n.parsedStyle[i].toString());else if("shadowBlur"===i){var l=n.parsedStyle[i];s.setAttribute("stdDeviation",""+((null==l?void 0:l.value)||0)/4)}else if("shadowOffsetX"===i){var f=n.parsedStyle[i];s.setAttribute("dx",""+((null==f?void 0:f.value)||0)/2)}else if("shadowOffsetY"===i){var h=n.parsedStyle[i];s.setAttribute("dy",""+((null==h?void 0:h.value)||0)/2)}e.isNil(n.parsedStyle.shadowColor)?null==o||o.removeAttribute("filter"):null==o||o.setAttribute("filter","url(#"+a+")")}(o,n.$def,t,a,r);else if("filter"===r)ht(o,n.$def,t,a,h);else if("innerHTML"===r)n.createOrUpdateInnerHTML(o,a,h);else if("anchor"===r)t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t);else if(f){var d=f.toString();[a,c].forEach((function(t){if(t&&i)if("unset"!==d&&d!==Lt[r]){var e,n=(null===(e=St[r])||void 0===e?void 0:e[d])||d;t.setAttribute(i,n)}else t.removeAttribute(i)}))}}))},r.createSVGDom=function(t,r,n,o){void 0===o&&(o=!1),r.elementSVG=new T;var i=r.elementSVG,a=this.createElementContribution.createElement(r);if(a){var u,c;r.nodeName===e.Shape.HTML&&(r.parsedStyle.$el=a),a.id="g_svg_"+r.nodeName+"_"+r.entity,!a.hasAttribute("data-wrapgroup")&&"g"===a.nodeName||o?c=a:(c=F("g",t)).appendChild(a),i.$el=a,i.$groupEl=c,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,c);var s=r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl)||n;s&&(s.appendChild(c),this.pendingReorderQueue.add(r.parentNode))}},r.removeSVGDom=function(t){var e,r=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;r&&r.parentNode&&r.parentNode.removeChild(r)},r.createOrUpdateHitArea=function(t,e,r){var n,o=t.elementSVG,i=o.$hitTestingEl,a=null===(n=t.parsedStyle.increasedLineWidthForHitTesting)||void 0===n?void 0:n.value;if(a){var u;if(!i){(i=e.cloneNode()).id="g_svg_"+t.nodeName+"_hittesting_"+t.entity,["filter"].forEach((function(t){i.removeAttribute(t)}));var c="none"!==e.getAttribute("fill");i.setAttribute("fill",c?"transparent":"none"),i.setAttribute("stroke","transparent"),r.appendChild(i),o.$hitTestingEl=i}i.setAttribute("stroke-width",""+(a+(null===(u=t.parsedStyle.lineWidth)||void 0===u?void 0:u.value)))}else i&&(r.removeChild(i),o.$hitTestingEl=null)},r.createOrUpdateInnerHTML=function(t,e,r){var n=(t||document).createElement("div");"string"==typeof r?n.innerHTML=r:n.appendChild(r),e.innerHTML="",e.appendChild(n)},r.createOrUpdateClipPath=function(t,e,r){if(e){var n,o="clip-path-"+e.entity;if(!this.$def.querySelector("#"+o)){var i=F("clipPath",t);i.id=o,this.$def.appendChild(i),this.createSVGDom(t,e,i,!0),e.elementSVG.$groupEl=i}var a=null===(n=e.elementSVG)||void 0===n?void 0:n.$groupEl;a&&this.applyTransform(a,e.getLocalTransform()),this.applyAttributes(e),r.setAttribute("clip-path","url(#"+o+")")}else r.removeAttribute("clip-path")},r.updateAnchorWithTransform=function(t){var r,n,o=t.getGeometryBounds(),i=o&&2*o.halfExtents[0]||0,a=o&&2*o.halfExtents[1]||0,u=(t.parsedStyle||{}).anchor;[null===(r=t.elementSVG)||void 0===r?void 0:r.$el,null===(n=t.elementSVG)||void 0===n?void 0:n.$hitTestingEl].forEach((function(r){r&&(r.setAttribute("transform","translate(-"+u[0].value*i+",-"+u[1].value*a+")"),t.nodeName!==e.Shape.CIRCLE&&t.nodeName!==e.Shape.ELLIPSE||(r.setAttribute("cx",""+i/2),r.setAttribute("cy",""+a/2)))}))},t}(),wt.tag="SVGRenderer",Et=wt);a([r.inject(e.CanvasConfig),u("design:type",Object)],Ct.prototype,"canvasConfig",void 0),a([r.inject(e.DefaultCamera),u("design:type",e.Camera)],Ct.prototype,"camera",void 0),a([r.inject(e.ContextService),u("design:type",Object)],Ct.prototype,"contextService",void 0),a([r.inject(e.RenderingContext),u("design:type",Object)],Ct.prototype,"renderingContext",void 0),a([r.inject(V),u("design:type",Object)],Ct.prototype,"createElementContribution",void 0),Ct=Et=a([r.singleton({contrib:e.RenderingPluginContribution})],Ct);var Ot,Tt,kt=r.Module((function(t){t(H),t(Ct)})),_t=function(){function t(){this.name="svg-renderer"}var e=t.prototype;return e.init=function(t){t.load(kt,!0)},e.destroy=function(t){t.unload(kt)},t}(),Gt=Object.freeze({__proto__:null,CreateElementContribution:V,DEFAULT_VALUE_MAP:Lt,get DefaultCreateElementContribution(){return H},ElementSVG:T,G_SVG_PREFIX:At,Plugin:_t,SHAPE2TAGS:B,SHAPE_UPDATE_DEPS:U,get SVGRendererPlugin(){return Ct},SVG_ATTR_MAP:xt,containerModule:kt,createSVGElement:F,updateImageElementAttribute:k,updateLineElementAttribute:_,updatePathElementAttribute:G,updatePolylineElementAttribute:P,updateRectElementAttribute:N,updateTextElementAttribute:I});function Pt(){
|
|
7
|
+
H=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),i=new S(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function h(){}function d(){}var p={};u(p,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==e&&r.call(y,o)&&(p=y);var g=d.prototype=f.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=d,u(g,"constructor",d),u(d,"constructor",h),h.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),u(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,a,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Y(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function X(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Y(i,n,o,a,u,"next",t)}function u(t){Y(i,n,o,a,u,"throw",t)}a(void 0)}))}}i([e.inject(e.CanvasConfig),a("design:type",Object)],U.prototype,"canvasConfig",void 0),U=i([e.singleton({token:D})],U);var z="undefined"!=typeof Float32Array?Float32Array:Array;function q(t,e){var r=e[4],n=e[5],o=e[6],i=e[8],a=e[9],u=e[10];return t[0]=Math.hypot(e[0],e[1],e[2]),t[1]=Math.hypot(r,n,o),t[2]=Math.hypot(i,a,u),t}function Q(){var t=new z(3);return z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function K(t,e,r){var n=new z(3);return n[0]=t,n[1]=e,n[2]=r,n}function J(t,e,r){var n=e[0],o=e[1],i=e[2],a=r[0],u=r[1],c=r[2];return t[0]=o*c-i*u,t[1]=i*a-n*c,t[2]=n*u-o*a,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var Z,tt=function(t){return Math.hypot(t[0],t[1],t[2])};Z=Q();!function(){var t,e=(t=new z(4),z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t)}();function et(){var t=new z(4);return z!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function rt(t,e,r,n){var o,i,a,u,c,s=e[0],l=e[1],f=e[2],h=e[3],d=r[0],p=r[1],v=r[2],y=r[3];return 0>(i=s*d+l*p+f*v+h*y)&&(i=-i,d=-d,p=-p,v=-v,y=-y),1-i>1e-6?(o=Math.acos(i),a=Math.sin(o),u=Math.sin((1-n)*o)/a,c=Math.sin(n*o)/a):(u=1-n,c=n),t[0]=u*s+c*d,t[1]=u*l+c*p,t[2]=u*f+c*v,t[3]=u*h+c*y,t}var nt,ot,it,at,ut,ct,st,lt=function(t,e){var r=e[0],n=e[1],o=e[2],i=e[3],a=r*r+n*n+o*o+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=r*a,t[1]=n*a,t[2]=o*a,t[3]=i*a,t};nt=Q(),ot=K(1,0,0),it=K(0,1,0),at=et(),ut=et(),ct=new z(9),z!=Float32Array&&(ct[1]=0,ct[2]=0,ct[3]=0,ct[5]=0,ct[6]=0,ct[7]=0),ct[0]=1,ct[4]=1,ct[8]=1,st=ct;function ft(t,r,n,o,i){var a="g-filter-"+n.entity,u=r.querySelectorAll("[name="+a+"]");if(u.length&&u.forEach((function(t){r.removeChild(t)})),0===i.length)null==o||o.removeAttribute("filter");else{var c=i.map((function(n,o){var i=n.name,u=n.params,c=V("filter",t);return c.setAttribute("filterUnits","userSpaceOnUse"),"blur"===i?function(t,e,r){var n=V("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,c,u):"brightness"===i?function(t,e,r){var n=ht(r[0]);dt(t,e,{type:"linear",slope:n,intercept:0})}(t,c,u):"drop-shadow"===i?function(t,e,r){var n=r[0].value,o=r[1].value,i=r[2].value,a=r[3].formatted,u=V("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+i),e.appendChild(u);var c=V("feOffset",t);c.setAttribute("dx",""+n),c.setAttribute("dy",""+o),c.setAttribute("result","offsetblur"),e.appendChild(c);var s=V("feFlood",t);s.setAttribute("flood-color",a),e.appendChild(s);var l=V("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var f=V("feMerge",t);e.appendChild(f);var h=V("feMergeNode",t),d=V("feMergeNode",t);d.setAttribute("in","SourceGraphic"),f.appendChild(h),f.appendChild(d)}(t,c,u):"contrast"===i?function(t,e,r){var n=ht(r[0]);dt(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,c,u):"grayscale"===i?function(t,e,r){var n=ht(r[0]);pt(t,e,[.2126+.7874*(1-n),.7152-.7152*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152+.2848*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152-.7152*(1-n),.0722+.9278*(1-n),0,0,0,0,0,1,0])}(t,c,u):"sepia"===i?function(t,e,r){var n=ht(r[0]);pt(t,e,[.393+.607*(1-n),.769-.769*(1-n),.189-.189*(1-n),0,0,.349-.349*(1-n),.686+.314*(1-n),.168-.168*(1-n),0,0,.272-.272*(1-n),.534-.534*(1-n),.131+.869*(1-n),0,0,0,0,0,1,0])}(t,c,u):"saturate"===i?function(t,e,r){var n=ht(r[0]),o=V("feColorMatrix",t);o.setAttribute("type","saturate"),o.setAttribute("values",""+n),e.appendChild(o)}(t,c,u):"hue-rotate"===i?function(t,r,n){var o=V("feColorMatrix",t);o.setAttribute("type","hueRotate"),o.setAttribute("values",""+n[0].to(e.UnitType.kDegrees).value),r.appendChild(o)}(t,c,u):"invert"===i&&function(t,e,r){var n=ht(r[0]);dt(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,c,u),c.id=a+"-"+o,c.setAttribute("name",a),r.appendChild(c),c.id}));null==o||o.setAttribute("filter",c.map((function(t){return"url(#"+t+")"})).join(" "))}}function ht(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function dt(t,e,r){var n=r.type,o=r.slope,i=r.intercept,a=r.tableValues,u=V("feComponentTransfer",t);[V("feFuncR",t),V("feFuncG",t),V("feFuncB",t)].forEach((function(t){t.setAttribute("type",n),"table"===n?t.setAttribute("tableValues",""+a):(t.setAttribute("slope",""+o),t.setAttribute("intercept",""+i)),u.appendChild(t)})),e.appendChild(u)}function pt(t,e,r){var n=V("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var vt={},yt=0;function gt(t,r,n,o,i,a){i&&(i instanceof e.CSSRGB?"currentColor"===n.style[a]?null==o||o.setAttribute(a,"currentColor"):null==o||o.setAttribute(a,i.isNone?"none":i.toString()):i.type===e.GradientPatternType.Pattern?function(t,e,r,n,o){var i=mt(o);if(!e.querySelector("#"+i)){var a=o.value.src,u=V("pattern",t);u.setAttribute("patternUnits","userSpaceOnUse");var c=V("image",t);u.appendChild(c),u.id=i,e.appendChild(u),null==r||r.setAttribute(n,"url(#"+i+")"),c.setAttribute("href",a);var s=new window.Image;a.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=a;var l=function(){u.setAttribute("width",""+s.width),u.setAttribute("height",""+s.height)};s.complete?l():(s.onload=l,s.src=s.src)}}(t,r,o,a,i):function(t,r,n,o,i,a){var u=mt(a),c=n.querySelector("#"+u);if(!c){(c=V(a.type===e.GradientPatternType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var s="";a.value.steps.forEach((function(t){s+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),c.innerHTML=s,c.id=u,n.appendChild(c),null==o||o.setAttribute(i,"url(#"+u+")")}var l=r.getGeometryBounds(),f=l&&2*l.halfExtents[0]||0,h=l&&2*l.halfExtents[1]||0;if(a.type===e.GradientPatternType.LinearGradient){var d=a.value,p=d.y0,v=d.x1,y=d.y1;c.setAttribute("x1",""+d.x0*f),c.setAttribute("y1",""+p*h),c.setAttribute("x2",""+v*f),c.setAttribute("y2",""+y*h)}else{var g=Math.sqrt(f*f+h*h)/2,m=a.value,b=m.y0,w=m.r1;c.setAttribute("cx",""+m.x0*f),c.setAttribute("cy",""+b*h),c.setAttribute("r",""+w*g)}}(t,n,r,o,a,i))}function mt(t){var r="";if(t instanceof e.CSSGradientValue){var n=t.type;if(n===e.GradientPatternType.Pattern)r=t.value.src;else if(n===e.GradientPatternType.LinearGradient||n===e.GradientPatternType.RadialGradient){var o=t.value;r=""+n+o.x0+o.y0+o.x1+o.y1+(o.r1||0)+o.steps.map((function(t){return t.join("")})).join("")}r&&(vt[r]||(vt[r]="_pattern_"+n+"_"+yt++))}return vt[r]}var bt,wt;var Et={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor"},xt={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},St={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit"},Lt="g_svg",At=(bt=function(){function t(){this.canvasConfig=void 0,this.camera=void 0,this.contextService=void 0,this.renderingContext=void 0,this.createElementContribution=void 0,this.$def=void 0,this.$camera=void 0,this.renderQueue=[],this.pendingReorderQueue=new Set}var r=t.prototype;return r.apply=function(t){var r=this,n=this.canvasConfig.document,o=function(t){r.createSVGDom(n,t.target,r.$camera)},i=function(t){r.removeSVGDom(t.target)},a=function(t){var e=t.target;if(e.elementSVG){var o=t.attrName;if("zIndex"===o){var i,a,u=e.parentNode,c=null===(i=e.parentNode)||void 0===i||null===(a=i.elementSVG)||void 0===a?void 0:a.$groupEl,s=((null==u?void 0:u.children)||[]).slice();c&&r.reorderChildren(n,c,s)}else if("increasedLineWidthForHitTesting"===o){var l=e.elementSVG;r.createOrUpdateHitArea(e,l.$el,l.$groupEl)}r.updateAttribute(e,[o])}},u=function(t){var o,i=r.canvasConfig.document,a=t.target,u=null===(o=a.elementSVG)||void 0===o?void 0:o.$el,c=a.parsedStyle,s=c.fill,l=c.stroke;!s||s instanceof e.CSSRGB||gt(i||n,r.$def,a,u,s,"fill"),!l||l instanceof e.CSSRGB||gt(i||n,r.$def,a,u,l,"stroke")};t.hooks.init.tapPromise(wt.tag,X(H().mark((function t(){var n,c,s,l;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:c=(n=r.canvasConfig).background,r.$def=V("defs",s=n.document),l=r.contextService.getContext(),c&&(l.style.background=c),l.appendChild(r.$def),l.setAttribute("color-interpolation-filters","sRGB"),r.$camera=V("g",s),r.$camera.id="g_svg_camera",r.applyTransform(r.$camera,r.camera.getOrthoMatrix()),l.appendChild(r.$camera),r.renderingContext.root.addEventListener(e.ElementEvent.MOUNTED,o),r.renderingContext.root.addEventListener(e.ElementEvent.UNMOUNTED,i),r.renderingContext.root.addEventListener(e.ElementEvent.ATTR_MODIFIED,a),r.renderingContext.root.addEventListener(e.ElementEvent.GEOMETRY_BOUNDS_CHANGED,u);case 14:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(wt.tag,(function(){r.renderingContext.root.removeEventListener(e.ElementEvent.MOUNTED,o),r.renderingContext.root.removeEventListener(e.ElementEvent.UNMOUNTED,i),r.renderingContext.root.removeEventListener(e.ElementEvent.ATTR_MODIFIED,a),r.renderingContext.root.removeEventListener(e.ElementEvent.GEOMETRY_BOUNDS_CHANGED,u)})),t.hooks.render.tap(wt.tag,(function(t){r.renderQueue.push(t)})),t.hooks.beginFrame.tap(wt.tag,(function(){var t=r.canvasConfig.document;r.pendingReorderQueue.size&&(r.pendingReorderQueue.forEach((function(e){var o,i=((null==e?void 0:e.children)||[]).slice(),a=null==e||null===(o=e.elementSVG)||void 0===o?void 0:o.$groupEl;a&&r.reorderChildren(t||n,a,i||[])})),r.pendingReorderQueue.clear())})),t.hooks.endFrame.tap(wt.tag,(function(){r.renderingContext.renderReasons.has(e.RenderReason.CAMERA_CHANGED)&&r.applyTransform(r.$camera,r.camera.getOrthoMatrix()),r.renderQueue.forEach((function(t){var e,n,o=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,i=null===(n=t.elementSVG)||void 0===n?void 0:n.$groupEl;o&&i&&(r.applyTransform(i,t.getLocalTransform()),t.renderable.dirty=!1)})),r.renderQueue=[]}))},r.reorderChildren=function(t,e,r){if(r.sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})),r.length){var n=(t||document).createDocumentFragment();r.forEach((function(t){if(t.isConnected){var e=t.elementSVG.$groupEl;e&&n.appendChild(e)}})),e.appendChild(n)}},r.applyTransform=function(t,r){var n=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}(Q(),r),o=q(Q(),r),i=function(t,e){var r=new z(3);q(r,e);var n=1/r[0],o=1/r[1],i=1/r[2],a=e[0]*n,u=e[1]*o,c=e[2]*i,s=e[4]*n,l=e[5]*o,f=e[6]*i,h=e[8]*n,d=e[9]*o,p=e[10]*i,v=a+l+p,y=0;return v>0?(y=2*Math.sqrt(v+1),t[3]=.25*y,t[0]=(f-d)/y,t[1]=(h-c)/y,t[2]=(u-s)/y):a>l&&a>p?(y=2*Math.sqrt(1+a-l-p),t[3]=(f-d)/y,t[0]=.25*y,t[1]=(u+s)/y,t[2]=(h+c)/y):l>p?(y=2*Math.sqrt(1+l-a-p),t[3]=(h-c)/y,t[0]=(u+s)/y,t[1]=.25*y,t[2]=(f+d)/y):(y=2*Math.sqrt(1+p-a-l),t[3]=(u-s)/y,t[0]=(h+c)/y,t[1]=(f+d)/y,t[2]=.25*y),t}(et(),r),a=n[0],u=n[1],c=o[0],s=o[1],l=e.getEuler(Q(),i),f=e.fromRotationTranslationScale(l[0]||l[2],a,u,c,s);t.setAttribute("transform","matrix("+N(f[0])+","+N(f[1])+","+N(f[3])+","+N(f[4])+","+N(f[6])+","+N(f[7])+")")},r.applyAttributes=function(t){var r=t.elementSVG,n=null==r?void 0:r.$el;if(n&&(null==r?void 0:r.$groupEl)){var o=t.nodeName,i=t.attributes;n.setAttribute("fill","none"),o===e.Shape.IMAGE&&n.setAttribute("preserveAspectRatio","none"),this.updateAttribute(t,Object.keys(i))}},r.updateAttribute=function(t,r){var n=this,o=this.canvasConfig.document,i=t.elementSVG,a=i.$el,u=i.$groupEl,c=i.$hitTestingEl,s=t.parsedStyle,l=t.computedStyle;r.some((function(e){return n.createElementContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,c].forEach((function(r){r&&(n.createElementContribution.updateElementAttribute(t,r),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var i=Et[r],f=l[r],h=s[r];if(t.nodeName===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(h.value||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r)t.nodeName===e.Shape.HTML?a.style.background=h.toString():gt(o,n.$def,t,a,h,i);else if("stroke"===r)t.nodeName===e.Shape.HTML?(a.style["border-color"]=h.toString(),a.style["border-style"]="solid"):gt(o,n.$def,t,a,h,i);else if("visibility"===r&&"unset"!==f.value)null==u||u.setAttribute(i,""+f.value);else if("clipPath"===r)n.createOrUpdateClipPath(o,h,u);else if("shadowColor"===r||"shadowBlur"===r||"shadowOffsetX"===r||"shadowOffsetY"===r)!function(t,r,n,o,i){var a="filter-dropshadow-"+n.entity,u=r.querySelector("#"+a);if(!u){u=V("filter",t);var c=V("feDropShadow",t);c.setAttribute("dx","0"),c.setAttribute("dy","0"),u.appendChild(c),u.id=a,u.setAttribute("filterUnits","userSpaceOnUse"),r.appendChild(u)}var s=u.children[0];if("shadowColor"===i)s.setAttribute("flood-color",n.parsedStyle[i].toString());else if("shadowBlur"===i){var l=n.parsedStyle[i];s.setAttribute("stdDeviation",""+((null==l?void 0:l.value)||0)/4)}else if("shadowOffsetX"===i){var f=n.parsedStyle[i];s.setAttribute("dx",""+((null==f?void 0:f.value)||0)/2)}else if("shadowOffsetY"===i){var h=n.parsedStyle[i];s.setAttribute("dy",""+((null==h?void 0:h.value)||0)/2)}e.isNil(n.parsedStyle.shadowColor)?null==o||o.removeAttribute("filter"):null==o||o.setAttribute("filter","url(#"+a+")")}(o,n.$def,t,a,r);else if("filter"===r)ft(o,n.$def,t,a,h);else if("innerHTML"===r)n.createOrUpdateInnerHTML(o,a,h);else if("anchor"===r)t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t);else if(f){var d=f.toString();[a,c].forEach((function(t){if(t&&i)if("unset"!==d&&d!==St[r]){var e,n=(null===(e=xt[r])||void 0===e?void 0:e[d])||d;t.setAttribute(i,n)}else t.removeAttribute(i)}))}}))},r.createSVGDom=function(t,r,n,o){void 0===o&&(o=!1),r.elementSVG=new O;var i=r.elementSVG,a=this.createElementContribution.createElement(r);if(a){var u,c;r.nodeName===e.Shape.HTML&&(r.parsedStyle.$el=a),a.id="g_svg_"+r.nodeName+"_"+r.entity,!a.hasAttribute("data-wrapgroup")&&"g"===a.nodeName||o?c=a:(c=V("g",t)).appendChild(a),i.$el=a,i.$groupEl=c,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,c);var s=r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl)||n;s&&(s.appendChild(c),this.pendingReorderQueue.add(r.parentNode))}},r.removeSVGDom=function(t){var e,r=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;r&&r.parentNode&&r.parentNode.removeChild(r)},r.createOrUpdateHitArea=function(t,e,r){var n,o=t.elementSVG,i=o.$hitTestingEl,a=null===(n=t.parsedStyle.increasedLineWidthForHitTesting)||void 0===n?void 0:n.value;if(a){var u;if(!i){(i=e.cloneNode()).id="g_svg_"+t.nodeName+"_hittesting_"+t.entity,["filter"].forEach((function(t){i.removeAttribute(t)}));var c="none"!==e.getAttribute("fill");i.setAttribute("fill",c?"transparent":"none"),i.setAttribute("stroke","transparent"),r.appendChild(i),o.$hitTestingEl=i}i.setAttribute("stroke-width",""+(a+(null===(u=t.parsedStyle.lineWidth)||void 0===u?void 0:u.value)))}else i&&(r.removeChild(i),o.$hitTestingEl=null)},r.createOrUpdateInnerHTML=function(t,e,r){var n=(t||document).createElement("div");"string"==typeof r?n.innerHTML=r:n.appendChild(r),e.innerHTML="",e.appendChild(n)},r.createOrUpdateClipPath=function(t,e,r){if(e){var n,o="clip-path-"+e.entity;if(!this.$def.querySelector("#"+o)){var i=V("clipPath",t);i.id=o,this.$def.appendChild(i),this.createSVGDom(t,e,i,!0),e.elementSVG.$groupEl=i}var a=null===(n=e.elementSVG)||void 0===n?void 0:n.$groupEl;a&&this.applyTransform(a,e.getLocalTransform()),this.applyAttributes(e),r.setAttribute("clip-path","url(#"+o+")")}else r.removeAttribute("clip-path")},r.updateAnchorWithTransform=function(t){var r,n,o=t.getGeometryBounds(),i=o&&2*o.halfExtents[0]||0,a=o&&2*o.halfExtents[1]||0,u=(t.parsedStyle||{}).anchor;[null===(r=t.elementSVG)||void 0===r?void 0:r.$el,null===(n=t.elementSVG)||void 0===n?void 0:n.$hitTestingEl].forEach((function(r){r&&(r.setAttribute("transform","translate(-"+u[0].value*i+",-"+u[1].value*a+")"),t.nodeName!==e.Shape.CIRCLE&&t.nodeName!==e.Shape.ELLIPSE||(r.setAttribute("cx",""+i/2),r.setAttribute("cy",""+a/2)))}))},t}(),bt.tag="SVGRenderer",wt=bt);i([e.inject(e.CanvasConfig),a("design:type",Object)],At.prototype,"canvasConfig",void 0),i([e.inject(e.DefaultCamera),a("design:type",e.Camera)],At.prototype,"camera",void 0),i([e.inject(e.ContextService),a("design:type",Object)],At.prototype,"contextService",void 0),i([e.inject(e.RenderingContext),a("design:type",Object)],At.prototype,"renderingContext",void 0),i([e.inject(D),a("design:type",Object)],At.prototype,"createElementContribution",void 0),At=wt=i([e.singleton({contrib:e.RenderingPluginContribution})],At);var Ct,Ot,Tt=e.Module((function(t){t(U),t(At)})),kt=function(){function t(){this.name="svg-renderer"}var e=t.prototype;return e.init=function(t){t.load(Tt,!0)},e.destroy=function(t){t.unload(Tt)},t}(),_t=Object.freeze({__proto__:null,CreateElementContribution:D,DEFAULT_VALUE_MAP:St,get DefaultCreateElementContribution(){return U},ElementSVG:O,G_SVG_PREFIX:Lt,Plugin:kt,SHAPE2TAGS:F,SHAPE_UPDATE_DEPS:B,get SVGRendererPlugin(){return At},SVG_ATTR_MAP:Et,containerModule:Tt,createSVGElement:V,updateImageElementAttribute:T,updateLineElementAttribute:k,updatePathElementAttribute:_,updatePolylineElementAttribute:G,updateRectElementAttribute:P,updateTextElementAttribute:R});function Gt(){
|
|
8
8
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
9
|
-
Pt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),i=new S(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function h(){}function d(){}var p={};u(p,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==e&&r.call(y,o)&&(p=y);var g=d.prototype=f.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=d,u(g,"constructor",d),u(d,"constructor",h),h.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),u(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,a,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Nt(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);e>r;r++)n[r]=t[r];return n}function Mt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return t.length>n?{done:!1,value:t[n++]}:{done:!0}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var $t=(Ot=function(){function t(){this.canvasConfig=void 0,this.displayObjectPool=void 0}return t.prototype.apply=function(t){var e=this,r=this.canvasConfig.document;t.hooks.pick.tapPromise(Tt.tag,function(){var t,n=(t=Pt().mark((function t(n){var o,i,a,u,c,s,l,f,h,d,p;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=n.topmost,a=(i=n.position).clientX,u=i.clientY,t.prev=1,c=[],s=Mt((r||document).elementsFromPoint(a,u));case 4:if((l=s()).done){t.next=17;break}if(!(h=(f=l.value)&&f.getAttribute("id"))||!h.startsWith(At)){t.next=15;break}if(d=h.lastIndexOf("_"),!(p=e.displayObjectPool.getByEntity(Number(h.substring(d+1))))||!p.isInteractive()){t.next=15;break}if(c.push(p),!o){t.next=15;break}return n.picked=c,t.abrupt("return",n);case 15:t.next=4;break;case 17:n.picked=c,t.next=23;break;case 20:t.prev=20,t.t0=t.catch(1),n.picked=[];case 23:return t.abrupt("return",n);case 24:case"end":return t.stop()}}),t,null,[[1,20]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Nt(i,n,o,a,u,"next",t)}function u(t){Nt(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}())},t}(),Ot.tag="SVGPicker",Tt=Ot);a([r.inject(e.CanvasConfig),u("design:type",Object)],$t.prototype,"canvasConfig",void 0),a([r.inject(e.DisplayObjectPool),u("design:type",e.DisplayObjectPool)],$t.prototype,"displayObjectPool",void 0),$t=Tt=a([r.singleton({contrib:e.RenderingPluginContribution})],$t);var Rt=r.Module((function(t){t($t)})),It=function(){function t(){this.name="svg-picker"}var e=t.prototype;return e.init=function(t){t.load(Rt,!0)},e.destroy=function(t){t.unload(Rt)},t}(),Wt=Object.freeze({__proto__:null,Plugin:It}),Dt=function(){function t(){this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0}var r=t.prototype;return r.init=function(){var t,r=(t=n().mark((function t(){var r,o,i,a,u;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=(r=this.canvasConfig).document,this.$container=e.isString(o=r.container)?(i||document).getElementById(o):o,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(a=F("svg",i)).setAttribute("width",""+this.canvasConfig.width),a.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(a),this.$namespace=a),u=1>(u=window.devicePixelRatio||1)?1:Math.ceil(u),this.dpr=u;case 6:case"end":return t.stop()}}),t,this)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function u(t){o(a,n,i,u,c,"next",t)}function c(t){o(a,n,i,u,c,"throw",t)}u(void 0)}))});return function(){return r.apply(this,arguments)}}(),r.getDomElement=function(){return this.$namespace},r.getContext=function(){return this.$namespace},r.getDPR=function(){return this.dpr},r.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},r.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},r.resize=function(t,e){this.$namespace&&(this.$namespace.setAttribute("width",""+t),this.$namespace.setAttribute("height",""+e))},r.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},t}();a([r.inject(e.CanvasConfig),u("design:type",Object)],Dt.prototype,"canvasConfig",void 0),Dt=a([r.singleton({token:e.ContextService})],Dt);var Vt=r.Module((function(t){t(Dt)})),Ft=function(){function t(){this.name="svg-context-register"}var e=t.prototype;return e.init=function(t){t.load(Vt,!0)},e.destroy=function(t){t.unload(Vt)},t}(),Bt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).registerPlugin(new Ft),r.registerPlugin(new _t),r.registerPlugin(new v),r.registerPlugin(new It),r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,i(e,r),n}(e.AbstractRenderer);t.DomInteraction=y,t.Renderer=Bt,t.SVGPicker=Wt,t.SVGRenderer=Gt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
9
|
+
Gt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),i=new S(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,i),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function h(){}function d(){}var p={};u(p,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==e&&r.call(y,o)&&(p=y);var g=d.prototype=f.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=d,u(g,"constructor",d),u(d,"constructor",h),h.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),u(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),u(g,a,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(u){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}i&&("break"===t||"continue"===t)&&e>=i.tryLoc&&i.finallyLoc>=e&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Pt(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);e>r;r++)n[r]=t[r];return n}function jt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Nt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return t.length>n?{done:!1,value:t[n++]}:{done:!0}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Mt=(Ct=function(){function t(){this.canvasConfig=void 0,this.displayObjectPool=void 0}return t.prototype.apply=function(t){var e=this,r=this.canvasConfig.document;t.hooks.pick.tapPromise(Ot.tag,function(){var t,n=(t=Gt().mark((function t(n){var o,i,a,u,c,s,l,f,h,d,p;return Gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=n.topmost,a=(i=n.position).clientX,u=i.clientY,t.prev=1,c=[],s=jt((r||document).elementsFromPoint(a,u));case 4:if((l=s()).done){t.next=17;break}if(!(h=(f=l.value)&&f.getAttribute("id"))||!h.startsWith(Lt)){t.next=15;break}if(d=h.lastIndexOf("_"),!(p=e.displayObjectPool.getByEntity(Number(h.substring(d+1))))||!p.isInteractive()){t.next=15;break}if(c.push(p),!o){t.next=15;break}return n.picked=c,t.abrupt("return",n);case 15:t.next=4;break;case 17:n.picked=c,t.next=23;break;case 20:t.prev=20,t.t0=t.catch(1),n.picked=[];case 23:return t.abrupt("return",n);case 24:case"end":return t.stop()}}),t,null,[[1,20]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Pt(i,n,o,a,u,"next",t)}function u(t){Pt(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}())},t}(),Ct.tag="SVGPicker",Ot=Ct);i([e.inject(e.CanvasConfig),a("design:type",Object)],Mt.prototype,"canvasConfig",void 0),i([e.inject(e.DisplayObjectPool),a("design:type",e.DisplayObjectPool)],Mt.prototype,"displayObjectPool",void 0),Mt=Ot=i([e.singleton({contrib:e.RenderingPluginContribution})],Mt);var $t=e.Module((function(t){t(Mt)})),Rt=function(){function t(){this.name="svg-picker"}var e=t.prototype;return e.init=function(t){t.load($t,!0)},e.destroy=function(t){t.unload($t)},t}(),It=Object.freeze({__proto__:null,Plugin:Rt}),Wt=function(){function t(){this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0}var o=t.prototype;return o.init=function(){var t,o=(t=r().mark((function t(){var n,o,i,a,u;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=(n=this.canvasConfig).document,this.$container=e.isString(o=n.container)?(i||document).getElementById(o):o,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(a=V("svg",i)).setAttribute("width",""+this.canvasConfig.width),a.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(a),this.$namespace=a),u=1>(u=window.devicePixelRatio||1)?1:Math.ceil(u),this.dpr=u;case 6:case"end":return t.stop()}}),t,this)})),function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))});return function(){return o.apply(this,arguments)}}(),o.getDomElement=function(){return this.$namespace},o.getContext=function(){return this.$namespace},o.getDPR=function(){return this.dpr},o.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},o.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},o.resize=function(t,e){this.$namespace&&(this.$namespace.setAttribute("width",""+t),this.$namespace.setAttribute("height",""+e))},o.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},t}();i([e.inject(e.CanvasConfig),a("design:type",Object)],Wt.prototype,"canvasConfig",void 0),Wt=i([e.singleton({token:e.ContextService})],Wt);var Dt=e.Module((function(t){t(Wt)})),Vt=function(){function t(){this.name="svg-context-register"}var e=t.prototype;return e.init=function(t){t.load(Dt,!0)},e.destroy=function(t){t.unload(Dt)},t}(),Ft=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).registerPlugin(new Vt),r.registerPlugin(new kt),r.registerPlugin(new p),r.registerPlugin(new Rt),r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,o(e,r),n}(e.AbstractRenderer);t.DomInteraction=v,t.Renderer=Ft,t.SVGPicker=It,t.SVGRenderer=_t,Object.defineProperty(t,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/g-svg",
|
|
3
|
-
"version": "1.1.8
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "A renderer implemented by SVG",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antv",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"author": "https://github.com/orgs/antvis/people",
|
|
19
|
+
"sideEffects": true,
|
|
19
20
|
"main": "dist/index.js",
|
|
20
21
|
"unpkg": "dist/index.umd.min.js",
|
|
21
22
|
"module": "dist/index.esm.js",
|
|
@@ -27,9 +28,9 @@
|
|
|
27
28
|
"README.md"
|
|
28
29
|
],
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@antv/g-plugin-dom-interaction": "^1.1.8-alpha.
|
|
31
|
-
"@antv/g-plugin-svg-picker": "^1.1.8-alpha.
|
|
32
|
-
"@antv/g-plugin-svg-renderer": "^1.1.8
|
|
31
|
+
"@antv/g-plugin-dom-interaction": "^1.1.8-alpha.1",
|
|
32
|
+
"@antv/g-plugin-svg-picker": "^1.1.8-alpha.1",
|
|
33
|
+
"@antv/g-plugin-svg-renderer": "^1.1.8",
|
|
33
34
|
"tslib": "^2.3.1"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
@@ -37,11 +38,10 @@
|
|
|
37
38
|
"@types/jest": "^25.0.0"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
|
-
"@antv/g": "^5.0.1"
|
|
41
|
-
"mana-syringe": "^0.3.0"
|
|
41
|
+
"@antv/g": "^5.0.1"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "837340c2bd89a9b40f94602485647b0ee798ff43"
|
|
47
47
|
}
|