master
2022-03-21 1292f810644e422357734d1616761eb920903f45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
function _typeof(t) {
    return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
        return typeof t
    } : function(t) {
        return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ?
            "symbol" : typeof t
    })(t)
}
 
function _classCallCheck(t, e) {
    if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
}
 
function _defineProperties(t, e) {
    for (var n = 0; n < e.length; n++) {
        var r = e[n];
        r.enumerable = r.enumerable || !1, r.configurable = !0,
            "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r)
    }
}
 
function _createClass(t, e, n) {
    return e && _defineProperties(t.prototype, e), n && _defineProperties(t, n), t
}
 
function _inherits(t, e) {
    if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
    t.prototype = Object.create(e && e.prototype, {
            constructor: {
                value: t,
                writable: !0,
                configurable: !0
            }
        }),
        e && _setPrototypeOf(t, e)
}
 
function _setPrototypeOf(t, e) {
    return (_setPrototypeOf = Object.setPrototypeOf || function(t, e) {
        return t.__proto__ = e, t
    })(t, e)
}
 
function _createSuper(n) {
    var r = _isNativeReflectConstruct();
    return function() {
        var t, e = _getPrototypeOf(n);
        return _possibleConstructorReturn(this, r ? (t = _getPrototypeOf(this).constructor,
            Reflect.construct(e, arguments, t)) : e.apply(this, arguments))
    }
}
 
function _possibleConstructorReturn(t, e) {
    if (e && ("object" === _typeof(e) || "function" == typeof e)) return e;
    if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
    return _assertThisInitialized(t)
}
 
function _assertThisInitialized(t) {
    if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
    return t
}
 
function _isNativeReflectConstruct() {
    if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
    if (Reflect.construct.sham) return !1;
    if ("function" == typeof Proxy) return !0;
    try {
        return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), !0
    } catch (t) {
        return !1
    }
}
 
function _getPrototypeOf(t) {
    return (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
        return t.__proto__ || Object.getPrototypeOf(t)
    })(t)
}! function(n) {
    n.widget.bindClass(function() {
        "use strict";
        _inherits(e, n.widget.BaseWidget);
        var t = _createSuper(e);
 
        function e() {
            return _classCallCheck(this, e), t.apply(this, arguments)
        }
        return _createClass(e, [{
            key: "view",
            get: function() {
                var t, e = this.getBasemaps().length,
                    e = e <= 4 ? (t = 190, 100 * Math.ceil(e / 2) + 70) : 4 < e && e <= 6 ? (t =
                        270, 100 * Math.ceil(e / 3) + 70) : (t = 360, 105 * Math.ceil(e / 4) +
                        70);
                return {
                    type: "window",
                    url: "view.html",
                    windowOptions: {
                        width: t,
                        height: e
                    }
                }
            }
        }, {
            key: "create",
            value: function() {}
        }, {
            key: "winCreateOK",
            value: function(t, e) {
                this.viewWindow = e
            }
        }, {
            key: "activate",
            value: function() {}
        }, {
            key: "disable",
            value: function() {
                this.viewWindow = null
            }
        }, {
            key: "getBasemaps",
            value: function() {
                return this.map.getBasemaps(!0)
            }
        }, {
            key: "updateBasemap",
            value: function(t) {
                this.map.basemap = t,
                    this.disableBase()
            }
        }]), e
    }())
}((window, mars3d));