@antv/l7-component 2.16.1 → 2.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/iconfont/iconfont.js +10 -17
- package/es/control/baseControl/buttonControl.js +9 -42
- package/es/control/baseControl/control.js +24 -53
- package/es/control/baseControl/popperControl.js +10 -24
- package/es/control/baseControl/selectControl.js +6 -45
- package/es/control/exportImage.js +76 -116
- package/es/control/fullscreen.js +20 -53
- package/es/control/geoLocate.js +36 -66
- package/es/control/layerSwitch.js +0 -31
- package/es/control/logo.js +2 -14
- package/es/control/mapTheme.js +7 -32
- package/es/control/mouseLocation.js +2 -23
- package/es/control/scale.js +6 -29
- package/es/control/zoom.js +0 -23
- package/es/index.js +2 -12
- package/es/marker-layer.js +41 -75
- package/es/marker.js +29 -83
- package/es/popup/layerPopup.js +31 -82
- package/es/popup/popup.js +48 -127
- package/es/utils/anchor.js +3 -7
- package/es/utils/popper.js +15 -64
- package/es/utils/screenfull.js +23 -52
- package/lib/assets/iconfont/iconfont.js +10 -17
- package/lib/control/baseControl/buttonControl.js +9 -52
- package/lib/control/baseControl/control.js +24 -68
- package/lib/control/baseControl/index.js +0 -8
- package/lib/control/baseControl/popperControl.js +10 -29
- package/lib/control/baseControl/selectControl.js +6 -60
- package/lib/control/exportImage.js +76 -125
- package/lib/control/fullscreen.js +20 -60
- package/lib/control/geoLocate.js +36 -75
- package/lib/control/layerSwitch.js +0 -36
- package/lib/control/logo.js +2 -26
- package/lib/control/mapTheme.js +7 -42
- package/lib/control/mouseLocation.js +2 -33
- package/lib/control/scale.js +6 -40
- package/lib/control/zoom.js +0 -33
- package/lib/index.js +0 -41
- package/lib/marker-layer.js +39 -86
- package/lib/marker.js +29 -91
- package/lib/popup/layerPopup.js +29 -94
- package/lib/popup/popup.js +48 -139
- package/lib/utils/anchor.js +4 -9
- package/lib/utils/icon.js +0 -2
- package/lib/utils/popper.js +14 -71
- package/lib/utils/screenfull.js +23 -54
- package/package.json +6 -6
package/es/utils/popper.js
CHANGED
|
@@ -6,43 +6,31 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
|
|
10
9
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
-
|
|
12
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
-
|
|
14
11
|
import { DOM } from '@antv/l7-utils';
|
|
15
12
|
import { EventEmitter } from 'eventemitter3';
|
|
13
|
+
|
|
16
14
|
/**
|
|
17
15
|
* 气泡位置枚举
|
|
18
16
|
*/
|
|
19
17
|
|
|
20
18
|
export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
21
19
|
_inherits(Popper, _EventEmitter);
|
|
22
|
-
|
|
23
20
|
var _super = _createSuper(Popper);
|
|
24
|
-
|
|
25
21
|
function Popper(button, option) {
|
|
26
22
|
var _this;
|
|
27
|
-
|
|
28
23
|
_classCallCheck(this, Popper);
|
|
29
|
-
|
|
30
24
|
_this = _super.call(this);
|
|
31
|
-
|
|
32
25
|
_defineProperty(_assertThisInitialized(_this), "isShow", false);
|
|
33
|
-
|
|
34
26
|
_defineProperty(_assertThisInitialized(_this), "timeout", null);
|
|
35
|
-
|
|
36
27
|
_defineProperty(_assertThisInitialized(_this), "show", function () {
|
|
37
28
|
if (_this.isShow || !_this.contentDOM.innerHTML) {
|
|
38
29
|
return _assertThisInitialized(_this);
|
|
39
30
|
}
|
|
40
|
-
|
|
41
31
|
_this.resetPopperPosition();
|
|
42
|
-
|
|
43
32
|
DOM.removeClass(_this.popperDOM, 'l7-popper-hide');
|
|
44
33
|
_this.isShow = true;
|
|
45
|
-
|
|
46
34
|
if (_this.option.unique) {
|
|
47
35
|
// console.log(Popper.conflictPopperList.length);
|
|
48
36
|
Popper.conflictPopperList.forEach(function (popper) {
|
|
@@ -51,48 +39,36 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
51
39
|
}
|
|
52
40
|
});
|
|
53
41
|
}
|
|
54
|
-
|
|
55
42
|
_this.emit('show');
|
|
56
|
-
|
|
57
43
|
return _assertThisInitialized(_this);
|
|
58
44
|
});
|
|
59
|
-
|
|
60
45
|
_defineProperty(_assertThisInitialized(_this), "hide", function () {
|
|
61
46
|
if (!_this.isShow) {
|
|
62
47
|
return _assertThisInitialized(_this);
|
|
63
48
|
}
|
|
64
|
-
|
|
65
49
|
DOM.addClass(_this.popperDOM, 'l7-popper-hide');
|
|
66
50
|
_this.isShow = false;
|
|
67
|
-
|
|
68
51
|
_this.emit('hide');
|
|
69
|
-
|
|
70
52
|
return _assertThisInitialized(_this);
|
|
71
53
|
});
|
|
72
|
-
|
|
73
54
|
_defineProperty(_assertThisInitialized(_this), "setHideTimeout", function () {
|
|
74
55
|
if (_this.timeout) {
|
|
75
56
|
return;
|
|
76
57
|
}
|
|
77
|
-
|
|
78
58
|
_this.timeout = window.setTimeout(function () {
|
|
79
59
|
if (!_this.isShow) {
|
|
80
60
|
return;
|
|
81
61
|
}
|
|
82
|
-
|
|
83
62
|
_this.hide();
|
|
84
|
-
|
|
85
63
|
_this.timeout = null;
|
|
86
64
|
}, 300);
|
|
87
65
|
});
|
|
88
|
-
|
|
89
66
|
_defineProperty(_assertThisInitialized(_this), "clearHideTimeout", function () {
|
|
90
67
|
if (_this.timeout) {
|
|
91
68
|
window.clearTimeout(_this.timeout);
|
|
92
69
|
_this.timeout = null;
|
|
93
70
|
}
|
|
94
71
|
});
|
|
95
|
-
|
|
96
72
|
_defineProperty(_assertThisInitialized(_this), "onBtnClick", function () {
|
|
97
73
|
if (_this.isShow) {
|
|
98
74
|
_this.hide();
|
|
@@ -100,33 +76,24 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
100
76
|
_this.show();
|
|
101
77
|
}
|
|
102
78
|
});
|
|
103
|
-
|
|
104
79
|
_defineProperty(_assertThisInitialized(_this), "onBtnMouseLeave", function () {
|
|
105
80
|
_this.setHideTimeout();
|
|
106
81
|
});
|
|
107
|
-
|
|
108
82
|
_defineProperty(_assertThisInitialized(_this), "onBtnMouseMove", function () {
|
|
109
83
|
_this.clearHideTimeout();
|
|
110
|
-
|
|
111
84
|
if (_this.isShow) {
|
|
112
85
|
return;
|
|
113
86
|
}
|
|
114
|
-
|
|
115
87
|
_this.show();
|
|
116
88
|
});
|
|
117
|
-
|
|
118
89
|
_this.button = button;
|
|
119
90
|
_this.option = option;
|
|
120
|
-
|
|
121
91
|
_this.init();
|
|
122
|
-
|
|
123
92
|
if (option.unique) {
|
|
124
93
|
Popper.conflictPopperList.push(_assertThisInitialized(_this));
|
|
125
94
|
}
|
|
126
|
-
|
|
127
95
|
return _this;
|
|
128
96
|
}
|
|
129
|
-
|
|
130
97
|
_createClass(Popper, [{
|
|
131
98
|
key: "buttonRect",
|
|
132
99
|
get: function get() {
|
|
@@ -156,7 +123,6 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
156
123
|
DOM.clearChildren(this.contentDOM);
|
|
157
124
|
this.contentDOM.appendChild(content);
|
|
158
125
|
}
|
|
159
|
-
|
|
160
126
|
this.content = content;
|
|
161
127
|
}
|
|
162
128
|
}, {
|
|
@@ -164,7 +130,6 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
164
130
|
value: function init() {
|
|
165
131
|
var trigger = this.option.trigger;
|
|
166
132
|
this.popperDOM = this.createPopper();
|
|
167
|
-
|
|
168
133
|
if (trigger === 'click') {
|
|
169
134
|
this.button.addEventListener('click', this.onBtnClick);
|
|
170
135
|
} else {
|
|
@@ -189,34 +154,28 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
189
154
|
value: function resetPopperPosition() {
|
|
190
155
|
var popperStyleObj = {};
|
|
191
156
|
var _this$option = this.option,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
157
|
+
container = _this$option.container,
|
|
158
|
+
_this$option$offset = _this$option.offset,
|
|
159
|
+
offset = _this$option$offset === void 0 ? [0, 0] : _this$option$offset,
|
|
160
|
+
placement = _this$option.placement;
|
|
197
161
|
var _offset = _slicedToArray(offset, 2),
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
162
|
+
offsetX = _offset[0],
|
|
163
|
+
offsetY = _offset[1];
|
|
201
164
|
var buttonRect = this.button.getBoundingClientRect();
|
|
202
165
|
var containerRect = container.getBoundingClientRect();
|
|
203
|
-
|
|
204
166
|
var _DOM$getDiffRect = DOM.getDiffRect(buttonRect, containerRect),
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
167
|
+
left = _DOM$getDiffRect.left,
|
|
168
|
+
right = _DOM$getDiffRect.right,
|
|
169
|
+
top = _DOM$getDiffRect.top,
|
|
170
|
+
bottom = _DOM$getDiffRect.bottom;
|
|
210
171
|
var isTransformX = false;
|
|
211
172
|
var isTransformY = false;
|
|
212
|
-
|
|
213
173
|
if (/^(left|right)/.test(placement)) {
|
|
214
174
|
if (placement.includes('left')) {
|
|
215
175
|
popperStyleObj.right = "".concat(buttonRect.width + right, "px");
|
|
216
176
|
} else if (placement.includes('right')) {
|
|
217
177
|
popperStyleObj.left = "".concat(buttonRect.width + left, "px");
|
|
218
178
|
}
|
|
219
|
-
|
|
220
179
|
if (placement.includes('start')) {
|
|
221
180
|
popperStyleObj.top = "".concat(top, "px");
|
|
222
181
|
} else if (placement.includes('end')) {
|
|
@@ -232,7 +191,6 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
232
191
|
} else if (placement.includes('bottom')) {
|
|
233
192
|
popperStyleObj.top = "".concat(buttonRect.height + top, "px");
|
|
234
193
|
}
|
|
235
|
-
|
|
236
194
|
if (placement.includes('start')) {
|
|
237
195
|
popperStyleObj.left = "".concat(left, "px");
|
|
238
196
|
} else if (placement.includes('end')) {
|
|
@@ -243,26 +201,23 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
243
201
|
popperStyleObj.transform = "translate(calc(".concat(offsetX, "px - 50%), ").concat(offsetY, "px)");
|
|
244
202
|
}
|
|
245
203
|
}
|
|
246
|
-
|
|
247
204
|
popperStyleObj.transform = "translate(calc(".concat(offsetX, "px - ").concat(isTransformX ? '50%' : '0%', "), calc(").concat(offsetY, "px - ").concat(isTransformY ? '50%' : '0%', ")");
|
|
248
205
|
var posList = placement.split('-');
|
|
249
|
-
|
|
250
206
|
if (posList.length) {
|
|
251
207
|
DOM.addClass(this.popperDOM, posList.map(function (pos) {
|
|
252
208
|
return "l7-popper-".concat(pos);
|
|
253
209
|
}).join(' '));
|
|
254
210
|
}
|
|
255
|
-
|
|
256
211
|
DOM.addStyle(this.popperDOM, DOM.css2Style(popperStyleObj));
|
|
257
212
|
}
|
|
258
213
|
}, {
|
|
259
214
|
key: "createPopper",
|
|
260
215
|
value: function createPopper() {
|
|
261
216
|
var _this$option2 = this.option,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
217
|
+
container = _this$option2.container,
|
|
218
|
+
_this$option2$classNa = _this$option2.className,
|
|
219
|
+
className = _this$option2$classNa === void 0 ? '' : _this$option2$classNa,
|
|
220
|
+
content = _this$option2.content;
|
|
266
221
|
var popper = DOM.create('div', "l7-popper l7-popper-hide ".concat(className));
|
|
267
222
|
var popperContent = DOM.create('div', 'l7-popper-content');
|
|
268
223
|
var popperArrow = DOM.create('div', 'l7-popper-arrow');
|
|
@@ -271,16 +226,12 @@ export var Popper = /*#__PURE__*/function (_EventEmitter) {
|
|
|
271
226
|
container.appendChild(popper);
|
|
272
227
|
this.popperDOM = popper;
|
|
273
228
|
this.contentDOM = popperContent;
|
|
274
|
-
|
|
275
229
|
if (content) {
|
|
276
230
|
this.setContent(content);
|
|
277
231
|
}
|
|
278
|
-
|
|
279
232
|
return popper;
|
|
280
233
|
}
|
|
281
234
|
}]);
|
|
282
|
-
|
|
283
235
|
return Popper;
|
|
284
236
|
}(EventEmitter);
|
|
285
|
-
|
|
286
237
|
_defineProperty(Popper, "conflictPopperList", []);
|
package/es/utils/screenfull.js
CHANGED
|
@@ -1,62 +1,43 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
|
|
3
2
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
4
|
-
|
|
5
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
-
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
5
|
// @ts-nocheck
|
|
10
|
-
var methodMap = [['requestFullscreen', 'exitFullscreen', 'fullscreenElement', 'fullscreenEnabled', 'fullscreenchange', 'fullscreenerror'], // New WebKit
|
|
11
|
-
['webkitRequestFullscreen', 'webkitExitFullscreen', 'webkitFullscreenElement', 'webkitFullscreenEnabled', 'webkitfullscreenchange', 'webkitfullscreenerror'], // Old WebKit
|
|
12
|
-
['webkitRequestFullScreen', 'webkitCancelFullScreen', 'webkitCurrentFullScreenElement', 'webkitCancelFullScreen', 'webkitfullscreenchange', 'webkitfullscreenerror'], ['mozRequestFullScreen', 'mozCancelFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'mozfullscreenchange', 'mozfullscreenerror'], ['msRequestFullscreen', 'msExitFullscreen', 'msFullscreenElement', 'msFullscreenEnabled', 'MSFullscreenChange', 'MSFullscreenError']];
|
|
13
6
|
|
|
7
|
+
var methodMap = [['requestFullscreen', 'exitFullscreen', 'fullscreenElement', 'fullscreenEnabled', 'fullscreenchange', 'fullscreenerror'],
|
|
8
|
+
// New WebKit
|
|
9
|
+
['webkitRequestFullscreen', 'webkitExitFullscreen', 'webkitFullscreenElement', 'webkitFullscreenEnabled', 'webkitfullscreenchange', 'webkitfullscreenerror'],
|
|
10
|
+
// Old WebKit
|
|
11
|
+
['webkitRequestFullScreen', 'webkitCancelFullScreen', 'webkitCurrentFullScreenElement', 'webkitCancelFullScreen', 'webkitfullscreenchange', 'webkitfullscreenerror'], ['mozRequestFullScreen', 'mozCancelFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'mozfullscreenchange', 'mozfullscreenerror'], ['msRequestFullscreen', 'msExitFullscreen', 'msFullscreenElement', 'msFullscreenEnabled', 'MSFullscreenChange', 'MSFullscreenError']];
|
|
14
12
|
var nativeAPI = function () {
|
|
15
13
|
if (typeof document === 'undefined') {
|
|
16
14
|
return false;
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
var unprefixedMethods = methodMap[0];
|
|
20
17
|
var returnValue = {};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
try {
|
|
35
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
36
|
-
var _step2$value = _slicedToArray(_step2.value, 2),
|
|
37
|
-
index = _step2$value[0],
|
|
38
|
-
method = _step2$value[1];
|
|
39
|
-
|
|
40
|
-
returnValue[unprefixedMethods[index]] = method;
|
|
41
|
-
}
|
|
42
|
-
} catch (err) {
|
|
43
|
-
_iterator2.e(err);
|
|
44
|
-
} finally {
|
|
45
|
-
_iterator2.f();
|
|
18
|
+
for (var _i = 0, _methodMap = methodMap; _i < _methodMap.length; _i++) {
|
|
19
|
+
var methodList = _methodMap[_i];
|
|
20
|
+
var exitFullscreenMethod = methodList === null || methodList === void 0 ? void 0 : methodList[1];
|
|
21
|
+
if (exitFullscreenMethod in document) {
|
|
22
|
+
var _iterator = _createForOfIteratorHelper(methodList.entries()),
|
|
23
|
+
_step;
|
|
24
|
+
try {
|
|
25
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
26
|
+
var _step$value = _slicedToArray(_step.value, 2),
|
|
27
|
+
index = _step$value[0],
|
|
28
|
+
method = _step$value[1];
|
|
29
|
+
returnValue[unprefixedMethods[index]] = method;
|
|
46
30
|
}
|
|
47
|
-
|
|
48
|
-
|
|
31
|
+
} catch (err) {
|
|
32
|
+
_iterator.e(err);
|
|
33
|
+
} finally {
|
|
34
|
+
_iterator.f();
|
|
49
35
|
}
|
|
36
|
+
return returnValue;
|
|
50
37
|
}
|
|
51
|
-
} catch (err) {
|
|
52
|
-
_iterator.e(err);
|
|
53
|
-
} finally {
|
|
54
|
-
_iterator.f();
|
|
55
38
|
}
|
|
56
|
-
|
|
57
39
|
return false;
|
|
58
40
|
}();
|
|
59
|
-
|
|
60
41
|
var eventNameMap = {
|
|
61
42
|
change: nativeAPI.fullscreenchange,
|
|
62
43
|
error: nativeAPI.fullscreenerror
|
|
@@ -71,10 +52,8 @@ var screenfull = {
|
|
|
71
52
|
screenfull.off('change', onFullScreenEntered);
|
|
72
53
|
resolve();
|
|
73
54
|
};
|
|
74
|
-
|
|
75
55
|
screenfull.on('change', onFullScreenEntered);
|
|
76
56
|
var returnPromise = element[nativeAPI.requestFullscreen](options);
|
|
77
|
-
|
|
78
57
|
if (returnPromise instanceof Promise) {
|
|
79
58
|
returnPromise.then(onFullScreenEntered).catch(reject);
|
|
80
59
|
}
|
|
@@ -86,15 +65,12 @@ var screenfull = {
|
|
|
86
65
|
resolve();
|
|
87
66
|
return;
|
|
88
67
|
}
|
|
89
|
-
|
|
90
68
|
var onFullScreenExit = function onFullScreenExit() {
|
|
91
69
|
screenfull.off('change', onFullScreenExit);
|
|
92
70
|
resolve();
|
|
93
71
|
};
|
|
94
|
-
|
|
95
72
|
screenfull.on('change', onFullScreenExit);
|
|
96
73
|
var returnPromise = document[nativeAPI.exitFullscreen]();
|
|
97
|
-
|
|
98
74
|
if (returnPromise instanceof Promise) {
|
|
99
75
|
returnPromise.then(onFullScreenExit).catch(reject);
|
|
100
76
|
}
|
|
@@ -111,14 +87,12 @@ var screenfull = {
|
|
|
111
87
|
},
|
|
112
88
|
on: function on(event, callback) {
|
|
113
89
|
var eventName = eventNameMap[event];
|
|
114
|
-
|
|
115
90
|
if (eventName) {
|
|
116
91
|
document.addEventListener(eventName, callback, false);
|
|
117
92
|
}
|
|
118
93
|
},
|
|
119
94
|
off: function off(event, callback) {
|
|
120
95
|
var eventName = eventNameMap[event];
|
|
121
|
-
|
|
122
96
|
if (eventName) {
|
|
123
97
|
document.removeEventListener(eventName, callback, false);
|
|
124
98
|
}
|
|
@@ -135,7 +109,6 @@ Object.defineProperties(screenfull, {
|
|
|
135
109
|
enumerable: true,
|
|
136
110
|
get: function get() {
|
|
137
111
|
var _document$nativeAPI$f;
|
|
138
|
-
|
|
139
112
|
return (_document$nativeAPI$f = document[nativeAPI.fullscreenElement]) !== null && _document$nativeAPI$f !== void 0 ? _document$nativeAPI$f : undefined;
|
|
140
113
|
}
|
|
141
114
|
},
|
|
@@ -147,11 +120,9 @@ Object.defineProperties(screenfull, {
|
|
|
147
120
|
}
|
|
148
121
|
}
|
|
149
122
|
});
|
|
150
|
-
|
|
151
123
|
if (!nativeAPI) {
|
|
152
124
|
screenfull = {
|
|
153
125
|
isEnabled: false
|
|
154
126
|
};
|
|
155
127
|
}
|
|
156
|
-
|
|
157
128
|
export default screenfull;
|
|
@@ -4,32 +4,28 @@
|
|
|
4
4
|
window._iconfont_svg_string_3580659 = '<svg><symbol id="l7-icon-area1" viewBox="0 0 1024 1024"><path d="M796.444444 56.888889a113.777778 113.777778 0 0 1 43.064889 219.136l38.798223 466.261333a113.777778 113.777778 0 1 1-133.518223 145.237334H279.210667a113.777778 113.777778 0 1 1-60.302223-137.272889L697.856 227.555556A113.777778 113.777778 0 0 1 796.444444 56.888889z m56.888889 750.933333a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m-682.666666 0a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m577.592889-534.072889L269.198222 796.444444c4.152889 7.168 7.509333 14.791111 10.012445 22.812445h465.578666a114.119111 114.119111 0 0 1 65.479111-71.224889l-38.798222-466.261333a112.924444 112.924444 0 0 1-23.210666-7.964445zM796.444444 125.155556a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-area" viewBox="0 0 1024 1024"><path d="M796.444444 56.888889a113.777778 113.777778 0 0 1 43.008 219.136l38.855112 466.261333a113.777778 113.777778 0 0 1-16.497778 224.540445L853.333333 967.111111a113.777778 113.777778 0 0 1-108.544-79.644444H279.210667a113.834667 113.834667 0 0 1-100.067556 79.36L170.666667 967.111111a113.777778 113.777778 0 0 1-17.066667-226.304l30.492444-351.175111a113.777778 113.777778 0 0 1 34.986667-218.680889L227.555556 170.666667a113.777778 113.777778 0 0 1 99.896888 59.221333l355.84-71.395556a113.777778 113.777778 0 0 1 104.675556-101.262222L796.444444 56.888889z m56.888889 750.933333a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m-682.666666 0a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m526.051555-582.314666L340.650667 296.903111a113.891556 113.891556 0 0 1-88.462223 98.645333l-30.947555 355.84c27.477333 13.653333 48.64 38.115556 58.026667 67.754667h465.521777a114.119111 114.119111 0 0 1 65.536-71.168l-38.855111-466.261333a113.948444 113.948444 0 0 1-74.752-56.206222zM227.555556 238.933333a45.511111 45.511111 0 1 0 0 91.022223 45.511111 45.511111 0 0 0 0-91.022223z m568.888888-113.777777a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-delete" viewBox="0 0 1024 1024"><path d="M705.422222 85.333333a34.133333 34.133333 0 0 1 34.133334 34.133334V227.555556h136.533333a34.133333 34.133333 0 0 1 0 68.266666h-25.543111l-24.348445 610.076445a34.133333 34.133333 0 0 1-34.133333 32.768H231.936a34.133333 34.133333 0 0 1-34.076444-32.768L173.340444 295.822222H147.911111a34.133333 34.133333 0 1 1 0-68.266666H284.444444V119.466667a34.133333 34.133333 0 0 1 34.133334-34.133334h386.844444zM241.720889 295.822222l22.983111 574.577778h494.535111l23.04-574.577778H241.720889zM671.288889 153.6H352.711111V227.555556h318.577778V153.6z" ></path></symbol><symbol id="l7-icon-color" viewBox="0 0 1024 1024"><path d="M512 56.888889c9.841778 0 19.626667 0.341333 29.354667 0.910222 69.176889 4.437333 119.068444 62.577778 124.302222 131.072l0.455111 9.386667c0.739556 44.600889 15.303111 84.935111 44.999111 114.631111 27.022222 27.022222 62.805333 41.528889 102.570667 44.430222l12.060444 0.568889c72.476444 1.194667 135.793778 52.451556 140.458667 124.757333 1.137778 18.261333 1.251556 36.807111 0.170667 55.637334-13.198222 233.585778-211.399111 424.220444-445.326223 428.714666L512 967.111111a455.111111 455.111111 0 0 1-455.054222-464.156444c4.551111-233.927111 195.185778-432.128 428.771555-445.326223C494.535111 57.116444 503.296 56.888889 512 56.888889z m0 68.266667a385.706667 385.706667 0 0 0-22.414222 0.625777C291.726222 136.988444 129.080889 305.948444 125.155556 504.263111c-4.152889 212.366222 163.100444 387.185778 372.508444 394.353778l13.425778 0.227555 8.533333-0.113777c198.371556-3.811556 367.331556-166.456889 378.538667-364.373334a396.174222 396.174222 0 0 0-0.170667-47.331555c-1.991111-31.232-29.127111-56.604444-67.128889-60.472889l-8.248889-0.455111-14.051555-0.682667c-56.547556-4.209778-107.406222-25.884444-145.806222-64.284444-38.855111-38.798222-60.416-90.225778-64.284445-145.749334l-0.910222-21.333333c-2.901333-38.001778-28.785778-66.048-60.302222-68.096A433.891556 433.891556 0 0 0 512 125.155556zM438.044444 682.666667a68.266667 68.266667 0 1 1 0 136.533333 68.266667 68.266667 0 0 1 0-136.533333z m-170.666666-227.555556a68.266667 68.266667 0 1 1 0 136.533333 68.266667 68.266667 0 0 1 0-136.533333z m142.222222-227.555555a68.266667 68.266667 0 1 1 0 136.533333 68.266667 68.266667 0 0 1 0-136.533333z" ></path></symbol><symbol id="l7-icon-base-map" viewBox="0 0 1024 1024"><path d="M923.761778 115.029333A34.133333 34.133333 0 0 1 967.111111 147.911111v624.128a34.133333 34.133333 0 0 1-22.186667 32.028445l-278.755555 103.992888a34.133333 34.133333 0 0 1-23.665778 0.056889L381.724444 812.714667a34.133333 34.133333 0 0 0-23.665777 0.113777L102.968889 908.060444a34.133333 34.133333 0 0 1-45.738667-26.965333L56.888889 876.088889V251.960889a34.133333 34.133333 0 0 1 22.186667-32.028445l278.755555-103.992888a34.133333 34.133333 0 0 1 20.992-0.967112l266.183111 72.988445a34.133333 34.133333 0 0 0 18.204445 0zM403.911111 192.625778v555.576889l216.177778 79.075555V251.960889l-216.177778-59.335111z m-68.266667 4.380444L125.155556 275.569778v551.310222l210.432-78.506667V197.006222zM898.844444 192.853333l-210.545777 58.936889v575.089778l210.545777-78.563556V192.853333z" ></path></symbol><symbol id="l7-icon-dot" viewBox="0 0 1024 1024"><path d="M341.333333 739.555556a113.777778 113.777778 0 0 1 8.533334 227.271111L341.333333 967.111111a113.777778 113.777778 0 0 1-8.533333-227.271111L341.333333 739.555556z m0 68.266666a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222zM910.222222 341.333333a113.777778 113.777778 0 0 1 8.533334 227.271111L910.222222 568.888889a113.777778 113.777778 0 0 1-8.533333-227.271111L910.222222 341.333333z m0 68.266667a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222zM227.555556 56.888889a113.777778 113.777778 0 0 1 8.533333 227.271111L227.555556 284.444444a113.777778 113.777778 0 0 1-8.533334-227.271111L227.555556 56.888889z m0 68.266667a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-display" viewBox="0 0 1024 1024"><path d="M512 170.666667c284.444444 0 455.111111 227.555556 455.111111 341.333333s-170.666667 341.333333-455.111111 341.333333-455.111111-227.555556-455.111111-341.333333 170.666667-341.333333 455.111111-341.333333z m0 68.266666C303.729778 238.933333 125.155556 401.237333 125.155556 512c0 110.762667 178.574222 273.066667 386.844444 273.066667s386.844444-162.304 386.844444-273.066667c0-110.762667-178.574222-273.066667-386.844444-273.066667zM512 341.333333a170.666667 170.666667 0 1 1 0 341.333334 170.666667 170.666667 0 0 1 0-341.333334z m0 68.266667a102.4 102.4 0 1 0 0 204.8 102.4 102.4 0 0 0 0-204.8z" ></path></symbol><symbol id="l7-icon-enlarge" viewBox="0 0 1024 1024"><path d="M546.133333 147.911111l-0.056889 329.955556H876.088889a34.133333 34.133333 0 0 1 0 68.266666H546.076444v329.955556a34.133333 34.133333 0 0 1-68.266666 0V546.133333H147.911111a34.133333 34.133333 0 1 1 0-68.266666h329.898667V147.911111a34.133333 34.133333 0 0 1 68.266666 0z" ></path></symbol><symbol id="l7-icon-export-picture" viewBox="0 0 1024 1024"><path d="M883.873684 161.684211a32.336842 32.336842 0 0 1 32.336842 32.336842v582.063158a32.336842 32.336842 0 0 1-32.336842 32.336842H86.231579a32.336842 32.336842 0 0 1-32.336842-32.336842V194.021053a32.336842 32.336842 0 0 1 32.336842-32.336842h797.642105z m-32.336842 64.673684H118.568421v517.389473h170.792421a32.175158 32.175158 0 0 1 0.431158-0.646736l3.772632-4.473264 330.320842-330.374736a32.336842 32.336842 0 0 1 38.588631-5.389474l4.473263 3.018105 184.589474 147.725474V226.357895z m-202.428631 248.131368L379.850105 743.747368H851.536842v-107.304421l-202.428631-161.953684zM323.368421 323.368421a107.789474 107.789474 0 1 1 0 215.578947 107.789474 107.789474 0 0 1 0-215.578947z m0 64.673684a43.115789 43.115789 0 1 0 0 86.231579 43.115789 43.115789 0 0 0 0-86.231579z" ></path></symbol><symbol id="l7-icon-exit-fullscreen" viewBox="0 0 1024 1024"><path d="M841.955556 591.644444a34.133333 34.133333 0 0 1 5.518222 67.811556l-5.518222 0.455111h-133.745778l192 192.056889a34.133333 34.133333 0 0 1-38.343111 55.182222l-5.176889-2.958222-4.721778-3.982222L659.911111 708.266667V841.955556a34.133333 34.133333 0 0 1-28.615111 33.678222L625.777778 876.088889a34.133333 34.133333 0 0 1-33.678222-28.615111L591.644444 841.955556V625.777778a34.133333 34.133333 0 0 1 28.615112-33.678222L625.777778 591.644444h216.177778z m-443.733334 0a34.133333 34.133333 0 0 1 33.678222 28.615112L432.355556 625.777778v216.177778a34.133333 34.133333 0 0 1-67.811556 5.518222L364.088889 841.955556v-133.745778l-192.056889 192a34.133333 34.133333 0 0 1-52.224-43.52l3.982222-4.721778L315.847111 659.911111H182.044444a34.133333 34.133333 0 0 1-33.678222-28.615111L147.911111 625.777778a34.133333 34.133333 0 0 1 28.615111-33.678222L182.044444 591.644444H398.222222zM167.310222 119.808l4.721778 3.982222L364.088889 315.847111V182.044444a34.133333 34.133333 0 0 1 28.615111-33.678222L398.222222 147.911111a34.133333 34.133333 0 0 1 33.678222 28.615111L432.355556 182.044444V398.222222a34.133333 34.133333 0 0 1-28.615112 33.678222L398.222222 432.355556H182.044444a34.133333 34.133333 0 0 1-5.518222-67.811556L182.044444 364.088889h133.802667L123.790222 172.032a34.133333 34.133333 0 0 1 43.52-52.224z m732.899556 3.982222a34.133333 34.133333 0 0 1 3.982222 43.52l-3.982222 4.721778L708.266667 364.088889H841.955556a34.133333 34.133333 0 0 1 33.678222 28.615111L876.088889 398.222222a34.133333 34.133333 0 0 1-28.615111 33.678222L841.955556 432.355556H625.777778a34.133333 34.133333 0 0 1-33.678222-28.615112L591.644444 398.222222V182.044444a34.133333 34.133333 0 0 1 67.811556-5.518222l0.455111 5.518222v133.802667l192.056889-192.056889a34.133333 34.133333 0 0 1 48.241778 0z" ></path></symbol><symbol id="l7-icon-line" viewBox="0 0 1024 1024"><path d="M853.333333 56.888889a113.777778 113.777778 0 0 1 8.533334 227.271111L853.333333 284.444444c-19.000889 0-36.864-4.664889-52.622222-12.856888l-529.123555 529.066666a113.777778 113.777778 0 0 1-92.387556 166.115556L170.666667 967.111111a113.777778 113.777778 0 0 1-8.533334-227.271111L170.666667 739.555556c19.000889 0 36.864 4.664889 52.622222 12.856888l529.123555-529.066666a113.777778 113.777778 0 0 1 92.387556-166.115556L853.333333 56.888889zM170.666667 807.822222a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m682.666666-682.666666a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-layer" viewBox="0 0 1024 1024"><path d="M767.089778 625.777778l180.167111 82.773333a34.133333 34.133333 0 0 1 4.892444 59.278222l-4.892444 2.730667-420.977778 193.422222a34.133333 34.133333 0 0 1-22.983111 1.991111l-5.575111-1.991111-420.977778-193.422222a34.133333 34.133333 0 0 1-4.892444-59.278222l4.892444-2.730667L256.853333 625.777778l81.749334 37.546666L172.771556 739.555556 512 895.374222 851.171556 739.555556l-165.831112-76.231112 81.749334-37.546666z m0-227.555556l180.167111 82.773334a34.133333 34.133333 0 0 1 4.892444 59.278222l-4.892444 2.730666-420.977778 193.422223a34.133333 34.133333 0 0 1-22.983111 1.991111l-5.575111-1.991111-420.977778-193.422223a34.133333 34.133333 0 0 1-4.892444-59.278222l4.892444-2.730666L256.853333 398.222222l81.749334 37.546667-165.831111 76.174222L512 667.818667l339.171556-155.875556-165.831112-76.174222L767.089778 398.222222zM497.720889 60.017778a34.133333 34.133333 0 0 1 28.558222 0l420.977778 193.422222a34.133333 34.133333 0 0 1 0 62.008889l-420.977778 193.422222a34.133333 34.133333 0 0 1-28.558222 0l-420.977778-193.422222a34.133333 34.133333 0 0 1 0-62.008889zM512 128.568889L172.771556 284.387556 512 440.263111l339.171556-155.875555L512 128.568889z" ></path></symbol><symbol id="l7-icon-narrow" viewBox="0 0 1024 1024"><path d="M910.222222 512a34.133333 34.133333 0 0 1-34.133333 34.133333H147.911111a34.133333 34.133333 0 1 1 0-68.266666h728.177778a34.133333 34.133333 0 0 1 34.133333 34.133333z" ></path></symbol><symbol id="l7-icon-fullscreen" viewBox="0 0 1024 1024"><path d="M645.176889 597.674667l4.721778 3.982222L841.955556 793.6l0.056888-133.688889a34.133333 34.133333 0 0 1 28.615112-33.678222L876.088889 625.777778a34.133333 34.133333 0 0 1 33.678222 28.615111L910.222222 659.911111v216.177778a34.133333 34.133333 0 0 1-28.615111 33.678222L876.088889 910.222222h-216.177778a34.133333 34.133333 0 0 1-5.518222-67.811555l5.518222-0.455111h133.745778l-192-192.056889a34.133333 34.133333 0 0 1 43.52-52.224z m-222.833778 3.982222a34.133333 34.133333 0 0 1 3.982222 43.52l-3.982222 4.721778L230.286222 841.955556H364.088889a34.133333 34.133333 0 0 1 33.678222 28.615111L398.222222 876.088889a34.133333 34.133333 0 0 1-28.615111 33.678222L364.088889 910.222222H147.911111a34.133333 34.133333 0 0 1-33.678222-28.615111L113.777778 876.088889v-216.177778a34.133333 34.133333 0 0 1 67.811555-5.518222l0.455111 5.518222-0.056888 133.745778 192.113777-192a34.133333 34.133333 0 0 1 48.241778 0zM364.088889 113.777778a34.133333 34.133333 0 0 1 5.518222 67.811555L364.088889 182.044444H230.343111l192 192.056889a34.133333 34.133333 0 0 1-43.52 52.224l-4.721778-3.982222-192.113777-192.056889L182.044444 364.088889a34.133333 34.133333 0 0 1-28.615111 33.678222L147.911111 398.222222a34.133333 34.133333 0 0 1-33.678222-28.615111L113.777778 364.088889V147.911111a34.133333 34.133333 0 0 1 28.615111-33.678222L147.911111 113.777778h216.177778z m512 0a34.133333 34.133333 0 0 1 33.678222 28.615111L910.222222 147.911111v216.177778a34.133333 34.133333 0 0 1-67.811555 5.518222L841.955556 364.088889l-0.056889-133.745778-192 192a34.133333 34.133333 0 0 1-52.224-43.52l3.982222-4.721778L793.6 182.044444H659.911111a34.133333 34.133333 0 0 1-33.678222-28.615111L625.777778 147.911111a34.133333 34.133333 0 0 1 28.615111-33.678222L659.911111 113.777778h216.177778z" ></path></symbol><symbol id="l7-icon-hide" viewBox="0 0 1024 1024"><path d="M875.52 87.836444a34.133333 34.133333 0 0 1 7.281778 43.121778l-3.527111 5.006222-682.666667 796.444445a34.133333 34.133333 0 0 1-55.409778-39.367111l3.527111-5.006222 97.166223-113.379556C123.164444 697.969778 56.888889 582.940444 56.888889 512c0-113.777778 170.666667-341.333333 455.111111-341.333333a496.64 496.64 0 0 1 208.952889 45.112889l106.439111-124.188445a34.133333 34.133333 0 0 1 48.128-3.754667z m-38.684444 202.524445C921.031111 362.951111 967.111111 452.835556 967.111111 512c0 113.777778-170.666667 341.333333-455.111111 341.333333-50.631111 0-97.678222-7.224889-140.8-19.740444l50.232889-58.595556A417.393778 417.393778 0 0 0 512 785.066667c208.270222 0 386.844444-162.304 386.844444-273.066667 0-52.849778-40.675556-117.418667-105.813333-170.496l43.804445-51.2zM512 238.933333C303.729778 238.933333 125.155556 401.237333 125.155556 512c0 66.787556 64.853333 152.291556 162.133333 209.692444L377.173333 616.675556a170.666667 170.666667 0 0 1 217.713778-253.895112l78.620445-91.704888A432.924444 432.924444 0 0 0 512 238.933333z m166.684444 236.088889a170.666667 170.666667 0 0 1-177.664 207.303111l177.607112-207.303111zM512 409.6a102.4 102.4 0 0 0-88.746667 153.486222L548.864 416.426667A102.172444 102.172444 0 0 0 512 409.6z" ></path></symbol><symbol id="l7-icon-rectangle" viewBox="0 0 1024 1024"><path d="M170.666667 56.888889a113.777778 113.777778 0 0 1 108.544 79.644444H853.333333a34.133333 34.133333 0 0 1 33.678223 28.615111L887.466667 170.666667v574.122666a113.777778 113.777778 0 1 1-142.677334 142.734223L170.666667 887.466667a34.133333 34.133333 0 0 1-33.678223-28.615111L136.533333 853.333333V279.210667A113.777778 113.777778 0 0 1 170.666667 56.888889z m682.666666 750.933333a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z m-34.133333-603.022222H279.210667a114.062222 114.062222 0 0 1-74.353778 74.410667L204.8 819.2h539.989333a114.062222 114.062222 0 0 1 74.410667-74.410667V204.8zM170.666667 125.155556a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-ranging" viewBox="0 0 1024 1024"><path d="M723.171556 50.403556l250.424888 250.424888a31.061333 31.061333 0 0 1 0 43.918223L344.746667 973.596444a31.061333 31.061333 0 0 1-43.918223 0L50.403556 723.171556a31.061333 31.061333 0 0 1 0-43.918223L679.253333 50.403556a31.061333 31.061333 0 0 1 43.918223 0z m-21.959112 74.524444l-39.765333 39.822222 98.986667 98.872889a34.133333 34.133333 0 0 1-44.088889 51.882667l-4.209778-3.640889-98.929778-98.929778-63.886222 63.886222 62.179556 62.122667a34.133333 34.133333 0 0 1-44.088889 51.882667L563.2 387.242667 501.077333 325.063111 437.191111 388.949333l98.986667 98.929778a34.133333 34.133333 0 0 1-44.088889 51.882667l-4.209778-3.640889-98.929778-98.929778-63.886222 63.886222L387.242667 563.2a34.133333 34.133333 0 0 1-44.088889 51.882667l-4.209778-3.584-62.122667-62.179556-63.886222 63.886222 98.986667 98.929778a34.133333 34.133333 0 0 1-44.088889 51.882667l-4.209778-3.640889-98.929778-98.929778-39.765333 39.822222 197.802667 197.745778 576.284444-576.284444-197.802667-197.745778z" ></path></symbol><symbol id="l7-icon-reposition" viewBox="0 0 1024 1024"><path d="M512 56.888889a34.133333 34.133333 0 0 1 34.133333 34.133333v24.177778A398.336 398.336 0 0 1 908.856889 477.866667h24.177778a34.133333 34.133333 0 0 1 0 68.266666h-24.177778A398.336 398.336 0 0 1 546.133333 908.856889L546.133333 932.977778a34.133333 34.133333 0 0 1-68.266666 0v-24.177778A398.336 398.336 0 0 1 115.2 546.133333L91.022222 546.133333a34.133333 34.133333 0 1 1 0-68.266666h24.177778A398.336 398.336 0 0 1 477.866667 115.2V91.022222A34.133333 34.133333 0 0 1 512 56.888889z m34.190222 126.862222L546.133333 193.422222a34.133333 34.133333 0 1 1-68.266666 0v-9.671111A330.069333 330.069333 0 0 0 183.751111 477.866667h9.671111a34.133333 34.133333 0 1 1 0 68.266666l-9.671111 0.056889A330.069333 330.069333 0 0 0 477.866667 840.248889V830.577778a34.133333 34.133333 0 0 1 68.266666 0l0.056889 9.671111A330.069333 330.069333 0 0 0 840.248889 546.133333L830.577778 546.133333a34.133333 34.133333 0 0 1 0-68.266666h9.671111A330.069333 330.069333 0 0 0 546.133333 183.751111zM512 341.333333a170.666667 170.666667 0 1 1 0 341.333334 170.666667 170.666667 0 0 1 0-341.333334z m0 68.266667a102.4 102.4 0 1 0 0 204.8 102.4 102.4 0 0 0 0-204.8z" ></path></symbol><symbol id="l7-icon-round" viewBox="0 0 1024 1024"><path d="M512 56.888889a455.111111 455.111111 0 0 1 391.395556 687.502222 113.777778 113.777778 0 0 1-159.061334 158.890667A455.111111 455.111111 0 0 1 120.604444 279.608889 113.777778 113.777778 0 0 1 279.608889 120.604444 452.835556 452.835556 0 0 1 512 56.888889z m0 68.266667a384.910222 384.910222 0 0 0-191.715556 50.744888A113.777778 113.777778 0 0 1 175.957333 320.284444a386.844444 386.844444 0 0 0 527.815111 527.758223 113.777778 113.777778 0 0 1 144.270223-144.440889A386.844444 386.844444 0 0 0 512 125.155556z m299.406222 640.739555a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222zM212.593778 167.082667a45.511111 45.511111 0 1 0 0 91.022222 45.511111 45.511111 0 0 0 0-91.022222z" ></path></symbol><symbol id="l7-icon-guanbi" viewBox="0 0 1024 1024"><path d="M576 512l277.333333 277.333333-64 64-277.333333-277.333333L234.666667 853.333333 170.666667 789.333333l277.333333-277.333333L170.666667 234.666667 234.666667 170.666667l277.333333 277.333333L789.333333 170.666667 853.333333 234.666667 576 512z" ></path></symbol></svg>', function (t) {
|
|
5
5
|
try {
|
|
6
6
|
var a = (a = document.getElementsByTagName('script'))[a.length - 1],
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
l = a.getAttribute('data-injectcss'),
|
|
8
|
+
a = a.getAttribute('data-disable-injectsvg');
|
|
10
9
|
if (!a) {
|
|
11
10
|
var o,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
_e,
|
|
12
|
+
i,
|
|
13
|
+
n,
|
|
14
|
+
m,
|
|
15
|
+
c = function c(a, l) {
|
|
16
|
+
l.parentNode.insertBefore(a, l);
|
|
17
|
+
};
|
|
20
18
|
if (l && !t.__iconfont__svg__cssinject__) {
|
|
21
19
|
t.__iconfont__svg__cssinject__ = !0;
|
|
22
|
-
|
|
23
20
|
try {
|
|
24
21
|
document.write('<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>');
|
|
25
22
|
} catch (a) {
|
|
26
23
|
console && console.log(a);
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
|
-
|
|
30
26
|
o = function o() {
|
|
31
27
|
var a,
|
|
32
|
-
|
|
28
|
+
l = document.createElement('div');
|
|
33
29
|
l.innerHTML = t._iconfont_svg_string_3580659, (l = l.getElementsByTagName('svg')[0]) && (l.setAttribute('aria-hidden', 'true'), l.style.position = 'absolute', l.style.width = 0, l.style.height = 0, l.style.overflow = 'hidden', l = l, (a = document.body).firstChild ? c(l, a.firstChild) : a.appendChild(l));
|
|
34
30
|
}, document.addEventListener ? ~['complete', 'loaded', 'interactive'].indexOf(document.readyState) ? setTimeout(o, 0) : (_e = function e() {
|
|
35
31
|
document.removeEventListener('DOMContentLoaded', _e, !1), o();
|
|
@@ -37,18 +33,15 @@ window._iconfont_svg_string_3580659 = '<svg><symbol id="l7-icon-area1" viewBox="
|
|
|
37
33
|
'complete' == n.readyState && (n.onreadystatechange = null, d());
|
|
38
34
|
});
|
|
39
35
|
}
|
|
40
|
-
|
|
41
36
|
function d() {
|
|
42
37
|
m || (m = !0, i());
|
|
43
38
|
}
|
|
44
|
-
|
|
45
39
|
function L() {
|
|
46
40
|
try {
|
|
47
41
|
n.documentElement.doScroll('left');
|
|
48
42
|
} catch (a) {
|
|
49
43
|
return void setTimeout(L, 50);
|
|
50
44
|
}
|
|
51
|
-
|
|
52
45
|
d();
|
|
53
46
|
}
|
|
54
47
|
} catch (e) {}
|