cesium指南针罗盘
立即下载
资源介绍:
用于es6语法的cesium罗盘,可以集成在vue项目或者react项目中
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, (global.CesiumNavigation = global.CesiumNavigation || {}, global.CesiumNavigation.umd = factory()));
}(this, (function () { 'use strict';
var Cesium = window.Cesium;
var toString = {}.toString;
var _cof = function (it) {
return toString.call(it).slice(8, -1);
};
var _cof$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _cof,
__moduleExports: _cof
});
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
var _core = createCommonjsModule(function (module) {
var core = module.exports = { version: '2.6.12' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
});
var _core_1 = _core.version;
var _core$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _core,
__moduleExports: _core,
version: _core_1
});
var _global = createCommonjsModule(function (module) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self
// eslint-disable-next-line no-new-func
: Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
});
var _global$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _global,
__moduleExports: _global
});
var _library = false;
var _library$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _library,
__moduleExports: _library
});
var core = ( _core$1 && _core ) || _core$1;
var require$$0 = ( _global$1 && _global ) || _global$1;
var require$$0$1 = ( _library$1 && _library ) || _library$1;
var _shared = createCommonjsModule(function (module) {
var SHARED = '__core-js_shared__';
var store = require$$0[SHARED] || (require$$0[SHARED] = {});
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: core.version,
mode: require$$0$1 ? 'pure' : 'global',
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
});
});
var _shared$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _shared,
__moduleExports: _shared
});
var id = 0;
var px = Math.random();
var _uid = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
var _uid$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _uid,
__moduleExports: _uid
});
var require$$0$2 = ( _shared$1 && _shared ) || _shared$1;
var uid = ( _uid$1 && _uid ) || _uid$1;
var _wks = createCommonjsModule(function (module) {
var store = require$$0$2('wks');
var Symbol = require$$0.Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
return store[name] || (store[name] =
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};
$exports.store = store;
});
var _wks$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _wks,
__moduleExports: _wks
});
var cof = ( _cof$1 && _cof ) || _cof$1;
var require$$0$3 = ( _wks$1 && _wks ) || _wks$1;
// getting tag from 19.1.3.6 Object.prototype.toString()
var TAG = require$$0$3('toStringTag');
// ES3 wrong here
var ARG = cof(function () { return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
try {
return it[key];
} catch (e) { /* empty */ }
};
var _classof = function (it) {
var O, T, B;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
// builtinTag case
: ARG ? cof(O)
// ES3 arguments fallback
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};
var _classof$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _classof,
__moduleExports: _classof
});
var _isObject = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
var _isObject$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _isObject,
__moduleExports: _isObject
});
var isObject = ( _isObject$1 && _isObject ) || _isObject$1;
var _anObject = function (it) {
if (!isObject(it)) throw TypeError(it + ' is not an object!');
return it;
};
var _anObject$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _anObject,
__moduleExports: _anObject
});
var _fails = function (exec) {
try {
return !!exec();
} catch (e) {
return true;
}
};
var _fails$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _fails,
__moduleExports: _fails
});
var require$$2 = ( _fails$1 && _fails ) || _fails$1;
// Thank's IE8 for his funny defineProperty
var _descriptors = !require$$2(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
var _descriptors$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _descriptors,
__moduleExports: _descriptors
});
var document$1 = require$$0.document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document$1) && isObject(document$1.createElement);
var _domCreate = function (it) {
return is ? document$1.createElement(it) : {};
};
var _domCreate$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _domCreate,
__moduleExports: _domCreate
});
var require$$0$4 = ( _descriptors$1 && _descriptors ) || _descriptors$1;
var require$$1 = ( _domCreate$1 && _domCreate ) || _domCreate$1;
var _ie8DomDefine = !require$$0$4 && !require$$2(function () {
return Object.defineProperty(require$$1('div'), 'a', { get: function () { return 7; } }).a != 7;
});
var _ie8DomDefine$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _ie8DomDefine,
__moduleExports: _ie8DomDefine
});
// 7.1.1 ToPrimitive(input [, PreferredType])
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
var _toPrimitive = function (it, S) {
if (!isObject(it)) return it;
var fn, val;
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
throw TypeError("Can't convert object to primitive value");
};
var _toPrimitive$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
'default': _toPrimitive,
__moduleExports: _toPrimitive
});
var anObject = ( _anObject$1 && _anObject ) || _anObject$1;
var IE8_DOM_DEFINE = ( _ie8DomDefine$1 && _ie8DomDefine ) || _ie8DomDefine$1;
var toPrimitive = ( _toPrimitive$1 && _toPrimitive ) || _toPrimitive$1;
var dP = Object.defineProperty;
var f = require$$0$4 ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (IE8_DOM_DEFINE) try {
return dP(O, P, Attributes);
} catch (e) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
var _objectDp = {
f: f
};
var _obje