123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377 |
- (function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory();
- else if(typeof define === 'function' && define.amd)
- define("GdCore", [], factory);
- else if(typeof exports === 'object')
- exports["GdCore"] = factory();
- else
- root["GdCore"] = factory();
- })(window, function() {
- return /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "/";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 0);
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "./modules/analysis/Analysis.js":
- /*!**************************************!*\
- !*** ./modules/analysis/Analysis.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-05-25 15:05\n */\n\n\nvar Analysis = /*#__PURE__*/_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(function Analysis(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Analysis);\n\n this._viewer = viewer._delegate || viewer;\n this._layer = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CustomDataSource('analysis-layer');\n\n this._viewer.dataSources.add(this._layer);\n\n this._handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventHandler(this._viewer.canvas);\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Analysis);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL0FuYWx5c2lzLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9hbmFseXNpcy9BbmFseXNpcy5qcz83MTI0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDliJjnrZZcbiAqIEBEYXRlIDIwMjItMDUtMjUgMTU6MDVcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5cbmNsYXNzIEFuYWx5c2lzIHtcbiAgY29uc3RydWN0b3Iodmlld2VyKSB7XG4gICAgdGhpcy5fdmlld2VyID0gdmlld2VyLl9kZWxlZ2F0ZSB8fCB2aWV3ZXJcbiAgICB0aGlzLl9sYXllciA9IG5ldyBDZXNpdW0uQ3VzdG9tRGF0YVNvdXJjZSgnYW5hbHlzaXMtbGF5ZXInKVxuICAgIHRoaXMuX3ZpZXdlci5kYXRhU291cmNlcy5hZGQodGhpcy5fbGF5ZXIpXG4gICAgdGhpcy5faGFuZGxlciA9IG5ldyBDZXNpdW0uU2NyZWVuU3BhY2VFdmVudEhhbmRsZXIodGhpcy5fdmlld2VyLmNhbnZhcylcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBBbmFseXNpc1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/analysis/Analysis.js\n");
- /***/ }),
- /***/ "./modules/analysis/CutAndFillVolume.js":
- /*!**********************************************!*\
- !*** ./modules/analysis/CutAndFillVolume.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-06-24 14:27\n * @Description 填挖方分析\n */\n\n\nvar DEF_OPTS = {\n granularity: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.RADIANS_PER_DEGREE / Math.pow(10, 5) * 10,\n has3dtiles: false\n};\n\nvar CutAndFillVolume = /*#__PURE__*/function () {\n function CutAndFillVolume(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CutAndFillVolume);\n\n this._viewer = viewer._delegate || viewer;\n this._primitiveCollection = this._viewer.scene.primitives.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PrimitiveCollection());\n this._has3dtiles = DEF_OPTS.has3dtiles;\n this._granularity = DEF_OPTS.granularity;\n this._fillVolume = 0;\n this._cutVolume = 0;\n }\n /**\n * @Description 执行分析\n * @returns {Promise} 挖方和填方体积\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CutAndFillVolume, [{\n key: \"build\",\n value: function build() {\n this.clear();\n return this.createAnalysisVolume();\n }\n /**\n * @Description 计算填挖方体积\n * @returns {Promise} 挖方和填方体积\n */\n\n }, {\n key: \"createAnalysisVolume\",\n value: function createAnalysisVolume() {\n var _this = this;\n\n return new Promise(function (resolve, reject) {\n var viewer = _this._viewer;\n var polygon = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PolygonGeometry.fromPositions({\n positions: _this._polygon,\n vertexFormat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PerInstanceColorAppearance.FLAT_VERTEX_FORMAT,\n granularity: _this._granularity\n });\n var geometry = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PolygonGeometry.createGeometry(polygon);\n var subTrianglePositions = geometry.attributes.position.values;\n var point1 = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n var point2 = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n var point3 = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n var i0, i1, i2;\n var cartographic1, cartographic2, cartographic3;\n var height1, height2, height3;\n var bottomP1, bottomP2, bottomP3;\n var cartesian1, cartesian2, cartesian3;\n var polygonInstances = [];\n var polygonOutlineInstances = [];\n\n for (var i = 0; i < geometry.indices.length; i += 3) {\n // 遍历三角面\n i0 = geometry === null || geometry === void 0 ? void 0 : geometry.indices[i];\n i1 = geometry === null || geometry === void 0 ? void 0 : geometry.indices[i + 1];\n i2 = geometry === null || geometry === void 0 ? void 0 : geometry.indices[i + 2];\n point1.x = subTrianglePositions[i0 * 3];\n point1.y = subTrianglePositions[i0 * 3 + 1];\n point1.z = subTrianglePositions[i0 * 3 + 2];\n cartographic1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromCartesian(point1);\n point2.x = subTrianglePositions[i1 * 3];\n point2.y = subTrianglePositions[i1 * 3 + 1];\n point2.z = subTrianglePositions[i1 * 3 + 2];\n cartographic2 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromCartesian(point2);\n point3.x = subTrianglePositions[i2 * 3];\n point3.y = subTrianglePositions[i2 * 3 + 1];\n point3.z = subTrianglePositions[i2 * 3 + 2];\n cartographic3 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromCartesian(point3); // 判断使用地形检测还是模型检测\n\n if (_this._has3dtiles) {\n cartesian1 = viewer.scene.clampToHeight(point1);\n height1 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__[\"Transform\"].transformCartesianToWGS84(cartesian1).alt;\n cartesian2 = viewer.scene.clampToHeight(point2);\n height2 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__[\"Transform\"].transformCartesianToWGS84(cartesian2).alt;\n cartesian3 = viewer.scene.clampToHeight(point3);\n height3 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__[\"Transform\"].transformCartesianToWGS84(cartesian3).alt;\n } else {\n height1 = viewer.scene.globe.getHeight(cartographic1);\n cartesian1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromRadians(cartographic1.longitude, cartographic1.latitude, height1);\n height2 = viewer.scene.globe.getHeight(cartographic2);\n cartesian2 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromRadians(cartographic2.longitude, cartographic2.latitude, height2);\n height3 = viewer.scene.globe.getHeight(cartographic3);\n cartesian3 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromRadians(cartographic3.longitude, cartographic3.latitude, height3);\n }\n\n bottomP1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromRadians(cartographic1.longitude, cartographic1.latitude, _this._height);\n bottomP2 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromRadians(cartographic2.longitude, cartographic2.latitude, _this._height);\n bottomP3 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromRadians(cartographic3.longitude, cartographic3.latitude, _this._height); //计算三角体的平均高度\n\n var avgCubeHeight = (height1 + height2 + height3) / 3; //计算三角体的底面面积\n\n var bottomArea = _this.computeAreaOfTriangle(bottomP1, bottomP2, bottomP3); //判断是 填方还是挖方\n //如果三角体低于基准面,则需要填方\n\n\n if (avgCubeHeight <= _this._height) {\n _this._fillVolume += bottomArea * (_this._height - avgCubeHeight);\n } else {\n //否则需要挖方\n _this._cutVolume += bottomArea * (avgCubeHeight - _this._height);\n }\n\n var extrudedPolygon = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].GeometryInstance({\n geometry: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PolygonGeometry.fromPositions({\n positions: [cartesian1, cartesian2, cartesian3],\n perPositionHeight: true,\n extrudedHeight: _this._height,\n vertexFormat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PerInstanceColorAppearance.VERTEX_FORMAT\n }),\n attributes: {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ColorGeometryInstanceAttribute.fromColor(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.fromRandom({\n alpha: 0.5\n }))\n }\n });\n polygonInstances.push(extrudedPolygon);\n var polygonOutlineInstance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].GeometryInstance({\n geometry: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PolygonOutlineGeometry.fromPositions({\n positions: [cartesian1, cartesian2, cartesian3],\n extrudedHeight: _this._height,\n perPositionHeight: true\n }),\n attributes: {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ColorGeometryInstanceAttribute.fromColor(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.WHITE)\n }\n });\n polygonOutlineInstances.push(polygonOutlineInstance);\n }\n\n _this._polygonPrimitive = _this._primitiveCollection.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Primitive({\n geometryInstances: polygonInstances,\n appearance: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PerInstanceColorAppearance(),\n show: false\n }));\n _this._polygonOutlinePrimitivethis = _this._primitiveCollection.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Primitive({\n geometryInstances: polygonOutlineInstances,\n appearance: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PerInstanceColorAppearance({\n flat: true,\n renderState: {\n lineWidth: Math.min(2.0, viewer.scene.maximumAliasedLineWidth)\n }\n }),\n show: false\n }));\n resolve({\n fillVolume: _this._fillVolume,\n cutVolume: _this._cutVolume\n });\n });\n }\n /**\n * @Description 计算三角面地球表面面积\n * @param {Cartesian3} pos1\n * @param {Cartesian3} pos2\n * @param {Cartesian3} pos3\n * @returns {Number} 三角面积\n */\n\n }, {\n key: \"computeAreaOfTriangle\",\n value: function computeAreaOfTriangle(pos1, pos2, pos3) {\n var a = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.distance(pos1, pos2);\n var b = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.distance(pos2, pos3);\n var c = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.distance(pos3, pos1);\n var s = (a + b + c) / 2;\n return Math.sqrt(s * (s - a) * (s - b) * (s - c));\n }\n /**\n * @Description 显示填挖方轮廓\n */\n\n }, {\n key: \"showVolume\",\n value: function showVolume() {\n if (!this._polygonPrimitive) {\n return;\n }\n\n this._polygonPrimitive.show = true;\n this._polygonOutlinePrimitivethis.show = true;\n }\n /**\n * @Description 关闭填挖方轮廓\n */\n\n }, {\n key: \"closeVolume\",\n value: function closeVolume() {\n if (!this._polygonPrimitive) {\n return;\n }\n\n this._polygonPrimitive.show = false;\n this._polygonOutlinePrimitivethis.show = false;\n }\n /**\n * @Description清除分析结果\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this._fillVolume = 0;\n this._cutVolume = 0;\n\n this._primitiveCollection.removeAll();\n }\n /**\n * @Description 设置分析区域\n * @param {Object} options 选项。\n * @param {Array.<Cartesian3>} options.polygon 多边形平面\n * @param {Number} options.height 基准面高程\n */\n\n }, {\n key: \"queryRegion\",\n value: function queryRegion(options) {\n this._polygon = options.polygon;\n this._height = options.height;\n }\n /**\n * @Description 设置分析区域间隔尺寸\n * @param {Number} spacing 多边形内部三角面拆分间距\n */\n\n }, {\n key: \"spacing\",\n set: function set(spacing) {\n this._granularity = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.RADIANS_PER_DEGREE / Math.pow(10, 5) * spacing;\n }\n /**\n * @Description 激活模型检测\n * @param {Boolean} activate 启动模型检测\n */\n\n }, {\n key: \"has3dtiles\",\n set: function set(activate) {\n this._has3dtiles = activate;\n }\n }]);\n\n return CutAndFillVolume;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CutAndFillVolume);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2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FBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/analysis/CutAndFillVolume.js\n");
- /***/ }),
- /***/ "./modules/analysis/SceneColor.js":
- /*!****************************************!*\
- !*** ./modules/analysis/SceneColor.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_domComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/domComponent */ \"./modules/domComponent/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-09-30 9:57\n * @Description 场景色彩分析\n */\n\n\n\nvar SceneColor = /*#__PURE__*/function () {\n function SceneColor(viewer) {\n var _this = this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SceneColor);\n\n this._viewer = viewer._delegate || viewer;\n var canvas = document.createElement('canvas');\n canvas.id = 'colorAnalysis-canvas';\n canvas.style.display = 'none';\n document.body.appendChild(canvas);\n var maskDivs = document.createElement('div');\n maskDivs.id = 'maskDivs';\n maskDivs.style.cssText = \"position: absolute; display: none; background: rgba(255, 51, 0, 0.1); border: 2px dashed rgb(255, 51, 0); z-index: 999;\";\n\n this._viewer.container.appendChild(maskDivs);\n\n this.analysisConditions = false;\n this._handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventHandler(this._viewer.canvas);\n this._mouseTip = new _gd_modules_domComponent__WEBPACK_IMPORTED_MODULE_3__[\"MouseTip\"](viewer);\n\n window.onmousemove = function (e) {\n var position = {\n x: e.clientX + 10,\n y: e.clientY - 10\n };\n\n _this._mouseTip.showAt(position);\n };\n }\n /**\n * 全屏色彩分析\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SceneColor, [{\n key: \"fullScreenAnalysis\",\n value: function fullScreenAnalysis() {\n var _this2 = this;\n\n return new Promise(function (resolve) {\n _this2._viewer.render(); //刷新渲染\n\n\n var viewer = _this2._viewer;\n var canvas = viewer.scene.canvas;\n var image = canvas.toDataURL('image/png').replace('image/png', 'image/octet-stream');\n var newImage = new Image();\n newImage.src = image;\n\n newImage.onload = function () {\n var canvas2 = document.getElementById('colorAnalysis-canvas');\n canvas2.width = newImage.width;\n canvas2.height = newImage.height;\n var context = canvas2.getContext('2d');\n context.drawImage(newImage, 0, 0);\n var imageData = context.getImageData(0, 0, canvas2.width, canvas2.height);\n resolve(_this2.analysisColor(imageData.data));\n };\n });\n }\n /**\n * 绘制区域色彩分析范围\n */\n\n }, {\n key: \"drawRegion\",\n value: function drawRegion() {\n var _this3 = this;\n\n var viewer = this._viewer;\n viewer.scene.screenSpaceCameraController.enableRotate = false;\n viewer.scene.screenSpaceCameraController.enableZoom = false;\n viewer.scene.screenSpaceCameraController.enableTilt = false;\n var str = '<span>左键选点,拖动绘制范围</span>';\n\n this._mouseTip.setVisible(true);\n\n this._mouseTip.setMouseTip(str);\n\n this.regionCartesian2 = [];\n\n this._handler.setInputAction(function (clickEvent) {\n console.log(clickEvent);\n\n if (_this3.regionCartesian2.length === 2) {\n _this3.regionCartesian2.push(clickEvent.position.x);\n\n _this3.regionCartesian2.push(clickEvent.position.y);\n\n _this3.analysisConditions = true;\n } else {\n _this3.regionCartesian2 = [];\n\n _this3.regionCartesian2.push(clickEvent.position.x);\n\n _this3.regionCartesian2.push(clickEvent.position.y);\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n this._handler.setInputAction(function (movement) {\n if (_this3.regionCartesian2.length === 2) {\n _this3.showMask(movement.endPosition.x, movement.endPosition.y);\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n\n this._handler.setInputAction(function () {\n _this3.clearRegion();\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }\n }, {\n key: \"showMask\",\n value: function showMask(x, y) {\n var xMin = this.regionCartesian2[0] < x ? this.regionCartesian2[0] : x;\n var yMin = this.regionCartesian2[1] < y ? this.regionCartesian2[1] : y;\n var xMax = this.regionCartesian2[0] < x ? x : this.regionCartesian2[0];\n var yMax = this.regionCartesian2[1] < y ? y : this.regionCartesian2[1];\n var width = xMax - xMin;\n var height = yMax - yMin;\n this.area = {\n x: xMin,\n y: yMin,\n width: width,\n height: height\n };\n console.log(this.area);\n this.setMaskPosition(this.area);\n }\n }, {\n key: \"setMaskPosition\",\n value: function setMaskPosition(area) {\n var maskDiv = document.getElementById('maskDivs');\n\n if (maskDiv) {\n maskDiv.style.display = 'block'; // 绘制区域左侧坐标偏移,避免遮挡cesium\n\n maskDiv.style.marginLeft = area.x + 3 + 'px';\n maskDiv.style.top = area.y + 'px'; // 宽度缩小,避免完全遮挡cesium无法触发点击事件\n\n maskDiv.style.width = area.width > 8 ? area.width - 8 + 'px' : area.width + 'px';\n maskDiv.style.height = area.height + 'px';\n }\n }\n /**\n * 清除区域色彩分析范围\n */\n\n }, {\n key: \"clearRegion\",\n value: function clearRegion() {\n var viewer = this._viewer;\n viewer.scene.screenSpaceCameraController.enableRotate = true;\n viewer.scene.screenSpaceCameraController.enableZoom = true;\n viewer.scene.screenSpaceCameraController.enableTilt = true;\n this.analysisConditions = false;\n document.getElementById('maskDivs').style.display = 'none';\n\n this._mouseTip.setVisible(false);\n\n this._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n this._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n\n this._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }\n /**\n * 区域色彩分析\n */\n\n }, {\n key: \"buildRegionAnalysis\",\n value: function buildRegionAnalysis() {\n var _this4 = this;\n\n return new Promise(function (resolve) {\n if (!_this4.analysisConditions) {\n throw new Error('未创建分析区域');\n }\n\n _this4._viewer.render(); //刷新渲染\n\n\n var viewer = _this4._viewer;\n var canvas = viewer.scene.canvas;\n var image = canvas.toDataURL('image/png').replace('image/png', 'image/octet-stream');\n var newImage = new Image();\n newImage.src = image;\n\n newImage.onload = function () {\n var canvas2 = document.getElementById('colorAnalysis-canvas');\n canvas2.width = newImage.width;\n canvas2.height = newImage.height;\n var context = canvas2.getContext('2d');\n context.drawImage(newImage, 0, 0);\n var imageData = context.getImageData(_this4.area.x, _this4.area.y, _this4.area.width, _this4.area.height);\n resolve(_this4.analysisColor(imageData.data));\n };\n });\n }\n /**\n * 画布像素颜色对比分析\n * @param {Uint8ClampedArray} data 画布像素颜色值数组。\n * @return {Object} 颜色分类对象\n */\n\n }, {\n key: \"analysisColor\",\n value: function analysisColor(data) {\n var colorObj = {};\n var minColorArr = [];\n\n for (var i = 0, len = data.length; i < len; i += 4) {\n if (data[i] === 80 && data[i + 1] === 107 && data[i + 2] === 47 || data[i] === 0 && data[i + 1] === 0 && data[i + 2] === 0) {\n continue;\n }\n\n var colorArr = [data[i], data[i + 1], data[i + 2]];\n var finalColor = this.getColorDistance(colorArr, colorList[0].Rgb);\n var stColor = colorList[0];\n\n for (var j = 0, color = colorList.length; j < color; j++) {\n var colorDistance = this.getColorDistance(colorArr, colorList[j].Rgb);\n\n if (finalColor > colorDistance) {\n finalColor = colorDistance;\n stColor = colorList[j];\n }\n }\n\n minColorArr.push(stColor);\n }\n\n for (var k = 0, l = minColorArr.length; k < l; k++) {\n if (colorObj[minColorArr[k].Name] && colorObj[minColorArr[k].Name].count) {\n colorObj[minColorArr[k].Name].count += 1;\n } else {\n colorObj[minColorArr[k].Name] = {};\n colorObj[minColorArr[k].Name].count = 1;\n }\n\n colorObj[minColorArr[k].Name].color = 'rgb(' + minColorArr[k].Rgb.toString() + ')';\n }\n\n return this.colorValSort(colorObj);\n }\n /**\n * 颜色值从大到小排序\n * @param {Object} obj 颜色分类对象。\n * @return {Object} 排序对象\n */\n\n }, {\n key: \"colorValSort\",\n value: function colorValSort(obj) {\n var newKey = Object.keys(obj).sort(function (key1, key2) {\n return obj[key2]['count'] - obj[key1]['count']; // eslint-disable-line\n });\n var newObj = {};\n var length = newKey.length;\n\n for (var i = 0; i < length; i++) {\n newObj[newKey[i]] = obj[newKey[i]];\n }\n\n return this.consolidatedData(newObj);\n }\n /**\n * 颜色值总数小于1%的合并为其他颜色\n * @param {Object} obj 颜色分类对象。\n * @return {Object} 排序对象\n */\n\n }, {\n key: \"consolidatedData\",\n value: function consolidatedData(obj) {\n var totalValue = 0;\n\n for (var item in obj) {\n totalValue += obj[item].count;\n }\n\n var newCount = 0;\n\n for (var _item in obj) {\n if (obj[_item].count < totalValue / 100) {\n // eslint-disable-next-line no-undef\n newCount += obj[_item].count;\n delete obj[_item];\n }\n }\n\n obj['其他'] = {\n count: newCount,\n color: 'rgb(255,255,255)'\n };\n return obj;\n }\n /**\n * 比较两个RGB的色差\n */\n\n }, {\n key: \"getColorDistance\",\n value: function getColorDistance(ColorA, ColorB) {\n var rmeam = (ColorA[0] + ColorB[0]) / 2;\n var absR = ColorA[0] - ColorB[0];\n var absG = ColorA[1] - ColorB[1];\n var absB = ColorA[2] - ColorB[2];\n return Math.sqrt((2 + rmeam / 256) * absR * absR + 4 * absG * absG + (2 + (255 - rmeam) / 256) * absB * absB);\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n this._handler = this._handler && this._handler.destroy();\n var canvas = document.getElementById('colorAnalysis-canvas');\n document.body.removeChild(canvas);\n this._mouseTip && this._mouseTip.removeTip();\n this._mouseTip = null;\n window.onmousemove = null;\n }\n }]);\n\n return SceneColor;\n}();\n\nvar colorList = [{\n Rgb: [0, 0, 0],\n Name: '黑色'\n}, {\n Rgb: [41, 36, 33],\n Name: '象牙黑'\n}, {\n Rgb: [128, 138, 135],\n Name: '冷灰'\n}, {\n Rgb: [192, 192, 192],\n Name: '灰色'\n}, {\n Rgb: [128, 118, 105],\n Name: '暖灰'\n}, {\n Rgb: [118, 128, 105],\n Name: '石板灰'\n}, {\n Rgb: [252, 245, 245],\n Name: '白烟灰'\n}, {\n Rgb: [255, 245, 238],\n Name: '贝壳灰'\n}, {\n Rgb: [255, 235, 205],\n Name: '杏仁灰'\n}, {\n Rgb: [250, 240, 230],\n Name: '亚麻灰'\n}, {\n Rgb: [251, 255, 242],\n Name: '象牙灰'\n}, {\n Rgb: [202, 235, 216],\n Name: '天蓝灰'\n}, {\n Rgb: [255, 255, 255],\n Name: '白色'\n}, {\n Rgb: [0, 255, 0],\n Name: '绿色'\n}, {\n Rgb: [127, 255, 0],\n Name: '黄绿色'\n}, {\n Rgb: [34, 139, 34],\n Name: '森林绿'\n}, {\n Rgb: [107, 142, 35],\n Name: '草绿色'\n}, {\n Rgb: [85, 102, 0],\n Name: '黑黄'\n}, {\n Rgb: [0, 255, 255],\n Name: '青色'\n}, {\n Rgb: [64, 224, 205],\n Name: '青绿色'\n}, {\n Rgb: [3, 168, 158],\n Name: '锰蓝'\n}, {\n Rgb: [8, 46, 84],\n Name: '靛青色'\n}, {\n Rgb: [0, 0, 255],\n Name: '蓝色'\n}, {\n Rgb: [25, 25, 112],\n Name: '深蓝'\n}, {\n Rgb: [0, 199, 140],\n Name: '土耳其蓝'\n}, {\n Rgb: [255, 255, 0],\n Name: '黄色'\n}, {\n Rgb: [255, 227, 132],\n Name: '粉黄'\n}, {\n Rgb: [227, 207, 87],\n Name: '香蕉黄'\n}, {\n Rgb: [255, 215, 0],\n Name: '金黄'\n}, {\n Rgb: [255, 153, 18],\n Name: '镉黄'\n}, {\n Rgb: [255, 125, 64],\n Name: '肉黄'\n}, {\n Rgb: [255, 128, 0],\n Name: '橘黄'\n}, {\n Rgb: [237, 145, 33],\n Name: '萝卜黄'\n}, {\n Rgb: [255, 0, 0],\n Name: '红色'\n}, {\n Rgb: [227, 23, 13],\n Name: '镉红'\n}, {\n Rgb: [255, 192, 203],\n Name: '粉红'\n}, {\n Rgb: [172, 23, 31],\n Name: '印度红'\n}, {\n Rgb: [116, 0, 0],\n Name: '黑红'\n}, {\n Rgb: [255, 0, 255],\n Name: '深红'\n}, {\n Rgb: [255, 127, 80],\n Name: '珊瑚红'\n}, {\n Rgb: [255, 99, 71],\n Name: '番茄红'\n}, {\n Rgb: [188, 143, 143],\n Name: '玫瑰红'\n}, {\n Rgb: [199, 97, 20],\n Name: '土色'\n}, {\n Rgb: [156, 102, 31],\n Name: '砖红'\n}, {\n Rgb: [199, 97, 20],\n Name: '肖贡土色'\n}, {\n Rgb: [244, 164, 95],\n Name: '沙棕色'\n}, {\n Rgb: [210, 180, 140],\n Name: '棕褐色'\n}, {\n Rgb: [128, 42, 42],\n Name: '棕色'\n}, {\n Rgb: [160, 82, 45],\n Name: '赫色'\n}, {\n Rgb: [252, 230, 202],\n Name: '蛋壳灰'\n}, {\n Rgb: [160, 32, 240],\n Name: '肖贡土色'\n}, {\n Rgb: [138, 43, 226],\n Name: '紫罗兰'\n}, {\n Rgb: [153, 51, 250],\n Name: '胡紫色'\n}, {\n Rgb: [218, 112, 214],\n Name: '淡紫色'\n}];\n/* harmony default export */ __webpack_exports__[\"default\"] = (SceneColor);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL1NjZW5lQ29sb3IuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2FuYWx5c2lzL1NjZW5lQ29sb3IuanM/YWVjNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3Ig5YiY562WXG4gKiBARGF0ZSAyMDIyLTA5LTMwIDk6NTdcbiAqIEBEZXNjcmlwdGlvbiDlnLrmma/oibLlvanliIbmnpBcbiAqL1xuXG5pbXBvcnQge0Nlc2l1bX0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHtNb3VzZVRpcH0gZnJvbSAnQGdkLW1vZHVsZXMvZG9tQ29tcG9uZW50J1xuXG5jbGFzcyBTY2VuZUNvbG9yIHtcbiAgY29uc3RydWN0b3Iodmlld2VyKSB7XG4gICAgdGhpcy5fdmlld2VyID0gdmlld2VyLl9kZWxlZ2F0ZSB8fCB2aWV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ckRpc3RhbmNlKSB7XG4gICAgICAgICAgZmluYWxDb2xvciA9IGNvbG9yRGlzdGFuY2VcbiAgICAgICAgICBzdENvbG9yID0gY29sb3JMaXN0W2pdXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIG1pbkNvbG9yQXJyLnB1c2goc3RDb2xvcilcbiAgICB9XG4gICAgZm9yIChsZXQgayA9IDAsIGwgPSBtaW5Db2xvckFyci5sZW5ndGg7IGsgPCBsOyBrKyspIHtcbiAgICAgIGlmIChcbiAgICAgICAgY29sb3JPYmpbbWluQ29sb3JBcnJba10uTmFtZV0gJiZcbiAgICAgICAgY29sb3JPYmpbbWluQ29sb3JBcnJba10uTmFtZV0uY291bnRcbiAgICAgICkge1xuICAgICAgICBjb2xvck9ialttaW5Db2xvckFycltrXS5OYW1lXS5jb3VudCArPSAxXG4gICAgICB9IGVsc2Uge1xuICAgICAgICBjb2xvck9ialttaW5Db2xvckFycltrXS5OYW1lXSA9IHt9XG4gICAgICAgIGNvbG9yT2JqW21pbkNvbG9yQXJyW2tdLk5hbWVdLmNvdW50ID0gMVxuICAgICAgfVxuICAgICAgY29sb3JPYmpbbWluQ29sb3JBcnJba10uTmFtZV0uY29sb3IgPVxuICAgICAgICAncmdiKCcgKyBtaW5Db2xvckFycltrXS5SZ2IudG9TdHJpbmcoKSArICcpJ1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5jb2xvclZhbFNvcnQoY29sb3JPYmopXG4gIH1cblxuICAvKipcbiAgICog6aKc6Imy5YC85LuO5aSn5Yiw5bCP5o6S5bqPXG4gICAqIEBwYXJhbSB7T2JqZWN0fSBvYmog6aKc6Imy5YiG57G75a+56LGh44CCXG4gICAqIEByZXR1cm4ge09iamVjdH0g5o6S5bqP5a+56LGhXG4gICAqL1xuICBjb2xvclZhbFNvcnQob2JqKXtcbiAgICBsZXQgbmV3S2V5ID0gT2JqZWN0LmtleXMob2JqKS5zb3J0KGZ1bmN0aW9uIChrZXkxLCBrZXkyKSB7XG4gICAgICByZXR1cm4gb2JqW2tleTJdWydjb3VudCddIC0gb2JqW2tleTFdWydjb3VudCddIC8vIGVzbGludC1kaXNhYmxlLWxpbmVcbiAgICB9KVxuICAgIGxldCBuZXdPYmogPSB7fVxuICAgIGxldCBsZW5ndGggPSBuZXdLZXkubGVuZ3RoXG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBsZW5ndGg7IGkrKykge1xuICAgICAgbmV3T2JqW25ld0tleVtpXV0gPSBvYmpbbmV3S2V5W2ldXVxuICAgIH1cbiAgICByZXR1cm4gdGhpcy5jb25zb2xpZGF0ZWREYXRhKG5ld09iailcbiAgfVxuXG4gIC8qKlxuICAgKiDpopzoibLlgLzmgLvmlbDlsI/kuo4xJeeahOWQiOW5tuS4uuWFtuS7luminOiJslxuICAgKiBAcGFyYW0ge09iamVjdH0gb2JqIOminOiJsuWIhuexu+WvueixoeOAglxuICAgKiBAcmV0dXJuIHtPYmplY3R9IOaOkuW6j+WvueixoVxuICAgKi9cbiAgY29uc29saWRhdGVkRGF0YShvYmopIHtcbiAgICBsZXQgdG90YWxWYWx1ZSA9IDBcbiAgICBmb3IgKGNvbnN0IGl0ZW0gaW4gb2JqKSB7XG4gICAgICB0b3RhbFZhbHVlICs9IG9ialtpdGVtXS5jb3VudFxuICAgIH1cbiAgICBsZXQgbmV3Q291bnQgPSAwXG4gICAgZm9yIChjb25zdCBpdGVtIGluIG9iaikge1xuICAgICAgaWYgKG9ialtpdGVtXS5jb3VudCA8IHRvdGFsVmFsdWUgLyAxMDApIHtcbiAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIG5vLXVuZGVmXG4gICAgICAgIG5ld0NvdW50ICs9IG9ialtpdGVtXS5jb3VudFxuICAgICAgICBkZWxldGUgb2JqW2l0ZW1dXG4gICAgICB9XG4gICAgfVxuICAgIG9ialsn5YW25LuWJ10gPSB7XG4gICAgICBjb3VudDogbmV3Q291bnQsXG4gICAgICBjb2xvcjogJ3JnYigyNTUsM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UE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/analysis/SceneColor.js\n");
- /***/ }),
- /***/ "./modules/analysis/Shadows.js":
- /*!*************************************!*\
- !*** ./modules/analysis/Shadows.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-05-18 17:36\n */\n\nvar DEF_OPTS = {\n startTime: new Date(8),\n multiplier: 3600,\n darkness: 0.3\n};\n\nvar Shadows = /*#__PURE__*/function () {\n function Shadows(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Shadows);\n\n this._viewer = viewer._delegate || viewer;\n }\n /**\n * 开启阴影效果\n * @param {object} options 起始时间,速率\n * @param {Date} options.startTime 起始时间\n * @param {Number} options.multiplier 速率\n * @param {Number} options.darkness 阴影黑暗程度\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Shadows, [{\n key: \"start\",\n value: function start() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var viewer = this._viewer;\n var startTime;\n startTime = options.startTime ? options.startTime : DEF_OPTS.startTime;\n\n if (JSON.stringify(startTime) === 'null') {\n throw new Error('时间格式不正确');\n }\n\n var multiplier = options.multiplier || DEF_OPTS.multiplier;\n viewer.clockViewModel.currentTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.fromDate(startTime);\n viewer.clock.shouldAnimate = true;\n viewer.clock.multiplier = multiplier;\n viewer.scene.globe.enableLighting = true;\n viewer.shadows = true;\n viewer.shadowMap.darkness = options.darkness || DEF_OPTS.darkness;\n }\n }, {\n key: \"stop\",\n value: function stop() {\n var viewer = this._viewer;\n viewer.clock.shouldAnimate = false;\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.toDate(viewer.clockViewModel.currentTime);\n }\n }, {\n key: \"close\",\n value: function close() {\n var viewer = this._viewer;\n viewer.scene.globe.enableLighting = false;\n viewer.shadows = false;\n var current = new Date();\n current.setHours(12);\n current.setMinutes(0);\n viewer.clockViewModel.currentTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.fromDate(current);\n viewer.clock.shouldAnimate = false;\n }\n }]);\n\n return Shadows;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Shadows);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL1NoYWRvd3MuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2FuYWx5c2lzL1NoYWRvd3MuanM/ZTgzOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3Ig5YiY562WXG4gKiBARGF0ZSAyMDIyLTA1LTE4IDE3OjM2XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuXG5jb25zdCBERUZfT1BUUyA9IHtcbiAgc3RhcnRUaW1lOiBuZXcgRGF0ZSg4KSxcbiAgbXVsdGlwbGllcjogMzYwMCxcbiAgZGFya25lc3M6IDAuM1xufVxuXG5jbGFzcyBTaGFkb3dzIHtcbiAgY29uc3RydWN0b3Iodmlld2VyKSB7XG4gICAgdGhpcy5fdmlld2VyID0gdmlld2VyLl9kZWxlZ2F0ZSB8fCB2aWV3ZXJcbiAgfVxuXG4gIC8qKlxuICAgKiAg5byA5ZCv6Zi05b2x5pWI5p6cXG4gICAqIEBwYXJhbSB7b2JqZWN0fSBvcHRpb25zIOi1t+Wni+aXtumXtO+8jOmAn+eOh1xuICAgKiBAcGFyYW0ge0RhdGV9IG9wdGlvbnMuc3RhcnRUaW1lIOi1t+Wni+aXtumXtFxuICAgKiBAcGFyYW0ge051bWJlcn0gb3B0aW9ucy5tdWx0aXBsaWVyIOmAn+eOh1xuICAgKiBAcGFyYW0ge051bWJlcn0gb3B0aW9ucy5kYXJrbmVzcyDpmLTlvbHpu5HmmpfnqIvluqZcbiAgICovXG4gIHN0YXJ0KG9wdGlvbnMgPSB7fSkge1xuICAgIGxldCB2aWV3ZXIgPSB0aGlzLl92aWV3ZXJcbi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YWxzZTtcbiAgICB2aWV3ZXIuc2hhZG93cyA9IGZhbHNlXG4gICAgbGV0IGN1cnJlbnQgPSBuZXcgRGF0ZSgpXG4gICAgY3VycmVudC5zZXRIb3VycygxMilcbiAgICBjdXJyZW50LnNldE1pbnV0ZXMoMClcbiAgICB2aWV3ZXIuY2xvY2tWaWV3TW9kZWwuY3VycmVudFRpbWUgPSBDZXNpdW0uSnVsaWFuRGF0ZS5mcm9tRGF0ZShjdXJyZW50KTtcbiAgICB2aWV3ZXIuY2xvY2suc2hvdWxkQW5pbWF0ZSA9IGZhbHNlXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgU2hhZG93c1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFIQTtBQUNBO0FBS0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFEQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/analysis/Shadows.js\n");
- /***/ }),
- /***/ "./modules/analysis/SightLine.js":
- /*!***************************************!*\
- !*** ./modules/analysis/SightLine.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/draw/drawGraphics */ \"./modules/draw/drawGraphics.js\");\n/* harmony import */ var _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/math/mathCalculation */ \"./modules/math/mathCalculation.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-05-31 10:00\n * @Description 通视分析\n */\n\n\n\n\nvar SightLine = /*#__PURE__*/function () {\n function SightLine(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SightLine);\n\n this._viewer = viewer._delegate || viewer;\n this._layer = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CustomDataSource('sightLine-layer');\n\n this._viewer.dataSources.add(this._layer);\n\n this._viewPosition = null;\n this._targetPoints = [];\n this._visibleColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.GREEN;\n this._hiddenColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.RED;\n this._lineWidth = 5;\n }\n /**\n * @Description 添加通视点\n * @param {Object} options 通视点信息。\n * @param {String} options.name 通视点ID。\n * @param {Cartesian3} options.position 通视点坐标\n * @return {Object} 通视点结果信息\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SightLine, [{\n key: \"addTargetPoint\",\n value: function addTargetPoint() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (!this._viewPosition) {\n throw new Error('未设置观察点');\n }\n\n var uuid = URL.createObjectURL(new Blob()).substr(-36);\n var sightResult = {\n id: options.name || uuid,\n isViewer: false,\n obstacles: null,\n visibleDIST: null,\n hiddenDIST: null\n };\n var targetDIST = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].getLengthValue(this._viewPosition, options.position).toFixed(2);\n var direction = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.normalize(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.subtract(options.position, this._viewPosition, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3()), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n var ray = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Ray(this._viewPosition, direction);\n\n var result = this._viewer.scene.pickFromRay(ray);\n\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(result) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(result.position)) {\n sightResult.visibleDIST = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].getLengthValue(this._viewPosition, result.position).toFixed(2); // if (sightResult.visibleDIST > targetDIST) { // 射线检测距离比通视两点长时,视为通视,返回两点计算结果\n // sightResult.isViewer = true\n // sightResult.visibleDIST = targetDIST\n // sightResult.hiddenDIST = 0\n // let visibleLine = DrawGraphics.staticLine([this._viewPosition, options.position],{\n // id: options.name || uuid,\n // width: this._lineWidth,\n // color: this._visibleColor,\n // })\n // this._layer.entities.add(visibleLine)\n // this._targetPoints.push(sightResult)\n // return\n // }\n // 射线检测距离小于通视两点距,返回障碍检测结果\n\n sightResult.hiddenDIST = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_4__[\"default\"].getLengthValue(options.position, result.position).toFixed(2);\n\n if (sightResult.hiddenDIST < 0.5) {\n // 两点之间存在射线碰撞,但碰撞点与目标点距离小于0.5时,视为通视\n sightResult.isViewer = true;\n sightResult.visibleDIST = targetDIST;\n sightResult.hiddenDIST = 0;\n\n var _visibleLine = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_3__[\"default\"].staticLine([this._viewPosition, options.position], {\n id: options.name || uuid,\n width: this._lineWidth,\n color: this._visibleColor\n });\n\n this._layer.entities.add(_visibleLine);\n\n this._targetPoints.push(sightResult);\n\n return sightResult;\n }\n\n sightResult.obstacles = result.position;\n var visibleLine = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_3__[\"default\"].staticLine([this._viewPosition, result.position], {\n id: options.name || uuid,\n width: this._lineWidth,\n color: this._visibleColor\n });\n var hiddenName = options.name || uuid + '_hidden';\n var hiddenLine = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_3__[\"default\"].staticLine([options.position, result.position], {\n id: hiddenName,\n width: this._lineWidth,\n color: this._hiddenColor\n });\n\n this._layer.entities.add(visibleLine);\n\n this._layer.entities.add(hiddenLine);\n\n this._targetPoints.push(sightResult);\n } else {\n // 没有射线碰撞点时视为通视\n sightResult.isViewer = true;\n sightResult.visibleDIST = targetDIST;\n sightResult.hiddenDIST = 0;\n\n var _visibleLine2 = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_3__[\"default\"].staticLine([this._viewPosition, options.position], {\n id: options.name || uuid,\n width: this._lineWidth,\n color: this._visibleColor\n });\n\n this._layer.entities.add(_visibleLine2);\n\n this._targetPoints.push(sightResult);\n }\n\n return sightResult;\n }\n }, {\n key: \"getBarrierPoint\",\n value: function getBarrierPoint(name) {\n return this._targetPoints.find(function (value) {\n return value.id === name;\n });\n }\n }, {\n key: \"removeTargetPoint\",\n value: function removeTargetPoint(name) {\n var target = this._layer.entities.getById(name);\n\n if (!target) {\n return false;\n }\n\n this._layer.entities.remove(target);\n\n var hiddenName = name + '_hidden';\n\n var hidden = this._layer.entities.getById(hiddenName);\n\n hidden && this._layer.entities.remove(hidden);\n\n var result = this._targetPoints.findIndex(function (value) {\n return value.id === name;\n });\n\n this._targetPoints.splice(result, 1);\n\n console.log(result);\n console.log(this._targetPoints);\n return true;\n }\n }, {\n key: \"removeAllTargetPoint\",\n value: function removeAllTargetPoint() {\n this._targetPoints = [];\n\n this._layer.entities.removeAll();\n }\n }, {\n key: \"viewPosition\",\n get: function get() {\n return this._viewPosition;\n },\n set: function set(cartesian3) {\n this._viewPosition = cartesian3;\n }\n }, {\n key: \"hiddenColor\",\n get: function get() {\n return this._hiddenColor;\n },\n set: function set(color) {\n this._hiddenColor = color;\n }\n }, {\n key: \"visibleColor\",\n get: function get() {\n return this._visibleColor;\n },\n set: function set(color) {\n this._visibleColor = color;\n }\n }, {\n key: \"lineWidth\",\n get: function get() {\n return this._lineWidth;\n },\n set: function set(number) {\n this._lineWidth = number;\n }\n }]);\n\n return SightLine;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SightLine);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL1NpZ2h0TGluZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ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7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/analysis/SightLine.js\n");
- /***/ }),
- /***/ "./modules/analysis/SkyLine.js":
- /*!*************************************!*\
- !*** ./modules/analysis/SkyLine.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-06-15 16:36\n * @Description\n */\n\n/**\n * @Description 默认设置\n * @param color 天际线颜色\n */\n\nvar DEF_OPTS = {\n color: {\n red: 255,\n green: 0,\n blue: 0,\n alpha: 255\n },\n width: 3.0\n};\n\nvar SkyLine = /*#__PURE__*/function () {\n /**\n * @Description 实例化天际线分析\n * @param {Cesium.Viewer} viewer Cesium三维视窗。\n */\n function SkyLine(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SkyLine);\n\n this._viewer = viewer._delegate || viewer;\n this._byteColor = DEF_OPTS.color;\n this._width = DEF_OPTS.width;\n this._skyLineColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.fromBytes(this._byteColor.red, this._byteColor.green, this._byteColor.blue, this._byteColor.alpha);\n this.collection = this._viewer.scene.postProcessStages;\n var canvas = document.createElement('canvas');\n canvas.id = 'skyline-canvas';\n canvas.style.display = 'none';\n document.body.appendChild(canvas);\n }\n /**\n * @Description 执行分析\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SkyLine, [{\n key: \"build\",\n value: function build() {\n this.clearSkyLine();\n this.drawSkyLine();\n }\n /**\n * @Description 场景绘制天际线\n */\n\n }, {\n key: \"drawSkyLine\",\n value: function drawSkyLine() {\n var _this = this;\n\n var edgeDetection = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n fragmentShader: 'uniform sampler2D depthTexture;\\n\\\nuniform float length;\\n\\\nuniform vec4 color;\\n\\\nuniform float width;\\n\\\n\\n\\\nvarying vec2 v_textureCoordinates;\\n\\\n\\n\\\nvoid main(void)\\n\\\n{\\n\\\n float directions[3];\\n\\\n directions[0] = -1.0;\\n\\\n directions[1] = 0.0;\\n\\\n directions[2] = 1.0;\\n\\\n\\n\\\n float scalars[3];\\n\\\n scalars[0] = 3.0;\\n\\\n scalars[1] = 10.0;\\n\\\n scalars[2] = 3.0;\\n\\\n\\n\\\n float padx = width / czm_viewport.z;\\n\\\n float pady = width / czm_viewport.w;\\n\\\n\\n\\\n#ifdef CZM_SELECTED_FEATURE\\n\\\n bool selected = false;\\n\\\n for (int i = 0; i < 3; ++i)\\n\\\n {\\n\\\n float dir = directions[i];\\n\\\n selected = selected || czm_selected(vec2(-padx, dir * pady));\\n\\\n selected = selected || czm_selected(vec2(padx, dir * pady));\\n\\\n selected = selected || czm_selected(vec2(dir * padx, -pady));\\n\\\n selected = selected || czm_selected(vec2(dir * padx, pady));\\n\\\n if (selected)\\n\\\n {\\n\\\n break;\\n\\\n }\\n\\\n }\\n\\\n if (!selected)\\n\\\n {\\n\\\n gl_FragColor = vec4(color.rgb, 0.0);\\n\\\n return;\\n\\\n }\\n\\\n#endif\\n\\\n\\n\\\n float horizEdge = 0.0;\\n\\\n float vertEdge = 0.0;\\n\\\n\\n\\\n for (int i = 0; i < 3; ++i)\\n\\\n {\\n\\\n float dir = directions[i];\\n\\\n float scale = scalars[i];\\n\\\n\\n\\\n horizEdge -= texture2D(depthTexture, v_textureCoordinates + vec2(-padx, dir * pady)).x * scale;\\n\\\n horizEdge += texture2D(depthTexture, v_textureCoordinates + vec2(padx, dir * pady)).x * scale;\\n\\\n\\n\\\n vertEdge -= texture2D(depthTexture, v_textureCoordinates + vec2(dir * padx, -pady)).x * scale;\\n\\\n vertEdge += texture2D(depthTexture, v_textureCoordinates + vec2(dir * padx, pady)).x * scale;\\n\\\n }\\n\\\n\\n\\\n float len = sqrt(horizEdge * horizEdge + vertEdge * vertEdge);\\n\\\n gl_FragColor = vec4(color.rgb, len > length ? color.a : 0.0);\\n\\\n}',\n uniforms: {\n length: 0.25,\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.YELLOW,\n width: this._width // float 类型(必须有小数点)\n\n }\n });\n var postProcessStage = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n name: 'czm_skylinetemp',\n fragmentShader: 'uniform sampler2D colorTexture;' + 'uniform sampler2D depthTexture;' + 'varying vec2 v_textureCoordinates;' + 'void main(void)' + '{' + 'float depth = czm_readDepth(depthTexture, v_textureCoordinates);' + 'vec4 color = texture2D(colorTexture, v_textureCoordinates);' + 'if(depth<1.0 - 0.000001){' + 'gl_FragColor = color;' + '}' + 'else{' + 'gl_FragColor = vec4(1.0,0.0,0.0,1.0);' + '}' + '}'\n });\n var postProcessStage1 = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n name: 'czm_skylinetemp1',\n fragmentShader: 'uniform sampler2D colorTexture;' + 'uniform sampler2D redTexture;' + 'uniform sampler2D silhouetteTexture;' + 'uniform vec4 skyLineColor;' + 'varying vec2 v_textureCoordinates;' + 'void main(void)' + '{' + 'vec4 redcolor=texture2D(redTexture, v_textureCoordinates);' + 'vec4 silhouetteColor = texture2D(silhouetteTexture, v_textureCoordinates);' + 'vec4 color = texture2D(colorTexture, v_textureCoordinates);' + 'if(redcolor.r == 1.0){' + 'gl_FragColor = mix(color, skyLineColor, silhouetteColor.a);' + '}' + 'else{' + 'gl_FragColor = color;' + '}' + '}',\n uniforms: {\n redTexture: postProcessStage.name,\n silhouetteTexture: edgeDetection.name,\n skyLineColor: function skyLineColor() {\n return _this._skyLineColor;\n }\n }\n });\n var postProcessStageComposite = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageComposite({\n name: 'czm_skyline',\n stages: [edgeDetection, postProcessStage, postProcessStage1],\n inputPreviousStageTexture: false,\n uniforms: edgeDetection.uniforms\n });\n this.postProcessStage = this.collection.add(postProcessStageComposite);\n }\n /**\n * @Description 将cesium场景用画布重绘\n */\n\n }, {\n key: \"drawCanvas\",\n value: function drawCanvas() {\n var _this2 = this;\n\n return new Promise(function (resolve) {\n _this2._viewer.render(); //刷新渲染\n\n\n var canvas = _this2._viewer.scene.canvas;\n var image = canvas.toDataURL('image/png').replace('image/png', 'image/octet-stream');\n var newImage = new Image(); // 这里将src传入需要获取信息的图片地址或base64\n\n newImage.src = image;\n\n newImage.onload = function () {\n var canvas2 = document.getElementById('skyline-canvas');\n var width = newImage.width;\n canvas2.width = width;\n var height = newImage.height;\n canvas2.height = height;\n var context = canvas2.getContext('2d');\n context.drawImage(newImage, 0, 0);\n var imageData = context.getImageData(0, 0, canvas2.width, canvas2.height);\n resolve(_this2.getCanvasData(imageData.data, width, height));\n };\n });\n }\n /**\n * @Description 提取画布天际线信息\n */\n\n }, {\n key: \"getCanvasData\",\n value: function getCanvasData(data, width, height) {\n var lineData = [];\n var currentY, currentX, percentageX, percentageY, dataIndex;\n\n for (var i = 1; i <= height; i++) {\n currentY = i;\n percentageY = 1 - currentY / height;\n\n for (var j = 1; j <= width; j++) {\n currentX = j;\n percentageX = currentX / width;\n dataIndex = ((i - 1) * width + j - 1) * 4;\n\n if (data[dataIndex] === this._byteColor.red && data[dataIndex + 1] === this._byteColor.green && data[dataIndex + 2] === this._byteColor.blue) {\n lineData.push({\n bufferX: currentX,\n bufferY: currentY,\n x: percentageX,\n y: percentageY\n });\n }\n }\n }\n\n if (lineData.length === 0) {\n throw new Error('天际线数据为空');\n } // 将所有点按x从小到大排序\n\n\n lineData.sort(function (a, b) {\n if (a.x === b.x) {\n // 同一X坐标按Y从小到大排序,便于过滤取小值,在场景中高度最高\n return a.y - b.y;\n }\n\n return a.x - b.x;\n }); // 将同一X坐标的点取Y值最大的点,过滤得到天际线数组\n\n var skyLineData = {\n drawingBufferXArr: [lineData[0].bufferX],\n drawingBufferYArr: [lineData[0].bufferY],\n x: [lineData[0].x],\n y: [lineData[0].y]\n };\n\n for (var _i = 1, len = lineData.length; _i < len; _i++) {\n if (lineData[_i].bufferX !== lineData[_i - 1].bufferX) {\n skyLineData.x.push(lineData[_i].x);\n skyLineData.y.push(lineData[_i].y);\n skyLineData.drawingBufferXArr.push(lineData[_i].bufferX);\n skyLineData.drawingBufferYArr.push(lineData[_i].bufferY);\n }\n }\n\n return skyLineData;\n }\n /**\n * @Description 获取2D天际线信息\n */\n\n }, {\n key: \"getSkyline2D\",\n value: function getSkyline2D() {\n return this.drawCanvas();\n }\n /**\n * @Description 清除天际线\n */\n\n }, {\n key: \"clearSkyLine\",\n value: function clearSkyLine() {\n this.collection.remove(this.postProcessStage);\n }\n /**\n * @Description 设置天际线颜色\n * @param {Object } options 天际线颜色\n * @param {Number } options.red 红色byte值\n * @param {Number } options.green 绿色byte值\n * @param {Number } options.blue 蓝色byte值\n * @param {Number } options.alpha 透明度byte值\n */\n\n }, {\n key: \"color\",\n set: function set(options) {\n this._byteColor = options;\n this._skyLineColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.fromBytes(this._byteColor.red, this._byteColor.green, this._byteColor.blue, this._byteColor.alpha);\n }\n /**\n * @Description 设置天际线宽度\n * @param {Number } float 像素宽度,浮点数\n */\n\n }, {\n key: \"width\",\n set: function set(float) {\n this._width = float;\n }\n }]);\n\n return SkyLine;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SkyLine);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL1NreUxpbmUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2FuYWx5c2lzL1NreUxpbmUuanM/NWEwYyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3Ig5YiY562WXG4gKiBARGF0ZSAyMDIyLTA2LTE1IDE2OjM2XG4gKiBARGVzY3JpcHRpb25cbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5cbi8qKlxuICogQERlc2NyaXB0aW9uIOm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********************************************!*\
- !*** ./modules/analysis/SunshineDuration.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-05-30 9:12\n * @Description 日照时长分析\n */\n\n\n\n/**\n * @Description 默认设置\n * @param spacing 分析区域间距\n * @param startTime 起始时间\n * @param endTime 结束时间\n * @param subSolarLat 太阳直射纬度\n */\n\nvar DEF_OPTS = {\n spacing: 20,\n startTime: 9,\n endTime: 15,\n subSolarLat: -23.5\n};\n\nvar SunshineDuration = /*#__PURE__*/function () {\n /**\n * @Description 实例化日照分析\n * @param {Cesium.Viewer} viewer Cesium三维视窗。\n */\n function SunshineDuration(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SunshineDuration);\n\n this._viewer = viewer._delegate || viewer;\n this._pointsCollection = this._viewer.scene.primitives.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PointPrimitiveCollection());\n this._startTime = DEF_OPTS.startTime;\n this._endTime = DEF_OPTS.endTime;\n this._spacing = DEF_OPTS.spacing;\n this.subSolarLat = DEF_OPTS.subSolarLat;\n }\n /**\n * @Description 执行分析\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SunshineDuration, [{\n key: \"build\",\n value: function build() {\n if (!this._polygon || !this._bottom || !this._extend) {\n throw new Error('分析区域设置不正确');\n }\n\n this.createAnalysisPoints();\n this.createSolarTrajectory();\n this.analysis();\n this.batchAddPoint();\n }\n /**\n * @Description 创建分析区内等分点\n */\n\n }, {\n key: \"createAnalysisPoints\",\n value: function createAnalysisPoints() {\n this.pointsData = [];\n var lngArray = [];\n var latArray = [];\n var polygonWGS84 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__[\"Transform\"].transformCartesianArrayToWGS84Array(this._polygon);\n var polygon = polygonWGS84.map(function (item) {\n lngArray.push(item.lng);\n latArray.push(item.lat);\n return [item.lng, item.lat];\n });\n var lngMax = Math.max.apply(null, lngArray);\n var lngMin = Math.min.apply(null, lngArray);\n var latMax = Math.max.apply(null, latArray);\n var latMin = Math.min.apply(null, latArray);\n var lngLatSpacing = this._spacing / 1e5;\n var lng, lat, inPolygon;\n var bottomPoints = []; // 构成底面间距坐标点组\n\n for (var i = lngMin; i < lngMax; i = i + lngLatSpacing) {\n lng = i;\n\n for (var j = latMin; j < latMax; j = j + lngLatSpacing) {\n lat = j;\n inPolygon = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_4__[\"isInPolygon\"])([lng, lat], polygon);\n\n if (inPolygon === true) {\n bottomPoints.push({\n lng: lng,\n lat: lat\n });\n }\n }\n }\n\n var len = bottomPoints.length;\n var idNum = 1;\n\n for (var _i = 0; _i < len; _i++) {\n for (var height = 0; height <= this._extend; height += this._spacing) {\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__[\"Transform\"].transformWGS84ToCartesian({\n lng: bottomPoints[_i].lng,\n lat: bottomPoints[_i].lat,\n alt: this._bottom + height\n });\n var pointData = {\n position: position,\n id: 'analysisPoint' + idNum\n };\n idNum++;\n this.pointsData.push(pointData);\n }\n }\n }\n /**\n * @Description 创建不同分析时间太阳所在坐标的轨迹数组,间距为一小时\n */\n\n }, {\n key: \"createSolarTrajectory\",\n value: function createSolarTrajectory() {\n this.solarTrajectory = [];\n var timeSpace = this._endTime - this._startTime;\n var sunLat = this.subSolarLat;\n var sunAlt = 1.5e11;\n var sunLng;\n var sunStartLng = 180 - 15 * (this._startTime - 8);\n var sunPosition;\n\n for (var i = 0; i <= timeSpace; i++) {\n sunLng = sunStartLng - 15 * i;\n sunPosition = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromDegrees(sunLng, sunLat, sunAlt);\n this.solarTrajectory.push(sunPosition);\n }\n }\n /**\n * @Description 通过射线检测开始日照时长分析\n */\n\n }, {\n key: \"analysis\",\n value: function analysis() {\n var pointsLen = this.pointsData.length;\n var sunLen = this.solarTrajectory.length;\n\n for (var i = 0; i < pointsLen; i++) {\n var shadedCount = 0;\n var position = this.pointsData[i].position;\n\n for (var j = 0; j < sunLen; j++) {\n var ray = this.createRay(position, this.solarTrajectory[j]);\n\n var result = this._viewer.scene.pickFromRay(ray);\n\n if (result) {\n shadedCount = shadedCount + 1;\n }\n }\n\n var analysisResult = this.pointSunshineAnalysis(shadedCount);\n this.pointsData[i].sunshineDuration = analysisResult.time;\n this.pointsData[i].color = analysisResult.color;\n }\n }\n /**\n * @Description 从分析点向太阳创建射线\n * @param {Cartesian3} positionA 分析点坐标。\n * @param {Cartesian3} positionB 太阳坐标。\n * @returns {Cesium.Ray} 射线对象\n */\n\n }, {\n key: \"createRay\",\n value: function createRay(positionA, positionB) {\n var result = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n var direction = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.normalize(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.subtract(positionB, positionA, result), result);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Ray(positionA, direction);\n }\n /**\n * @Description 分析点射线检测数据解析\n * @param {Number} shadedCount 分析点被遮挡次数。\n * @returns {Object} 日照时长和对应时长颜色\n */\n\n }, {\n key: \"pointSunshineAnalysis\",\n value: function pointSunshineAnalysis(shadedCount) {\n var time;\n var color;\n var directLight = this.solarTrajectory.length - shadedCount;\n\n switch (directLight) {\n case 0:\n time = 0;\n break;\n\n case 1:\n time = '小于1';\n break;\n\n default:\n time = directLight - 1;\n break;\n }\n\n switch (directLight) {\n case 0:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0, 0, 1);\n break;\n\n case 1:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0, 0.5, 1);\n break;\n\n case 2:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0, 1, 1);\n break;\n\n case 3:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0, 1, 0.5);\n break;\n\n case 4:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0, 1, 0);\n break;\n\n case 5:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0.5, 1, 0);\n break;\n\n case 6:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(1, 1, 0);\n break;\n\n case 7:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(1, 0.5, 0);\n break;\n\n case 8:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(1, 0, 0);\n break;\n\n default:\n color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(1, 0, 0);\n break;\n }\n\n return {\n time: time,\n color: color\n };\n }\n /**\n * @Description 场景中添加分析点图元\n */\n\n }, {\n key: \"batchAddPoint\",\n value: function batchAddPoint() {\n var pointsLen = this.pointsData.length;\n\n for (var i = 0; i < pointsLen; i++) {\n this._pointsCollection.add({\n pixelSize: 5,\n color: this.pointsData[i].color,\n id: this.pointsData[i].id,\n position: this.pointsData[i].position,\n scaleByDistance: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].NearFarScalar(1.5e2, 2.0, 1.5e5, 0.5)\n });\n }\n }\n /**\n * @Description 根据id获取分析点数据\n * @param {String} id\n */\n\n }, {\n key: \"getSunshinePoint\",\n value: function getSunshinePoint(id) {\n if (Object.prototype.toString.call(id) !== '[object String]') {\n throw new Error('查询ID类型错误');\n }\n\n var result = this.pointsData.find(function (value) {\n return value.id === id;\n });\n\n if (result) {\n return {\n id: result.id,\n position: result.position,\n sunshineDuration: result.sunshineDuration\n };\n } else {\n return undefined;\n }\n }\n /**\n * @Description清除分析结果\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this.pointsData = null;\n\n this._pointsCollection.removeAll();\n }\n }, {\n key: \"startTime\",\n get: function get() {\n return this._startTime;\n }\n /**\n * @Description 设置起始时间\n * @param {Number} time 起始时间\n */\n ,\n set: function set(time) {\n if (time >= 0 && time < 24) {\n this._startTime = ~~time;\n } else {\n throw new Error('时间格式不正确');\n }\n }\n }, {\n key: \"endTime\",\n get: function get() {\n return this._endTime;\n }\n /**\n * @Description 设置结束时间\n * @param {Number} time 结束时间\n */\n ,\n set: function set(time) {\n if (time >= 0 && time < 24) {\n this._endTime = ~~time;\n } else {\n throw new Error('时间格式不正确');\n }\n }\n }, {\n key: \"spacing\",\n get: function get() {\n return this._spacing;\n }\n /**\n * @Description 设置分析区域间距\n * @param {Number} spacing 多边形内部分析点间距\n */\n ,\n set: function set(spacing) {\n this._spacing = spacing;\n }\n /**\n * @Description 设置节气\n * @param {String} solarTerm 节气\n */\n\n }, {\n key: \"solarTerm\",\n value: function solarTerm(_solarTerm) {\n switch (_solarTerm) {\n case '立春':\n case '立秋':\n this.subSolarLat = 0;\n break;\n\n case '夏至':\n this.subSolarLat = 23.5;\n break;\n\n case '冬至':\n this.subSolarLat = -23.5;\n break;\n\n default:\n throw new Error('当前支持立春、立秋、夏至、冬至四个节气');\n }\n }\n /**\n * @Description 设置分析区域\n * @param {Object} options 选项。\n * @param {Array} options.polygon 多边形平面\n * @param {Number} options.bottom 多边形底面高程\n * @param {Number} options.extend 多边形底面拉伸高度\n */\n\n }, {\n key: \"queryRegion\",\n value: function queryRegion(options) {\n this._polygon = options.polygon;\n this._bottom = options.bottom;\n this._extend = options.extend;\n }\n }]);\n\n return SunshineDuration;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SunshineDuration);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL1N1bnNoaW5lRHVyYXRpb24uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2FuYWx5c2lzL1N1bnNoaW5lRHVyYXRpb24uanM/ZGIzZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3Ig5YiY562WXG4gKiBARGF0ZSAyMDIyLTA1LTMwIDk6MTJcbiAqIEBEZXNjcmlwdGlvbiDml6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NBO0FBQ0E7O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFaQTtBQWNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/analysis/SunshineDuration.js\n");
- /***/ }),
- /***/ "./modules/analysis/SunshineDuration_Shader.js":
- /*!*****************************************************!*\
- !*** ./modules/analysis/SunshineDuration_Shader.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n\n\n\nfunction _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; } } }; }\n\nfunction _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); }\n\nfunction _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; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author 刘策\n * @Date 2022-11-11 16:13\n * @Description 基于着色器的日照时长分析\n */\n\n\n\n\n/**\n * @Description 默认设置\n * @param spacing 分析区域间距\n * @param startTime 起始时间\n * @param endTime 结束时间\n * @param color 不同日照时长色带\n * @param sphere 分析球体设置\n */\n\nvar DEF_OPTS = {\n spacing: 20,\n startTime: 9,\n endTime: 15,\n color: ['#0000ff', '#0080ff', '#00ffff', '#00ff80', '#00ff00', '#80ff00', '#ffff00', '#ff8000', '#ff0000', '#ff0000'],\n sphere: {\n radius: 1,\n stackPartitions: 36,\n slicePartitions: 24,\n vertexFormat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PerInstanceColorAppearance.VERTEX_FORMAT\n }\n};\n\nvar SunshineDuration_Shader = /*#__PURE__*/function () {\n /**\n * @Description 实例化日照分析\n * @param {Cesium.Viewer} viewer Cesium三维视窗。\n * @param {Object} options 日照分析相关配置。\n * @param {Object} options.sphere 生成球体相关配置。\n */\n function SunshineDuration_Shader(viewer, options) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, SunshineDuration_Shader);\n\n this._viewer = viewer._delegate || viewer;\n this.primitiveCollection = this._viewer.scene.primitives.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PrimitiveCollection());\n var defSphere = DEF_OPTS.sphere;\n var sphere = (options === null || options === void 0 ? void 0 : options.sphere) || {};\n this.sphereOption = _objectSpread(_objectSpread({}, defSphere), sphere);\n this.sTime = DEF_OPTS.startTime;\n this.eTime = DEF_OPTS.endTime;\n this._spacing = DEF_OPTS.spacing;\n this.lengthColor = DEF_OPTS.color;\n this.selDate = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DateUtil\"].getNowFormatDate();\n this.createCanvas();\n }\n /**\n * @describe 错误值\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(SunshineDuration_Shader, [{\n key: \"returnError\",\n value: function returnError() {\n if (!this._viewer) {\n throw new Error(\"缺少地图\");\n }\n\n if (this.lengthColor.length < this.eTime - this.sTime) {\n throw new Error(\"Color长度与时间长度未对应\");\n }\n\n if (this.sTime > this.eTime) {\n throw new Error(\"分析时间段设置错误\");\n }\n }\n /**\n * @describe 创造画布,将分析场景存入进行像素提取\n */\n\n }, {\n key: \"createCanvas\",\n value: function createCanvas() {\n if (document.getElementById(\"sunshine-canvas\")) {\n return;\n }\n\n var canvas = document.createElement('canvas');\n canvas.id = 'sunshine-canvas';\n canvas.style.display = 'none';\n\n this._viewer.container.appendChild(canvas);\n }\n /**\n * @Description 执行分析\n */\n\n }, {\n key: \"build\",\n value: function build() {\n var _this2 = this;\n\n if (!this._polygon || !this._bottom || !this._extend) {\n throw new Error('分析区域设置不正确');\n }\n\n if (this._polygon.length === 0) {\n throw new Error('分析区域未设置');\n }\n\n this.createAnalysisPoints();\n this.addSphereGeometry(this.pointsData, this.sphereOption);\n this.setScreenXY(); //绘制几何渲染完成后执行\n\n this.spherePrimitive.readyPromise.then(function () {\n console.log(\"渲染完成\");\n\n _this2.startAnalysis();\n });\n }\n /**\n * @Description 创建分析区内等分点坐标\n */\n\n }, {\n key: \"createAnalysisPoints\",\n value: function createAnalysisPoints() {\n this.pointsData = [];\n var lngArray = [];\n var latArray = [];\n var polygonWGS84 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"Transform\"].transformCartesianArrayToWGS84Array(this._polygon);\n var polygon = polygonWGS84.map(function (item) {\n lngArray.push(item.lng);\n latArray.push(item.lat);\n return [item.lng, item.lat];\n });\n var lngMax = Math.max.apply(null, lngArray);\n var lngMin = Math.min.apply(null, lngArray);\n var latMax = Math.max.apply(null, latArray);\n var latMin = Math.min.apply(null, latArray);\n var lngLatSpacing = this._spacing / 1e5;\n var lng, lat, inPolygon;\n var bottomPoints = []; // 构成底面间距坐标点组\n\n for (var i = lngMin; i < lngMax; i = i + lngLatSpacing) {\n lng = i;\n\n for (var j = latMin; j < latMax; j = j + lngLatSpacing) {\n lat = j;\n inPolygon = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_7__[\"isInPolygon\"])([lng, lat], polygon);\n\n if (inPolygon === true) {\n bottomPoints.push({\n lng: lng,\n lat: lat\n });\n }\n }\n }\n\n var len = bottomPoints.length;\n var idNum = 0;\n\n for (var _i = 0; _i < len; _i++) {\n for (var height = 0; height <= this._extend; height += this._spacing) {\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"Transform\"].transformWGS84ToCartesian({\n lng: bottomPoints[_i].lng,\n lat: bottomPoints[_i].lat,\n alt: this._bottom + height\n });\n var pointData = {\n position: position,\n id: 'analysisPoint' + idNum,\n screenXY: \"\",\n sunTimeNum: \"\"\n };\n idNum++;\n this.pointsData.push(pointData);\n }\n }\n }\n /**\n * @describe 添加球体\n * @param {Array} pointsData 笛卡尔坐标数组\n * @param {Object} sphereOption 球体几何配置\n * @return cartographicArr\n */\n\n }, {\n key: \"addSphereGeometry\",\n value: function addSphereGeometry(pointsData, sphereOption) {\n var pointsLen = pointsData.length;\n var sphereGeometry = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SphereGeometry({\n radius: sphereOption.radius,\n stackPartitions: sphereOption.stackPartitions,\n slicePartitions: sphereOption.slicePartitions,\n vertexFormat: sphereOption.vertexFormat\n });\n var instances = [];\n\n for (var i = 0; i < pointsLen; i++) {\n var sphereModelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(pointsData[i].position);\n instances.push(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeometryInstance({\n geometry: sphereGeometry,\n modelMatrix: sphereModelMatrix,\n attributes: {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ColorGeometryInstanceAttribute.fromColor(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color.BLUE.withAlpha(1.0))\n },\n id: pointsData[i].id\n }));\n }\n\n this.spherePrimitive = this.primitiveCollection.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Primitive({\n geometryInstances: instances,\n appearance: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PerInstanceColorAppearance({\n translucent: false,\n closed: true\n }),\n shadows: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ShadowMode.RECEIVE_ONLY\n }));\n console.log(this.spherePrimitive);\n }\n /**\n * @describe 设置分析点世界坐标对应的屏幕坐标\n */\n\n }, {\n key: \"setScreenXY\",\n value: function setScreenXY() {\n var sunTime = this.eTime - this.sTime;\n\n var _iterator = _createForOfIteratorHelper(this.pointsData),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var resP = _step.value;\n resP.sunTimeNum = sunTime;\n resP.screenXY = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneTransforms.wgs84ToWindowCoordinates(this._viewer.scene, resP.position);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n var _this = this;\n\n this._viewer.scene.camera.moveEnd.addEventListener(function () {\n _this.addListener();\n });\n }\n /**\n * @describe 监听事件 获取分析点对应的屏幕坐标\n */\n\n }, {\n key: \"addListener\",\n value: function addListener() {\n var _th = this;\n\n var _iterator2 = _createForOfIteratorHelper(this.pointsData),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var resP = _step2.value;\n resP.screenXY = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneTransforms.wgs84ToWindowCoordinates(_th._viewer.scene, resP.position);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n /**\n * @Description 开始分析\n */\n\n }, {\n key: \"startAnalysis\",\n value: function startAnalysis() {\n this.returnError();\n this.cameraLock();\n this.value = this.getMinValue();\n this.eleChangeColor = false;\n\n var _this = this;\n\n function analysis() {\n console.log('计时器调用:' + _this.value);\n\n _this.timeAnalysis(_this.value).then(function (res) {\n console.log(JSON.parse(JSON.stringify(res)));\n });\n\n if (_this.value >= _this.getMaxValue()) {\n console.log('计时器移除');\n clearInterval(_this.timer);\n _this.timer = null;\n\n _this.cameraUnlock();\n }\n\n _this.value += 0.5;\n }\n\n this.timer = setInterval(analysis, 150);\n }\n /**\n * @Description 分析不同时间段日照效果\n */\n\n }, {\n key: \"timeAnalysis\",\n value: function () {\n var _timeAnalysis = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.mark(function _callee(value) {\n var _this3 = this;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log('timeAnalysis');\n\n if (value === this.sTime) {\n this.initializeCoord();\n }\n\n if (!(this.pointsData.length === 0)) {\n _context.next = 4;\n break;\n }\n\n throw new Error(\"没有生成点!\");\n\n case 4:\n if (value === this.eTime) {\n this.eleChangeColor = true; // this.clickLable();\n }\n\n return _context.abrupt(\"return\", new Promise(function (resolve, reject) {\n _this3.sunlight(value).then(function (res) {\n resolve(res);\n });\n }));\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function timeAnalysis(_x) {\n return _timeAnalysis.apply(this, arguments);\n }\n\n return timeAnalysis;\n }()\n }, {\n key: \"initializeCoord\",\n value: function initializeCoord() {\n var _iterator3 = _createForOfIteratorHelper(this.pointsData),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var i = _step3.value;\n i.sunTimeNum = this.eTime - this.sTime;\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n /**\n * @describe 时间变化控制阴影\n * @param {Number } value\n * @return cartographicArr\n */\n\n }, {\n key: \"sunlight\",\n value: function () {\n var _sunlight = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.mark(function _callee2(value) {\n var _this4 = this;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n console.log('sunlight');\n return _context2.abrupt(\"return\", new Promise(function (resolve, reject) {\n if (!_this4.selDate || !_this4.sTime || !_this4.eTime) {\n return;\n }\n\n var startTime = new Date(_this4.selDate);\n startTime.setHours(value);\n\n _this4.openShadow(startTime);\n\n _this4.pointsInShadow(value).then(function (res) {\n resolve(res);\n });\n }));\n\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n function sunlight(_x2) {\n return _sunlight.apply(this, arguments);\n }\n\n return sunlight;\n }()\n /**\n * @Description 开启阴影\n */\n\n }, {\n key: \"openShadow\",\n value: function openShadow(time) {\n this._viewer.scene.moon.show = false;\n this._viewer.scene.fog.enabled = false;\n this._viewer.scene.sun.show = true;\n this._viewer.scene.skyBox.show = false;\n this._viewer.scene.globe.enableLighting = true;\n this._viewer.shadows = true;\n this._viewer.shadowMap.darkness = -1; //阴影透明度--越大越透明\n // 改变时间设置光照效果\n\n this._viewer.clockViewModel.currentTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.fromDate(time);\n }\n /**\n * @describe 判断点是否在阴影区域内\n * @param {*} value\n * @return cartographicArr\n */\n\n }, {\n key: \"pointsInShadow\",\n value: function () {\n var _pointsInShadow = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.mark(function _callee3(value) {\n var _this5 = this;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n console.log('pointsInShadow');\n return _context3.abrupt(\"return\", new Promise(function (resolve, reject) {\n if (_this5.pointsData.length > 0) {\n _this5.addImgXY(value).then(function (res) {\n resolve(res);\n });\n }\n }));\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n function pointsInShadow(_x3) {\n return _pointsInShadow.apply(this, arguments);\n }\n\n return pointsInShadow;\n }()\n /**\n * @description 得到纹理\n * @param {*}\n * @returns\n */\n\n }, {\n key: \"addImgXY\",\n value: function () {\n var _addImgXY = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.mark(function _callee4(value) {\n var _this6 = this;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default.a.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n console.log('addImgXY');\n return _context4.abrupt(\"return\", new Promise(function (resolve, reject) {\n var _this = _this6;\n\n _this6._viewer.render(); //刷新渲染\n\n\n //刷新渲染\n var canvas = _this6._viewer.scene.canvas;\n var image = canvas.toDataURL('image/png').replace('image/png', 'image/octet-stream');\n var newImage = new Image(); // 这里将src传入需要获取信息的图片地址或base64\n\n // 这里将src传入需要获取信息的图片地址或base64\n newImage.src = image; // onload是异步的,封装的话可以用promise\n\n // onload是异步的,封装的话可以用promise\n newImage.onload = function () {\n // debugger\n var canvas2 = document.getElementById('sunshine-canvas');\n var width = newImage.width;\n canvas2.width = width;\n var height = newImage.height;\n canvas2.height = height;\n var context = canvas2.getContext('2d');\n context.drawImage(newImage, 0, 0);\n var imageData = context.getImageData(0, 0, canvas2.width, canvas2.height);\n var data = imageData.data;\n\n var _iterator4 = _createForOfIteratorHelper(_this.pointsData),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var resP = _step4.value;\n var couy = Number(resP.screenXY.y.toFixed(0));\n var coux = Number(resP.screenXY.x.toFixed(0));\n var dataIndex = ((couy - 1) * width + coux - 1) * 4;\n var isAdd = false;\n\n if (data[dataIndex] === 0 && data[dataIndex + 1] === 0 && data[dataIndex + 2] === 0) {\n isAdd = true;\n }\n\n if (isAdd) {\n resP.sunTimeNum -= 0.5;\n\n if (resP.sunTimeNum < 0) {\n resP.sunTimeNum = 0;\n }\n }\n\n if (_this.eleChangeColor) {\n var attribute = _this.spherePrimitive.getGeometryInstanceAttributes(resP.id);\n\n attribute.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ColorGeometryInstanceAttribute.toValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color.fromCssColorString(_this.lengthColor[Math.trunc(resP.sunTimeNum)]));\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n if (value === _this.eTime) {\n _this._viewer.scene.globe.enableLighting = false;\n _this._viewer.shadows = false;\n }\n\n resolve(_this.pointsData);\n };\n }));\n\n case 2:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }));\n\n function addImgXY(_x4) {\n return _addImgXY.apply(this, arguments);\n }\n\n return addImgXY;\n }()\n /**\n * @Description 锁定相机视角\n */\n\n }, {\n key: \"cameraLock\",\n value: function cameraLock() {\n this._viewer.scene.screenSpaceCameraController.enableRotate = false;\n this._viewer.scene.screenSpaceCameraController.enableZoom = false;\n this._viewer.scene.screenSpaceCameraController.enableTilt = false;\n }\n /**\n * @Description 解除锁定相机\n */\n\n }, {\n key: \"cameraUnlock\",\n value: function cameraUnlock() {\n this._viewer.scene.screenSpaceCameraController.enableRotate = true;\n this._viewer.scene.screenSpaceCameraController.enableZoom = true;\n this._viewer.scene.screenSpaceCameraController.enableTilt = true;\n }\n /**\n * @Description 获取起始日照时间,小于7点无阴影不计入分析\n */\n\n }, {\n key: \"getMinValue\",\n value: function getMinValue() {\n return this.sTime < 7 ? 7 : this.sTime;\n }\n /**\n * @Description 获取最后日照时间,大于18点无阴影不计入分析\n */\n\n }, {\n key: \"getMaxValue\",\n value: function getMaxValue() {\n return this.eTime > 18 ? 18 : this.eTime;\n }\n /**\n * @Description 设置分析区域\n * @param {Object} options 选项。\n * @param {Array} options.polygon 多边形平面\n * @param {Number} options.bottom 多边形底面高程\n * @param {Number} options.extend 多边形底面拉伸高度\n */\n\n }, {\n key: \"queryRegion\",\n value: function queryRegion(options) {\n this._polygon = options.polygon;\n this._bottom = options.bottom;\n this._extend = options.extend;\n }\n /**\n * @describe 更改时间\n * @param {String} data 传入分析日期yyyy-mm-dd\n */\n\n }, {\n key: \"changeDate\",\n value: function changeDate(data) {\n this.selDate = data;\n }\n /**\n * @describe 更改节气\n * @param {String} val 传入节气名称\n */\n\n }, {\n key: \"changeSolarTerm\",\n value: function changeSolarTerm(val) {\n var solarTermDate = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DateUtil\"].getSolarTerm(val);\n this.changeDate(solarTermDate);\n }\n /**\n * @Description 根据id获取分析点数据\n * @param {String} id\n */\n\n }, {\n key: \"getSunshinePoint\",\n value: function getSunshinePoint(id) {\n if (Object.prototype.toString.call(id) !== '[object String]') {\n throw new Error('查询ID类型错误');\n }\n\n var result = this.pointsData.find(function (value) {\n return value.id === id;\n });\n\n if (result) {\n return {\n id: result.id,\n position: result.position,\n sunshineDuration: result.sunTimeNum\n };\n } else {\n return undefined;\n }\n }\n /**\n * @Description清除分析结果\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this.primitiveCollection.removeAll();\n }\n /**\n * @Description 设置起始时间\n * @param {Number} time 起始时间\n */\n\n }, {\n key: \"startTime\",\n set: function set(time) {\n this.sTime = time;\n }\n /**\n * @Description 设置结束时间\n * @param {Number} time 结束时间\n */\n\n }, {\n key: \"endTime\",\n set: function set(time) {\n this.eTime = time;\n }\n /**\n * @Description 设置分析区域间距\n * @param {Number} spacing 多边形内部分析点间距\n */\n\n }, {\n key: \"spacing\",\n set: function set(spacing) {\n this._spacing = spacing;\n }\n /**\n * @Description 设置不同时长色彩\n * @param {Array} option 颜色数组\n */\n\n }, {\n key: \"color\",\n set: function set(option) {\n this.lengthColor = option;\n }\n }]);\n\n return SunshineDuration_Shader;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SunshineDuration_Shader);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL1N1bnNoaW5lRHVyYXRpb25fU2hhZGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9hbmFseXNpcy9TdW5zaGluZUR1cmF0aW9uX1NoYWRlci5qcz9iNzNiIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDliJjnrZZcbiAqIEBEYXRlIDIwMjItMTEtMTEgMTY6MTNcbiAqIEBEZXNjcmlwdGlvbiDln7rkuo7nnYDoibLlmajnmoTml6Xnhafml7bplb/liIbmnpBcbiAqL1xuXG5pbXBvcnQge0Nlc2l1bX0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHtUcmFuc2Zvcm19IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCB7aXNJblBvbHlnb259IGZyb20gJ0BnZC1tb2R1bGVzL21hdGgnXG5p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ICBsZXQgZGF0YUluZGV4ID0gKChjb3V5IC0gMSkgKiB3aWR0aCArIGNvdXggLSAxKSAqIDRcbiAgICAgICAgICBsZXQgaXNBZGQgPSBmYWxzZVxuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIGRhdGFbZGF0YUluZGV4XSA9PT0gMCAmJlxuICAgICAgICAgICAgZGF0YVtkYXRhSW5kZXggKyAxXSA9PT0gMCAmJlxuICAgICAgICAgICAgZGF0YVtkYXRhSW5kZXggKyAyXSA9PT0gMFxuICAgICAgICAgICkge1xuICAgICAgICAgICAgaXNBZGQgPSB0cnVlXG4gICAgICAgICAgfVxuICAgICAgICAgIGlmIChpc0FkZCkge1xuXG4gICAgICAgICAgICByZXNQLnN1blRpbWVOdW0gLT0gMC41XG4gICAgICAgICAgICBpZiAocmVzUC5zdW5UaW1lTnVtIDwgMCkge1xuICAgICAgICAgICAgICByZXNQLnN1blRpbWVOdW0gPSAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAoX3RoaXMuZWxlQ2hhbmdlQ29sb3IpIHtcbiAgICAgICAgICAgIGxldCBhdHRyaWJ1dGUgPSBfdGhpcy5zcGhlcmVQcmltaXRpdmUuZ2V0R2VvbWV0cnlJbnN0YW5jZUF0dHJpYnV0ZXMocmVzUC5pZCk7XG4gICAgICAgICAgICBhdHRyaWJ1dGUuY29sb3IgPSBDZXNpdW0uQ29sb3JHZW9tZXRyeUluc3RhbmNlQXR0cmlidXRlLnRvVmFsdWUoXG4gICAgICAgICAgICAgIENlc2l1bS5Db2xvci5mcm9tQ3NzQ29sb3JTdHJpbmcoX3RoaXMubGVuZ3RoQ29sb3JbTWF0aC50cnVuYyhyZXNQLnN1blRpbWVOdW0pXSlcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmKHZhbHVlID09PSBfdGhpcy5lVGltZSl7XG4gICAgICAgICAgX3RoaXMuX3ZpZXdlci5zY2VuZS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BQUNBO0FBQ0E7QUFIQTtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/analysis/SunshineDuration_Shader.js\n");
- /***/ }),
- /***/ "./modules/analysis/ViewShed.js":
- /*!**************************************!*\
- !*** ./modules/analysis/ViewShed.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-06-01 16:56\n * @Description 可视域分析\n */\n\n/**\n * @Description 创建视域分析\n * @param {Object} viewer 场景视图\n * @param {Object} options 视域配置\n * @param {Cartesian3} options.viewPosition 视域起点\n * @param {Cartesian3} options.viewPositionEnd 视域终点\n * @param {Number} options.viewDistance 视域距离\n * @param {Number} options.viewHeading 视域朝向角度,-180°~180°\n * @param {Number} options.viewPitch 视域俯仰角度,-90°~90°\n * @param {Number} options.horizontalViewAngle 视域水平范围角度, 0°~180°\n * @param {Number} options.verticalViewAngle 视域垂直范围角度,0°~180°\n */\n\nvar ViewShed = /*#__PURE__*/function () {\n function ViewShed(viewer, options) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ViewShed);\n\n this.viewer = viewer._delegate || viewer;\n this.viewPosition = options.viewPosition;\n this.viewPositionEnd = options.viewPositionEnd;\n this.viewDistance = this.viewPositionEnd ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.distance(this.viewPosition, this.viewPositionEnd) : options.viewDistance || 100.0;\n this.viewHeading = this.viewPositionEnd ? this.getHeading(this.viewPosition, this.viewPositionEnd) : options.viewHeading || 0.0;\n this.viewPitch = this.viewPositionEnd ? this.getPitch(this.viewPosition, this.viewPositionEnd) : options.viewPitch || 0.0;\n this.horizontalViewAngle = options.horizontalViewAngle || 90.0;\n this.verticalViewAngle = options.verticalViewAngle || 60.0;\n this.visibleAreaColor = options.visibleAreaColor || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.GREEN;\n this.invisibleAreaColor = options.invisibleAreaColor || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.RED;\n this.enabled = typeof options.enabled === \"boolean\" ? options.enabled : true;\n this.softShadows = typeof options.softShadows === \"boolean\" ? options.softShadows : true;\n this.size = options.size || 1024;\n this.add();\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ViewShed, [{\n key: \"add\",\n value: function add() {\n this.createLightCamera();\n this.createShadowMap();\n this.createPostStage();\n this.drawFrustumOutline();\n this.drawSketch();\n }\n }, {\n key: \"clear\",\n value: function clear() {\n if (this.sketch) {\n this.viewer.entities.remove(this.sketch);\n this.sketch = null;\n }\n\n if (this.frustumOutline) {\n this.viewer.scene.primitives.remove(this.frustumOutline);\n this.frustumOutline = null;\n }\n\n if (this.postStage) {\n this.viewer.scene.postProcessStages.remove(this.postStage);\n this.postStage = null;\n }\n }\n }, {\n key: \"createLightCamera\",\n value: function createLightCamera() {\n this.lightCamera = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Camera(this.viewer.scene);\n this.lightCamera.position = this.viewPosition; // if (this.viewPositionEnd) {\n // let direction = Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.viewPositionEnd, this.viewPosition, new Cesium.Cartesian3()), new Cesium.Cartesian3());\n // this.lightCamera.direction = direction; // direction是相机面向的方向\n // }\n\n this.lightCamera.frustum.near = this.viewDistance * 0.001;\n this.lightCamera.frustum.far = this.viewDistance;\n var hr = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(this.horizontalViewAngle);\n var vr = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(this.verticalViewAngle);\n var aspectRatio = this.viewDistance * Math.tan(hr / 2) * 2 / (this.viewDistance * Math.tan(vr / 2) * 2);\n this.lightCamera.frustum.aspectRatio = aspectRatio;\n\n if (hr > vr) {\n this.lightCamera.frustum.fov = hr;\n } else {\n this.lightCamera.frustum.fov = vr;\n }\n\n this.lightCamera.setView({\n destination: this.viewPosition,\n orientation: {\n heading: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(this.viewHeading || 0),\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(this.viewPitch || 0),\n roll: 0\n }\n });\n }\n }, {\n key: \"createShadowMap\",\n value: function createShadowMap() {\n this.shadowMap = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ShadowMap({\n context: this.viewer.scene.context,\n lightCamera: this.lightCamera,\n enabled: this.enabled,\n isPointLight: true,\n pointLightRadius: this.viewDistance,\n cascadesEnabled: false,\n size: this.size,\n softShadows: this.softShadows,\n normalOffset: false,\n fromLightSource: false\n });\n this.viewer.scene.shadowMap = this.shadowMap;\n }\n }, {\n key: \"drawFrustumOutline\",\n value: function drawFrustumOutline() {\n var scratchRight = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n var scratchRotation = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix3();\n var scratchOrientation = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Quaternion();\n var position = this.lightCamera.positionWC;\n var direction = this.lightCamera.directionWC;\n var up = this.lightCamera.upWC;\n var right = this.lightCamera.rightWC;\n right = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.negate(right, scratchRight);\n var rotation = scratchRotation;\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix3.setColumn(rotation, 0, right, rotation);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix3.setColumn(rotation, 1, up, rotation);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix3.setColumn(rotation, 2, direction, rotation);\n var orientation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Quaternion.fromRotationMatrix(rotation, scratchOrientation);\n var instance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].GeometryInstance({\n geometry: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].FrustumOutlineGeometry({\n frustum: this.lightCamera.frustum,\n origin: this.viewPosition,\n orientation: orientation\n }),\n id: Math.random().toString(36).substr(2),\n attributes: {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ColorGeometryInstanceAttribute.fromColor(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.YELLOWGREEN //new Cesium.Color(0.0, 1.0, 0.0, 1.0)\n ),\n show: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ShowGeometryInstanceAttribute(true)\n }\n });\n this.frustumOutline = this.viewer.scene.primitives.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Primitive({\n geometryInstances: [instance],\n appearance: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PerInstanceColorAppearance({\n flat: true,\n translucent: false\n })\n }));\n }\n }, {\n key: \"drawSketch\",\n value: function drawSketch() {\n this.sketch = this.viewer.entities.add({\n name: 'sketch',\n position: this.viewPosition,\n orientation: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Transforms.headingPitchRollQuaternion(this.viewPosition, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRoll.fromDegrees(this.viewHeading - this.horizontalViewAngle, this.viewPitch, 0.0)),\n ellipsoid: {\n radii: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(this.viewDistance, this.viewDistance, this.viewDistance),\n // innerRadii: new Cesium.Cartesian3(2.0, 2.0, 2.0),\n minimumClock: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(-this.horizontalViewAngle / 2),\n maximumClock: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(this.horizontalViewAngle / 2),\n minimumCone: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(this.verticalViewAngle + 7.75),\n maximumCone: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(180 - this.verticalViewAngle - 7.75),\n fill: false,\n outline: true,\n subdivisions: 256,\n stackPartitions: 64,\n slicePartitions: 64,\n outlineColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.YELLOWGREEN\n }\n });\n }\n }, {\n key: \"createPostStage\",\n value: function createPostStage() {\n var _this = this;\n\n var fs = \"\\n #define USE_CUBE_MAP_SHADOW true\\n uniform sampler2D colorTexture;\\n uniform sampler2D depthTexture;\\n varying vec2 v_textureCoordinates;\\n uniform mat4 camera_projection_matrix;\\n uniform mat4 camera_view_matrix;\\n uniform samplerCube shadowMap_textureCube;\\n uniform mat4 shadowMap_matrix;\\n uniform vec4 shadowMap_lightPositionEC;\\n uniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\\n uniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\\n uniform float helsing_viewDistance;\\n uniform vec4 helsing_visibleAreaColor;\\n uniform vec4 helsing_invisibleAreaColor;\\n struct zx_shadowParameters\\n {\\n vec3 texCoords;\\n float depthBias;\\n float depth;\\n float nDotL;\\n vec2 texelStepSize;\\n float normalShadingSmooth;\\n float darkness;\\n };\\n float czm_shadowVisibility(samplerCube shadowMap, zx_shadowParameters shadowParameters)\\n {\\n float depthBias = shadowParameters.depthBias;\\n float depth = shadowParameters.depth;\\n float nDotL = shadowParameters.nDotL;\\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\\n float darkness = shadowParameters.darkness;\\n vec3 uvw = shadowParameters.texCoords;\\n depth -= depthBias;\\n float visibility = czm_shadowDepthCompare(shadowMap, uvw, depth);\\n return czm_private_shadowVisibility(visibility, nDotL, normalShadingSmooth, darkness);\\n }\\n vec4 getPositionEC(){\\n return czm_windowToEyeCoordinates(gl_FragCoord);\\n }\\n vec3 getNormalEC(){\\n return vec3(1.);\\n }\\n vec4 toEye(in vec2 uv,in float depth){\\n vec2 xy=vec2((uv.x*2.-1.),(uv.y*2.-1.));\\n vec4 posInCamera=czm_inverseProjection*vec4(xy,depth,1.);\\n posInCamera=posInCamera/posInCamera.w;\\n return posInCamera;\\n }\\n vec3 pointProjectOnPlane(in vec3 planeNormal,in vec3 planeOrigin,in vec3 point){\\n vec3 v01=point-planeOrigin;\\n float d=dot(planeNormal,v01);\\n return(point-planeNormal*d);\\n }\\n float getDepth(in vec4 depth){\\n float z_window=czm_unpackDepth(depth);\\n z_window=czm_reverseLogDepth(z_window);\\n float n_range=czm_depthRange.near;\\n float f_range=czm_depthRange.far;\\n return(2.*z_window-n_range-f_range)/(f_range-n_range);\\n }\\n float shadow(in vec4 positionEC){\\n vec3 normalEC=getNormalEC();\\n zx_shadowParameters shadowParameters;\\n shadowParameters.texelStepSize=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.xy;\\n shadowParameters.depthBias=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.z;\\n shadowParameters.normalShadingSmooth=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.w;\\n shadowParameters.darkness=shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.w;\\n vec3 directionEC=positionEC.xyz-shadowMap_lightPositionEC.xyz;\\n float distance=length(directionEC);\\n directionEC=normalize(directionEC);\\n float radius=shadowMap_lightPositionEC.w;\\n if(distance>radius)\\n {\\n return 2.0;\\n }\\n vec3 directionWC=czm_inverseViewRotation*directionEC;\\n shadowParameters.depth=distance/radius-0.0003;\\n shadowParameters.nDotL=clamp(dot(normalEC,-directionEC),0.,1.);\\n shadowParameters.texCoords=directionWC;\\n float visibility=czm_shadowVisibility(shadowMap_textureCube,shadowParameters);\\n return visibility;\\n }\\n bool visible(in vec4 result)\\n {\\n result.x/=result.w;\\n result.y/=result.w;\\n result.z/=result.w;\\n return result.x>=-1.&&result.x<=1.\\n &&result.y>=-1.&&result.y<=1.\\n &&result.z>=-1.&&result.z<=1.;\\n }\\n void main(){\\n // \\u91C9\\u8272 = \\u7ED3\\u6784\\u4E8C\\u7EF4(\\u989C\\u8272\\u7EB9\\u7406, \\u7EB9\\u7406\\u5750\\u6807)\\n gl_FragColor = texture2D(colorTexture, v_textureCoordinates);\\n // \\u6DF1\\u5EA6 = \\u83B7\\u53D6\\u6DF1\\u5EA6(\\u7ED3\\u6784\\u4E8C\\u7EF4(\\u6DF1\\u5EA6\\u7EB9\\u7406, \\u7EB9\\u7406\\u5750\\u6807))\\n float depth = getDepth(texture2D(depthTexture, v_textureCoordinates));\\n // \\u89C6\\u89D2 = (\\u7EB9\\u7406\\u5750\\u6807, \\u6DF1\\u5EA6)\\n vec4 viewPos = toEye(v_textureCoordinates, depth);\\n // \\u4E16\\u754C\\u5750\\u6807\\n vec4 wordPos = czm_inverseView * viewPos;\\n // \\u865A\\u62DF\\u76F8\\u673A\\u4E2D\\u5750\\u6807\\n vec4 vcPos = camera_view_matrix * wordPos;\\n float near = .001 * helsing_viewDistance;\\n float dis = length(vcPos.xyz);\\n if(dis > near && dis < helsing_viewDistance){\\n // \\u900F\\u89C6\\u6295\\u5F71\\n vec4 posInEye = camera_projection_matrix * vcPos;\\n // \\u53EF\\u89C6\\u533A\\u989C\\u8272\\n // vec4 helsing_visibleAreaColor=vec4(0.,1.,0.,.5);\\n // vec4 helsing_invisibleAreaColor=vec4(1.,0.,0.,.5);\\n if(visible(posInEye)){\\n float vis = shadow(viewPos);\\n if(vis > 0.3){\\n gl_FragColor = mix(gl_FragColor,helsing_visibleAreaColor,.5);\\n } else{\\n gl_FragColor = mix(gl_FragColor,helsing_invisibleAreaColor,.5);\\n }\\n }\\n }\\n }\";\n var postStage = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n fragmentShader: fs,\n uniforms: {\n shadowMap_textureCube: function shadowMap_textureCube() {\n _this.shadowMap.update(Reflect.get(_this.viewer.scene, \"_frameState\"));\n\n return Reflect.get(_this.shadowMap, \"_shadowMapTexture\");\n },\n shadowMap_matrix: function shadowMap_matrix() {\n _this.shadowMap.update(Reflect.get(_this.viewer.scene, \"_frameState\"));\n\n return Reflect.get(_this.shadowMap, \"_shadowMapMatrix\");\n },\n shadowMap_lightPositionEC: function shadowMap_lightPositionEC() {\n _this.shadowMap.update(Reflect.get(_this.viewer.scene, \"_frameState\"));\n\n return Reflect.get(_this.shadowMap, \"_lightPositionEC\");\n },\n shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness: function shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness() {\n _this.shadowMap.update(Reflect.get(_this.viewer.scene, \"_frameState\"));\n\n var bias = _this.shadowMap._pointBias;\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian4.fromElements(bias.normalOffsetScale, _this.shadowMap._distance, _this.shadowMap.maximumDistance, 0.0, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian4());\n },\n shadowMap_texelSizeDepthBiasAndNormalShadingSmooth: function shadowMap_texelSizeDepthBiasAndNormalShadingSmooth() {\n _this.shadowMap.update(Reflect.get(_this.viewer.scene, \"_frameState\"));\n\n var bias = _this.shadowMap._pointBias;\n var scratchTexelStepSize = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2();\n var texelStepSize = scratchTexelStepSize;\n texelStepSize.x = 1.0 / _this.shadowMap._textureSize.x;\n texelStepSize.y = 1.0 / _this.shadowMap._textureSize.y;\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian4.fromElements(texelStepSize.x, texelStepSize.y, bias.depthBias * 100, bias.normalShadingSmooth * 100, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian4());\n },\n camera_projection_matrix: this.lightCamera.frustum.projectionMatrix,\n camera_view_matrix: this.lightCamera.viewMatrix,\n helsing_viewDistance: function helsing_viewDistance() {\n return _this.viewDistance;\n },\n helsing_visibleAreaColor: this.visibleAreaColor,\n helsing_invisibleAreaColor: this.invisibleAreaColor\n }\n });\n this.postStage = this.viewer.scene.postProcessStages.add(postStage);\n }\n }, {\n key: \"getHeading\",\n value: function getHeading(fromPosition, toPosition) {\n var finalPosition = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n var matrix4 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(fromPosition);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.inverse(matrix4, matrix4);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.multiplyByPoint(matrix4, toPosition, finalPosition);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.normalize(finalPosition, finalPosition);\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(Math.atan2(finalPosition.x, finalPosition.y));\n }\n }, {\n key: \"getPitch\",\n value: function getPitch(fromPosition, toPosition) {\n var finalPosition = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n var matrix4 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(fromPosition);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.inverse(matrix4, matrix4);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.multiplyByPoint(matrix4, toPosition, finalPosition);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.normalize(finalPosition, finalPosition);\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(Math.asin(finalPosition.z));\n }\n }, {\n key: \"positionUpdate\",\n value: function positionUpdate(options) {\n this.viewPosition = options.viewPosition;\n this.viewPositionEnd = options.viewPositionEnd;\n this.viewDistance = this.viewPositionEnd ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.distance(this.viewPosition, this.viewPositionEnd) : options.viewDistance || 100.0;\n this.viewHeading = this.viewPositionEnd ? this.getHeading(this.viewPosition, this.viewPositionEnd) : options.viewHeading || 0.0;\n this.viewPitch = this.viewPositionEnd ? this.getPitch(this.viewPosition, this.viewPositionEnd) : options.viewPitch || 0.0;\n this.clear();\n this.add();\n }\n }]);\n\n return ViewShed;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ViewShed);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL1ZpZXdTaGVkLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9hbmFseXNpcy9WaWV3U2hlZC5qcz8yNWQ5Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDliJjnrZZcbiAqIEBEYXRlIDIwMjItMDYtMDEgMTY6NTZcbiAqIEBEZXNjcmlwdGlvbiDlj6/op4bln5/liIbmnpBcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5cbi8qKlxuICogIEBEZXNjcmlwdGlvbiDliJvlu7rop4bln5/liIbmnpBcbiAqICBAcGFyYW0ge09iamVjdH0gdmlld2VyICDlnLrmma/op4blm75cbiAqICBAcGFyYW0ge09iamVjdH0gb3B0aW9ucyAg6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FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQU9BO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBT0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQTlDQTtBQUZBO0FBbURBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/analysis/ViewShed.js\n");
- /***/ }),
- /***/ "./modules/analysis/index.js":
- /*!***********************************!*\
- !*** ./modules/analysis/index.js ***!
- \***********************************/
- /*! exports provided: Analysis, Shadows, SunshineDuration, SunshineDuration_Shader, ViewShed, SightLine, SkyLine, CutAndFillVolume, SceneColor */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Analysis__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Analysis */ \"./modules/analysis/Analysis.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Analysis\", function() { return _Analysis__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Shadows__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Shadows */ \"./modules/analysis/Shadows.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Shadows\", function() { return _Shadows__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _SunshineDuration__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SunshineDuration */ \"./modules/analysis/SunshineDuration.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SunshineDuration\", function() { return _SunshineDuration__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _SunshineDuration_Shader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SunshineDuration_Shader */ \"./modules/analysis/SunshineDuration_Shader.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SunshineDuration_Shader\", function() { return _SunshineDuration_Shader__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _ViewShed__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ViewShed */ \"./modules/analysis/ViewShed.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ViewShed\", function() { return _ViewShed__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _SightLine__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SightLine */ \"./modules/analysis/SightLine.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SightLine\", function() { return _SightLine__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _SkyLine__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SkyLine */ \"./modules/analysis/SkyLine.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SkyLine\", function() { return _SkyLine__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _CutAndFillVolume__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CutAndFillVolume */ \"./modules/analysis/CutAndFillVolume.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CutAndFillVolume\", function() { return _CutAndFillVolume__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _SceneColor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SceneColor */ \"./modules/analysis/SceneColor.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SceneColor\", function() { return _SceneColor__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/**\n * @Author 刘策\n * @Date 2022-05-18 17:27\n */\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuYWx5c2lzL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9hbmFseXNpcy9pbmRleC5qcz9kNzYwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDliJjnrZZcbiAqIEBEYXRlIDIwMjItMDUtMTggMTc6MjdcbiAqL1xuXG5leHBvcnQgeyBkZWZhdWx0IGFzIEFuYWx5c2lzIH0gZnJvbSAnLi9BbmFseXNpcydcbmV4cG9ydCB7IGRlZmF1bHQgYXMgU2hhZG93cyB9IGZyb20gJy4vU2hhZG93cydcbmV4cG9ydCB7IGRlZmF1bHQgYXMgU3Vuc2hpbmVEdXJhdGlvbiB9IGZyb20gJy4vU3Vuc2hpbmVEdXJhdGlvbidcbmV4cG9ydCB7IGRlZmF1bHQgYXMgU3Vuc2hpbmVEdXJhdGlvbl9TaGFkZXIgfSBmcm9tICcuL1N1bnNoaW5lRHVyYXRpb25fU2hhZGVyJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBWaWV3U2hlZCB9IGZyb20gJy4vVmlld1NoZWQnXG5leHBvcnQgeyBkZWZhdWx0IGFzIFNpZ2h0TGluZSB9IGZyb20gJy4vU2lnaHRMaW5lJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBTa3lMaW5lIH0gZnJvbSAnLi9Ta3lMaW5lJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBDdXRBbmRGaWxsVm9sdW1lIH0gZnJvbSAnLi9DdXRBbmRGaWxsVm9sdW1lJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBTY2VuZUNvbG9yIH0gZnJvbSAnLi9TY2VuZUNvbG9yJ1xuXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/analysis/index.js\n");
- /***/ }),
- /***/ "./modules/animation/Animation.js":
- /*!****************************************!*\
- !*** ./modules/animation/Animation.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-12-20 16:32:22\n */\nvar Animation = /*#__PURE__*/function () {\n function Animation(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Animation);\n\n this._viewer = viewer;\n this._options = {};\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Animation, [{\n key: \"_bindEvent\",\n value: function _bindEvent() {}\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {}\n /**\n * Start globe rotate\n * @returns {Animation}\n */\n\n }, {\n key: \"start\",\n value: function start() {\n var _this = this;\n\n this._viewer.clock.shouldAnimate = true;\n\n this._unbindEvent();\n\n if (this._options.duration) {\n var timer = setTimeout(function () {\n _this._unbindEvent();\n\n _this._options.callback && _this._options.callback.call(_this._options.context || _this);\n clearTimeout(timer);\n }, Number(this._options.duration) * 1e3);\n }\n\n this._bindEvent();\n\n return this;\n }\n /**\n * Stop globe rotate\n * @returns {Animation}\n */\n\n }, {\n key: \"stop\",\n value: function stop() {\n this._unbindEvent();\n\n return this;\n }\n }]);\n\n return Animation;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Animation);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi9BbmltYXRpb24uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2FuaW1hdGlvbi9BbmltYXRpb24uanM/NzAxOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0xMi0yMCAxNjozMjoyMlxuICovXG5cbmNsYXNzIEFuaW1hdGlvb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O0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQ0E7OztBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/animation/Animation.js\n");
- /***/ }),
- /***/ "./modules/animation/AnimationType.js":
- /*!********************************************!*\
- !*** ./modules/animation/AnimationType.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2021-08-01 00:12:06\n */\nvar AnimationType = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (AnimationType);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi9BbmltYXRpb25UeXBlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9hbmltYXRpb24vQW5pbWF0aW9uVHlwZS5qcz84NWFkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA4LTAxIDAwOjEyOjA2XG4gKi9cblxubGV0IEFuaW1hdGlvblR5cGUgPSB7fVxuXG5leHBvcnQgZGVmYXVsdCBBbmltYXRpb25UeXBlXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/animation/AnimationType.js\n");
- /***/ }),
- /***/ "./modules/animation/index.js":
- /*!************************************!*\
- !*** ./modules/animation/index.js ***!
- \************************************/
- /*! exports provided: Animation, AnimationType, AroundView, AroundPoint, CircleScan, Flying, GlobeRotate, RadarScan */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Animation */ \"./modules/animation/Animation.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Animation\", function() { return _Animation__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _AnimationType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnimationType */ \"./modules/animation/AnimationType.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AnimationType\", function() { return _AnimationType__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _type_AroundView__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type/AroundView */ \"./modules/animation/type/AroundView.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AroundView\", function() { return _type_AroundView__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _type_AroundPoint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./type/AroundPoint */ \"./modules/animation/type/AroundPoint.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AroundPoint\", function() { return _type_AroundPoint__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _type_CircleScan__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./type/CircleScan */ \"./modules/animation/type/CircleScan.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CircleScan\", function() { return _type_CircleScan__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _type_Flying__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./type/Flying */ \"./modules/animation/type/Flying.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Flying\", function() { return _type_Flying__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _type_GlobeRotate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./type/GlobeRotate */ \"./modules/animation/type/GlobeRotate.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"GlobeRotate\", function() { return _type_GlobeRotate__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _type_RadarScan__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./type/RadarScan */ \"./modules/animation/type/RadarScan.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"RadarScan\", function() { return _type_RadarScan__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2020-03-05 22:15:27\n */\n\n\n/**\n * types\n */\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvYW5pbWF0aW9uL2luZGV4LmpzPzIyMDkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDMtMDUgMjI6MTU6MjdcbiAqL1xuXG5leHBvcnQgeyBkZWZhdWx0IGFzIEFuaW1hdGlvbiB9IGZyb20gJy4vQW5pbWF0aW9uJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBBbmltYXRpb25UeXBlIH0gZnJvbSAnLi9BbmltYXRpb25UeXBlJ1xuXG4vKipcbiAqIHR5cGVzXG4gKi9cbmV4cG9ydCB7IGRlZmF1bHQgYXMgQXJvdW5kVmlldyB9IGZyb20gJy4vdHlwZS9Bcm91bmRWaWV3J1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBBcm91bmRQb2ludCB9IGZyb20gJy4vdHlwZS9Bcm91bmRQb2ludCdcbmV4cG9ydCB7IGRlZmF1bHQgYXMgQ2lyY2xlU2NhbiB9IGZyb20gJy4vdHlwZS9DaXJjbGVTY2FuJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBGbHlpbmcgfSBmcm9tICcuL3R5cGUvRmx5aW5nJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBHbG9iZVJvdGF0ZSB9IGZyb20gJy4vdHlwZS9HbG9iZVJvdGF0ZSdcbmV4cG9ydCB7IGRlZmF1bHQgYXMgUmFkYXJTY2FuIH0gZnJvbSAnLi90eXBlL1JhZGFyU2NhbidcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/animation/index.js\n");
- /***/ }),
- /***/ "./modules/animation/type/AroundPoint.js":
- /*!***********************************************!*\
- !*** ./modules/animation/type/AroundPoint.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _AnimationType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../AnimationType */ \"./modules/animation/AnimationType.js\");\n/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Animation */ \"./modules/animation/Animation.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-02 22:38:10\n */\n\n\n\n\n\n\nvar AroundPoint = /*#__PURE__*/function (_Animation) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AroundPoint, _Animation);\n\n var _super = _createSuper(AroundPoint);\n\n function AroundPoint(viewer, position) {\n var _this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AroundPoint);\n\n _this = _super.call(this, viewer);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._options = options;\n _this._heading = viewer.camera.heading;\n _this._aroundAmount = 0.2;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AroundPoint, [{\n key: \"type\",\n get: function get() {\n return _AnimationType__WEBPACK_IMPORTED_MODULE_8__[\"default\"].AROUND_POINT;\n }\n }, {\n key: \"position\",\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n return this;\n }\n }, {\n key: \"aroundAmount\",\n set: function set(aroundAmount) {\n this._aroundAmount = aroundAmount;\n return this;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.clock.onTick.addEventListener(this._onAround, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.clock.onTick.removeEventListener(this._onAround, this);\n }\n /**\n *\n * @param scene\n * @param time\n * @private\n */\n\n }, {\n key: \"_onAround\",\n value: function _onAround(scene, time) {\n this._heading += _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._aroundAmount);\n\n if (this._heading >= Math.PI * 2 || this._heading <= -Math.PI * 2) {\n this._heading = 0;\n }\n\n this._viewer.camera.lookAt(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"Transform\"].transformWGS84ToCartesian(this._position), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].HeadingPitchRange(this._heading, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._options.pitch || 0), this._options.range || 1000));\n }\n }]);\n\n return AroundPoint;\n}(_Animation__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_AnimationType__WEBPACK_IMPORTED_MODULE_8__[\"default\"].AROUND_POINT = 'around_point';\n/* harmony default export */ __webpack_exports__[\"default\"] = (AroundPoint);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi90eXBlL0Fyb3VuZFBvaW50LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9hbmltYXRpb24vdHlwZS9Bcm91bmRQb2ludC5qcz84OWFhIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAzLTAyIDIyOjM4OjEwXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IEFuaW1hdGlvblR5cGUgZnJvbSAnLi4vQW5pbWF0aW9uVHlwZSdcblxuaW1wb3J0IEFuaW1hdGlvbiBmcm9tICcuLi9BbmltYXRpb24n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Q0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBTEE7QUFNQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQVFBOzs7O0FBM0RBO0FBQ0E7QUE2REE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/animation/type/AroundPoint.js\n");
- /***/ }),
- /***/ "./modules/animation/type/AroundView.js":
- /*!**********************************************!*\
- !*** ./modules/animation/type/AroundView.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Animation */ \"./modules/animation/Animation.js\");\n/* harmony import */ var _AnimationType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../AnimationType */ \"./modules/animation/AnimationType.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-02 23:14:20\n */\n\n\n\n\nvar AroundView = /*#__PURE__*/function (_Animation) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AroundView, _Animation);\n\n var _super = _createSuper(AroundView);\n\n function AroundView(viewer) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AroundView);\n\n _this = _super.call(this, viewer);\n _this._options = options;\n _this._heading = viewer.camera.heading;\n _this._aroundAmount = 0.2;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AroundView, [{\n key: \"type\",\n get: function get() {\n return _AnimationType__WEBPACK_IMPORTED_MODULE_7__[\"default\"].AROUND_VIEW;\n }\n }, {\n key: \"aroundAmount\",\n set: function set(aroundAmount) {\n this._aroundAmount = aroundAmount;\n return this;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.clock.onTick.addEventListener(this._onAround, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.clock.onTick.removeEventListener(this._onAround, this);\n }\n /**\n *\n * @param scene\n * @param time\n * @private\n */\n\n }, {\n key: \"_onAround\",\n value: function _onAround(scene, time) {\n this._heading += _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._aroundAmount);\n\n if (this._heading >= Math.PI * 2 || this._heading <= -Math.PI * 2) {\n this._heading = 0;\n }\n\n this._viewer.camera.setView({\n orientation: {\n heading: this._heading,\n pitch: this._options.pitch ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._options.pitch) : this._viewer.camera.pitch,\n roll: this._options.roll ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._options.roll) : this._viewer.camera.roll\n }\n });\n }\n }]);\n\n return AroundView;\n}(_Animation__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\n_AnimationType__WEBPACK_IMPORTED_MODULE_7__[\"default\"].AROUND_VIEW = 'around_view';\n/* harmony default export */ __webpack_exports__[\"default\"] = (AroundView);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi90eXBlL0Fyb3VuZFZpZXcuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2FuaW1hdGlvbi90eXBlL0Fyb3VuZFZpZXcuanM/YzQzZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMy0wMiAyMzoxNDoyMFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGF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7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQUtBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFHQTtBQUxBO0FBREE7QUFXQTs7OztBQXhEQTtBQUNBO0FBMERBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/animation/type/AroundView.js\n");
- /***/ }),
- /***/ "./modules/animation/type/CircleScan.js":
- /*!**********************************************!*\
- !*** ./modules/animation/type/CircleScan.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Animation */ \"./modules/animation/Animation.js\");\n/* harmony import */ var _AnimationType__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../AnimationType */ \"./modules/animation/AnimationType.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-12-01 20:26:02\n */\n\n\n\n\n\n\n\nvar CircleScanShader = __webpack_require__(/*! @gd-modules/material/shader/circle/CircleScanShader.glsl */ \"./modules/material/shader/circle/CircleScanShader.glsl\");\n\nvar CircleScan = /*#__PURE__*/function (_Animation) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CircleScan, _Animation);\n\n var _super = _createSuper(CircleScan);\n\n function CircleScan(viewer, position, radius) {\n var _this;\n\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CircleScan);\n\n _this = _super.call(this, viewer);\n _this._delegate = undefined;\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position);\n _this._radius = radius || 100;\n _this._color = options.color || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color.RED;\n _this._speed = options.speed || 2;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CircleScan, [{\n key: \"type\",\n get: function get() {\n return _AnimationType__WEBPACK_IMPORTED_MODULE_10__[\"default\"].CIRCLE_SCAN;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n var center = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ToCartesian(this._position);\n var up = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Ellipsoid.WGS84.geodeticSurfaceNormal(center, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3());\n var self = this;\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PostProcessStage({\n name: _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].uuid(),\n fragmentShader: CircleScanShader,\n uniforms: {\n centerWC: function centerWC() {\n return center;\n },\n normalWC: function normalWC() {\n return up;\n },\n radius: function radius() {\n return self._radius;\n },\n speed: function speed() {\n return self._speed;\n },\n color: function color() {\n return self._color;\n }\n }\n });\n }\n /**\n *\n * @returns {CircleScan}\n */\n\n }, {\n key: \"start\",\n value: function start() {\n !this._delegate && this._mountContent();\n this._delegate && this._viewer.scene.postProcessStages.add(this._delegate);\n return this;\n }\n /**\n *\n * @returns {CircleScan}\n */\n\n }, {\n key: \"stop\",\n value: function stop() {\n this._delegate && this._viewer.scene.postProcessStages.remove(this._delegate);\n this._delegate = undefined;\n return this;\n }\n }]);\n\n return CircleScan;\n}(_Animation__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_AnimationType__WEBPACK_IMPORTED_MODULE_10__[\"default\"].CIRCLE_SCAN = 'circle_scan';\n/* harmony default export */ __webpack_exports__[\"default\"] = (CircleScan);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi90eXBlL0NpcmNsZVNjYW4uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2FuaW1hdGlvbi90eXBlL0NpcmNsZVNjYW4uanM/NDBlMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0xMi0wMSAyMDoyNjowMlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBQYXJzZSBmcm9tICdAZ2QtbW9kdWxlcy9wYXJzZS9QYXJzZSdcbmltcG9ydCB7IFV0aWwgfSBmcm9tICdAZ2QtbW9kdWxlcy91dGlscydcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCBBbmltYXRpb24gZnJvbSAnLi4vQW5pbWF0aW9uJ1xuaW1wb3J0IEFuaW1hdGlvblR5cGUgZnJvbSAnLi4vQW5pbWF0aW9uVHlwZSdcblxuY29uc3QgQ2lyY2xlU2NhblNoYWRlciA9IHJlcXVpcmUoJ0BnZC1tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlU2NhblNoYWRlci5nbHNsJylcblxuY2xhc3MgQ2lyY2xlU2NhbiBleHRlbmRzIEFuaW1hdGlvbiB7XG4gIGNvbnN0cnVjdG9yKHZpZXdlciwgcG9zaXRpb24sIHJhZGl1cywgb3B0aW9ucyA9IHt9KSB7XG4gICAgc3VwZ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0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFOQTtBQU9BO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFmQTtBQUhBO0FBcUJBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7Ozs7QUFuRUE7QUFDQTtBQXFFQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/animation/type/CircleScan.js\n");
- /***/ }),
- /***/ "./modules/animation/type/Flying.js":
- /*!******************************************!*\
- !*** ./modules/animation/type/Flying.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Animation */ \"./modules/animation/Animation.js\");\n/* harmony import */ var _AnimationType__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../AnimationType */ \"./modules/animation/AnimationType.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-09 20:21:33\n */\n\n\n\n\n\n\nvar Flying = /*#__PURE__*/function (_Animation) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Flying, _Animation);\n\n var _super = _createSuper(Flying);\n\n function Flying(viewer) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Flying);\n\n _this = _super.call(this, viewer);\n _this._options = options;\n _this._positions = [];\n _this._durations = [3];\n _this._currentIndex = 0;\n _this._timer = undefined;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Flying, [{\n key: \"type\",\n get: function get() {\n return _AnimationType__WEBPACK_IMPORTED_MODULE_9__[\"default\"].FLYING;\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePositions(positions);\n return this;\n }\n }, {\n key: \"durations\",\n get: function get() {\n return this._durations;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(durations) {\n this._durations = durations;\n return this;\n }\n }, {\n key: \"_cameraFly\",\n value: function _cameraFly() {\n var self = this;\n var camera = this._viewer.camera;\n var position = this._positions[this._currentIndex];\n\n var callback = function callback() {\n var nextPosition = self._positions[self._currentIndex + 1];\n\n if (nextPosition) {\n self._currentIndex++;\n\n if (self._currentIndex <= self._positions.length - 1) {\n self._timer = setTimeout(function () {\n self._cameraFly();\n }, (self._options.dwellTime || 1) * 1e3);\n }\n } else if (!nextPosition && self._options.loop) {\n self._currentIndex = 0;\n self._timer = setTimeout(function () {\n self._cameraFly();\n }, (self._options.dwellTime || 1) * 1e3);\n }\n\n self._options.callback && self._options.callback(self._currentIndex);\n };\n\n if (position) {\n camera.flyTo({\n destination: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__[\"Transform\"].transformWGS84ToCartesian(position),\n orientation: {\n heading: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(position.heading),\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(position.pitch),\n roll: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(position.roll)\n },\n complete: callback,\n duration: this._durations.length === 1 ? this._durations[0] : this._durations[this._currentIndex]\n });\n }\n }\n /**\n *\n * @returns {Flying}\n */\n\n }, {\n key: \"start\",\n value: function start() {\n if (this._positions && this._positions.length) {\n this._currentIndex = 0;\n\n this._cameraFly();\n }\n\n return this;\n }\n /**\n *\n * @returns {Flying}\n */\n\n }, {\n key: \"pause\",\n value: function pause() {\n this._viewer.camera.cancelFlight();\n\n this._timer && clearTimeout(this._timer);\n return this;\n }\n /**\n *\n * @returns {Flying}\n */\n\n }, {\n key: \"restore\",\n value: function restore() {\n if (this._positions && this._positions.length) {\n this._cameraFly();\n }\n\n return this;\n }\n }]);\n\n return Flying;\n}(_Animation__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n_AnimationType__WEBPACK_IMPORTED_MODULE_9__[\"default\"].FLYING = 'flying';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Flying);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi90eXBlL0ZseWluZy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvYW5pbWF0aW9uL3R5cGUvRmx5aW5nLmpzPzM4YzkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDEtMDkgMjA6MjE6MzNcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgQW5pbWF0aW9uIGZyb20gJy4uL0FuaW1hdGlvbidcbmltcG9ydCBBbmltYXRpb25UeXBlIGZyb20gJy4uL0FuaW1hdGlvblR5cGUnXG5cbmNsYXNzIEZseWluZyBleHRlbmRzIEFuaW1hdGlvbiB7XG4gIGNvbn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animation/type/Flying.js\n");
- /***/ }),
- /***/ "./modules/animation/type/GlobeRotate.js":
- /*!***********************************************!*\
- !*** ./modules/animation/type/GlobeRotate.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Animation */ \"./modules/animation/Animation.js\");\n/* harmony import */ var _AnimationType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../AnimationType */ \"./modules/animation/AnimationType.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-30 20:47:25\n */\n\n\n\n\nvar GlobeRotate = /*#__PURE__*/function (_Animation) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GlobeRotate, _Animation);\n\n var _super = _createSuper(GlobeRotate);\n\n function GlobeRotate(viewer) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GlobeRotate);\n\n _this = _super.call(this, viewer);\n _this._options = options;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(GlobeRotate, [{\n key: \"type\",\n get: function get() {\n return _AnimationType__WEBPACK_IMPORTED_MODULE_7__[\"default\"].GLOBE_ROTATE;\n }\n /**\n * @param scene\n * @param time\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_icrf\",\n value: function _icrf(scene, time) {\n if (scene.mode !== _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE3D) {\n return true;\n }\n\n var icrfToFixed = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.computeIcrfToFixedMatrix(time);\n\n if (icrfToFixed) {\n var camera = this._viewer.camera;\n var offset = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.clone(camera.position);\n var transform = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix4.fromRotationTranslation(icrfToFixed);\n camera.lookAtTransform(transform, offset);\n }\n }\n /**\n * Bind the Event\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.clock.multiplier = this._options.speed || 12 * 1000;\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.scene.postUpdate.addEventListener(this._icrf, this);\n }\n /**\n * Unbind the Event\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.clock.multiplier = 1;\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.scene.postUpdate.removeEventListener(this._icrf, this);\n }\n }]);\n\n return GlobeRotate;\n}(_Animation__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\n_AnimationType__WEBPACK_IMPORTED_MODULE_7__[\"default\"].GLOBE_ROTATE = 'globe_rotate';\n/* harmony default export */ __webpack_exports__[\"default\"] = (GlobeRotate);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi90eXBlL0dsb2JlUm90YXRlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9hbmltYXRpb24vdHlwZS9HbG9iZVJvdGF0ZS5qcz8zNmYwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTMwIDIwOjQ3OjI1XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IEFuaW1hdGlvbiBmcm9tICcuLi9BbmltYXRpb24nXG5pbXBvcnQgQW5pbWF0aW9uVHlwZSBmcm9tICcuLi9BbmltYXRpb25UeXBlJ1xuXG5jbGFzcyBHbG9iZVJvdGF0ZSBleHRlbmRzIEFuaW1hdGlvbiB7XG4gIGNvbnN0cnVjdG9yKHZpZXdlciwgb3B0aW9ucyA9IHt9KSB7XG4gICAgc3VwZXIodmlld2VyKVxuICAgIHRoaXMuX29wdGlvbnMgPSBvcHRpb25zXG4gIH1cblxuICBnZXQgdHlwZSgpIHtcbiAgICByZXR1cm4gQW5pbWF0aW9uVHlwZS5HTE9CRV9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QUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/animation/type/GlobeRotate.js\n");
- /***/ }),
- /***/ "./modules/animation/type/RadarScan.js":
- /*!*********************************************!*\
- !*** ./modules/animation/type/RadarScan.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Animation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Animation */ \"./modules/animation/Animation.js\");\n/* harmony import */ var _AnimationType__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../AnimationType */ \"./modules/animation/AnimationType.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-12-01 20:40:02\n */\n\n\n\n\n\n\n\nvar RadarScanShader = __webpack_require__(/*! @gd-modules/material/shader/radar/RadarScanShader.glsl */ \"./modules/material/shader/radar/RadarScanShader.glsl\");\n\nvar RadarScan = /*#__PURE__*/function (_Animation) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(RadarScan, _Animation);\n\n var _super = _createSuper(RadarScan);\n\n function RadarScan(viewer, position, radius) {\n var _this;\n\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RadarScan);\n\n _this = _super.call(this, viewer);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position);\n _this._radius = radius || 100;\n _this._color = options.color || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color.BLUE;\n _this._speed = options.speed || 3;\n _this._delegate = undefined;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RadarScan, [{\n key: \"type\",\n get: function get() {\n return _AnimationType__WEBPACK_IMPORTED_MODULE_10__[\"default\"].RADAR_SCAN;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n var center = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ToCartesian(this._position);\n var up = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Ellipsoid.WGS84.geodeticSurfaceNormal(center, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3());\n var time = new Date().getTime();\n var self = this;\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PostProcessStage({\n name: _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].uuid(),\n fragmentShader: RadarScanShader,\n uniforms: {\n centerWC: function centerWC() {\n return center;\n },\n planeNormalWC: function planeNormalWC() {\n return up;\n },\n lineNormalWC: function lineNormalWC() {\n var rotateQ = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Quaternion();\n var rotateM = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix3();\n var east = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.cross(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.UNIT_Z, up, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3());\n var now = new Date().getTime();\n var angle = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.PI * 2 * ((now - time) / 1e4) * self._speed;\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Quaternion.fromAxisAngle(up, angle, rotateQ);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix3.fromQuaternion(rotateQ, rotateM);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix3.multiplyByVector(rotateM, east, east);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.normalize(east, east);\n return east;\n },\n radius: function radius() {\n return self._radius;\n },\n color: function color() {\n return self._color;\n }\n }\n });\n }\n /**\n *\n * @returns {RadarScan}\n */\n\n }, {\n key: \"start\",\n value: function start() {\n !this._delegate && this._mountContent();\n this._delegate && this._viewer.scene.postProcessStages.add(this._delegate);\n return this;\n }\n /**\n *\n * @returns {RadarScan}\n */\n\n }, {\n key: \"stop\",\n value: function stop() {\n this._delegate && this._viewer.scene.postProcessStages.remove(this._delegate);\n this._delegate = undefined;\n return this;\n }\n }]);\n\n return RadarScan;\n}(_Animation__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_AnimationType__WEBPACK_IMPORTED_MODULE_10__[\"default\"].RADAR_SCAN = 'radar_scan';\n/* harmony default export */ __webpack_exports__[\"default\"] = (RadarScan);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2FuaW1hdGlvbi90eXBlL1JhZGFyU2Nhbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvYW5pbWF0aW9uL3R5cGUvUmFkYXJTY2FuLmpzP2YzNzQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMTItMDEgMjA6NDA6MDJcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBVdGlsIH0gZnJvbSAnQGdkLW1vZHVsZXMvdXRpbHMnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgQW5pbWF0aW9uIGZyb20gJy4uL0FuaW1hdGlvbidcbmltcG9ydCBBbmltYXRpb25UeXBlIGZyb20gJy4uL0FuaW1hdGlvblR5cGUnXG5cbmNvbnN0IFJhZG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NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFOQTtBQU9BO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBS0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQTVCQTtBQUhBO0FBa0NBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7Ozs7QUFqRkE7QUFDQTtBQW1GQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/animation/type/RadarScan.js\n");
- /***/ }),
- /***/ "./modules/camera/cameraController.js":
- /*!********************************************!*\
- !*** ./modules/camera/cameraController.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-09-15 10:06\n * @Description\n */\n\n\nvar CameraController = /*#__PURE__*/function () {\n function CameraController(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CameraController);\n\n this._viewer = viewer._delegate || viewer;\n }\n /**\n * 获取相机坐标\n * @returns {Object} 返回相机笛卡尔坐标和经纬度坐标\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CameraController, [{\n key: \"getCameraPosition\",\n value: function getCameraPosition() {\n var position = {\n x: this._viewer.camera.position.x,\n y: this._viewer.camera.position.y,\n z: this._viewer.camera.position.z,\n heading: this._viewer.camera.heading,\n pitch: this._viewer.camera.pitch,\n roll: this._viewer.camera.roll\n };\n var cartographic = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(this._viewer.camera.position);\n var wgs84 = {\n lng: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(cartographic.longitude),\n lat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(cartographic.latitude),\n alt: cartographic.height,\n heading: this._viewer.camera.heading,\n pitch: this._viewer.camera.pitch,\n roll: this._viewer.camera.roll\n };\n return {\n position: position,\n wgs84Position: wgs84\n };\n }\n /**\n * 获取相机坐标\n * @param {Object} position 设置相机笛卡尔坐标\n * @param {Number} position.x 设置相机笛卡尔坐标\n * @param {Number} position.y 设置相机笛卡尔坐标\n * @param {Number} position.z 设置相机笛卡尔坐标\n * @param {Number} position.lng 设置相机经度坐标\n * @param {Number} position.lat 设置相机纬度坐标\n * @param {Number} position.alt 设置相机高度坐标\n * @param {Number} position.heading 设置相机偏转角\n * @param {Number} position.pitch 设置相机偏转角\n * @param {Number} position.roll 设置相机偏转角\n */\n\n }, {\n key: \"setCameraPosition\",\n value: function setCameraPosition(position) {\n var cartesian;\n\n if (position.x && position.y && position.z) {\n cartesian = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(position.x, position.y, position.z);\n } else if (position.lng && position.lat && position.alt) {\n cartesian = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromDegrees(position.lng, position.lat, position.alt, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Ellipsoid.WGS84);\n }\n\n this._viewer.camera.setView({\n destination: cartesian,\n orientation: {\n heading: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(90.0),\n // east, default value is 0.0 (north)\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(-90),\n // default value (looking down)\n roll: 0.0 // default value\n\n }\n });\n }\n /**\n * 指北针,修改相机朝向\n */\n\n }, {\n key: \"orientationToNorth\",\n value: function orientationToNorth() {\n var viewer = this._viewer; // 得到当前三维场景屏幕对应笛卡尔坐标\n\n var car3 = this.getCar2ToCar3();\n var point, target; // 屏幕坐标对应椭球坐标和模型坐标\n\n var fovy; // 相机y轴视场角度\n // 当canvas坐标在椭球体上有对应坐标\n\n if (car3.center) {\n point = car3.center;\n fovy = 0;\n } else if (car3.centerDown) {\n point = car3.centerDown;\n fovy = viewer.camera.frustum.fovy * 0.3;\n } else if (car3.centerBottom) {\n point = car3.centerBottom;\n fovy = viewer.camera.frustum.fovy * 0.5;\n } else {\n viewer.scene.camera.flyTo({\n destination: viewer.camera.position,\n orientation: {\n heading: 0,\n pitch: viewer.camera.pitch,\n roll: 0\n }\n });\n return;\n }\n\n target = this.getTarget(point);\n var pitch = car3.center ? viewer.camera.pitch : viewer.camera.pitch - fovy;\n var cameraOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRange(0, pitch, target.distance);\n viewer.flyTo(target.entity, {\n duration: 2,\n offset: cameraOffset\n });\n }\n /**\n * 切换垂直视图,锁定旋转\n */\n\n }, {\n key: \"viewVertical\",\n value: function viewVertical() {\n var _this = this;\n\n return new Promise(function (resolve) {\n var viewer = _this._viewer;\n var height = Math.ceil(viewer.camera.positionCartographic.height);\n\n var car3 = _this.getCar2ToCar3();\n\n var point, target; // 屏幕坐标对应椭球坐标和模型坐标\n // 当canvas坐标在椭球体上有对应坐标\n\n var index; // 屏幕坐标对应下标值\n // 依次从屏幕中点往中下取对应椭球三维坐标\n\n if (car3.center) {\n point = car3.center;\n index = 1;\n } else if (car3.centerDown) {\n point = car3.centerDown;\n index = 2;\n } else if (car3.centerBottom) {\n point = car3.centerBottom;\n index = 3;\n } else {\n viewer.scene.camera.flyTo({\n destination: viewer.camera.position,\n orientation: {\n heading: 0,\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(-90),\n roll: 0\n }\n });\n return;\n }\n\n target = _this.getTarget(point); // 当相机高度低,视线方向的中心点距离相机过远时,往中下一级坐标取点,避免垂直视图中心点过远\n\n if (target.distance > 1000 && height < 1000) {\n index += 1;\n\n switch (index) {\n case 2:\n point = car3.centerDown;\n break;\n\n case 3:\n point = car3.centerBottom;\n break;\n\n default:\n viewer.scene.camera.flyTo({\n destination: viewer.camera.position,\n orientation: {\n heading: 0,\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(-90),\n roll: 0\n }\n });\n return;\n }\n\n target = _this.getTarget(point);\n }\n\n if (target.distance > 1000 && height < 1000) {\n index += 1;\n\n switch (index) {\n case 3:\n point = car3.centerBottom;\n break;\n\n default:\n viewer.scene.camera.flyTo({\n destination: viewer.camera.position,\n orientation: {\n heading: 0,\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(-90),\n roll: 0\n }\n });\n return;\n }\n\n target = _this.getTarget(point);\n }\n\n var pitch = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(-90);\n var cameraOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRange(0, pitch, target.distance);\n viewer.flyTo(target.entity, {\n duration: 2,\n offset: cameraOffset\n }).then(function () {\n resolve();\n });\n viewer.scene.screenSpaceCameraController.enableTilt = false;\n });\n }\n /**\n * 切换2D视图,会造成倾斜影像撕裂,需要设置viewer属性scene3DOnly: false\n */\n\n }, {\n key: \"view2D\",\n value: function view2D() {\n var viewer = this._viewer;\n this.viewVertical().then(function () {\n viewer.scene.morphTo2D(0);\n });\n }\n /**\n * 切换3D视图\n */\n\n }, {\n key: \"view3D\",\n value: function view3D() {\n var viewer = this._viewer;\n viewer.scene.screenSpaceCameraController.enableTilt = true;\n viewer.scene.morphTo3D(0); // 相机偏转动画效果\n\n var car3 = this.getCar2ToCar3(); // 屏幕坐标对应椭球坐标和模型坐标\n\n var point = car3.center;\n var target = this.getTarget(point);\n var heading = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(20.0);\n var pitch = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(-50.0);\n var cameraOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRange(heading, pitch, target.distance);\n viewer.flyTo(target.entity, {\n duration: 2,\n offset: cameraOffset\n });\n }\n /**\n * @Description 放大,沿相机的视图矢量缩放\n * @param {Number} distance 距离。\n */\n\n }, {\n key: \"zoomOut\",\n value: function zoomOut(distance) {\n this._viewer.camera.zoomIn(distance);\n }\n /**\n * @Description 缩小,沿相机视图矢量的相反方向缩放\n * @param {Number} distance 距离。\n */\n\n }, {\n key: \"zoomIn\",\n value: function zoomIn(distance) {\n this._viewer.camera.zoomOut(distance);\n }\n /**\n * @Description 导出图片\n */\n\n }, {\n key: \"exportImage\",\n value: function exportImage() {\n var viewer = this._viewer;\n\n var dataURLtoBlob = function dataURLtoBlob(dataUrl) {\n var arr = dataUrl.split(','),\n mime = arr[0].match(/:(.*?);/)[1],\n bStr = atob(arr[1]),\n n = bStr.length,\n u8arr = new Uint8Array(n);\n\n while (n--) {\n u8arr[n] = bStr.charCodeAt(n);\n }\n\n return new Blob([u8arr], {\n type: mime\n });\n };\n\n viewer.render(); //不加会出现导出是一张黑乎乎的图片\n\n var canvas = viewer.scene.canvas;\n var image = canvas.toDataURL(\"image/png\").replace(\"image/png\", \"image/octet-stream\");\n var link = document.createElement(\"a\");\n var blob = dataURLtoBlob(image);\n var objUrl = URL.createObjectURL(blob);\n link.download = \"scene.png\";\n link.href = objUrl;\n link.click();\n }\n /**\n * 获取屏幕对应Cartesian2坐标在地球上的Cartesian3坐标\n * @returns {Object} 坐标对象\n */\n\n }, {\n key: \"getCar2ToCar3\",\n value: function getCar2ToCar3() {\n // 得到当前三维场景\n var viewer = this._viewer;\n var scene = viewer.scene; // 得到当前三维场景的椭球体\n\n var ellipsoid = scene.globe.ellipsoid;\n var canvas = scene.canvas; // 屏幕点位对应地球笛卡尔坐标\n\n var leftTop = viewer.camera.pickEllipsoid(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, 0), ellipsoid);\n var leftBottom = viewer.camera.pickEllipsoid(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, canvas.height), ellipsoid);\n var rightTop = viewer.camera.pickEllipsoid(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(canvas.width, 0), ellipsoid);\n var rightBottom = viewer.camera.pickEllipsoid(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(canvas.width, canvas.height), ellipsoid);\n var center = viewer.camera.pickEllipsoid(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(canvas.width * 0.5, canvas.height * 0.5), ellipsoid);\n var centerTop = viewer.camera.pickEllipsoid(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(canvas.width * 0.5, 0), ellipsoid);\n var centerDown = viewer.camera.pickEllipsoid(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(canvas.width * 0.5, canvas.height * 0.7), ellipsoid);\n var centerBottom = viewer.camera.pickEllipsoid(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(canvas.width * 0.5, canvas.height), ellipsoid);\n return {\n leftTop: leftTop,\n leftBottom: leftBottom,\n rightTop: rightTop,\n rightBottom: rightBottom,\n centerTop: centerTop,\n center: center,\n centerDown: centerDown,\n centerBottom: centerBottom\n };\n }\n /**\n * @Description 创建相机目标视点\n * @param {Cartesian3} cartesian 坐标点。\n * @returns {Object} 目标点对象,距离\n */\n\n }, {\n key: \"createTarget\",\n value: function createTarget(cartesian) {\n var target = this._viewer.entities.add({\n position: cartesian,\n point: {\n pixelSize: 0.1,\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.YELLOW.withAlpha(0.01)\n }\n });\n\n var distance = Math.ceil(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.distance(this._viewer.camera.positionWC, cartesian));\n return {\n entity: target,\n distance: distance\n };\n }\n /**\n * @Description 在相机到椭球点对应射线检测拾取到的模型坐标点创建实体点,没有模型时返回在椭球上创建的实体点\n * @param {Cartesian3} cartesian 坐标点。\n * @returns {Object} 目标点对象,距离\n */\n\n }, {\n key: \"getTarget\",\n value: function getTarget(cartesian) {\n var viewer = this._viewer;\n var target;\n var ray = this.createRay(viewer.camera.positionWC, cartesian);\n var result = viewer.scene.pickFromRay(ray);\n\n if (result) {\n target = this.createTarget(result.position);\n } else {\n // 没有模型时,使用地球表面坐标\n target = this.createTarget(cartesian);\n }\n\n return target;\n }\n /**\n * @Description 从A点向B点创建射线\n * @param {Cartesian3} positionA 起点坐标。\n * @param {Cartesian3} positionB 终点坐标。\n * @returns {Cesium.Ray} 射线对象\n */\n\n }, {\n key: \"createRay\",\n value: function createRay(positionA, positionB) {\n var result = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n var direction = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.normalize(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.subtract(positionB, positionA, result), result);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Ray(positionA, direction);\n }\n }]);\n\n return CameraController;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CameraController);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2NhbWVyYS9jYW1lcmFDb250cm9sbGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9jYW1lcmEvY2FtZXJhQ29udHJvbGxlci5qcz9lNmJlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDli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mRleCAvLyDlsY/luZXlnZDmoIflr7nlupTkuIvmoIflgLxcbiAgICAgIC8vIOS+neasoeS7juWxj+W5leS4reeCueW+gOS4reS4i+WPluWvueW6lOakreeQg+S4iee7tOWdkOagh1xuICAgICAgaWYgKGNhcjMuY2VudGVyKSB7XG4gICAgICAgIHBvaW50ID0gY2FyMy5jZW50ZXJcbiAgICAgICAgaW5kZXggPSAxXG4gICAgICB9IGVsc2UgaWYgKGNhcjMuY2VudGVyRG93bikge1xuICAgICAgICBwb2ludCA9IGNhcjMuY2VudGVyRG93blxuICAgICAgICBpbmRleCA9IDJcbiAgICAgIH0gZWxzZSBpZiAoY2FyMy5jZW50ZXJCb3R0b20pIHtcbiAgICAgICAgcG9pbnQgPSBjYXIzLmNlbnRlckJvdHRvbVxuICAgICAgICBpbmRleCA9IDNcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHZpZXdlci5zY2VuZS5jYW1lcmEuZmx5VG8oe1xuICAgICAgICAgIGRlc3RpbmF0aW9uOiB2aWV3ZXIuY2FtZXJhLnBvc2l0aW9uLFxuICAgICAgICAgIG9yaWVudGF0aW9uOiB7XG4gICAgICAgICAgICBoZWFkaW5nOiAwLFxuICAgICAgICAgICAgcGl0Y2g6IENlc2l1bS5NYXRoLnRvUmFkaWFucygtOTApLFxuICAgICAgICAgICAgcm9sbDogMFxuICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICAgICAgcmV0dXJuXG4gICAgICB9XG4gICAgICB0YXJnZXQgPSB0aGlzLmdldFRhcmdldChwb2ludClcbiAgICAgIC8vIOW9k+ebuOacuumrmOW6puS9ju+8jOinhue6v+aWueWQkeeahOS4reW/g+eCuei3neemu+ebuOacuui/h+i/nOaXtu+8jOW+gOS4reS4i+S4gOe6p+WdkOagh+WPlueCue+8jOmBv+WFjeWeguebtOinhuWbvuS4reW/g+eCuei/h+i/nFxuICAgICAgaWYgKHRhcmdldC5kaXN0YW5jZSA+IDEwMDAgJiYgaGVpZ2h0IDwgMTAwMCkge1xuICAgICAgICBpbmRleCArPSAxXG4gICAgICAgIHN3aXRjaCAoaW5kZXgpIHtcbiAgICAgICAgICBjYXNlIDI6XG4gICAgICAgICAgICBwb2ludCA9IGNhcjMuY2VudGVyRG93blxuICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICBjYXNlIDM6XG4gICAgICAgICAgICBwb2ludCA9IGNhcjMuY2VudGVyQm90dG9tXG4gICAgICAgICAgICBicmVha1xuICAgICAgICAgIGRlZmF1bHQgOlxuICAgICAgICAgICAgdmlld2VyLnNjZW5lLmNhbWVyYS5mbHlUbyh7XG4gICAgICAgICAgICAgIGRlc3RpbmF0aW9uOiB2aWV3ZXIuY2FtZXJhLnBvc2l0aW9uLFxuICAgICAgICAgICAgICBvcmllbnRhdGlvbjoge1xuICAgICAgICAgICAgICAgIGhlYWRpbmc6IDAsXG4gICAgICAgICAgICAgICAgcGl0Y2g6IENlc2l1bS5NYXRoLnRvUmFkaWFucygtOTApLFxuICAgICAgICAgICAgICAgIHJvbGw6IDBcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIHJldHVyblxuICAgICAgICB9XG4gICAgICAgIHRhcmdldCA9IHRoaXMuZ2V0VGFyZ2V0KHBvaW50KVxuICAgICAgfVxuICAgICAgaWYgKHRhcmdldC5kaXN0YW5jZSA+IDEwMDAgJiYgaGVpZ2h0IDwgMTAwMCkge1xuICAgICAgICBpbmRleCArPSAxXG4gICAgICAgIHN3aXRjaCAoaW5kZXgpIHtcbiAgICAgICAgICBjYXNlIDM6XG4gICAgICAgICAgICBwb2ludCA9IGNhcjMuY2VudGVyQm90dG9tXG4gICAgICAgICAgICBicmVha1xuICAgICAgICAgIGRlZmF1bHQgOlxuICAgICAgICAgICAgdmlld2VyLnNjZW5lLmNhbWVyYS5mbHlUbyh7XG4gICAgICAgICAgICAgIGRlc3RpbmF0aW9uOiB2aWV3ZXIuY2FtZXJhLnBvc2l0aW9uLFxuICAgICAgICAgIC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UNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUlBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/camera/cameraController.js\n");
- /***/ }),
- /***/ "./modules/camera/index.js":
- /*!*********************************!*\
- !*** ./modules/camera/index.js ***!
- \*********************************/
- /*! exports provided: CameraController */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _cameraController__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cameraController */ \"./modules/camera/cameraController.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CameraController\", function() { return _cameraController__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/**\n * @Author 刘策\n * @Date 2022-09-15 9:41\n * @Description 相机类接口\n */\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2NhbWVyYS9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvY2FtZXJhL2luZGV4LmpzPzgzMDMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yIOWImOetllxuICogQERhdGUgMjAyMi0wOS0xNSA5OjQxXG4gKiBARGVzY3JpcHRpb24g55u45py657G75o6l5Y+jXG4gKi9cblxuZXhwb3J0IHsgZGVmYXVsdCBhcyBDYW1lcmFDb250cm9sbGVyIH0gZnJvbSAnLi9jYW1lcmFDb250cm9sbGVyJ1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/camera/index.js\n");
- /***/ }),
- /***/ "./modules/cameraAnimation/AroundPointRotate.js":
- /*!******************************************************!*\
- !*** ./modules/cameraAnimation/AroundPointRotate.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-05-23 15:58\n * @Description 绕点环视\n */\n\nvar DEF_OPTS = {\n time: 60,\n pitch: -30,\n heading: 0,\n range: 150\n};\n\nvar AroundPointRotate = /*#__PURE__*/function () {\n function AroundPointRotate(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AroundPointRotate);\n\n this._viewer = viewer._delegate || viewer;\n }\n /**\n * 启动环视\n * @param options 笛卡尔坐标,偏转角度和距离,环视周期\n * @param {Cartesian3} options.position 笛卡尔坐标\n * @param {Number} options.heading 朝向偏转角度\n * @param {Number} options.pitch 俯仰偏转角度\n * @param {Number} options.range 相机与环视点距离\n * @param {Number} options.time 环视周期\n * @returns {Position}\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AroundPointRotate, [{\n key: \"start\",\n value: function start() {\n var _this = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return new Promise(function (resolve) {\n if (_this.clockStop) {\n _this.clockStop = _this.clockStop && _this.clockStop();\n\n _this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n _this._viewer.scene.screenSpaceCameraController.enableInputs = true;\n }\n\n _this._position = options.position || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n _this._heading = options.heading || DEF_OPTS.heading;\n _this._pitch = options.pitch || DEF_OPTS.pitch;\n _this._range = options.range || DEF_OPTS.range;\n _this._time = Number(options.time) || DEF_OPTS.time;\n _this.offsetFPS = 360 / (_this._time * 60); // 每一帧的偏移量\n\n var viewer = _this._viewer;\n var instance = _this;\n var aroundPoint = viewer.entities.add({\n position: _this._position,\n point: {\n pixelSize: 0.1,\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.YELLOW.withAlpha(0.01)\n }\n });\n var cameraOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRange(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this._heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this._pitch), _this._range);\n viewer.flyTo(aroundPoint, {\n offset: cameraOffset\n }).then(function () {\n resolve();\n viewer.entities.remove(aroundPoint);\n viewer.scene.screenSpaceCameraController.enableInputs = false;\n instance.clockStop = viewer.clock.onTick.addEventListener(function () {\n instance._heading += instance.offsetFPS;\n instance._heading = instance._heading > 360 ? instance._heading - 360 : instance._heading;\n var offset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRange(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(instance._heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(instance._pitch), instance._range);\n viewer.camera.lookAt(_this._position, offset);\n });\n });\n });\n }\n /**\n * 暂停环视\n */\n\n }, {\n key: \"pause\",\n value: function pause() {\n if (!this.clockStop) {\n throw new Error('不存在环视事件');\n }\n\n this.clockStop = this.clockStop && this.clockStop();\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.scene.screenSpaceCameraController.enableInputs = true;\n this.pauseHeading = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(this._viewer.camera.heading);\n }\n /**\n * 继续环视\n */\n\n }, {\n key: \"continue\",\n value: function _continue() {\n var _this2 = this;\n\n if (!this.pauseHeading || !this._position) {\n throw new Error('不存在环视暂停记录点');\n }\n\n var viewer = this._viewer;\n var instance = this;\n viewer.scene.screenSpaceCameraController.enableInputs = false;\n this._heading = this.pauseHeading;\n this.clockStop = viewer.clock.onTick.addEventListener(function () {\n instance._heading += instance.offsetFPS;\n instance._heading = instance._heading > 360 ? instance._heading - 360 : instance._heading;\n var offset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRange(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(instance._heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(instance._pitch), instance._range);\n viewer.camera.lookAt(_this2._position, offset);\n });\n }\n /**\n * 修改环视周期\n * @param {Number} time 环视周期\n */\n\n }, {\n key: \"changeSpeed\",\n value: function changeSpeed(time) {\n var _this3 = this;\n\n if (!this.clockStop) {\n throw new Error('不存在环视事件');\n }\n\n this.clockStop = this.clockStop && this.clockStop();\n var viewer = this._viewer;\n var instance = this;\n this._heading = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(this._viewer.camera.heading);\n this.offsetFPS = 360 / (time * 60);\n this.clockStop = viewer.clock.onTick.addEventListener(function () {\n instance._heading += instance.offsetFPS;\n instance._heading = instance._heading > 360 ? instance._heading - 360 : instance._heading;\n var offset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRange(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(instance._heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(instance._pitch), instance._range);\n viewer.camera.lookAt(_this3._position, offset);\n });\n }\n /**\n * 角度跳转\n */\n\n }, {\n key: \"jumpAngle\",\n value: function jumpAngle(angle) {\n this._heading += angle;\n }\n /**\n * 关闭环视\n */\n\n }, {\n key: \"close\",\n value: function close() {\n this.clockStop = this.clockStop && this.clockStop();\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.scene.screenSpaceCameraController.enableInputs = true;\n this._position = null;\n this._heading = null;\n this._pitch = null;\n this._range = null;\n this._time = null;\n }\n }]);\n\n return AroundPointRotate;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AroundPointRotate);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2NhbWVyYUFuaW1hdGlvbi9Bcm91bmRQb2ludFJvdG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BQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/cameraAnimation/AroundPointRotate.js\n");
- /***/ }),
- /***/ "./modules/cameraAnimation/FixedPointRotate.js":
- /*!*****************************************************!*\
- !*** ./modules/cameraAnimation/FixedPointRotate.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n\n\n\n/**\n * 定点环视\n * @Author 刘策\n * @Date 2022-05-23 15:58\n */\n\n\nvar DEF_OPTS = {\n time: 60,\n pitch: -30,\n heading: 0\n};\n\nvar FixedPointRotate = /*#__PURE__*/function () {\n function FixedPointRotate(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FixedPointRotate);\n\n this._viewer = viewer._delegate || viewer;\n }\n /**\n * 启动环视\n * @param options 笛卡尔坐标,偏转角度,环视周期\n * @returns {Position}\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FixedPointRotate, [{\n key: \"start\",\n value: function start() {\n var _this = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return new Promise(function (resolve) {\n if (_this.clockStop) {\n _this.clockStop = _this.clockStop && _this.clockStop();\n\n _this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n _this._viewer.scene.screenSpaceCameraController.enableInputs = true;\n }\n\n _this._position = options.position || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3();\n _this._heading = options.heading || DEF_OPTS.heading;\n _this._pitch = options.pitch || DEF_OPTS.pitch;\n _this._time = Number(options.time) || DEF_OPTS.time;\n _this.offsetFPS = 360 / (_this._time * 60); // 每一帧的偏移量\n\n var viewer = _this._viewer;\n var instance = _this;\n viewer.scene.camera.flyTo({\n destination: _this._position,\n orientation: {\n heading: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this._heading),\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this._pitch)\n },\n complete: function complete() {\n resolve();\n viewer.scene.screenSpaceCameraController.enableInputs = false;\n instance.clockStop = viewer.clock.onTick.addEventListener(function () {\n instance._heading += instance.offsetFPS;\n instance._heading = instance._heading > 360 ? instance._heading - 360 : instance._heading;\n viewer.scene.camera.setView({\n destination: _this._position,\n orientation: {\n heading: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this._heading),\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this._pitch)\n }\n });\n });\n }\n });\n });\n }\n /**\n * 暂停环视\n */\n\n }, {\n key: \"pause\",\n value: function pause() {\n if (!this.clockStop) {\n throw new Error('不存在环视事件');\n }\n\n this.clockStop = this.clockStop && this.clockStop();\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.scene.screenSpaceCameraController.enableInputs = true;\n this.pauseHeading = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(this._viewer.camera.heading);\n }\n /**\n * 继续环视\n */\n\n }, {\n key: \"continue\",\n value: function _continue() {\n var _this2 = this;\n\n if (!this.pauseHeading || !this._position) {\n throw new Error('不存在环视暂停记录点');\n }\n\n var viewer = this._viewer;\n var instance = this;\n viewer.scene.screenSpaceCameraController.enableInputs = false;\n this._heading = this.pauseHeading;\n this.clockStop = viewer.clock.onTick.addEventListener(function () {\n instance._heading += instance.offsetFPS;\n instance._heading = instance._heading > 360 ? instance._heading - 360 : instance._heading;\n viewer.scene.camera.setView({\n destination: _this2._position,\n orientation: {\n heading: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this2._heading),\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this2._pitch)\n }\n });\n });\n }\n /**\n * 修改环视周期\n * @param {Number} time 环视周期\n */\n\n }, {\n key: \"changeSpeed\",\n value: function changeSpeed(time) {\n var _this3 = this;\n\n if (!this.clockStop) {\n throw new Error('不存在环视事件');\n }\n\n this.clockStop = this.clockStop && this.clockStop();\n var viewer = this._viewer;\n var instance = this;\n this._heading = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(this._viewer.camera.heading);\n this.offsetFPS = 360 / (time * 60);\n this.clockStop = viewer.clock.onTick.addEventListener(function () {\n instance._heading += instance.offsetFPS;\n instance._heading = instance._heading > 360 ? instance._heading - 360 : instance._heading;\n viewer.scene.camera.setView({\n destination: _this3._position,\n orientation: {\n heading: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this3._heading),\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(_this3._pitch)\n }\n });\n });\n }\n /**\n * 角度跳转\n */\n\n }, {\n key: \"jumpAngle\",\n value: function jumpAngle(angle) {\n this._heading += angle;\n }\n /**\n * 关闭环视\n */\n\n }, {\n key: \"close\",\n value: function close() {\n this.clockStop = this.clockStop && this.clockStop();\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.scene.screenSpaceCameraController.enableInputs = true;\n this._position = null;\n this._heading = null;\n this._pitch = null;\n this._time = null;\n }\n }]);\n\n return FixedPointRotate;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (FixedPointRotate);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZX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- /***/ "./modules/cameraAnimation/index.js":
- /*!******************************************!*\
- !*** ./modules/cameraAnimation/index.js ***!
- \******************************************/
- /*! exports provided: AroundPointRotate, FixedPointRotate */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _AroundPointRotate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AroundPointRotate */ \"./modules/cameraAnimation/AroundPointRotate.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AroundPointRotate\", function() { return _AroundPointRotate__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _FixedPointRotate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FixedPointRotate */ \"./modules/cameraAnimation/FixedPointRotate.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"FixedPointRotate\", function() { return _FixedPointRotate__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/**\n * @Author 刘策\n * @Date 2022-05-23 15:51\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2NhbWVyYUFuaW1hdGlvbi9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvY2FtZXJhQW5pbWF0aW9uL2luZGV4LmpzPzMxZmEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yIOWImOetllxuICogQERhdGUgMjAyMi0wNS0yMyAxNTo1MVxuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgQXJvdW5kUG9pbnRSb3RhdGUgfSBmcm9tICcuL0Fyb3VuZFBvaW50Um90YXRlJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBGaXhlZFBvaW50Um90YXRlIH0gZnJvbSAnLi9GaXhlZFBvaW50Um90YXRlJ1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/cameraAnimation/index.js\n");
- /***/ }),
- /***/ "./modules/clipping/TilesetClipping.js":
- /*!*********************************************!*\
- !*** ./modules/clipping/TilesetClipping.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-06-06 11:05\n * @Description 模型裁切\n */\n\n\nvar DEF_OPTS = {\n edgeWidth: 1.0,\n edgeColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.WHITE,\n clipOutSide: false,\n vertical: false,\n length: 100,\n width: 100\n};\n/**\n * 设置裁切属性\n * @param {Cesium.Viewer} viewer Cesium三维视窗。\n * @param {Object} options 选项。\n * @param {Object, Array} options.layer 裁剪图层,Cesium3DTileset,含多个图层时传入数组\n * @param {Cesium.Cartesian3} options.position 裁切点位置。\n * @param {Number} options.edgeWidth 可选裁剪区域边线宽度,0时不显示\n * @param {Cesium.Color} options.edgeColor 裁剪区域边线颜色\n * @param {Boolean} options.clipOutSide 是否外裁剪\n * @param {Boolean} options.horizontal 是否使用横向水平面\n * @param {Number} options.width 平面宽度(单位`米`,默认值100)。\n * @param {Number} options.length 平面长度(单位`米`,默认值100)。\n */\n\nvar TilesetClipping = /*#__PURE__*/function () {\n function TilesetClipping(viewer) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TilesetClipping);\n\n this._viewer = viewer._delegate || viewer;\n this._handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventHandler(this._viewer.canvas);\n this._layer = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CustomDataSource('clipping-layer');\n\n this._viewer.dataSources.add(this._layer);\n\n if (Object.prototype.toString.call(options.layer) === '[object Array]') {\n this.clippingLayers = options.layer.map(function (value) {\n return value._delegate || value;\n });\n } else {\n this.clippingLayers = options.layer._delegate ? [options.layer._delegate] : options.layer;\n }\n\n this.position = options.position;\n this.edgeWidth = options.edgeWidth || DEF_OPTS.edgeWidth;\n this.edgeColor = options.edgeColor || DEF_OPTS.edgeColor;\n this.clipOutSide = options.clipOutSide || DEF_OPTS.clipOutSide;\n this.vertical = options.vertical || DEF_OPTS.vertical;\n this.width = options.width || DEF_OPTS.width;\n this.length = options.length || DEF_OPTS.length;\n this.planeAlpha = 0.4 / this.clippingLayers.length;\n this.planeColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.WHITE.withAlpha(this.planeAlpha);\n this.targetY = 0.0;\n this.activeClipping();\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TilesetClipping, [{\n key: \"activeClipping\",\n value: function activeClipping() {\n var _this2 = this;\n\n var selectedPlane;\n var scene = this._viewer.scene;\n\n var _this = this;\n\n this._handler.setInputAction(function (e) {\n var pickedObject = scene.pick(e.position);\n\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(pickedObject) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(pickedObject.id) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(pickedObject.id.plane)) {\n selectedPlane = pickedObject.id.plane;\n selectedPlane.material = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.WHITE.withAlpha(0.01);\n scene.screenSpaceCameraController.enableInputs = false;\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOWN);\n\n this._handler.setInputAction(function () {\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(selectedPlane)) {\n selectedPlane.material = _this2.planeColor;\n selectedPlane = undefined;\n }\n\n scene.screenSpaceCameraController.enableInputs = true;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_UP);\n\n this._handler.setInputAction(function (e) {\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(selectedPlane)) {\n var deltaY = e.startPosition.y - e.endPosition.y;\n\n if (!_this2.vertical) {\n _this2.targetY += deltaY;\n } else {\n _this2.targetY -= deltaY;\n }\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n\n var _loop = function _loop(i) {\n var tileset = _this2.clippingLayers[i];\n var clippingPlane = void 0;\n\n if (!_this2.vertical) {\n clippingPlane = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlaneCollection({\n planes: [new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(0.0, 0.0, -1.0), 0.0), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(1.0, 0.0, 0.0), -_this2.length / 2), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(-1.0, 0.0, 0.0), -_this2.length / 2), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(0.0, 1.0, 0.0), -_this2.width / 2), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(0.0, -1.0, 0.0), -_this2.width / 2)],\n edgeWidth: _this2.edgeWidth,\n unionClippingRegions: false\n });\n } else {\n clippingPlane = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlaneCollection({\n planes: [new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(0.0, 1.0, 0.0), 0.0), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(1.0, 0.0, 0.0), -_this2.length / 2), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(-1.0, 0.0, 0.0), -_this2.length / 2), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(0.0, 0.0, 1.0), -_this2.width / 2), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ClippingPlane(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(0.0, 0.0, -1.0), -_this2.width / 2)],\n edgeWidth: _this2.edgeWidth,\n unionClippingRegions: false\n });\n }\n\n var plane = clippingPlane.get(0);\n tileset.clippingPlanes = clippingPlane;\n tileset.readyPromise.then(function () {\n // 获取局部坐标矩阵\n var locMatrix = tileset.root.transform; // 计算世界坐标在局部矩阵中的偏移\n\n var result = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__[\"Transform\"].transformWorldToLocal(_this.position, locMatrix); // 将局部坐标偏移值赋值给裁切面矩阵,得到通过世界坐标指定位置的裁切面\n\n clippingPlane.modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.fromTranslation(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(result.x, result.y, result.z));\n\n _this._layer.entities.add({\n position: _this.position,\n plane: {\n dimensions: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(_this.length, _this.width),\n material: _this.planeColor,\n plane: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CallbackProperty(_this.createPlaneUpdateFunction(plane), false),\n outline: true,\n outlineColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.WHITE\n }\n });\n\n return tileset;\n }).catch(function (error) {\n console.log(error);\n });\n };\n\n for (var i = 0; i < this.clippingLayers.length; i++) {\n _loop(i);\n }\n }\n }, {\n key: \"createPlaneUpdateFunction\",\n value: function createPlaneUpdateFunction(plane) {\n var that = this;\n return function () {\n plane.distance = that.targetY;\n return plane;\n };\n }\n }, {\n key: \"clearClipping\",\n value: function clearClipping() {\n this._handler = this._handler && this._handler.destroy();\n\n this._viewer.dataSources.remove(this._layer);\n\n for (var i = 0; i < this.clippingLayers.length; i++) {\n this.clippingLayers[i].clippingPlanes.removeAll();\n }\n }\n }]);\n\n return TilesetClipping;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (TilesetClipping);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2NsaXBwaW5nL1RpbGVzZXRDbGlwcGluZy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvY2xpcHBpbmcvVGlsZXNldENsaXBwaW5nLmpzPzM1ZDEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yIOWImOetllxuICogQERhdGUgMjAyMi0wNi0wNiAxMTowNVxuICogQERlc2NyaXB0aW9uIOaooeWei+ijgeWIh1xuICovXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5cbmNvbnN0IERFRl9PUFRTID0ge1xuICBlZGdlV2lk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BQUNBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/clipping/TilesetClipping.js\n");
- /***/ }),
- /***/ "./modules/clipping/index.js":
- /*!***********************************!*\
- !*** ./modules/clipping/index.js ***!
- \***********************************/
- /*! exports provided: TilesetClipping */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _TilesetClipping__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TilesetClipping */ \"./modules/clipping/TilesetClipping.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TilesetClipping\", function() { return _TilesetClipping__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/**\n * @Author 刘策\n * @Date 2022-06-06 11:05\n * @Description\n */\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2NsaXBwaW5nL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9jbGlwcGluZy9pbmRleC5qcz83ODk1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDliJjnrZZcbiAqIEBEYXRlIDIwMjItMDYtMDYgMTE6MDVcbiAqIEBEZXNjcmlwdGlvblxuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgVGlsZXNldENsaXBwaW5nIH0gZnJvbSAnLi9UaWxlc2V0Q2xpcHBpbmcnXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/clipping/index.js\n");
- /***/ }),
- /***/ "./modules/domComponent/Hawkeye.js":
- /*!*****************************************!*\
- !*** ./modules/domComponent/Hawkeye.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-11-03 10:08\n * @Description 鹰眼组件\n */\n\n\nvar Hawkeye = /*#__PURE__*/function () {\n function Hawkeye(viewer, option) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Hawkeye);\n\n // 主图\n this._viewer = viewer._delegate || viewer; // 鹰眼图\n\n this._hawkEyeMap = null; // 判断事件是主图触发还是鹰眼地图触发\n\n this._isMainMapTrigger = false;\n this._isEyeMapTrigger = false;\n this.MIDDLEDOWN = false;\n this.PopueStyle = {\n position: \"top-right\",\n X: \"12\",\n Y: \"10\",\n size: 16,\n setBorderRadio: true,\n borderColor: \"#002FA7\"\n };\n this.eagleEyeDiv = null;\n this.position = option.position || \"bottom-right\";\n this.X = option.X || \"12\";\n this.Y = option.Y || \"10\";\n this.size = option.size || \"16\";\n this.videoEntity = null;\n this.setBorderRadio = option.setBorderRadio || true;\n this.borderColor = option.borderColor || \"#002FA7\";\n this._imgUrl = option._imgUrl || __webpack_require__(/*! @gd-modules/images/chaoxiang_icon.svg */ \"./modules/images/chaoxiang_icon.svg\");\n this.url = option.url || \"http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}\";\n this.latercartain = null;\n } // 初始化函数\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Hawkeye, [{\n key: \"_init\",\n value: function _init() {\n this._divInit();\n\n this._mapInit();\n } // 创建div,并设置样式\n\n }, {\n key: \"_divInit\",\n value: function _divInit() {\n var parentDiv = this._viewer && this._viewer.container || document.body;\n this.eagleEyeDiv = document.createElement(\"div\");\n this.eagleEyeDiv.setAttribute('id', \"Eye3dMap\");\n\n this._setPopuePosit();\n\n parentDiv.appendChild(this.eagleEyeDiv);\n }\n }, {\n key: \"_setPopuePosit\",\n value: function _setPopuePosit() {\n this.eagleEyeDiv.style.cssText = \"position: absolute;overflow: hidden;\";\n this.eagleEyeDiv.style.cssText += \"border: 2px solid \".concat(this.borderColor, \";\");\n\n switch (this.position) {\n case \"bottom-right\":\n this.eagleEyeDiv.style.cssText += \"right: \".concat(this.X, \"vw ;bottom:\").concat(this.Y, \"vh;\");\n break;\n\n case \"top-right\":\n this.eagleEyeDiv.style.cssText += \"right: \".concat(this.X, \"vw ;top:\").concat(this.Y, \"vh;\");\n break;\n\n case \"bottom-left\":\n this.eagleEyeDiv.style.cssText += \"left: \".concat(this.X, \"vw ;bottom:\").concat(this.Y, \"vh;\");\n break;\n\n case \"top-left\":\n this.eagleEyeDiv.style.cssText += \"left: \".concat(this.X, \"vw ;top:\").concat(this.Y, \"vh;\");\n break;\n }\n\n this.eagleEyeDiv.style.cssText += \"height: \".concat(this.size * 10, \"px;width: \").concat(this.size * 10, \"px;\");\n\n if (this.setBorderRadio) {\n this.eagleEyeDiv.style.cssText += \"border-radius: 50%;\";\n }\n }\n }, {\n key: \"_mapInit\",\n value: function _mapInit() {\n // div创建完成后才能初始化地图,否则会找不到div保错\n // 初始化地图\n this._hawkEyeMap = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Viewer('Eye3dMap', {\n geocoder: false,\n homeButton: false,\n sceneModePicker: false,\n baseLayerPicker: false,\n navigationHelpButton: false,\n animation: false,\n timeline: false,\n mapMode2D: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].MapMode2D.ROTATE,\n fullscreenButton: false,\n sceneMode: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SceneMode.SCENE2D,\n infoBox: false,\n // 点击要素之后显示的信息,默认tru\n selectionIndicator: false,\n shouldAnimate: true,\n vrButton: false,\n // 双屏模式,默认不显示false\n contextOptions: {\n webgl: {\n alpha: true,\n depth: true,\n stencil: true,\n antialias: true,\n premultipliedAlpha: true,\n // 通过canvas.toDataURL()实现截图需要将该项设置为true\n preserveDrawingBuffer: true,\n failIfMajorPerformanceCaveat: true\n }\n }\n });\n console.log(this._hawkEyeMap);\n var A = document.getElementById(\"Eye3dMap\");\n var B = A.children[0];\n var C = B.children[0];\n var D = C.children[0];\n var E = D.children[0];\n E.style.height = \"160px\";\n E.style.width = \"160px\";\n this._hawkEyeMap.cesiumWidget.creditContainer.style.display = 'none';\n this._hawkEyeMap.scene.backgroundColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.TRANSPARENT;\n\n this._hawkEyeMap.imageryLayers.removeAll(); // 鹰眼图中添加高德路网中文注记图(鹰眼图中坐标偏移一点不影响)\n\n\n this._hawkEyeMap.imageryLayers.addImageryProvider(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].UrlTemplateImageryProvider({\n url: this.url,\n minimumLevel: 3,\n maximumLevel: 18\n })); // this._hawkEyeMap.scene.primitives._primitives = viewer.scene.primitives._primitives\n\n\n this._hawkEyeMap.camera.flyTo({\n destination: this._viewer.camera._positionWC || this._viewer.camera.position,\n orientation: {\n heading: this._viewer.camera.heading,\n pitch: this._viewer.camera.pitch,\n roll: this._viewer.camera.roll\n },\n duration: 0.0\n }); // 引起事件监听的相机变化幅度\n\n\n this._viewer.camera.percentageChanged = 0.02;\n this._hawkEyeMap.camera.percentageChanged = 0.5;\n\n this._addBillboard();\n\n this._bindEvent();\n } // 绑定事件\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n // 监听主图\n var _th = this;\n\n var handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventHandler(this._viewer.canvas);\n handler.setInputAction(function () {\n _th.MIDDLEDOWN = false;\n _th._isMainMapTrigger = true;\n _th._isEyeMapTrigger = false;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOWN);\n handler.setInputAction(function () {\n _th.MIDDLEDOWN = true;\n _th.latercartain = JSON.parse(JSON.stringify(_th._viewer.camera._positionWC || _th._viewer.camera.position));\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MIDDLE_DOWN);\n handler.setInputAction(function () {\n _th.MIDDLEDOWN = false;\n _th._isMainMapTrigger = true;\n _th._isEyeMapTrigger = false;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.WHEEL); // 鹰眼与主图同步\n\n this._viewer.camera.changed.addEventListener(this._syncEyeMap, this); // 第一次刷新渲染时联动\n\n\n this._viewer.scene.preRender.addEventListener(this._syncEyeMap, this); // 主图与鹰眼图同步\n\n\n this._hawkEyeMap.camera.changed.addEventListener(this._syncMap, this);\n\n this._hawkEyeMap.scene.preRender.addEventListener(this._syncMap, this);\n } // 同步主图与鹰眼地图\n\n }, {\n key: \"_syncEyeMap\",\n value: function _syncEyeMap() {\n // 判断是否为主图移动\n if (!this._isMainMapTrigger) {\n return false;\n }\n\n this.videoEntity.billboard.rotation = this._viewer.camera.heading;\n\n if (this.MIDDLEDOWN) {\n this._hawkEyeMap.camera.flyTo({\n destination: this.latercartain,\n orientation: {\n heading: this._viewer.camera.heading,\n pitch: this._viewer.camera.pitch,\n roll: this._viewer.camera.roll\n },\n duration: 0.0\n });\n\n return;\n }\n\n this.videoEntity.position = this._viewer.camera._positionWC || this._viewer.camera.position;\n\n this._hawkEyeMap.camera.flyTo({\n destination: this._viewer.camera._positionWC || this._viewer.camera.position,\n orientation: {\n heading: this._viewer.camera.heading,\n pitch: this._viewer.camera.pitch,\n roll: this._viewer.camera.roll\n },\n duration: 0.0\n });\n }\n }, {\n key: \"_addBillboard\",\n value: function _addBillboard() {\n this.videoEntity = this._hawkEyeMap.entities.add({\n id: 'videoModel',\n position: this._viewer.camera._positionWC || this._viewer.camera.position,\n billboard: {\n image: this._imgUrl,\n scale: 0.2\n }\n });\n } // 鹰眼地图与主图联动效果\n\n }, {\n key: \"_syncMap\",\n value: function _syncMap() {\n // 监听鹰眼地图\n var _this = this;\n\n var handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventHandler(this._hawkEyeMap.canvas);\n handler.setInputAction(function () {\n _this._isMainMapTrigger = false;\n _this._isEyeMapTrigger = true;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOWN);\n handler.setInputAction(function () {\n _this._isMainMapTrigger = false;\n _this._isEyeMapTrigger = true;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.WHEEL); // 判断是否为鹰眼地图移动\n\n if (!_this._isEyeMapTrigger) {\n return false;\n }\n }\n }]);\n\n return Hawkeye;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Hawkeye);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2RvbUNvbXBvbmVudC9IYXdrZXllLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9kb21Db21wb25lbnQvSGF3a2V5ZS5qcz9iNzgxIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDliJjnrZZcbiAqIEBEYXRlIDIwMjItMTEtMDMgMTA6MDhcbiAqIEBEZXNjcmlwdGlvbiDpubDnnLznu4Tku7ZcbiAqL1xuaW1wb3J0IHtDZXNpdW19IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcblxuY2xhc3MgSGF3a2V5ZSB7XG4gIGNvbnN0cnVjdG9yKHZpZXdlciwgb3B0aW9uKSB7XG4gICAgLy8g5Li75Zu+XG4gICAgdGhpcy5fdmlld2VyID0gdmlld2VyLl9kZWxlZ2F0ZSB8fCB2aWV3ZXI7XG4gICAgLy8g6bmw55y85Zu+XG4gICAgdGhpcy5faGF3a0V5ZU1hcCA9IG51bGw7XG4gICAgLy8g5Yik5pat5LqL5Lu25piv5Li75Zu+6Kem5Y+R6L+Y5piv6bmw55y85Zyw5Zu+6Kem5Y+RXG4gICAgdGhpcy5faXNNYWluTWFwVHJpZ2dlciA9IGZhbHNlO1xuICAgIHRoaXMuX2lzRXllTWFwVHJpZ2dlciA9IGZhbHNlO1xuICAgIHRoaXMuTUlERExFRE9XTiA9IGZhbHNlO1xuICAgIHRoaXMuUG9wdWVTdHlsZSA9IHtwb3NpdGlvbjogXCJ0b3AtcmlnaHRcIiwgWDogXCIxMlwiLCBZOiBcIjEwXCIsIHNpemU6IDE2LCBzZXRCb3JkZXJSYWRpbzogdHJ1ZSwgYm9yZGVyQ29sb3I6IFwiIzAwMkZBN1wifVxuIC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***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\nvar MouseTip = /*#__PURE__*/function () {\n function MouseTip(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MouseTip);\n\n this.viewer = viewer;\n this.msg = '';\n this.tipContainer = null;\n this.tipDiv = null;\n this.visiblity = false;\n this.init();\n }\n /**\n * 初始化mouseTip\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MouseTip, [{\n key: \"init\",\n value: function init() {\n var parentDiv = this.viewer && this.viewer.container || document.body;\n var div = document.createElement('div');\n div.className = 'mouse-tip';\n div.id = 'mouse-tip';\n div.style.cssText = 'max-width: 300px; min-width: 100px; padding: 5px; font-size: 11px; z-index: 1000; opacity: 0.8; display: none;';\n var arrow = document.createElement('div');\n arrow.className = 'mouse-arrow';\n div.appendChild(arrow);\n var title = document.createElement('div');\n title.className = 'mouse-inner';\n title.style.cssText = 'padding: 8px; text-align: center; max-width: 300px; text-decoration: none; border-radius: 4px; color: #29FFCA; background: rgba(13, 25, 42, 0.8);';\n div.appendChild(title);\n this.tipContainer = div;\n this.tipDiv = title;\n parentDiv.appendChild(div);\n }\n /**\n * 设置为可见或钉住\n * @param visible\n * @param fixed\n */\n\n }, {\n key: \"setVisible\",\n value: function setVisible(visible, fixed) {\n var _this = this;\n\n _this.visiblity = visible;\n _this.tipContainer.style.display = visible ? 'block' : 'none';\n }\n /**\n * 设置mouseTip的显示位置\n * @param position\n */\n\n }, {\n key: \"showAt\",\n value: function showAt(position) {\n if (position && position.x && position.y) {\n var x = position.x;\n var y = position.y;\n this.tipContainer.style.position = 'absolute';\n this.tipContainer.style.left = x + 'px';\n this.tipContainer.style.top = y + 'px';\n }\n }\n /**\n * 设置mouseTip的显示内容\n * @param message\n * @param fixed\n */\n\n }, {\n key: \"setMouseTip\",\n value: function setMouseTip(message, fixed) {\n this.msg = message;\n this.setVisible(true, fixed);\n this.tipDiv.innerHTML = message;\n }\n }, {\n key: \"removeTip\",\n value: function removeTip() {\n this.tipContainer.remove();\n }\n }]);\n\n return MouseTip;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (MouseTip);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2RvbUNvbXBvbmVudC9Nb3VzZVRpcC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvZG9tQ29tcG9uZW50L01vdXNlVGlwLmpzPzkxZWQiXSwic291cmNlc0NvbnRlbnQiOlsiY2xhc3MgTW91c2VUaXAge1xuICBjb25zdHJ1Y3Rvcih2aWV3ZXIpIHtcbiAgICB0aGlzLnZpZXdlciA9IHZpZXdlclxuICAgIHRoaXMubXNnID0gJydcbiAgICB0aGlzLnRpcENvbnRhaW5lciA9IG51bGxcbiAgICB0aGlzLnRpcERpdiA9IG51bGxcbiAgICB0aGlzLnZpc2libGl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XNnID0gbWVzc2FnZVxuICAgIHRoaXMuc2V0VmlzaWJsZSh0cnVlLCBmaXhlZClcbiAgICB0aGlzLnRpcERpdi5pbm5lckhUTUwgPSBtZXNzYWdlXG4gIH1cblxuICByZW1vdmVUaXAoKSB7XG4gICAgdGhpcy50aXBDb250YWluZXIucmVtb3ZlKClcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBNb3VzZVRpcFxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFEQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/domComponent/MouseTip.js\n");
- /***/ }),
- /***/ "./modules/domComponent/index.js":
- /*!***************************************!*\
- !*** ./modules/domComponent/index.js ***!
- \***************************************/
- /*! exports provided: Hawkeye, MouseTip */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Hawkeye__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Hawkeye */ \"./modules/domComponent/Hawkeye.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Hawkeye\", function() { return _Hawkeye__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _MouseTip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MouseTip */ \"./modules/domComponent/MouseTip.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MouseTip\", function() { return _MouseTip__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/**\n * @Author 刘策\n * @Date 2022-11-03 10:08\n * @Description dom通用组件\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2RvbUNvbXBvbmVudC9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvZG9tQ29tcG9uZW50L2luZGV4LmpzPzZiYmIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yIOWImOetllxuICogQERhdGUgMjAyMi0xMS0wMyAxMDowOFxuICogQERlc2NyaXB0aW9uIGRvbemAmueUqOe7hOS7tlxuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgSGF3a2V5ZSB9IGZyb20gJy4vSGF3a2V5ZSdcbmV4cG9ydCB7IGRlZmF1bHQgYXMgTW91c2VUaXAgfSBmcm9tICcuL01vdXNlVGlwJ1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/domComponent/index.js\n");
- /***/ }),
- /***/ "./modules/draw/drawGraphics.js":
- /*!**************************************!*\
- !*** ./modules/draw/drawGraphics.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-05-16 15:37\n */\n\n\nvar DrawGraphics = /*#__PURE__*/function () {\n function DrawGraphics() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawGraphics);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawGraphics, null, [{\n key: \"point\",\n value:\n /**\n * 添加点图元\n * @param cartesian\n * @returns {object} PointGraphics\n */\n function point(cartesian) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity({\n position: cartesian,\n point: {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.GREEN,\n pixelSize: 10,\n disableDepthTestDistance: 5e4\n }\n });\n }\n /**\n * 添加线图元,可修改参数数组动态变化\n * @param cartesianArray\n * @returns {object} PolylineGraphics\n */\n\n }, {\n key: \"dynamicLine\",\n value: function dynamicLine(cartesianArray) {\n var dynamicPositions = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CallbackProperty(function () {\n return cartesianArray;\n }, false);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity({\n polyline: {\n positions: dynamicPositions,\n arcType: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ArcType.NONE,\n width: 4,\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.RED\n }\n });\n }\n /**\n * 添加静态线图元,传入坐标数组无法修改,不会被深度遮挡\n * @param {Array} cartesianArray 坐标点数组\n * @param {object} options 图元配置\n * @returns {object} PolylineGraphics\n */\n\n }, {\n key: \"staticLine\",\n value: function staticLine(cartesianArray) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var arcType = options.arcType || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ArcType.NONE;\n var width = options.width || 4;\n var color = options.color || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.RED;\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity({\n id: options.id,\n polyline: {\n positions: cartesianArray,\n arcType: arcType,\n width: width,\n material: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].PolylineOutlineMaterialProperty({\n color: color,\n outlineColor: color\n }),\n depthFailMaterial: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].PolylineOutlineMaterialProperty({\n color: color,\n outlineColor: color\n })\n }\n });\n }\n /**\n * 添加线图元,封口用作平面多边形外轮廓线\n * @param cartesianArray\n * @returns {object} PolylineGraphics\n */\n\n }, {\n key: \"polyGonOutline\",\n value: function polyGonOutline(cartesianArray) {\n var dynamicPositions = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CallbackProperty(function () {\n return [].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(cartesianArray), [cartesianArray[0]]);\n }, false);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity({\n polyline: {\n positions: dynamicPositions,\n width: 4,\n clampToGround: false,\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.YELLOW,\n depthFailMaterial: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.YELLOW\n }\n });\n }\n /**\n * 添加多边形图元,可修改参数数组动态变化\n * @param cartesianArray\n * @returns {object} PolygonGraphics\n */\n\n }, {\n key: \"polyGon\",\n value: function polyGon(cartesianArray) {\n var dynamicPositions = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CallbackProperty(function () {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].PolygonHierarchy(cartesianArray);\n }, false);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity({\n polygon: {\n hierarchy: dynamicPositions,\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.RED.withAlpha(0.3),\n perPositionHeight: true\n }\n });\n }\n /**\n * 添加标签图元\n * @param cartesian 坐标\n * @param text 标签文本\n * @param labelPixelOffset 像素偏移量\n * @returns {object} LabelGraphics\n */\n\n }, {\n key: \"label\",\n value: function label(cartesian, text, labelPixelOffset) {\n var pixelOffset = labelPixelOffset || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian2.ZERO;\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity({\n position: cartesian,\n label: {\n text: text,\n font: '14pt sans-serif',\n style: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].LabelStyle.FILL_AND_OUTLINE,\n // FILL FILL_AND_OUTLINE OUTLINE\n fillColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.YELLOW,\n showBackground: true,\n // 指定标签后面背景的可见性\n backgroundColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color(0.165, 0.165, 0.165, 0.8),\n // 背景颜色\n backgroundPadding: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian2(6, 6),\n // 指定以像素为单位的水平和垂直背景填充padding\n pixelOffset: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CallbackProperty(function () {\n return pixelOffset;\n }, false),\n disableDepthTestDistance: 5e4\n }\n });\n }\n }]);\n\n return DrawGraphics;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawGraphics);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2RyYXcvZHJhd0dyYXBoaWNzLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9kcmF3L2RyYXdHcmFwaGljcy5qcz8xMTc3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciD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O0FBQ0E7QUFIQTtBQUZBO0FBUUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFEQTtBQVFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUZBO0FBUkE7QUFGQTtBQWdCQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUxBO0FBREE7QUFTQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFEQTtBQU9BO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVhBO0FBRkE7QUFnQkE7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/draw/drawGraphics.js\n");
- /***/ }),
- /***/ "./modules/effect/Effect.js":
- /*!**********************************!*\
- !*** ./modules/effect/Effect.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _type_BlackAndWhite__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type/BlackAndWhite */ \"./modules/effect/type/BlackAndWhite.js\");\n/* harmony import */ var _type_Bloom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./type/Bloom */ \"./modules/effect/type/Bloom.js\");\n/* harmony import */ var _type_Brightness__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./type/Brightness */ \"./modules/effect/type/Brightness.js\");\n/* harmony import */ var _type_DepthOfField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./type/DepthOfField */ \"./modules/effect/type/DepthOfField.js\");\n/* harmony import */ var _type_LensFlare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./type/LensFlare */ \"./modules/effect/type/LensFlare.js\");\n/* harmony import */ var _type_NightVision__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./type/NightVision */ \"./modules/effect/type/NightVision.js\");\n/* harmony import */ var _type_Silhouette__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./type/Silhouette */ \"./modules/effect/type/Silhouette.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-14 23:49:14\n */\n\n\n\n\n\n\n\n\nvar Effect = /*#__PURE__*/function () {\n function Effect() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Effect);\n\n this._comps = {\n blackAndWhite: new _type_BlackAndWhite__WEBPACK_IMPORTED_MODULE_2__[\"default\"](),\n bloom: new _type_Bloom__WEBPACK_IMPORTED_MODULE_3__[\"default\"](),\n brightness: new _type_Brightness__WEBPACK_IMPORTED_MODULE_4__[\"default\"](),\n depthOfField: new _type_DepthOfField__WEBPACK_IMPORTED_MODULE_5__[\"default\"](),\n lensFlare: new _type_LensFlare__WEBPACK_IMPORTED_MODULE_6__[\"default\"](),\n night: new _type_NightVision__WEBPACK_IMPORTED_MODULE_7__[\"default\"](),\n silhouette: new _type_Silhouette__WEBPACK_IMPORTED_MODULE_8__[\"default\"]()\n };\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Effect, [{\n key: \"blackAndWhite\",\n get: function get() {\n return this._comps.blackAndWhite;\n }\n }, {\n key: \"bloom\",\n get: function get() {\n return this._comps.bloom;\n }\n }, {\n key: \"brightness\",\n get: function get() {\n return this._comps.brightness;\n }\n }, {\n key: \"depthOfField\",\n get: function get() {\n return this._comps.depthOfField;\n }\n }, {\n key: \"lensFlare\",\n get: function get() {\n return this._comps.lensFlare;\n }\n }, {\n key: \"night\",\n get: function get() {\n return this._comps.night;\n }\n }, {\n key: \"silhouette\",\n get: function get() {\n return this._comps.silhouette;\n }\n /**\n *\n * @param viewer\n */\n\n }, {\n key: \"install\",\n value: function install(viewer) {\n var _this = this;\n\n Object.keys(this._comps).forEach(function (key) {\n _this._comps[key].addTo(viewer);\n });\n Object.defineProperty(viewer, 'effect', {\n value: this,\n writable: false\n });\n }\n }]);\n\n return Effect;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Effect);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2VmZmVjdC9FZmZlY3QuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2VmZmVjdC9FZmZlY3QuanM/NjFjZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0xNCAyMzo0OToxNFxuICovXG5cbmltcG9ydCBCbGFja0FuZFdoaXRlIGZyb20gJy4vdHlwZS9CbGFja0FuZFdoaXRlJ1xuaW1wb3J0IEJsb29tIGZyb20gJy4vdHlwZS9CbG9vbSdcbmltcG9ydCBCcmlnaHRuZXNzIGZyb20gJy4vdHlwZS9CcmlnaHRuZXNzJ1xuaW1wb3J0IERlcHRoT2ZGaWVsZCBmcm9tICcuL3R5cGUvRGVwdGhPZkZpZWxkJ1xuaW1wb3J0IExlbnNGbGFyZSBmcm9tICcuL3R5cGUvTGVuc0ZsYXJlJ1xuaW1wb3J0IE5pZ2h0VmlzaW9uIGZyb20gJy4vdHlwZS9OaWdodFZpc2lvbidcbmltcG9ydCBTaWxob3VldHRlIGZyb20gJy4vdHlwZS9TaWxob3VldHRlJ1xuXG5jbGFzcyBFZmZlY3Qge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICB0aGlzLl9jb21wcyA9IHtcbiAgICAgIGJsYWNrQW5kV2hpdGU6IG5ldyBCbGFja0FuZFdoaXRlKCksXG4gICAgICBibG9vbTogbmV3IEJsb29tKCksXG4gICAgICBicmlnaHRuZXNzOiBuZXcgQnJpZ2h0bmVzcygpLFxuICAgICAgZGVwdGhPZkZpZWxkOiBuZXcgRGVwdGhPZkZpZWxkKCksXG4gICAgICBsZW5zRmxhcmU6IG5ldyBMZW5zRmxhcmUoKSxcbiAgICAgI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yI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBUEE7QUFTQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/effect/Effect.js\n");
- /***/ }),
- /***/ "./modules/effect/type/BlackAndWhite.js":
- /*!**********************************************!*\
- !*** ./modules/effect/type/BlackAndWhite.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-14 23:51:47\n */\n\n\n\nvar BlackAndWhite = /*#__PURE__*/function () {\n function BlackAndWhite() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BlackAndWhite);\n\n this._viewer = undefined;\n this._delegate = undefined;\n this._enable = false;\n this._gradations = 1;\n this._selected = [];\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BlackAndWhite, [{\n key: \"type\",\n get: function get() {\n return 'black_and_white';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"gradations\",\n get: function get() {\n return this._gradations;\n },\n set: function set(gradations) {\n this._gradations = gradations;\n this._delegate && (this._delegate.uniforms.gradations = gradations);\n return this;\n }\n }, {\n key: \"selected\",\n get: function get() {\n return this._selected;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(selected) {\n this._selected = selected;\n this._delegate && (this._delegate.selected = selected);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.createBlackAndWhiteStage();\n\n if (this._delegate) {\n this._delegate.uniforms.gradations = this._gradations;\n\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n }\n /**\n *\n * @param viewer\n * @returns {BlackAndWhite}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return BlackAndWhite;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (BlackAndWhite);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2VmZmVjdC90eXBlL0JsYWNrQW5kV2hpdGUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2VmZmVjdC90eXBlL0JsYWNrQW5kV2hpdGUuanM/YTk5ZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0xNCAyMzo1MTo0N1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcblxuY2xhc3MgQmxhY2tBbmRXaGl0ZSB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMuX3ZpZXdlciA9IHVuZGVmaW5lZFxuICAgIHRoaXMuX2RlbGVnYXRlID0gdW5kZWZpbmVkXG4gICAgdGhpcy5fZW5hYmxlID0gZmFsc2VcbiAgICB0aGlzLl9ncmFkYXRpb25zID0gMVxuICAgIHRoaXMuX3NlbGVjdGVkID0gW11cbiAgIC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7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBYkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBVUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/effect/type/BlackAndWhite.js\n");
- /***/ }),
- /***/ "./modules/effect/type/Bloom.js":
- /*!**************************************!*\
- !*** ./modules/effect/type/Bloom.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-14 23:50:27\n */\n\n\nvar Bloom = /*#__PURE__*/function () {\n function Bloom() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Bloom);\n\n this._viewer = undefined;\n this._enable = false;\n this._contrast = 128;\n this._brightness = -0.3;\n this._glowOnly = false;\n this._delta = 1;\n this._sigma = 3.8;\n this._stepSize = 5;\n this._selected = [];\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_2__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Bloom, [{\n key: \"type\",\n get: function get() {\n return 'bloom';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"contrast\",\n get: function get() {\n return this._contrast;\n },\n set: function set(contrast) {\n this._contrast = contrast;\n this._delegate && (this._delegate.uniforms.contrast = contrast);\n return this;\n }\n }, {\n key: \"brightness\",\n get: function get() {\n return this._brightness;\n },\n set: function set(brightness) {\n this._brightness = brightness;\n this._delegate && (this._delegate.uniforms.brightness = brightness);\n return this;\n }\n }, {\n key: \"glowOnly\",\n get: function get() {\n return this._glowOnly;\n },\n set: function set(glowOnly) {\n this._glowOnly = glowOnly;\n this._delegate && (this._delegate.uniforms.glowOnly = glowOnly);\n return this;\n }\n }, {\n key: \"delta\",\n get: function get() {\n return this._delta;\n },\n set: function set(delta) {\n this._delta = delta;\n this._delegate && (this._delegate.uniforms.delta = delta);\n return this;\n }\n }, {\n key: \"sigma\",\n get: function get() {\n return this._sigma;\n },\n set: function set(sigma) {\n this._sigma = sigma;\n this._delegate && (this._delegate.uniforms.sigma = sigma);\n return this;\n }\n }, {\n key: \"stepSize\",\n get: function get() {\n return this._stepSize;\n },\n set: function set(stepSize) {\n this._stepSize = stepSize;\n this._delegate && (this._delegate.uniforms.stepSize = stepSize);\n return this;\n }\n }, {\n key: \"selected\",\n get: function get() {\n return this._selected;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(selected) {\n this._selected = selected;\n this._delegate && (this._delegate.selected = selected);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = this._viewer.scene.postProcessStages.bloom;\n this._delegate.uniforms.contrast = this._contrast;\n this._delegate.uniforms.brightness = this._brightness;\n this._delegate.uniforms.glowOnly = this._glowOnly;\n this._delegate.uniforms.delta = this._delta;\n this._delegate.uniforms.sigma = this._sigma;\n this._delegate.uniforms.stepSize = this._stepSize;\n }\n /**\n *\n * @param viewer\n * @returns {Bloom}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return Bloom;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Bloom);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2VmZmVjdC90eXBlL0Jsb29tLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9lZmZlY3QvdHlwZS9CbG9vbS5qcz8xZTA5Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA4LTE0IDIzOjUwOjI3XG4gKi9cblxuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuXG5jbGFzcyBCbG9vbSB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMuX3ZpZXdlciA9IHV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TtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFVQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/effect/type/Bloom.js\n");
- /***/ }),
- /***/ "./modules/effect/type/Brightness.js":
- /*!*******************************************!*\
- !*** ./modules/effect/type/Brightness.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-14 23:51:47\n */\n\n\n\nvar Brightness = /*#__PURE__*/function () {\n function Brightness() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Brightness);\n\n this._viewer = undefined;\n this._delegate = undefined;\n this._enable = false;\n this._intensity = 1;\n this._selected = [];\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Brightness, [{\n key: \"type\",\n get: function get() {\n return 'brightness';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"intensity\",\n get: function get() {\n return this._intensity;\n },\n set: function set(intensity) {\n this._intensity = intensity;\n this._delegate && (this._delegate.uniforms.brightness = intensity);\n return this;\n }\n }, {\n key: \"selected\",\n get: function get() {\n return this._selected;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(selected) {\n this._selected = selected;\n this._delegate && (this._delegate.selected = selected);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.createBrightnessStage();\n\n if (this._delegate) {\n this._delegate.uniforms.brightness = this._intensity;\n\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n }\n /**\n *\n * @param viewer\n * @returns {Brightness}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return Brightness;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Brightness);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2VmZmVjdC90eXBlL0JyaWdodG5lc3MuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2VmZmVjdC90eXBlL0JyaWdodG5lc3MuanM/ZWZhOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0xNCAyMzo1MTo0N1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcblxuY2xhc3MgQnJpZ2h0bmVzcyB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMuX3ZpZXdlciA9IHVuZGVmaW5lZFxuICAgIHRoaXMuX2RlbGVnYXRlID0gdW5kZWZpbmVkXG4gICAgdGhpcy5fZW5hYmxlID0gZmFsc2VcbiAgICB0aGlzLl9pbnRlbnNpdHkgPSAxXG4gICAgdGhpcy5fc2VsZWN0ZWQgPSBbXVxuICAgIHRoaXMuX3N0YXRlID0gU3RhdGUuSU5JVElBTElaRURcbiAgfVxuXG4gIGdldCB0eXBlKCkge1xuICAgIHJldHVybiAnYnJpZ2h0bmVzcydcbiAgfVxuXG4gIHNldCBlbmFibGUoZW5hYmxlKSB7XG4gICAgdGhpcy5fZW5hYmxlID0gZW5hYmxlXG4gICAgaWYgKGVuYWJsZSAmJiB0aGlzLl92aWV3ZXIgJiYgIXRoaXMuX2RlbGVnYXRlKSB7XG4gICAgICB0aGlzLl9jcmVhdGVQb3N0UHJvY2Vzc1N0YWdlKClcbiAgICB9XG4gICAgdGhpcy5fZGVsZWdhdGUgJiYgKHRoaXMuX2R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***/ "./modules/effect/type/DepthOfField.js":
- /*!*********************************************!*\
- !*** ./modules/effect/type/DepthOfField.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-14 23:51:47\n */\n\n\n\nvar DepthOfField = /*#__PURE__*/function () {\n function DepthOfField() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DepthOfField);\n\n this._viewer = undefined;\n this._delegate = undefined;\n this._enable = false;\n this._focalDistance = 87;\n this._delta = 1;\n this._sigma = 3.8;\n this._stepSize = 2.5;\n this._selected = [];\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DepthOfField, [{\n key: \"type\",\n get: function get() {\n return 'depth_of_field';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.isDepthOfFieldSupported(this._viewer.scene) && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"focalDistance\",\n get: function get() {\n return this._focalDistance;\n },\n set: function set(focalDistance) {\n this._focalDistance = focalDistance;\n this._delegate && (this._delegate.uniforms.focalDistance = focalDistance);\n return this;\n }\n }, {\n key: \"delta\",\n get: function get() {\n return this._delta;\n },\n set: function set(delta) {\n this._delta = delta;\n this._delegate && (this._delegate.uniforms.delta = delta);\n return this;\n }\n }, {\n key: \"sigma\",\n get: function get() {\n return this._sigma;\n },\n set: function set(sigma) {\n this._sigma = sigma;\n this._delegate && (this._delegate.uniforms.sigma = sigma);\n return this;\n }\n }, {\n key: \"stepSize\",\n get: function get() {\n return this._stepSize;\n },\n set: function set(stepSize) {\n this._stepSize = stepSize;\n this._delegate && (this._delegate.uniforms.stepSize = stepSize);\n return this;\n }\n }, {\n key: \"selected\",\n get: function get() {\n return this._selected;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(selected) {\n this._selected = selected;\n this._delegate && (this._delegate.selected = selected);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.createDepthOfFieldStage();\n\n if (this._delegate) {\n this._delegate.uniforms.focalDistance = this._focalDistance;\n this._delegate.uniforms.delta = this._delta;\n this._delegate.uniforms.sigma = this._sigma;\n this._delegate.uniforms.stepSize = this._stepSize;\n\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n }\n /**\n *\n * @param viewer\n * @returns {DepthOfField}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return DepthOfField;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DepthOfField);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2VmZmVjdC90eXBlL0RlcHRoT2ZGaWVsZC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvZWZmZWN0L3R5cGUvRGVwdGhPZkZpZWxkLmpzP2EwYjEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDgtMTQgMjM6NTE6NDdcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5cbmNsYXNzIERlcHRoT2ZGaWVsZCB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMuX3ZpZXdlciA9IHVuZGVmaW5lZFxuICAgIHRoaXMuX2RlbGVnYXRlID0gdW5kZWZpbmVkXG4gICAgdGhpcy5fZW5hYmxlID0gZmFsc2VcbiAgICB0aGlzLl9mb2NhbERpc3RhbmNlID0gODdcbiAgICB0aGlzLl9kZWx0YSA9IDFcbiAgICB0aGlzLl9zaWdtYSA9IDMuOFxuICAgIHRoaXMuX3N0ZXBTaXplID0gMi41XG4gICAgdGhpcy5fc2VsZWN0ZWQgPSBbXVxuICAgIHRoaXMu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zs7QUFrQkE7QUFDQTtBQUNBO0FBbEJBO0FBQ0E7QUFDQTtBQUFBO0FBUUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFiQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFVQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/effect/type/DepthOfField.js\n");
- /***/ }),
- /***/ "./modules/effect/type/LensFlare.js":
- /*!******************************************!*\
- !*** ./modules/effect/type/LensFlare.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-14 23:51:47\n */\n\n\n\nvar LensFlare = /*#__PURE__*/function () {\n function LensFlare() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LensFlare);\n\n this._viewer = undefined;\n this._delegate = undefined;\n this._enable = false;\n this._intensity = 6;\n this._distortion = 61;\n this._dirtAmount = 0.4;\n this._haloWidth = 0.4;\n this._selected = [];\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LensFlare, [{\n key: \"type\",\n get: function get() {\n return 'lens_flare';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"intensity\",\n get: function get() {\n return this._intensity;\n },\n set: function set(intensity) {\n this._intensity = intensity;\n this._delegate && (this._delegate.uniforms.intensity = intensity);\n return this;\n }\n }, {\n key: \"distortion\",\n get: function get() {\n return this._distortion;\n },\n set: function set(distortion) {\n this._distortion = distortion;\n this._delegate && (this._delegate.uniforms.distortion = distortion);\n return this;\n }\n }, {\n key: \"dirtAmount\",\n get: function get() {\n return this._dirtAmount;\n },\n set: function set(dirtAmount) {\n this._dirtAmount = dirtAmount;\n this._delegate && (this._delegate.uniforms.dirtAmount = dirtAmount);\n return this;\n }\n }, {\n key: \"haloWidth\",\n get: function get() {\n return this._haloWidth;\n },\n set: function set(haloWidth) {\n this._haloWidth = haloWidth;\n this._delegate && (this._delegate.uniforms.haloWidth = haloWidth);\n return this;\n }\n }, {\n key: \"selected\",\n get: function get() {\n return this._selected;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(selected) {\n this._selected = selected;\n this._delegate && (this._delegate.selected = selected);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.createLensFlareStage();\n\n if (this._delegate) {\n this._delegate.uniforms.intensity = this._intensity;\n this._delegate.uniforms.distortion = this._distortion;\n this._delegate.uniforms.dirtAmount = this._dirtAmount;\n this._delegate.uniforms.haloWidth = this._haloWidth;\n\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n }\n /**\n *\n * @param viewer\n * @returns {LensFlare}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return LensFlare;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (LensFlare);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2VmZmVjdC90eXBlL0xlbnNGbGFyZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29y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BQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/effect/type/LensFlare.js\n");
- /***/ }),
- /***/ "./modules/effect/type/NightVision.js":
- /*!********************************************!*\
- !*** ./modules/effect/type/NightVision.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-14 23:10:14\n */\n\n\n\nvar NightVision = /*#__PURE__*/function () {\n function NightVision() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, NightVision);\n\n this._enable = false;\n this._selected = [];\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(NightVision, [{\n key: \"type\",\n get: function get() {\n return 'night';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"selected\",\n get: function get() {\n return this._selected;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(selected) {\n this._selected = selected;\n this._delegate && (this._delegate.selected = selected);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.createNightVisionStage();\n\n if (this._delegate) {\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n }\n /**\n *\n * @param viewer\n * @returns {NightVision}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return NightVision;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (NightVision);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2VmZmVjdC90eXBlL05pZ2h0VmlzaW9uLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9lZmZlY3QvdHlwZS9OaWdodFZpc2lvbi5qcz9hOWM2Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dG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UFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/effect/type/NightVision.js\n");
- /***/ }),
- /***/ "./modules/effect/type/Silhouette.js":
- /*!*******************************************!*\
- !*** ./modules/effect/type/Silhouette.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-14 23:51:47\n */\n\n\n\nvar Silhouette = /*#__PURE__*/function () {\n function Silhouette() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Silhouette);\n\n this._viewer = undefined;\n this._delegate = undefined;\n this._enable = false;\n this._color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.GREEN;\n this._length = 0.5;\n this._selected = [];\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Silhouette, [{\n key: \"type\",\n get: function get() {\n return 'silhouette';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.isSilhouetteSupported(this._viewer.scene) && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"color\",\n get: function get() {\n return this._color;\n },\n set: function set(color) {\n this._color = color;\n this._delegate && (this._delegate.uniforms.color = color);\n return this;\n }\n }, {\n key: \"length\",\n get: function get() {\n return this._length;\n },\n set: function set(length) {\n this._length = length;\n this._delegate && (this._delegate.uniforms.length = length);\n return this;\n }\n }, {\n key: \"selected\",\n get: function get() {\n return this._selected;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(selected) {\n this._selected = selected;\n this._delegate && (this._delegate.selected = selected);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.createSilhouetteStage();\n\n if (this._delegate) {\n this._delegate.uniforms.color = this._color;\n this._delegate.uniforms.length = this._length;\n\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n }\n /**\n *\n * @param viewer\n * @returns {Silhouette}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return Silhouette;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Silhouette);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2VmZmVjdC90eXBlL1NpbGhvdWV0dGUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2VmZmVjdC90eXBlL1NpbGhvdWV0dGUuanM/MzFjMCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0xNCAyMzo1MTo0N1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcblxuY2xhc3MgU2lsaG91ZXR0ZSB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMuX3ZpZXdlciA9IHVuZGVmaW5lZFxuICAgIHRoaXMuX2RlbGVnYXRlID0gdW5kZWZpbmVkXG4gICAgdGhpcy5fZW5hYmxlID0gZmFsc2VcbiAgICB0aGlzLl9jb2xvciA9IENlc2l1bS5Db2xvci5HUkVFTlxuICAgIHRoaXMuX2xlbmd0aCA9IDAuNVxuICAgIHRoaXMuX3NlbGVjdGVkID0gW11cbiAgICB0aGlzLl9zdGF0ZSA9IFN0YXRlLklOSVRJQUxJWkVEXG4gIH1cblxuICBnZXQgdHlwZSgpIHtcbiAgICByZXR1cm4gJ3NpbGhvdWV0dGUnXG4gIH1cblxuICBzZXQgZW5hYmxlKGVuYWJsZSkge1xuICAgIHRoaXMuX2VuYWJsZSA9I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BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBa0JBO0FBQ0E7QUFDQTtBQWxCQTtBQUNBO0FBQ0E7QUFBQTtBQVFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBYkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBVUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/effect/type/Silhouette.js\n");
- /***/ }),
- /***/ "./modules/event/Event.js":
- /*!********************************!*\
- !*** ./modules/event/Event.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-02 15:24:38\n */\nvar Event = /*#__PURE__*/function () {\n function Event() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Event);\n\n this._cache = {};\n\n this._registerEvent();\n }\n /**\n * Event registration\n * Subclasses need to override\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Event, [{\n key: \"_registerEvent\",\n value: function _registerEvent() {}\n /**\n * @param type\n * @param callback\n * @param context\n * @returns {any}\n * @private\n */\n\n }, {\n key: \"_on\",\n value: function _on(type, callback, context) {\n var event = this.getEvent(type);\n var removeCallback = undefined;\n\n if (event && callback) {\n removeCallback = event.addEventListener(callback, context || this);\n }\n\n return removeCallback;\n }\n /**\n * @param type\n * @param callback\n * @param context\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_off\",\n value: function _off(type, callback, context) {\n var event = this.getEvent(type);\n var removed = false;\n\n if (event && callback) {\n removed = event.removeEventListener(callback, context || this);\n }\n\n return removed;\n }\n /**\n * @param type\n * @param params\n * @private\n */\n\n }, {\n key: \"_fire\",\n value: function _fire(type, params) {\n var event = this.getEvent(type);\n\n if (event) {\n event.raiseEvent(params);\n }\n }\n /**\n * Subscribe event\n * @param type\n * @param callback\n * @param context\n * @returns remove callback function\n */\n\n }, {\n key: \"on\",\n value: function on(type, callback, context) {\n return this._on(type, callback, context);\n }\n /**\n * Subscribe once event\n * @param type\n * @param callback\n * @param context\n */\n\n }, {\n key: \"once\",\n value: function once(type, callback, context) {\n var removeCallback = this._on(type, function (e) {\n callback(e);\n removeCallback && removeCallback();\n }, context);\n }\n /**\n * Unsubscribe event\n * @param type\n * @param callback\n * @param context\n * @returns Boolean\n */\n\n }, {\n key: \"off\",\n value: function off(type, callback, context) {\n return this._off(type, callback, context);\n }\n /**\n * Trigger subscription event\n * @param type\n * @param params\n */\n\n }, {\n key: \"fire\",\n value: function fire(type, params) {\n this._fire(type, params);\n }\n /**\n * Returns events by type\n * @param type\n * @returns Event\n */\n\n }, {\n key: \"getEvent\",\n value: function getEvent(type) {\n return this._cache[type] || undefined;\n }\n }]);\n\n return Event;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Event);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L0V2ZW50LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9ldmVudC9FdmVudC5qcz9iOTQyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTAyIDE1OjI0OjM4XG4gKi9cblxuY2xhc3MgRXZlbnQge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICB0aGlzLl9jYWNoZSA9IHt9XG4gICAgdGhpcy5fcmVnaXN0ZXJFdmVudCgpXG4gIH1cblxuICAvKipcbiAgICogRXZlbnQgcmVnaXN0cmF0aW9uXG4gICAqIFN1YmNsYXNzZXMgbmVlZCB0byBvdmVycmlkZVxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX3JlZ2lzdGVyRXZlbnQoKSB7fVxuXG4gIC8qKlxuICAgKiBAcGFyYW0gdHlwZVxuICAgKiBAcGFyYW0gY2FsbGJhY2tcbiAgICogQHBhcmFtIGNvbnRleHRcbiAgICogQHJldHVybnMge2FueX1cbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9vbih0eXBlLCBjYWxsYmFjaywgY29udGV4d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FBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/event/Event.js\n");
- /***/ }),
- /***/ "./modules/event/EventType.js":
- /*!************************************!*\
- !*** ./modules/event/EventType.js ***!
- \************************************/
- /*! exports provided: MouseEventType, ViewerEventType, SceneEventType, LayerGroupEventType, LayerEventType, OverlayEventType, TrackEventType, PathEventType, PlotEventType */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MouseEventType\", function() { return MouseEventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ViewerEventType\", function() { return ViewerEventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SceneEventType\", function() { return SceneEventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LayerGroupEventType\", function() { return LayerGroupEventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LayerEventType\", function() { return LayerEventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"OverlayEventType\", function() { return OverlayEventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TrackEventType\", function() { return TrackEventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PathEventType\", function() { return PathEventType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PlotEventType\", function() { return PlotEventType; });\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Caven\n * @Date: 2020-04-10 17:02:28\n */\n\nvar BaseEventType = {\n ADD: 'add',\n REMOVE: 'remove'\n};\nvar MouseEventType = {\n LEFT_DOWN: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOWN,\n LEFT_UP: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_UP,\n CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK,\n RIGHT_DOWN: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_DOWN,\n RIGHT_UP: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_UP,\n RIGHT_CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK,\n DB_CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOUBLE_CLICK,\n MOUSE_MOVE: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE,\n WHEEL: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.WHEEL,\n MOUSE_OVER: 'mouseover',\n MOUSE_OUT: 'mouseout'\n};\nvar ViewerEventType = {\n ADD_LAYER: 'addLayer',\n REMOVE_LAYER: 'removeLayer',\n ADD_EFFECT: 'addEffect',\n REMOVE_EFFECT: 'removeEffect',\n LEFT_DOWN: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOWN,\n LEFT_UP: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_UP,\n CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK,\n RIGHT_DOWN: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_DOWN,\n RIGHT_UP: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_UP,\n RIGHT_CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK,\n DB_CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOUBLE_CLICK,\n MOUSE_MOVE: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE,\n WHEEL: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.WHEEL\n};\nvar SceneEventType = {\n CAMERA_MOVE_END: 'cameraMoveEnd',\n CAMERA_CHANGED: 'cameraChanged',\n PRE_UPDATE: 'preUpdate',\n POST_UPDATE: 'postUpdate',\n PRE_RENDER: 'preRender',\n POST_RENDER: 'postRender',\n MORPH_COMPLETE: 'morphComplete',\n CLOCK_TICK: 'clockTick'\n};\n\nvar OverlayEventType = _objectSpread(_objectSpread({}, BaseEventType), {}, {\n LEFT_DOWN: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOWN,\n LEFT_UP: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_UP,\n CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK,\n RIGHT_DOWN: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_DOWN,\n RIGHT_UP: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_UP,\n RIGHT_CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK,\n DB_CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOUBLE_CLICK,\n MOUSE_MOVE: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE,\n MOUSE_OVER: 'mouseover',\n MOUSE_OUT: 'mouseout',\n POSITION_UPDATE: 'positionUpdate'\n});\n\nvar LayerGroupEventType = BaseEventType;\n\nvar LayerEventType = _objectSpread(_objectSpread({}, BaseEventType), {}, {\n LEFT_DOWN: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOWN,\n LEFT_UP: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_UP,\n CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK,\n RIGHT_DOWN: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_DOWN,\n RIGHT_UP: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_UP,\n RIGHT_CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK,\n DB_CLICK: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOUBLE_CLICK\n});\n\nvar TrackEventType = _objectSpread(_objectSpread({}, BaseEventType), {}, {\n POST_RENDER: 'postRender',\n ACTIVATE: 'activate',\n DEACTIVATE: 'deactivate',\n RESET_TIME_LINE: 'restTimeLine'\n});\n\nvar PathEventType = _objectSpread(_objectSpread({}, BaseEventType), {}, {\n POST_RENDER: 'postRender',\n RESET_TIME_LINE: 'restTimeLine'\n});\n\nvar PlotEventType = {\n DRAW_START: 'drawStart',\n DRAW_STOP: 'drawStop',\n EDIT_START: 'editStart',\n EDIT_STOP: 'editEnd',\n DRAW_ANCHOR: 'drawAnchor',\n CREATE_ANCHOR: 'createAnchor',\n UPDATE_ANCHOR: 'updateAnchor',\n ANCHOR_MOVING: 'anchorMoving',\n EDIT_ANCHOR_STOP: 'editAnchorStop',\n CLEAR_ANCHOR: 'clearAnchor'\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uI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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBWkE7QUFDQTtBQWNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQVVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFMQTtBQUNBO0FBT0E7QUFFQTtBQUNBO0FBSEE7QUFDQTtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFWQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/event/EventType.js\n");
- /***/ }),
- /***/ "./modules/event/index.js":
- /*!********************************!*\
- !*** ./modules/event/index.js ***!
- \********************************/
- /*! exports provided: MouseEventType, ViewerEventType, SceneEventType, LayerGroupEventType, LayerEventType, OverlayEventType, TrackEventType, PathEventType, PlotEventType, Event, MouseEvent, ViewerEvent, SceneEvent, LayerGroupEvent, LayerEvent, OverlayEvent, TrackEvent, PathEvent, PlotEvent */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventType */ \"./modules/event/EventType.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MouseEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"MouseEventType\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ViewerEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"ViewerEventType\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SceneEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"SceneEventType\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LayerGroupEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"LayerGroupEventType\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LayerEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"LayerEventType\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"OverlayEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"OverlayEventType\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TrackEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"TrackEventType\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PathEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"PathEventType\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PlotEventType\", function() { return _EventType__WEBPACK_IMPORTED_MODULE_0__[\"PlotEventType\"]; });\n\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Event */ \"./modules/event/Event.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Event\", function() { return _Event__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _type_MouseEvent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type/MouseEvent */ \"./modules/event/type/MouseEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MouseEvent\", function() { return _type_MouseEvent__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _type_ViewerEvent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./type/ViewerEvent */ \"./modules/event/type/ViewerEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ViewerEvent\", function() { return _type_ViewerEvent__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _type_SceneEvent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./type/SceneEvent */ \"./modules/event/type/SceneEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SceneEvent\", function() { return _type_SceneEvent__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _type_LayerGroupEvent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./type/LayerGroupEvent */ \"./modules/event/type/LayerGroupEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LayerGroupEvent\", function() { return _type_LayerGroupEvent__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _type_LayerEvent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./type/LayerEvent */ \"./modules/event/type/LayerEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LayerEvent\", function() { return _type_LayerEvent__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _type_OverlayEvent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./type/OverlayEvent */ \"./modules/event/type/OverlayEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"OverlayEvent\", function() { return _type_OverlayEvent__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _type_TrackEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./type/TrackEvent */ \"./modules/event/type/TrackEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TrackEvent\", function() { return _type_TrackEvent__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _type_PathEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./type/PathEvent */ \"./modules/event/type/PathEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PathEvent\", function() { return _type_PathEvent__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _type_PlotEvent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./type/PlotEvent */ \"./modules/event/type/PlotEvent.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PlotEvent\", function() { return _type_PlotEvent__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2021-03-13 13:24:24\n */\n\n\n/**\n * scene\n */\n\n\n\n\n/**\n * layer\n */\n\n\n\n\n/**\n * animation\n */\n\n\n\n/**\n * plot\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9ldmVudC9pbmRleC5qcz84ZjdmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTAzLTEzIDEzOjI0OjI0XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9FdmVudFR5cGUnXG5leHBvcnQgeyBkZWZhdWx0IGFzIEV2ZW50IH0gZnJvbSAnLi9FdmVudCdcblxuLyoqXG4gKiBzY2VuZVxuICovXG5leHBvcnQgeyBkZWZhdWx0IGFzIE1vdXNlRXZlbnQgfSBmcm9tICcuL3R5cGUvTW91c2VFdmVudCdcbmV4cG9ydCB7IGRlZmF1bHQgYXMgVmlld2VyRXZlbnQgfSBmcm9tICcuL3R5cGUvVmlld2VyRXZlbnQnXG5leHBvcnQgeyBkZWZhdWx0IGFzIFNjZW5lRXZlbnQgfSBmcm9tICcuL3R5cGUvU2NlbmVFdmVudCdcblxuLyoqXG4gKiBsYXllclxuICovXG5leHBvcnQgeyBkZWZhdWx0IGFzIExheWVy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E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/event/index.js\n");
- /***/ }),
- /***/ "./modules/event/type/LayerEvent.js":
- /*!******************************************!*\
- !*** ./modules/event/type/LayerEvent.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-02 14:26:35\n */\n\n\n\n\nvar LayerEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LayerEvent, _Event);\n\n var _super = _createSuper(LayerEvent);\n\n function LayerEvent() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LayerEvent);\n\n return _super.call(this);\n }\n /**\n * Register event for layer\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LayerEvent, [{\n key: \"_registerEvent\",\n value: function _registerEvent() {\n var _this = this;\n\n Object.keys(_EventType__WEBPACK_IMPORTED_MODULE_6__[\"LayerEventType\"]).forEach(function (key) {\n var type = _EventType__WEBPACK_IMPORTED_MODULE_6__[\"LayerEventType\"][key];\n _this._cache[type] = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Event();\n });\n }\n }]);\n\n return LayerEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (LayerEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L3R5cGUvTGF5ZXJFdmVudC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvZXZlbnQvdHlwZS9MYXllckV2ZW50LmpzPzc1MzMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDEtMDIgMTQ6MjY6MzVcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgeyBMYXllckV2ZW50VHlwZSB9IGZyb20gJy4uL0V2ZW50VHlwZSdcbmltcG9ydCBFdmVudCBmcm9tICcuLi9FdmVudCdcblxuY2xhc3MgTGF5ZXJFdmVudCBleHRlbmRzIEV2ZW50IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoKVxuICB9XG5cbiAgLyoqXG4gICAqIFJlZ2lzdGVyIGV2ZW50IGZvciBsYXllclxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX3JlZ2lzdGVyRXZlbnQoKSB7XG4gICAgT2JqZWN0LmtleXMoTGF5ZXJFdmVudFR5cGUpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgIGxldCB0eXBlID0gTGF5ZXJFdmVudFR5cGVba2V5XVxuICAgICAgdGhpcy5fY2FjaGVbdHlwZV0gPSBuZXcgQ2VzaXVtLkV2ZW50KClcbiAgICB9KVxuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IExheWVyRXZlbnRcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQURBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFkQTtBQUNBO0FBZ0JBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/event/type/LayerEvent.js\n");
- /***/ }),
- /***/ "./modules/event/type/LayerGroupEvent.js":
- /*!***********************************************!*\
- !*** ./modules/event/type/LayerGroupEvent.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-28 20:18:04\n */\n\n\n\n\nvar LayerGroupEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LayerGroupEvent, _Event);\n\n var _super = _createSuper(LayerGroupEvent);\n\n function LayerGroupEvent() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LayerGroupEvent);\n\n return _super.call(this);\n }\n /**\n * Register event for layer group\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LayerGroupEvent, [{\n key: \"_registerEvent\",\n value: function _registerEvent() {\n var _this = this;\n\n Object.keys(_EventType__WEBPACK_IMPORTED_MODULE_6__[\"LayerGroupEventType\"]).forEach(function (key) {\n var type = _EventType__WEBPACK_IMPORTED_MODULE_6__[\"LayerGroupEventType\"][key];\n _this._cache[type] = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Event();\n });\n }\n }]);\n\n return LayerGroupEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (LayerGroupEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L3R5cGUvTGF5ZXJHcm91cEV2ZW50LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9ldmVudC90eXBlL0xheWVyR3JvdXBFdmVudC5qcz81MDQ2Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA4LTI4IDIwOjE4OjA0XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgTGF5ZXJHcm91cEV2ZW50VHlwZSB9IGZyb20gJy4uL0V2ZW50VHlwZSdcbmltcG9ydCBFdmVudCBmcm9tICcuLi9FdmVudCdcblxuY2xhc3MgTGF5ZXJHcm91cEV2ZW50IGV4dGVuZHMgRXZlbnQge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpXG4gIH1cblxuICAvKipcbiAgICogUmVnaXN0ZXIgZXZlbnQgZm9yIGxheWVyIGdyb3VwXG4gICAqIEBwcml2YXRlXG4gICAqL1xuICBfcmVnaXN0ZXJFdmVudCgpIHtcbiAgICBPYmplY3Qua2V5cyhMYXllckdyb3VwRXZlbnRUeXBlKS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICBsZXQgdHlwZSA9IExheWVyR3JvdXBFdmVudFR5cGVba2V5XVxuICAgICAgdGhpcy5fY2FjaGVbdHlwZV0gPSBuZXcgQ2VzaXVtLkV2ZW50KClcbiAgICB9KVxuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IExheWVyR3JvdXBFdmVudFxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQWRBO0FBQ0E7QUFnQkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/event/type/LayerGroupEvent.js\n");
- /***/ }),
- /***/ "./modules/event/type/MouseEvent.js":
- /*!******************************************!*\
- !*** ./modules/event/type/MouseEvent.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2019-12-31 16:58:31\n */\n\n\n\n/**\n * Mouse events in 3D scene, optimized Cesium event model\n */\n\nvar MouseEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(MouseEvent, _Event);\n\n var _super = _createSuper(MouseEvent);\n\n function MouseEvent(viewer) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, MouseEvent);\n\n _this = _super.call(this);\n _this._viewer = viewer;\n _this._selected = undefined;\n\n _this._setInputAction();\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].LEFT_DOWN, _this._leftDownHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].LEFT_UP, _this._leftUpHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].CLICK, _this._clickHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].DB_CLICK, _this._dbClickHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].RIGHT_DOWN, _this._rightDownHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].RIGHT_UP, _this._rightUpHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].RIGHT_CLICK, _this._rightClickHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].MOUSE_MOVE, _this._mouseMoveHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this.on(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].WHEEL, _this._mouseWheelHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n return _this;\n }\n /**\n * Register Cesium mouse events\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MouseEvent, [{\n key: \"_setInputAction\",\n value: function _setInputAction() {\n var _this2 = this;\n\n var handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].ScreenSpaceEventHandler(this._viewer.canvas);\n Object.keys(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].ScreenSpaceEventType).forEach(function (key) {\n var type = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].ScreenSpaceEventType[key];\n _this2._cache[type] = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Event();\n handler.setInputAction(function (movement) {\n _this2._cache[type].raiseEvent(movement);\n }, type);\n });\n }\n /**\n *\n * Gets the mouse information for the mouse event\n * @param position\n * @private\n *\n */\n\n }, {\n key: \"_getMouseInfo\",\n value: function _getMouseInfo(position) {\n var scene = this._viewer.scene;\n var target = scene.pick(position);\n var cartesian = undefined;\n var surfaceCartesian = undefined;\n var wgs84Position = undefined;\n var wgs84SurfacePosition = undefined;\n\n if (scene.pickPositionSupported) {\n cartesian = scene.pickPosition(position);\n }\n\n if (cartesian) {\n var c = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(cartesian);\n\n if (c) {\n wgs84Position = {\n lng: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Math.toDegrees(c.longitude),\n lat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Math.toDegrees(c.latitude),\n alt: c.height\n };\n }\n }\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].SceneMode.SCENE3D && !(this._viewer.terrainProvider instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].EllipsoidTerrainProvider)) {\n var ray = scene.camera.getPickRay(position);\n surfaceCartesian = scene.globe.pick(ray, scene);\n } else {\n surfaceCartesian = scene.camera.pickEllipsoid(position, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Ellipsoid.WGS84);\n }\n\n if (surfaceCartesian) {\n var _c = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(surfaceCartesian);\n\n if (_c) {\n wgs84SurfacePosition = {\n lng: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Math.toDegrees(_c.longitude),\n lat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Math.toDegrees(_c.latitude),\n alt: _c.height\n };\n }\n }\n\n return {\n target: target,\n windowPosition: position,\n position: cartesian,\n wgs84Position: wgs84Position,\n surfacePosition: surfaceCartesian,\n wgs84SurfacePosition: wgs84SurfacePosition\n };\n }\n /**\n * Gets the drill pick overlays for the mouse event\n * @param position\n * @returns {[]}\n * @private\n */\n\n }, {\n key: \"_getDrillInfos\",\n value: function _getDrillInfos(position) {\n var _this3 = this;\n\n var drillInfos = [];\n var scene = this._viewer.scene;\n var targets = scene.drillPick(position);\n\n if (targets && targets.length) {\n targets.forEach(function (target) {\n drillInfos.push(_this3._getTargetInfo(target));\n });\n }\n\n return drillInfos;\n }\n /**\n * Return the Overlay id\n * @param target\n * @returns {any}\n * @private\n */\n\n }, {\n key: \"_getOverlayId\",\n value: function _getOverlayId(target) {\n var overlayId = undefined; // for Entity\n\n if ((target === null || target === void 0 ? void 0 : target.id) instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Entity) {\n overlayId = target.id.overlayId;\n } // for Cesium3DTileFeature\n else if (target instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Cesium3DTileFeature) {\n overlayId = target.tileset.overlayId;\n } // for Cesium3DTileset\n else if ((target === null || target === void 0 ? void 0 : target.primitive) instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Cesium3DTileset) {\n overlayId = target.primitive.overlayId;\n } // for Primitve\n else if (target !== null && target !== void 0 && target.primitive) {\n overlayId = target.primitive.overlayId;\n }\n\n return overlayId;\n }\n /**\n * Returns the target information for the mouse event\n * @param target\n * @returns {{instanceId: *, overlay: undefined, feature: undefined, layer: undefined}}\n * @private\n */\n\n }, {\n key: \"_getTargetInfo\",\n value: function _getTargetInfo(target) {\n var overlay = undefined;\n var layer = undefined;\n var feature = undefined; // for Entity\n\n if ((target === null || target === void 0 ? void 0 : target.id) instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Entity) {\n var _layer;\n\n layer = this._viewer.getLayers().filter(function (item) {\n return item.layerId === target.id.layerId;\n })[0];\n\n if ((_layer = layer) !== null && _layer !== void 0 && _layer.getOverlay) {\n overlay = layer.getOverlay(target.id.overlayId);\n }\n } // for Cesium3DTileFeature\n else if (target instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Cesium3DTileFeature) {\n var _layer2;\n\n layer = this._viewer.getLayers().filter(function (item) {\n return item.layerId === target.tileset.layerId;\n })[0];\n feature = target;\n\n if ((_layer2 = layer) !== null && _layer2 !== void 0 && _layer2.getOverlay) {\n overlay = layer.getOverlay(target.tileset.overlayId);\n\n if (feature && feature.getPropertyNames) {\n var propertyNames = feature.getPropertyNames();\n propertyNames.forEach(function (item) {\n overlay.attr[item] = feature.getProperty(item);\n });\n }\n }\n } // for Cesium3DTileset\n else if ((target === null || target === void 0 ? void 0 : target.primitive) instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Cesium3DTileset) {\n var _layer3;\n\n layer = this._viewer.getLayers().filter(function (item) {\n return item.layerId === target.primitive.layerId;\n })[0];\n\n if ((_layer3 = layer) !== null && _layer3 !== void 0 && _layer3.getOverlay) {\n overlay = layer.getOverlay(target.primitive.overlayId);\n }\n } // for Primitve\n else if (target !== null && target !== void 0 && target.primitive) {\n var _layer4;\n\n layer = this._viewer.getLayers().filter(function (item) {\n return item.layerId === target.primitive.layerId;\n })[0];\n\n if ((_layer4 = layer) !== null && _layer4 !== void 0 && _layer4.getOverlay) {\n overlay = layer.getOverlay(target.primitive.overlayId);\n }\n }\n\n return {\n layer: layer,\n overlay: overlay,\n feature: feature,\n instanceId: target === null || target === void 0 ? void 0 : target.instanceId\n };\n }\n /**\n * Trigger subscription event\n * @param type\n * @param mouseInfo\n * @private\n */\n\n }, {\n key: \"_raiseEvent\",\n value: function _raiseEvent(type) {\n var _this$_viewer;\n\n var mouseInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var event = undefined;\n\n var targetInfo = this._getTargetInfo(mouseInfo.target);\n\n var overlay = targetInfo === null || targetInfo === void 0 ? void 0 : targetInfo.overlay;\n var layer = targetInfo === null || targetInfo === void 0 ? void 0 : targetInfo.layer; // get Overlay Event\n\n if (overlay !== null && overlay !== void 0 && overlay.overlayEvent) {\n event = overlay.overlayEvent.getEvent(type);\n } // get Layer Event\n\n\n if ((!event || event.numberOfListeners === 0) && layer !== null && layer !== void 0 && layer.layerEvent) {\n event = layer.layerEvent.getEvent(type);\n } // get Viewer Event\n\n\n if ((!event || event.numberOfListeners === 0) && (_this$_viewer = this._viewer) !== null && _this$_viewer !== void 0 && _this$_viewer.viewerEvent) {\n event = this._viewer.viewerEvent.getEvent(type);\n }\n\n event && event.numberOfListeners > 0 && event.raiseEvent(_objectSpread(_objectSpread({}, targetInfo), mouseInfo)); // get Drill Pick Event\n\n if (overlay !== null && overlay !== void 0 && overlay.allowDrillPicking) {\n var drillInfos = this._getDrillInfos(mouseInfo.windowPosition);\n\n drillInfos.forEach(function (drillInfo) {\n var dillOverlay = drillInfo === null || drillInfo === void 0 ? void 0 : drillInfo.overlay;\n var dillLayer = drillInfo === null || drillInfo === void 0 ? void 0 : drillInfo.layer;\n\n if ((dillOverlay === null || dillOverlay === void 0 ? void 0 : dillOverlay.overlayId) !== overlay.overlayId && dillOverlay !== null && dillOverlay !== void 0 && dillOverlay.overlayEvent) {\n // get Overlay Event\n event = dillOverlay.overlayEvent.getEvent(type); // get Layer Event\n\n if ((!event || event.numberOfListeners === 0) && dillLayer !== null && dillLayer !== void 0 && dillLayer.layerEvent) {\n event = dillLayer.layerEvent.getEvent(type);\n }\n\n event && event.numberOfListeners > 0 && event.raiseEvent(_objectSpread(_objectSpread({}, drillInfo), mouseInfo));\n }\n });\n }\n }\n /**\n * Default click event handler\n * @param movement\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_clickHandler\",\n value: function _clickHandler(movement) {\n if (!(movement !== null && movement !== void 0 && movement.position)) {\n return false;\n }\n\n var mouseInfo = this._getMouseInfo(movement.position);\n\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].CLICK, mouseInfo);\n }\n /**\n * Default dbClick event handler\n * @param movement\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_dbClickHandler\",\n value: function _dbClickHandler(movement) {\n if (!(movement !== null && movement !== void 0 && movement.position)) {\n return false;\n }\n\n var mouseInfo = this._getMouseInfo(movement.position);\n\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].DB_CLICK, mouseInfo);\n }\n /**\n * Default rightClick event handler\n * @param movement\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_rightClickHandler\",\n value: function _rightClickHandler(movement) {\n if (!(movement !== null && movement !== void 0 && movement.position)) {\n return false;\n }\n\n var mouseInfo = this._getMouseInfo(movement.position);\n\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].RIGHT_CLICK, mouseInfo);\n }\n /**\n * Default mousemove event handler\n * @param movement\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_mouseMoveHandler\",\n value: function _mouseMoveHandler(movement) {\n if (!(movement !== null && movement !== void 0 && movement.endPosition)) {\n return false;\n }\n\n var mouseInfo = this._getMouseInfo(movement.endPosition); //this._viewer.canvas.style.cursor = mouseInfo.target ? 'pointer' : 'default'\n\n\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].MOUSE_MOVE, mouseInfo); // add event for overlay\n\n\n if (!this._selected || this._getOverlayId(this._selected.target) !== this._getOverlayId(mouseInfo.target)) {\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].MOUSE_OUT, this._selected);\n\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].MOUSE_OVER, mouseInfo);\n\n this._selected = mouseInfo;\n }\n }\n /**\n * Default mouse left down event handler\n * @param movement\n * @private\n */\n\n }, {\n key: \"_leftDownHandler\",\n value: function _leftDownHandler(movement) {\n if (!(movement !== null && movement !== void 0 && movement.position)) {\n return false;\n }\n\n var mouseInfo = this._getMouseInfo(movement.position);\n\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].LEFT_DOWN, mouseInfo);\n }\n /**\n * Default mouse left up event handler\n * @param movement\n * @private\n */\n\n }, {\n key: \"_leftUpHandler\",\n value: function _leftUpHandler(movement) {\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].LEFT_UP, {\n movement: movement\n });\n }\n /**\n * Default mouse right down event handler\n * @param movement\n * @private\n */\n\n }, {\n key: \"_rightDownHandler\",\n value: function _rightDownHandler(movement) {\n if (!(movement !== null && movement !== void 0 && movement.position)) {\n return false;\n }\n\n var mouseInfo = this._getMouseInfo(movement.position);\n\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].RIGHT_DOWN, mouseInfo);\n }\n /**\n * Default mouse right up event handler\n * @param movement\n * @private\n */\n\n }, {\n key: \"_rightUpHandler\",\n value: function _rightUpHandler(movement) {\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].RIGHT_UP, {\n movement: movement\n });\n }\n /**\n * Default mouse wheel event handler\n * @param movement\n * @private\n */\n\n }, {\n key: \"_mouseWheelHandler\",\n value: function _mouseWheelHandler(movement) {\n this._raiseEvent(_EventType__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].WHEEL, {\n movement: movement\n });\n }\n }]);\n\n return MouseEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (MouseEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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yaWxsSW5mb3MgPSB0aGlzLl9nZXREcmlsbEluZm9zKG1vdXNlSW5mby53aW5kb3dQb3NpdGlvbilcbiAgICAgIGRyaWxsSW5mb3MuZm9yRWFjaChkcmlsbEluZm8gPT4ge1xuICAgICAgICBsZXQgZGlsbE92ZXJsYXkgPSBkcmlsbEluZm8/Lm92ZXJsYXlcbiAgICAgICAgbGV0IGRpbGxMYXllciA9IGRyaWxsSW5mbz8ubGF5ZXJcbiAgICAgICAgaWYgKFxuICAgICAgICAgIGRpbGxPdmVybGF5Py5vdmVybGF5SWQgIT09IG92ZXJsYXkub3ZlcmxheUlkICYmXG4gICAgICAgICAgZGlsbE92ZXJsYXk/Lm92ZXJsYXlFdmVudFxuICAgICAgICApIHtcbiAgICAgICAgICAvLyBnZXQgT3ZlcmxheSBFdmVudFxuICAgICAgICAgIGV2ZW50ID0gZGlsbE92ZXJsYXkub3ZlcmxheUV2ZW50LmdldEV2ZW50KHR5cGUpXG4gICAgICAgICAgLy8gZ2V0IExheWVyIEV2ZW50XG4gICAgICAgICAgaWYgKFxuICAgICAgICAgICAgKCFldmVudCB8fCBldmVudC5udW1iZXJPZkxpc3RlbmVycyA9PT0gMCkgJiZcbiAgICAgICAgICAgIGRpbGxMYXllcj8ubGF5ZXJFdmVudFxuICAgICAgICAgICkge1xuICAgICAgICAgICAgZXZlbnQgPSBkaWxsTGF5ZXIubGF5ZXJFdmVudC5nZXRFdmVudCh0eXBlKVxuICAgICAgICAgIH1cbiAgICAgICAgICBldmVudCAmJlxuICAgICAgICAgICAgZXZlbnQubnVtYmVyT2ZMaXN0ZW5lcnMgPiAwICYmXG4gICAgICAgICAgICBldmVudC5yYWlzZUV2ZW50KHtcbiAgICAgICAgICAgICAgLi4uZHJpbGxJbmZvLFxuICAgICAgICAgICAgICAuLi5tb3VzZUluZm9cbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cbiAgICAgIH0pXG4gICAgfVxuICB9XG5cbiAgLyoqXG4gICAqIERlZmF1bHQg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tBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFLQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7Ozs7QUF6WUE7QUFDQTtBQTJZQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/event/type/MouseEvent.js\n");
- /***/ }),
- /***/ "./modules/event/type/OverlayEvent.js":
- /*!********************************************!*\
- !*** ./modules/event/type/OverlayEvent.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-02 14:26:35\n */\n\n\n\n\nvar OverlayEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(OverlayEvent, _Event);\n\n var _super = _createSuper(OverlayEvent);\n\n function OverlayEvent() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, OverlayEvent);\n\n return _super.call(this);\n }\n /**\n * Register event for overlay\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(OverlayEvent, [{\n key: \"_registerEvent\",\n value: function _registerEvent() {\n var _this = this;\n\n Object.keys(_EventType__WEBPACK_IMPORTED_MODULE_6__[\"OverlayEventType\"]).forEach(function (key) {\n var type = _EventType__WEBPACK_IMPORTED_MODULE_6__[\"OverlayEventType\"][key];\n _this._cache[type] = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Event();\n });\n }\n }]);\n\n return OverlayEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (OverlayEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L3R5cGUvT3ZlcmxheUV2ZW50LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9ldmVudC90eXBlL092ZXJsYXlFdmVudC5qcz8yMDUyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTAyIDE0OjI2OjM1XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgT3ZlcmxheUV2ZW50VHlwZSB9IGZyb20gJy4uL0V2ZW50VHlwZSdcbmltcG9ydCBFdmVudCBmcm9tICcuLi9FdmVudCdcblxuY2xhc3MgT3ZlcmxheUV2ZW50IGV4dGVuZHMgRXZlbnQge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpXG4gIH1cblxuICAvKipcbiAgICogUmVnaXN0ZXIgZXZlbnQgZm9yIG92ZXJsYXlcbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9yZWdpc3RlckV2ZW50KCkge1xuICAgIE9iamVjdC5rZXlzKE92ZXJsYXlFdmVudFR5cGUpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgIGxldCB0eXBlID0gT3ZlcmxheUV2ZW50VHlwZVtrZXldXG4gICAgICB0aGlzLl9jYWNoZVt0eXBlXSA9IG5ldyBDZXNpdW0uRXZlbnQoKVxuICAgIH0pXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgT3ZlcmxheUV2ZW50XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFEQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBZEE7QUFDQTtBQWdCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/event/type/OverlayEvent.js\n");
- /***/ }),
- /***/ "./modules/event/type/PathEvent.js":
- /*!*****************************************!*\
- !*** ./modules/event/type/PathEvent.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-05-11 23:28:13\n */\n\n\n\n\nvar PathEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PathEvent, _Event);\n\n var _super = _createSuper(PathEvent);\n\n function PathEvent() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PathEvent);\n\n return _super.call(this);\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PathEvent, [{\n key: \"_registerEvent\",\n value: function _registerEvent() {\n var _this = this;\n\n Object.keys(_EventType__WEBPACK_IMPORTED_MODULE_6__[\"PathEventType\"]).forEach(function (key) {\n var type = _EventType__WEBPACK_IMPORTED_MODULE_6__[\"PathEventType\"][key];\n _this._cache[type] = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Event();\n });\n }\n }]);\n\n return PathEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (PathEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L3R5cGUvUGF0aE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QTtBQWdCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/event/type/PathEvent.js\n");
- /***/ }),
- /***/ "./modules/event/type/PlotEvent.js":
- /*!*****************************************!*\
- !*** ./modules/event/type/PlotEvent.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-05-11 23:28:13\n */\n\n\n\n\nvar PlotEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PlotEvent, _Event);\n\n var _super = _createSuper(PlotEvent);\n\n function PlotEvent() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PlotEvent);\n\n return _super.call(this);\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PlotEvent, [{\n key: \"_registerEvent\",\n value: function _registerEvent() {\n var _this = this;\n\n Object.keys(_EventType__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"]).forEach(function (key) {\n var type = _EventType__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"][key];\n _this._cache[type] = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Event();\n });\n }\n }]);\n\n return PlotEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (PlotEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L3R5cGUvUGxvdEV2ZW50LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9ldmVudC90eXBlL1Bsb3RFdmVudC5qcz8xNWU3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA1LTExIDIzOjI4OjEzXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgUGxvdEV2ZW50VHlwZSB9IGZyb20gJy4uL0V2ZW50VHlwZSdcbmltcG9ydCBFdmVudCBmcm9tICcuLi9FdmVudCdcblxuY2xhc3MgUGxvdEV2ZW50IGV4dGVuZHMgRXZlbnQge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpXG4gIH1cblxuICAvKipcbiAgICpcbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9yZWdpc3RlckV2ZW50KCkge1xuICAgIE9iamVjdC5rZXlzKFBsb3RFdmVudFR5cGUpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgIGxldCB0eXBlID0gUGxvdEV2ZW50VHlwZVtrZXldXG4gICAgICB0aGlzLl9jYWNoZVt0eXBlXSA9IG5ldyBDZXNpdW0uRXZlbnQoKVxuICAgIH0pXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgUGxvdEV2ZW50XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFEQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBZEE7QUFDQTtBQWdCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/event/type/PlotEvent.js\n");
- /***/ }),
- /***/ "./modules/event/type/SceneEvent.js":
- /*!******************************************!*\
- !*** ./modules/event/type/SceneEvent.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-02 21:32:43\n */\n\n\n\nvar SceneEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(SceneEvent, _Event);\n\n var _super = _createSuper(SceneEvent);\n\n function SceneEvent(viewer) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SceneEvent);\n\n _this = _super.call(this);\n _this._camera = viewer.camera;\n _this._scene = viewer.scene;\n _this._clock = viewer.clock;\n return _this;\n }\n /**\n * Subscribe event\n * @param type\n * @param callback\n * @param context\n * @returns {any}\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SceneEvent, [{\n key: \"on\",\n value: function on(type, callback, context) {\n var removeCallback = undefined;\n\n switch (type) {\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].CAMERA_MOVE_END:\n removeCallback = this._camera.moveEnd.addEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].CAMERA_CHANGED:\n removeCallback = this._camera.changed.addEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].PRE_UPDATE:\n removeCallback = this._scene.preUpdate.addEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].POST_UPDATE:\n removeCallback = this._scene.postUpdate.addEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].PRE_RENDER:\n removeCallback = this._scene.preRender.addEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].POST_RENDER:\n removeCallback = this._scene.postRender.addEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].MORPH_COMPLETE:\n removeCallback = this._scene.morphComplete.addEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].CLOCK_TICK:\n removeCallback = this._clock.onTick.addEventListener(callback, context || this);\n break;\n\n default:\n break;\n }\n\n return removeCallback;\n }\n /**\n * Unsubscribe event\n * @param type\n * @param callback\n * @param context\n * @returns {boolean}\n */\n\n }, {\n key: \"off\",\n value: function off(type, callback, context) {\n var removed = false;\n\n switch (type) {\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].CAMERA_MOVE_END:\n removed = this._camera.moveEnd.removeEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].CAMERA_CHANGED:\n removed = this._camera.changed.removeEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].PRE_UPDATE:\n removed = this._scene.preUpdate.removeEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].POST_UPDATE:\n removed = this._scene.postUpdate.removeEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].PRE_RENDER:\n removed = this._scene.preRender.removeEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].POST_RENDER:\n removed = this._scene.postRender.removeEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].MORPH_COMPLETE:\n removed = this._scene.morphComplete.removeEventListener(callback, context || this);\n break;\n\n case _EventType__WEBPACK_IMPORTED_MODULE_5__[\"SceneEventType\"].CLOCK_TICK:\n removed = this._clock.onTick.removeEventListener(callback, context || this);\n break;\n\n default:\n break;\n }\n\n return removed;\n }\n }]);\n\n return SceneEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SceneEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L3R5cGUvU2NlbmVFdmVudC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvZXZlbnQvdHlwZS9TY2VuZUV2ZW50LmpzPzc1M2QiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDMtMDIgMjE6MzI6NDNcbiAqL1xuXG5pbXBvcnQgeyBTY2VuZUV2ZW50VHlwZSB9IGZyb20gJy4uL0V2ZW50VHlwZSdcbmltcG9ydCBFdmVudCBmcm9tICcuLi9FdmVudCdcblxuY2xhc3MgU2NlbmVFdmVudCBleHRlbmRzIEV2ZW50IHt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E7QUFDQTtBQUFBO0FBQ0E7QUFJQTtBQUNBO0FBQUE7QUFDQTtBQUlBO0FBQ0E7QUFBQTtBQUNBO0FBSUE7QUFDQTtBQUFBO0FBQ0E7QUFJQTtBQUNBO0FBQUE7QUFDQTtBQWxEQTtBQUNBO0FBb0RBO0FBQ0E7Ozs7QUF2SUE7QUFDQTtBQXlJQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/event/type/SceneEvent.js\n");
- /***/ }),
- /***/ "./modules/event/type/TrackEvent.js":
- /*!******************************************!*\
- !*** ./modules/event/type/TrackEvent.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-06-08 20:37:28\n */\n\n\n\n\nvar TrackEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TrackEvent, _Event);\n\n var _super = _createSuper(TrackEvent);\n\n function TrackEvent() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TrackEvent);\n\n return _super.call(this);\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TrackEvent, [{\n key: \"_registerEvent\",\n value: function _registerEvent() {\n var _this = this;\n\n Object.keys(_EventType__WEBPACK_IMPORTED_MODULE_6__[\"TrackEventType\"]).forEach(function (key) {\n var type = _EventType__WEBPACK_IMPORTED_MODULE_6__[\"TrackEventType\"][key];\n _this._cache[type] = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Event();\n });\n }\n }]);\n\n return TrackEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (TrackEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L3R5cGUvVHJhY2tFdmVudC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvZXZlbnQvdHlwZS9UcmFja0V2ZW50LmpzPzQ1YTMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDYtMDggMjA6Mzc6MjhcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgeyBUcmFja0V2ZW50VHlwZSB9IGZyb20gJy4uL0V2ZW50VHlwZSdcbmltcG9ydCBFdmVudCBmcm9tICcuLi9FdmVudCdcblxuY2xhc3MgVHJhY2tFdmVudCBleHRlbmRzIEV2ZW50IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoKVxuICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwcml2YXRlXG4gICAqL1xuICBfcmVnaXN0ZXJFdmVudCgpIHtcbiAgICBPYmplY3Qua2V5cyhUcmFja0V2ZW50VHlwZSkuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgbGV0IHR5cGUgPSBUcmFja0V2ZW50VHlwZVtrZXldXG4gICAgICB0aGlzLl9jYWNoZVt0eXBlXSA9IG5ldyBDZXNpdW0uRXZlbnQoKVxuICAgIH0pXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgVHJhY2tFdmVudFxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQWRBO0FBQ0E7QUFnQkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/event/type/TrackEvent.js\n");
- /***/ }),
- /***/ "./modules/event/type/ViewerEvent.js":
- /*!*******************************************!*\
- !*** ./modules/event/type/ViewerEvent.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _EventType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../EventType */ \"./modules/event/EventType.js\");\n/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Event */ \"./modules/event/Event.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-02 14:26:35\n */\n\n\n\n\nvar ViewerEvent = /*#__PURE__*/function (_Event) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ViewerEvent, _Event);\n\n var _super = _createSuper(ViewerEvent);\n\n function ViewerEvent() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ViewerEvent);\n\n return _super.call(this);\n }\n /**\n * Register event for viewer\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ViewerEvent, [{\n key: \"_registerEvent\",\n value: function _registerEvent() {\n var _this = this;\n\n Object.keys(_EventType__WEBPACK_IMPORTED_MODULE_6__[\"ViewerEventType\"]).forEach(function (key) {\n var type = _EventType__WEBPACK_IMPORTED_MODULE_6__[\"ViewerEventType\"][key];\n _this._cache[type] = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Event();\n });\n }\n }]);\n\n return ViewerEvent;\n}(_Event__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ViewerEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V2ZW50L3R5cGUvVmlld2VyRXZlbnQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2V2ZW50L3R5cGUvVmlld2VyRXZlbnQuanM/YjUwYSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMS0wMiAxNDoyNjozNVxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFZpZXdlckV2ZW50VHlwZSB9IGZyb20gJy4uL0V2ZW50VHlwZSdcbmltcG9ydCBFdmVudCBmcm9tICcuLi9FdmVudCdcblxuY2xhc3MgVmlld2VyRXZlbnQgZXh0ZW5kcyBFdmVudCB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKClcbiAgfVxuXG4gIC8qKlxuICAgKiBSZWdpc3RlciBldmVudCBmb3Igdmlld2VyXG4gICAqIEBwcml2YXRlXG4gICAqL1xuICBfcmVnaXN0ZXJFdmVudCgpIHtcbiAgICBPYmplY3Qua2V5cyhWaWV3ZXJFdmVudFR5cGUpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgIGxldCB0eXBlID0gVmlld2VyRXZlbnRUeXBlW2tleV1cbiAgICAgIHRoaXMuX2NhY2hlW3R5cGVdID0gbmV3IENlc2l1bS5FdmVudCgpXG4gICAgfSlcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBWaWV3ZXJFdmVudFxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQWRBO0FBQ0E7QUFnQkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/event/type/ViewerEvent.js\n");
- /***/ }),
- /***/ "./modules/exts/GroundSkyBox.js":
- /*!**************************************!*\
- !*** ./modules/exts/GroundSkyBox.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ \"./node_modules/@babel/runtime/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-21 17:50:31\n */\n\nvar BoxGeometry = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].BoxGeometry,\n Cartesian3 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3,\n defined = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].defined,\n DeveloperError = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].DeveloperError,\n GeometryPipeline = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].GeometryPipeline,\n Matrix3 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix3,\n Matrix4 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4,\n Transforms = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Transforms,\n VertexFormat = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].VertexFormat,\n BufferUsage = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].BufferUsage,\n CubeMap = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CubeMap,\n loadCubeMap = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].loadCubeMap,\n RenderState = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].RenderState,\n VertexArray = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].VertexArray,\n BlendingState = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].BlendingState,\n SceneMode = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].SceneMode,\n ShaderProgram = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ShaderProgram,\n ShaderSource = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ShaderSource;\nvar SkyBoxFS = \"\\n uniform samplerCube u_cubeMap;\\n varying vec3 v_texCoord;\\n void main()\\n {\\n vec4 color = textureCube(u_cubeMap, normalize(v_texCoord));\\n gl_FragColor = vec4(czm_gammaCorrect(color).rgb, czm_morphTime);\\n }\\n\";\nvar SkyBoxVS = \"\\n attribute vec3 position;\\n varying vec3 v_texCoord;\\n uniform mat3 u_rotateMatrix;\\n void main()\\n {\\n vec3 p = czm_viewRotation * u_rotateMatrix * (czm_temeToPseudoFixed * (czm_entireFrustum.y * position));\\n gl_Position = czm_projection * vec4(p, 1.0);\\n v_texCoord = position.xyz;\\n }\\n\";\n\nvar GroundSkyBox = /*#__PURE__*/function (_Cesium$SkyBox) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(GroundSkyBox, _Cesium$SkyBox);\n\n var _super = _createSuper(GroundSkyBox);\n\n function GroundSkyBox() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, GroundSkyBox);\n\n _this = _super.call(this, options);\n _this.offsetAngle = (options === null || options === void 0 ? void 0 : options.offsetAngle) || 0;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(GroundSkyBox, [{\n key: \"update\",\n value: function update(frameState, useHdr) {\n var that = this;\n\n if (!this.show) {\n return undefined;\n }\n\n if (frameState.mode !== SceneMode.SCENE3D && frameState.mode !== SceneMode.MORPHING) {\n return undefined;\n }\n\n if (!frameState.passes.render) {\n return undefined;\n }\n\n var context = frameState.context;\n\n if (this._sources !== this.sources) {\n this._sources = this.sources;\n var sources = this.sources;\n\n if (!defined(sources.positiveX) || !defined(sources.negativeX) || !defined(sources.positiveY) || !defined(sources.negativeY) || !defined(sources.positiveZ) || !defined(sources.negativeZ)) {\n throw new DeveloperError('this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.');\n }\n\n if (_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.positiveX) !== _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.negativeX) || _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.positiveX) !== _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.positiveY) || _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.positiveX) !== _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.negativeY) || _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.positiveX) !== _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.positiveZ) || _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.positiveX) !== _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(sources.negativeZ)) {\n throw new DeveloperError('this.sources properties must all be the same type.');\n }\n\n if (typeof sources.positiveX === 'string') {\n // Given urls for cube-map images. Load them.\n loadCubeMap(context, this._sources).then(function (cubeMap) {\n that._cubeMap = that._cubeMap && that._cubeMap.destroy();\n that._cubeMap = cubeMap;\n });\n } else {\n this._cubeMap = this._cubeMap && this._cubeMap.destroy();\n this._cubeMap = new CubeMap({\n context: context,\n source: sources\n });\n }\n }\n\n var command = this._command;\n command.modelMatrix = Transforms.eastNorthUpToFixedFrame(frameState.camera.positionWC);\n\n if (this.offsetAngle !== 0) {\n Matrix4.multiply(command.modelMatrix, Matrix4.fromRotationTranslation(Matrix3.fromRotationZ(this.offsetAngle / 180 * Math.PI)), command.modelMatrix);\n }\n\n if (!defined(command.vertexArray)) {\n command.uniformMap = {\n u_cubeMap: function u_cubeMap() {\n return that._cubeMap;\n },\n u_rotateMatrix: function u_rotateMatrix() {\n return Matrix4.getMatrix3(command.modelMatrix, new Matrix3());\n }\n };\n var geometry = BoxGeometry.createGeometry(BoxGeometry.fromDimensions({\n dimensions: new Cartesian3(2.0, 2.0, 2.0),\n vertexFormat: VertexFormat.POSITION_ONLY\n }));\n var attributeLocations = this._attributeLocations = GeometryPipeline.createAttributeLocations(geometry);\n command.vertexArray = VertexArray.fromGeometry({\n context: context,\n geometry: geometry,\n attributeLocations: attributeLocations,\n bufferUsage: BufferUsage._DRAW\n });\n command.renderState = RenderState.fromCache({\n blending: BlendingState.ALPHA_BLEND\n });\n }\n\n if (!defined(command.shaderProgram) || this._useHdr !== useHdr) {\n var fs = new ShaderSource({\n defines: [useHdr ? 'HDR' : ''],\n sources: [SkyBoxFS]\n });\n command.shaderProgram = ShaderProgram.fromCache({\n context: context,\n vertexShaderSource: SkyBoxVS,\n fragmentShaderSource: fs,\n attributeLocations: this._attributeLocations\n });\n this._useHdr = useHdr;\n }\n\n if (!defined(this._cubeMap)) {\n return undefined;\n }\n\n return command;\n }\n }]);\n\n return GroundSkyBox;\n}(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].SkyBox);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (GroundSkyBox);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V4dHMvR3JvdW5kU2t5Qm94LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9leHRzL0dyb3VuZFNreUJveC5qcz8wMTdjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTAyLTIxIDE3OjUwOjMxXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuXG5jb25zdCB7XG4gIEJveEdlb21ldHJ5LFxuICBDYXJ0ZXNpYW4zLFxuICBkZWZpbmVkLFxuICBEZXZlbG9wZXJFcnJvcixcbiAgR2VvbWV0cnlQaXBlbGluZSxcbiAgTWF0cml4MyxcbiAgTWF0cml4NCxcbiAgVHJhbnNmb3JtcyxcbiAgVmVydGV4Rm9ybWF0LFxuICBCdWZmZXJVc2FnZSxcbiAgQ3ViZU1hcCxcbiAgbG9hZEN1YmVNYXAsXG4gIFJlbmRlclN0YXRlLFxuICBWZXJ0ZXhBcnJheSxcbiAgQmxlbmRpbmdTdGF0ZSxcbiAgU2NlbmVNb2RlLFxuICBTaGFkZXJQcm9ncmFtLFxuICBTaGFkZXJTb3VyY2Vcbn0gPSBDZXNpdW1cblxuY29uc3QgU2t5Qm94RlMgPSBgXG4gIHVuaWZvcm0gc2FtcGxl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Q0E7QUFDQTtBQUNBO0FBUUE7QUFHQTtBQUNBO0FBQ0E7QUFPQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFHQTtBQUNBO0FBT0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFOQTtBQVNBO0FBRUE7QUFDQTtBQUZBO0FBS0E7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFPQTtBQUNBO0FBREE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQU1BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTs7OztBQXhJQTtBQUNBO0FBMElBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/exts/GroundSkyBox.js\n");
- /***/ }),
- /***/ "./modules/exts/index.js":
- /*!*******************************!*\
- !*** ./modules/exts/index.js ***!
- \*******************************/
- /*! exports provided: GroundSkyBox */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GroundSkyBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GroundSkyBox */ \"./modules/exts/GroundSkyBox.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"GroundSkyBox\", function() { return _GroundSkyBox__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2021-02-21 17:51:00\n */\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2V4dHMvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2V4dHMvaW5kZXguanM/MjFkMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMi0yMSAxNzo1MTowMFxuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgR3JvdW5kU2t5Qm94IH0gZnJvbSAnLi9Hcm91bmRTa3lCb3gnXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/exts/index.js\n");
- /***/ }),
- /***/ "./modules/flat/TilesetFlat.js":
- /*!*************************************!*\
- !*** ./modules/flat/TilesetFlat.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n\nfunction _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; } } }; }\n\nfunction _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); }\n\nfunction _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; }\n\n/**\n * @Author 刘策\n * @Date 2022-11-28 10:14\n * @Description 倾斜图层压平功能\n */\n\n\nvar TilesetFlat = /*#__PURE__*/function () {\n /**\n * 设置压平属性\n * @param {Cesium.Viewer} viewer Cesium三维视窗。\n * @param {Object} options 选项。\n * @param {Object} options.tileset 裁剪图层,Cesium3DTileset\n */\n function TilesetFlat(viewer) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TilesetFlat);\n\n this._viewer = viewer;\n this._tileset = options.tileset;\n this._height = 1; // this.clearTilesetFlats()\n\n this._positions = [];\n this.isopsitoon = true;\n this._customShader = undefined;\n this._gdPositions = [];\n this.map = new Map(); //数组的长度\n\n this.count = 0; //数组个数\n\n this.index = [[0, 4]];\n var option = {\n date: '压平区域',\n show: true,\n height: 0,\n coord: [new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(0.0, 0.0), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(0.0, 0.0), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(0.0, 0.0)]\n };\n this.addPolygon(option);\n this.addpolyline(option.coord);\n }\n /**\n * 绘制多边行\n * @param {*} coord 坐标\n * @param {*} show 控制显示隐藏\n * @param {*} data 名字\n * @param {*} entities 名字\n * @param {*} height 高度\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(TilesetFlat, [{\n key: \"addpolyline\",\n value: function addpolyline(positionData, option) {\n var polyline = this._viewer.entities.add({\n polyline: {\n positions: positionData,\n width: 2,\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.YELLOW.withAlpha(1),\n clampToGround: false\n }\n });\n\n if (this.isopsitoon) {\n this._viewer.flyTo(polyline);\n }\n\n return polyline;\n }\n /**\n * 添加一个多边形\n * @param {*} coord 坐标\n * @param {*} show 控制显示隐藏\n * @param {*} data 名字\n * @param {*} entities 名字\n * @param {*} height 高度\n */\n\n }, {\n key: \"addPolygon\",\n value: function addPolygon(option) {\n var _this$positions;\n\n if (this.positions.length > 0) {\n // debugger\n if (this.positions[0].x == 0) {\n this.positions = [];\n }\n }\n\n var position = option.coord;\n position.push(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(position[0].x, position[0].y, position[0].z), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(position[0].x, position[0].y, position[0].z));\n\n (_this$positions = this.positions).push.apply(_this$positions, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(position));\n\n this.count++;\n\n for (var index = 0; index < this.count; index++) {\n this.map.set(this.count - 1, {\n length: this.positions.length,\n index: this.positions.length,\n height: option.height,\n show: option.show\n });\n }\n\n this._height = option.height;\n this.start();\n }\n /**\n * 清除压平\n * @param {*} height\n */\n\n }, {\n key: \"clearTilesetFlats\",\n value: function clearTilesetFlats() {\n this._height = 1;\n this.index = [[0, 4]];\n this._positions = [];\n this._customShader = undefined;\n this._gdPositions = [];\n this.map = new Map(); //数组的长度\n\n this.count = 0; //数组个数\n\n this._viewer.entities.removeAll();\n\n var option = {\n date: '压平区域',\n show: true,\n height: 1,\n coord: [new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(0.0, 0.0), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(0.0, 0.0), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(0.0, 0.0)]\n };\n this.isopsitoon = false;\n this.addPolygon(option);\n this.addpolyline(option.coord);\n }\n /**\n * 改变压平高度\n * @param {*} height\n */\n\n }, {\n key: \"changeHeight\",\n value: function changeHeight(height) {\n if (this._positions.length > 0) {\n this._height = height;\n this.start();\n }\n }\n /**\n * 拿到获取点位在模型或地形上的高度\n */\n\n }, {\n key: \"start\",\n value: function start() {\n var uniforms = this.createUniforms(this._positions);\n var shader = this.createVertexShader(uniforms);\n uniforms['height'] = {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].UniformType.FLOAT,\n value: this._height\n };\n this._customShader = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CustomShader({\n lightingModel: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].LightingModel.UNLIT,\n uniforms: uniforms,\n vertexShaderText: shader,\n varyings: {\n v_selectedColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].VaryingType.VEC4,\n v_height: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].VaryingType.FLOAT\n },\n fragmentShaderText: \"\\n void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material) {\\n if(v_selectedColor.xyz != vec3(0.0,0.0,0.0)){\\n // material.diffuse = v_selectedColor.xyz;\\n // material.alpha = 0.0;\\n // if(v_selectedColor.y<v_height*100.){\\n // material.diffuse = vec3(1.0);\\n // }\\n\\n }\\n\\n\\n }\"\n });\n\n var _iterator = _createForOfIteratorHelper(this._tileset),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var i = _step.value;\n i.customShader = this._customShader;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n /**\n * 根据点位创建uniforms变量\n * @param {*} positions\n * @returns\n */\n\n }, {\n key: \"createUniforms\",\n value: function createUniforms(positions) {\n var uniforms = {};\n positions.forEach(function (point, index) {\n uniforms[\"p\" + index] = {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].UniformType.VEC4,\n value: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian4(point.x, point.y, point.z, 1)\n };\n });\n return uniforms;\n }\n /**\n * 通过uniforms变量 拼接字符串\n * @param {*} uniforms\n * @returns\n */\n\n }, {\n key: \"createVertexShader\",\n value: function createVertexShader(uniforms) {\n var keys = Object.keys(uniforms);\n var header = \"\\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput){\\n vec3 positionMC = vsInput.attributes.positionMC;\\n vec4 pointArray[\".concat(keys.length, \"];\\n int indexArray[\").concat(this.count, \"];\\n // int heightPoly[\").concat(this.count, \"];\\n bool showFalt[\").concat(this.count, \"];\\n // float heights = float(height);\\n \"); // 创建几个变量保存值\n\n var uniformText = \"\";\n Object.keys(uniforms).forEach(function (key, index) {\n uniformText += \"\\n pointArray[\".concat(index, \"] =\").concat(key, \";\\n \");\n });\n\n for (var index = 0; index < this.count; index++) {\n uniformText += \"\\n indexArray[\".concat(index, \"] = \").concat(this.map.get(index).index, \";\\n \");\n uniformText += \"\\n showFalt[\".concat(index, \"] = \").concat(this.map.get(index).show, \";\\n \");\n }\n\n var mainText = \"\\n for(int i=0;i< \".concat(keys.length, \";i++){\\n vec4 p = czm_inverseModel * pointArray[i];\\n pointArray[i] = p;\\n }\\n float ymin = 30.;\\n\\n for(int i=0;i<\").concat(keys.length, \";i++){\\n ymin = min(ymin,pointArray[i].y);\\n }\\n bool isIn = false;\\n int polyH = 0;\\n vec4 p = vec4(positionMC,1.0);\\n for(int i = 0;i < \").concat(keys.length - 1, \";i++){\\n vec4 p1 = pointArray[i];\\n vec4 p2 = pointArray[i + 1];\\n //\\u5206\\u5757\\u8BFB\\u53D6\\n bool bJump = false;\\n bool show = true;\\n for(int j= 0 ;j < \").concat(this.count, \";j++){\\n\\n if(i == (indexArray[j] - 1)){\\n bJump = true;\\n show = showFalt[j];\\n break;\\n }\\n }\\n if(!show){\\n continue;\\n }\\n if(bJump)\\n continue; //\\u8DF3\\u8FC7\\u70B9\\u4E32\\u7684\\u6700\\u540E\\u4E00\\u4E2A\\n if(p1.z<= p.z && p2.z>=p.z || p2.z<=p.z && p1.z>=p.z){\\n if(p1.x+(p.z-p1.z)/(p2.z-p1.z)*(p2.x-p1.x)<=p.x){\\n isIn=!isIn;\\n }\\n }\\n }\\n if(isIn){\\n vsOutput.positionMC.y = ymin+height;\\n v_selectedColor = vec4(vsOutput.positionMC.xyz,0.0) ;\\n }\\n \");\n var endText = \"}\"; // console.log(header + uniformText + mainText + endText);\n\n return header + uniformText + mainText + endText;\n }\n }, {\n key: \"positions\",\n get: function get() {\n // console.log(this._positions);\n return this._positions;\n },\n set: function set(val) {\n this._positions = val;\n }\n }]);\n\n return TilesetFlat;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (TilesetFlat);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ZsYXQvVGlsZXNldEZsYXQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2ZsYXQvVGlsZXNldEZsYXQuanM/NmIzYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3Ig5YiY562WXG4gKiBARGF0ZSAyMDIyLTExLTI4IDEwOjE0XG4gKiBARGVzY3JpcHRpb24g5YC+5pac5Zu+5bGC5Y6L5bmz5Yqf6IO9XG4gKi9cblxuaW1wb3J0IHtDZXNpdW19IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcblxuY2xhc3MgVGlsZXNldEZsYXQge1xuICAvKipcbiAgICog6K6+572u5Y6L5bmz5bGe5oCnXG4gICAqIEBwYXJhbSB7Q2VzaXVtLlZpZXdlcn0gdmlld2VyIENlc2l1beS4iee7tOinhueql+OAglxuICAgKiBAcGFyYW0ge09iamVjdH0gb3B0aW9ucyDpgInpobnjgIJcbiAgICogQHBhcmFtIHtPYmplY3R9IG9wdG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wO1xuICAgICAgICB9XG4gICAgICAgIGZsb2F0IHltaW4gPSAzMC47XG5cbiAgICAgICAgZm9yKGludCBpPTA7aTwke2tleXMubGVuZ3RofTtpKyspe1xuICAgICAgICAgIHltaW4gPSBtaW4oeW1pbixwb2ludEFycmF5W2ldLnkpO1xuICAgICAgICB9XG4gICAgICAgIGJvb2wgaXNJbiA9IGZhbHNlO1xuICAgICAgICBpbnQgcG9seUggPSAwO1xuICAgICAgICB2ZWM0IHAgPSB2ZWM0KHBvc2l0aW9uTUMsMS4wKTtcbiAgICAgICAgZm9yKGludCBpID0gMDtpIDwgJHtrZXlzLmxlbmd0aCAtIDF9O2krKyl7XG4gICAgICAgICAgdmVjNCBwMSA9IHBvaW50QXJyYXlbaV07XG4gICAgICAgICAgdmVjNCBwMiA9IHBvaW50QXJyYXlbaSArIDFdO1xuICAgICAgICAgIC8v5YiG5Z2X6K+75Y+WXG4gICAgICAgICAgYm9vbCBiSnVtcCA9IGZhbHNlO1xuICAgICAgICAgIGJvb2wgc2hvdyA9IHRydWU7XG4gICAgICAgICAgZm9yKGludCBqPSAwIDtqIDwgJHt0aGlzLmNvdW50IH07aisrKXtcblxuICAgICAgICAgICAgaWYoaSA9PSAoaW5kZXhBcnJheVtqXSAtIDEpKXtcbiAgICAgICAgICAgICAgYkp1bXAgPSB0cnVlO1xuICAgICAgICAgICAgICBzaG93ID0gc2hvd0ZhbHRbal07XG4gICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgICBpZighc2hvdyl7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9XG4gICAgICAgICAgaWYoYkp1bXApXG4gICAgICAgICAgICBjb250aW51ZTsgLy/ot7Pov4fngrnkuLLnmoTmnIDlkI7kuIDkuKpcbiAgICAgICAgICBpZihwMS56PD0gcC56ICYmIHAyLno+PXAueiB8fCBwMi56PD1wLnogJiYgcDEuej49cC56KXtcbiAgICAgICAgICAgIG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O0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFTQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUdBO0FBR0E7QUFDQTtBQUFBO0FBMkNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/flat/TilesetFlat.js\n");
- /***/ }),
- /***/ "./modules/flat/index.js":
- /*!*******************************!*\
- !*** ./modules/flat/index.js ***!
- \*******************************/
- /*! exports provided: TilesetFlat */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _TilesetFlat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TilesetFlat */ \"./modules/flat/TilesetFlat.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TilesetFlat\", function() { return _TilesetFlat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ZsYXQvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2ZsYXQvaW5kZXguanM/MDRkNyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBkZWZhdWx0IGFzIFRpbGVzZXRGbGF0IH0gZnJvbSAnLi9UaWxlc2V0RmxhdCdcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/flat/index.js\n");
- /***/ }),
- /***/ "./modules/global-api/index.js":
- /*!*************************************!*\
- !*** ./modules/global-api/index.js ***!
- \*************************************/
- /*! exports provided: initMixin, initUse, registerLib, getLib */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mixin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mixin */ \"./modules/global-api/mixin.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"initMixin\", function() { return _mixin__WEBPACK_IMPORTED_MODULE_0__[\"initMixin\"]; });\n\n/* harmony import */ var _use__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use */ \"./modules/global-api/use.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"initUse\", function() { return _use__WEBPACK_IMPORTED_MODULE_1__[\"initUse\"]; });\n\n/* harmony import */ var _lib_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib-util */ \"./modules/global-api/lib-util.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"registerLib\", function() { return _lib_util__WEBPACK_IMPORTED_MODULE_2__[\"registerLib\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"getLib\", function() { return _lib_util__WEBPACK_IMPORTED_MODULE_2__[\"getLib\"]; });\n\n/**\n * @Author: Liuce\n * @Date: 2022-04-11 17:58:32\n */\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2dsb2JhbC1hcGkvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2dsb2JhbC1hcGkvaW5kZXguanM/MThmZiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IExpdWNlXG4gKiBARGF0ZTogMjAyMi0wNC0xMSAxNzo1ODozMlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbWl4aW4nXG5leHBvcnQgKiBmcm9tICcuL3VzZSdcbmV4cG9ydCAqIGZyb20gJy4vbGliLXV0aWwnXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/global-api/index.js\n");
- /***/ }),
- /***/ "./modules/global-api/lib-util.js":
- /*!****************************************!*\
- !*** ./modules/global-api/lib-util.js ***!
- \****************************************/
- /*! exports provided: registerLib, getLib */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"registerLib\", function() { return registerLib; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLib\", function() { return getLib; });\n/**\n * @Author: Caven\n * @Date: 2022-08-11 18:52:22\n */\nvar cache = {};\n/**\n * register lib\n * @param name\n * @param lib\n */\n\nfunction registerLib(name, lib) {\n cache[name] = lib;\n}\n/**\n * get lib\n * @param name\n * @return {*}\n */\n\nfunction getLib(name) {\n return cache[name];\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2dsb2JhbC1hcGkvbGliLXV0aWwuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2dsb2JhbC1hcGkvbGliLXV0aWwuanM/ZWJkOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMi0wOC0xMSAxODo1MjoyMlxuICovXG5cbmNvbnN0IGNhY2hlID0ge31cblxuLyoqXG4gKiByZWdpc3RlciBsaWJcbiAqIEBwYXJhbSBuYW1lXG4gKiBAcGFyYW0gbGliXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiByZWdpc3RlckxpYihuYW1lLCBsaWIpIHtcbiAgY2FjaGVbbmFtZV0gPSBsaWJcbn1cblxuLyoqXG4gKiBnZXQgbGliXG4gKiBAcGFyYW0gbmFtZVxuICogQHJldHVybiB7Kn1cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGdldExpYihuYW1lKSB7XG4gIHJldHVybiBjYWNoZVtuYW1lXVxufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/global-api/lib-util.js\n");
- /***/ }),
- /***/ "./modules/global-api/mixin.js":
- /*!*************************************!*\
- !*** ./modules/global-api/mixin.js ***!
- \*************************************/
- /*! exports provided: initMixin */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initMixin\", function() { return initMixin; });\n/**\n * @Author: Liuce\n * @Date: 2022-04-11 18:11:34\n */\nvar ignores = ['version', 'accessToken', 'baseUrl', 'author', 'init', 'ready', 'use', 'mixin', 'Namespace', 'Initialized'];\n/**\n * Mix other plug-in attributes to GD\n * @param GD\n * @returns this\n */\n\nfunction initMixin(GD) {\n GD.mixin = function (mixin) {\n for (var key in mixin) {\n ignores.indexOf(key) < 0 && (GD[key] = mixin[key]);\n }\n\n return this;\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2dsb2JhbC1hcGkvbWl4aW4uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2dsb2JhbC1hcGkvbWl4aW4uanM/ZDdkNSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IExpdWNlXG4gKiBARGF0ZTogMjAyMi0wNC0xMSAxODoxMTozNFxuICovXG5cbmNvbnN0IGlnbm9yZXMgPSBbXG4gICd2ZXJzaW9uJyxcbiAgJ2FjY2Vzc1Rva2VuJyxcbiAgJ2Jhc2VVcmwnLFxuICAnYXV0aG9yJyxcbiAgJ2luaXQnLFxuICAncmVhZHknLFxuICAndXNlJyxcbiAgJ21peGluJyxcbiAgJ05hbWVzcGFjZScsXG4gICdJbml0aWFsaXplZCdcbl1cblxuLyoqXG4gKiBNaXggb3RoZXIgcGx1Zy1pbiBhdHRyaWJ1dGVzIHRvIEdEXG4gKiBAcGFyYW0gR0RcbiAqIEByZXR1cm5zIHRoaXNcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGluaXRNaXhpbihHRCkge1xuICBHRC5taXhpbiA9IGZ1bmN0aW9uKG1peGluKSB7XG4gICAgZm9yIChsZXQga2V5IGluIG1peGluKSB7XG4gICAgICBpZ25vcmVzLmluZGV4T2Yoa2V5KSA8IDAgJiYgKEdEW2tleV0gPSBtaXhpbltrZXldKVxuICAgIH1cbiAgICByZXR1cm4gdGhpc1xuICB9XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBYUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/global-api/mixin.js\n");
- /***/ }),
- /***/ "./modules/global-api/use.js":
- /*!***********************************!*\
- !*** ./modules/global-api/use.js ***!
- \***********************************/
- /*! exports provided: initUse */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initUse\", function() { return initUse; });\n/**\n * @Author: Liuce\n * @Date: 2022-04-11 18:01:21\n */\n\n/**\n * Using other custom plug-ins in GD\n * @param GD\n * @returns this\n */\nfunction initUse(GD) {\n GD.use = function (plugin) {\n var installedPlugins = this._installedPlugins || (this._installedPlugins = []);\n\n if (installedPlugins.indexOf(plugin) > -1) {\n return this;\n } // additional parameters\n\n\n var args = [];\n args.unshift(this);\n\n if (typeof plugin.install === 'function') {\n plugin.install.apply(plugin, args);\n } else if (typeof plugin === 'function') {\n plugin.apply(null, args);\n }\n\n installedPlugins.push(plugin);\n return this;\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2dsb2JhbC1hcGkvdXNlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9nbG9iYWwtYXBpL3VzZS5qcz84MDliIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogTGl1Y2VcbiAqIEBEYXRlOiAyMDIyLTA0LTExIDE4OjAxOjIxXG4gKi9cblxuLyoqXG4gKiBVc2luZyBvdGhlciBjdXN0b20gcGx1Zy1pbnMgaW4gR0RcbiAqIEBwYXJhbSBHRFxuICogQHJldHVybnMgdGhpc1xuICovXG5leHBvcnQgZnVuY3Rpb24gaW5pdFVzZShHRCkge1xuICBHRC51c2UgPSBmdW5jdGlvbihwbHVnaW4pIHtcbiAgICBjb25zdCBpbnN0YWxsZWRQbHVnaW5zID1cbiAgICAgIHRoaXMuX2luc3RhbGxlZFBsdWdpbnMgfHwgKHRoaXMuX2luc3RhbGxlZFBsdWdpbnMgPSBbXSlcbiAgICBpZiAoaW5zdGFsbGVkUGx1Z2lucy5pbmRleE9mKHBsdWdpbikgPiAtMSkge1xuICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gICAgLy8gYWRkaXRpb25hbCBwYXJhbWV0ZXJzXG4gICAgY29uc3QgYXJncyA9IFtdXG4gICAgYXJncy51bnNoaWZ0KHRoaXMpXG4gICAgaWYgKHR5cGVvZiBwbHVnaW4uaW5zdGFsbCA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgcGx1Z2luLmluc3RhbGwuYXBwbHkocGx1Z2luLCBhcmdzKVxuICAgIH0gZWxzZSBpZiAodHlwZW9mIHBsdWdpbiA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgcGx1Z2luLmFwcGx5KG51bGwsIGFyZ3MpXG4gICAgfVxuICAgIGluc3RhbGxlZFBsdWdpbnMucHVzaChwbHVnaW4pXG4gICAgcmV0dXJuIHRoaXNcbiAgfVxufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/global-api/use.js\n");
- /***/ }),
- /***/ "./modules/heat/HeatLayer.js":
- /*!***********************************!*\
- !*** ./modules/heat/HeatLayer.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_layer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/layer */ \"./modules/layer/index.js\");\n/* harmony import */ var _webgl_heatmap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./webgl-heatmap */ \"./modules/heat/webgl-heatmap.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-27 00:35:35\n */\n\n\n\n\nvar WMP = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].WebMercatorProjection();\nvar DEF_OPTS = {\n radius: 30,\n height: 0,\n gradient: undefined,\n useGround: false,\n classificationType: 2\n};\n\nvar HeatLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(HeatLayer, _Layer);\n\n var _super = _createSuper(HeatLayer);\n\n function HeatLayer(id) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, HeatLayer);\n\n _this = _super.call(this, id);\n _this._options = _objectSpread(_objectSpread({}, DEF_OPTS), options);\n _this._isGround = _this._options.useGround;\n _this._canvas = document.createElement('canvas');\n\n _this._canvas.setAttribute('id', id);\n\n _this._heat = undefined;\n _this._mRect = undefined;\n _this._rect = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Rectangle();\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].PrimitiveCollection();\n _this._primitive = _this._delegate.add(_this._isGround ? new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].GroundPrimitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].GeometryInstance({\n geometry: {}\n }),\n classificationType: _this._options.classificationType\n }) : new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Primitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].GeometryInstance({\n geometry: {}\n })\n }));\n _this._scale = 1;\n _this._points = [];\n _this._positions = [];\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(HeatLayer, [{\n key: \"type\",\n get: function get() {\n return _gd_modules_layer__WEBPACK_IMPORTED_MODULE_8__[\"Layer\"].getLayerType('heat');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_addedHook\",\n value: function _addedHook() {\n this._canvas.style.cssText = \"\\n visibility:hidden;\\n width:\".concat(this._viewer.canvas.width, \"px;\\n height:\").concat(this._viewer.canvas.height, \"px;\\n \");\n\n this._viewer.gdContainer.appendChild(this._canvas);\n }\n /**\n *\n * @returns {HTMLCanvasElement|undefined}\n * @private\n */\n\n }, {\n key: \"_createGradientTexture\",\n value: function _createGradientTexture() {\n if (!this._options.gradient) {\n return undefined;\n }\n\n var canvas = document.createElement('canvas');\n canvas.width = 200;\n canvas.height = 10;\n var ctx = canvas.getContext('2d');\n var grd = ctx.createLinearGradient(0, 0, 200, 0);\n\n for (var key in this._options.gradient) {\n grd.addColorStop(+key, this._options.gradient[key]);\n }\n\n ctx.fillStyle = grd;\n ctx.fillRect(0, 0, 200, 10);\n return canvas;\n }\n /**\n *\n * @param position\n * @returns {{intensity: number, size: (*|number), x: number, y: number}}\n * @private\n */\n\n }, {\n key: \"_parsePosition\",\n value: function _parsePosition(position) {\n var point = WMP.project(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartographic.fromDegrees(position.lng, position.lat));\n return {\n x: (point.x - this._mRect.west) / this._scale,\n y: (point.y - this._mRect.south) / this._scale,\n size: this._options.radius,\n intensity: position.value || Math.random()\n };\n }\n /**\n *\n * @param positions\n * @returns {*}\n * @private\n */\n\n }, {\n key: \"_parsePositions\",\n value: function _parsePositions(positions) {\n return positions.map(this._parsePosition.bind(this));\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_setRect\",\n value: function _setRect() {\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Rectangle.fromCartographicArray(this._positions.map(function (item) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartographic.fromDegrees(item.lng, item.lat);\n }), this._rect);\n }\n /**\n *\n * @returns {{east, south, north, west}}\n * @private\n */\n\n }, {\n key: \"_getMRect\",\n value: function _getMRect() {\n var mSouthwest = WMP.project(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Rectangle.southwest(this._rect));\n var mNortheast = WMP.project(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Rectangle.northeast(this._rect));\n return {\n west: mSouthwest.x,\n south: mSouthwest.y,\n east: mNortheast.x,\n north: mNortheast.y\n };\n }\n /**\n *\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_update\",\n value: function _update() {\n if (!this._points || !this._points.length) {\n return false;\n }\n\n this._heat.adjustSize();\n\n this._heat.update();\n\n this._heat.display();\n\n if (this._primitive && this._primitive.geometryInstances) {\n this._primitive.geometryInstances.geometry = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].RectangleGeometry({\n rectangle: this._rect,\n height: this._options.height\n });\n }\n\n this._primitive.appearance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].MaterialAppearance({\n material: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Material({\n fabric: {\n type: 'Heat-Image',\n uniforms: {\n image: this._canvas\n },\n source: \"\\n uniform sampler2D image;\\n czm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n vec4 colorImage = texture2D(image,st);\\n if(colorImage.rgb == vec3(1.0) || colorImage.rgb == vec3(0.0)){\\n discard;\\n }\\n material.diffuse = colorImage.rgb;\\n material.alpha = colorImage.a;\\n return material;\\n }\\n \"\n },\n translucent: function translucent(material) {\n return true;\n }\n }),\n flat: true\n });\n }\n /**\n *\n * @param positions\n */\n\n }, {\n key: \"setPositions\",\n value: function setPositions(positions) {\n this._positions = positions;\n\n this._setRect();\n\n var mRect = this._getMRect();\n\n if (!this._mRect || !mRect.west === this._mRect.west || !mRect.south === this._mRect.south || !mRect.east === this._mRect.east || !mRect.north === this._mRect.north) {\n this._mRect = mRect;\n this._heat = Object(_webgl_heatmap__WEBPACK_IMPORTED_MODULE_9__[\"createWebGLHeatmap\"])({\n canvas: this._canvas,\n gradientTexture: this._createGradientTexture()\n });\n this._scale = Math.min(Math.abs(this._mRect.west - this._mRect.east) / this._canvas.width, Math.abs(this._mRect.north - this._mRect.south) / this._canvas.height);\n }\n\n this._points = this._parsePositions(this._positions);\n\n if (this._heat) {\n this._heat.blur();\n\n this._heat.addPoints(this._points);\n\n this._update();\n }\n\n return this;\n }\n /**\n *\n * @param position\n */\n\n }, {\n key: \"addPosition\",\n value: function addPosition(position) {\n this._positions.push(position);\n\n this._setRect();\n\n var mRect = this._getMRect();\n\n if (!this._mRect || !mRect.west === this._mRect.west || !mRect.south === this._mRect.south || !mRect.east === this._mRect.east || !mRect.north === this._mRect.north) {\n this._mRect = mRect;\n this._heat = Object(_webgl_heatmap__WEBPACK_IMPORTED_MODULE_9__[\"createWebGLHeatmap\"])({\n canvas: this._canvas,\n gradientTexture: this._createGradientTexture()\n });\n this._scale = Math.min(Math.abs(this._mRect.west - this._mRect.east) / this._canvas.width, Math.abs(this._mRect.north - this._mRect.south) / this._canvas.height);\n\n this._heat.addPoints(this._points);\n }\n\n var point = this._parsePosition(position);\n\n this._points.push(point);\n\n if (this._heat) {\n this._heat.addPoint(point.x, point.y, point.size, point.intensity);\n\n this._update();\n }\n\n return this;\n }\n }]);\n\n return HeatLayer;\n}(_gd_modules_layer__WEBPACK_IMPORTED_MODULE_8__[\"Layer\"]);\n\n_gd_modules_layer__WEBPACK_IMPORTED_MODULE_8__[\"Layer\"].registerType('heat');\n/* harmony default export */ __webpack_exports__[\"default\"] = (HeatLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2hlYXQvSGVhdExheWVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9oZWF0L0hlYXRMYXllci5qcz9lOTA2Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAyLTI3IDAwOjM1OjM1XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IHsgTGF5ZXIgfSBmcm9tICdAZ2QtbW9kdWxlcy9sYXllcidcbm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0E7QUFGQTtBQUlBO0FBQ0E7QUFHQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7Ozs7QUF2UEE7QUFDQTtBQXlQQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/heat/HeatLayer.js\n");
- /***/ }),
- /***/ "./modules/heat/webgl-heatmap.js":
- /*!***************************************!*\
- !*** ./modules/heat/webgl-heatmap.js ***!
- \***************************************/
- /*! exports provided: createWebGLHeatmap */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createWebGLHeatmap\", function() { return createWebGLHeatmap; });\n/**\n * @Author: Caven\n * @Date: 2021-05-01 17:38:47\n */\nvar __indexOf = [].indexOf || function (item) {\n for (var i = 0, l = this.length; i < l; i++) {\n if (i in this && this[i] === item) return i;\n }\n\n return -1;\n};\n\nvar vertexShaderBlit = 'attribute vec4 position;\\nvarying vec2 texcoord;\\nvoid main(){\\n texcoord = position.xy*0.5+0.5;\\n gl_Position = position;\\n}';\nvar fragmentShaderBlit = '#ifdef GL_FRAGMENT_PRECISION_HIGH\\n precision highp int;\\n precision highp float;\\n#else\\n precision mediump int;\\n precision mediump float;\\n#endif\\nuniform sampler2D source;\\nvarying vec2 texcoord;';\n\nvar nukeVendorPrefix = function nukeVendorPrefix() {\n var getExtension, getSupportedExtensions, vendorRe, vendors;\n\n if (window.WebGLRenderingContext != null) {\n vendors = ['WEBKIT', 'MOZ', 'MS', 'O'];\n vendorRe = /^WEBKIT_(.*)|MOZ_(.*)|MS_(.*)|O_(.*)/;\n getExtension = WebGLRenderingContext.prototype.getExtension;\n\n WebGLRenderingContext.prototype.getExtension = function (name) {\n var extobj, match, vendor, _i, _len;\n\n match = name.match(vendorRe);\n\n if (match !== null) {\n name = match[1];\n }\n\n extobj = getExtension.call(this, name);\n\n if (extobj === null) {\n for (_i = 0, _len = vendors.length; _i < _len; _i++) {\n vendor = vendors[_i];\n extobj = getExtension.call(this, vendor + '_' + name);\n\n if (extobj !== null) {\n return extobj;\n }\n }\n\n return null;\n } else {\n return extobj;\n }\n };\n\n getSupportedExtensions = WebGLRenderingContext.prototype.getSupportedExtensions;\n return WebGLRenderingContext.prototype.getSupportedExtensions = function () {\n var extension, match, result, supported, _i, _len;\n\n supported = getSupportedExtensions.call(this);\n result = [];\n\n for (_i = 0, _len = supported.length; _i < _len; _i++) {\n extension = supported[_i];\n match = extension.match(vendorRe);\n\n if (match !== null) {\n extension = match[1];\n }\n\n if (__indexOf.call(result, extension) < 0) {\n result.push(extension);\n }\n }\n\n return result;\n };\n }\n};\n\nvar textureFloatShims = function textureFloatShims() {\n var checkColorBuffer, checkFloatLinear, checkSupport, checkTexture, createSourceCanvas, getExtension, getSupportedExtensions, name, shimExtensions, shimLookup, unshimExtensions, unshimLookup, _i, _len;\n\n createSourceCanvas = function createSourceCanvas() {\n var canvas, ctx, imageData;\n canvas = document.createElement('canvas');\n canvas.width = 2;\n canvas.height = 2;\n ctx = canvas.getContext('2d');\n imageData = ctx.getImageData(0, 0, 2, 2);\n imageData.data.set(new Uint8ClampedArray([0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255]));\n ctx.putImageData(imageData, 0, 0);\n return canvas;\n };\n\n createSourceCanvas();\n\n checkFloatLinear = function checkFloatLinear(gl, sourceType) {\n var buffer, cleanup, fragmentShader, framebuffer, positionLoc, program, readBuffer, result, source, sourceCanvas, sourceLoc, target, vertexShader, vertices;\n program = gl.createProgram();\n vertexShader = gl.createShader(gl.VERTEX_SHADER);\n gl.attachShader(program, vertexShader);\n gl.shaderSource(vertexShader, 'attribute vec2 position;\\nvoid main(){\\n gl_Position = vec4(position, 0.0, 1.0);\\n}');\n gl.compileShader(vertexShader);\n\n if (!gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS)) {\n throw gl.getShaderInfoLog(vertexShader);\n }\n\n fragmentShader = gl.createShader(gl.FRAGMENT_SHADER);\n gl.attachShader(program, fragmentShader);\n gl.shaderSource(fragmentShader, 'uniform sampler2D source;\\nvoid main(){\\n gl_FragColor = texture2D(source, vec2(1.0, 1.0));\\n}');\n gl.compileShader(fragmentShader);\n\n if (!gl.getShaderParameter(fragmentShader, gl.COMPILE_STATUS)) {\n throw gl.getShaderInfoLog(fragmentShader);\n }\n\n gl.linkProgram(program);\n\n if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {\n throw gl.getProgramInfoLog(program);\n }\n\n gl.useProgram(program);\n\n cleanup = function cleanup() {\n gl.deleteShader(fragmentShader);\n gl.deleteShader(vertexShader);\n gl.deleteProgram(program);\n gl.deleteBuffer(buffer);\n gl.deleteTexture(source);\n gl.deleteTexture(target);\n gl.deleteFramebuffer(framebuffer);\n gl.bindBuffer(gl.ARRAY_BUFFER, null);\n gl.useProgram(null);\n gl.bindTexture(gl.TEXTURE_2D, null);\n return gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n };\n\n target = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, target);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 2, 2, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n framebuffer = gl.createFramebuffer();\n gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer);\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target, 0);\n sourceCanvas = createSourceCanvas();\n source = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, source);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, sourceType, sourceCanvas);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n vertices = new Float32Array([1, 1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1]);\n buffer = gl.createBuffer();\n gl.bindBuffer(gl.ARRAY_BUFFER, buffer);\n gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW);\n positionLoc = gl.getAttribLocation(program, 'position');\n sourceLoc = gl.getUniformLocation(program, 'source');\n gl.enableVertexAttribArray(positionLoc);\n gl.vertexAttribPointer(positionLoc, 2, gl.FLOAT, false, 0, 0);\n gl.uniform1i(sourceLoc, 0);\n gl.drawArrays(gl.TRIANGLES, 0, 6);\n readBuffer = new Uint8Array(4 * 4);\n gl.readPixels(0, 0, 2, 2, gl.RGBA, gl.UNSIGNED_BYTE, readBuffer);\n result = Math.abs(readBuffer[0] - 127) < 10;\n cleanup();\n return result;\n };\n\n checkTexture = function checkTexture(gl, targetType) {\n var target;\n target = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, target);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 2, 2, 0, gl.RGBA, targetType, null);\n\n if (gl.getError() === 0) {\n gl.deleteTexture(target);\n return true;\n } else {\n gl.deleteTexture(target);\n return false;\n }\n };\n\n checkColorBuffer = function checkColorBuffer(gl, targetType) {\n var check, framebuffer, target;\n target = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, target);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 2, 2, 0, gl.RGBA, targetType, null);\n framebuffer = gl.createFramebuffer();\n gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer);\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target, 0);\n check = gl.checkFramebufferStatus(gl.FRAMEBUFFER);\n gl.deleteTexture(target);\n gl.deleteFramebuffer(framebuffer);\n gl.bindTexture(gl.TEXTURE_2D, null);\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n\n if (check === gl.FRAMEBUFFER_COMPLETE) {\n return true;\n } else {\n return false;\n }\n };\n\n shimExtensions = [];\n shimLookup = {};\n unshimExtensions = [];\n\n checkSupport = function checkSupport() {\n var canvas, extobj, gl, halfFloatExt, halfFloatTexturing, singleFloatExt, singleFloatTexturing;\n canvas = document.createElement('canvas');\n gl = null;\n\n try {\n gl = canvas.getContext('experimental-webgl');\n\n if (gl === null) {\n gl = canvas.getContext('webgl');\n } // eslint-disable-next-line no-empty\n\n } catch (_error) {}\n\n if (gl != null) {\n singleFloatExt = gl.getExtension('OES_texture_float');\n\n if (singleFloatExt === null) {\n if (checkTexture(gl, gl.FLOAT)) {\n singleFloatTexturing = true;\n shimExtensions.push('OES_texture_float');\n shimLookup.OES_texture_float = {\n shim: true\n };\n } else {\n singleFloatTexturing = false;\n unshimExtensions.push('OES_texture_float');\n }\n } else {\n if (checkTexture(gl, gl.FLOAT)) {\n singleFloatTexturing = true;\n shimExtensions.push('OES_texture_float');\n } else {\n singleFloatTexturing = false;\n unshimExtensions.push('OES_texture_float');\n }\n }\n\n if (singleFloatTexturing) {\n extobj = gl.getExtension('WEBGL_color_buffer_float');\n\n if (extobj === null) {\n if (checkColorBuffer(gl, gl.FLOAT)) {\n shimExtensions.push('WEBGL_color_buffer_float');\n shimLookup.WEBGL_color_buffer_float = {\n shim: true,\n RGBA32F_EXT: 0x8814,\n RGB32F_EXT: 0x8815,\n FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211,\n UNSIGNED_NORMALIZED_EXT: 0x8c17\n };\n } else {\n unshimExtensions.push('WEBGL_color_buffer_float');\n }\n } else {\n if (checkColorBuffer(gl, gl.FLOAT)) {\n shimExtensions.push('WEBGL_color_buffer_float');\n } else {\n unshimExtensions.push('WEBGL_color_buffer_float');\n }\n }\n\n extobj = gl.getExtension('OES_texture_float_linear');\n\n if (extobj === null) {\n if (checkFloatLinear(gl, gl.FLOAT)) {\n shimExtensions.push('OES_texture_float_linear');\n shimLookup.OES_texture_float_linear = {\n shim: true\n };\n } else {\n unshimExtensions.push('OES_texture_float_linear');\n }\n } else {\n if (checkFloatLinear(gl, gl.FLOAT)) {\n shimExtensions.push('OES_texture_float_linear');\n } else {\n unshimExtensions.push('OES_texture_float_linear');\n }\n }\n }\n\n halfFloatExt = gl.getExtension('OES_texture_half_float');\n\n if (halfFloatExt === null) {\n if (checkTexture(gl, 0x8d61)) {\n halfFloatTexturing = true;\n shimExtensions.push('OES_texture_half_float');\n halfFloatExt = shimLookup.OES_texture_half_float = {\n HALF_FLOAT_OES: 0x8d61,\n shim: true\n };\n } else {\n halfFloatTexturing = false;\n unshimExtensions.push('OES_texture_half_float');\n }\n } else {\n if (checkTexture(gl, halfFloatExt.HALF_FLOAT_OES)) {\n halfFloatTexturing = true;\n shimExtensions.push('OES_texture_half_float');\n } else {\n halfFloatTexturing = false;\n unshimExtensions.push('OES_texture_half_float');\n }\n }\n\n if (halfFloatTexturing) {\n extobj = gl.getExtension('EXT_color_buffer_half_float');\n\n if (extobj === null) {\n if (checkColorBuffer(gl, halfFloatExt.HALF_FLOAT_OES)) {\n shimExtensions.push('EXT_color_buffer_half_float');\n shimLookup.EXT_color_buffer_half_float = {\n shim: true,\n RGBA16F_EXT: 0x881a,\n RGB16F_EXT: 0x881b,\n FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211,\n UNSIGNED_NORMALIZED_EXT: 0x8c17\n };\n } else {\n unshimExtensions.push('EXT_color_buffer_half_float');\n }\n } else {\n if (checkColorBuffer(gl, halfFloatExt.HALF_FLOAT_OES)) {\n shimExtensions.push('EXT_color_buffer_half_float');\n } else {\n unshimExtensions.push('EXT_color_buffer_half_float');\n }\n }\n\n extobj = gl.getExtension('OES_texture_half_float_linear');\n\n if (extobj === null) {\n if (checkFloatLinear(gl, halfFloatExt.HALF_FLOAT_OES)) {\n shimExtensions.push('OES_texture_half_float_linear');\n return shimLookup.OES_texture_half_float_linear = {\n shim: true\n };\n } else {\n return unshimExtensions.push('OES_texture_half_float_linear');\n }\n } else {\n if (checkFloatLinear(gl, halfFloatExt.HALF_FLOAT_OES)) {\n return shimExtensions.push('OES_texture_half_float_linear');\n } else {\n return unshimExtensions.push('OES_texture_half_float_linear');\n }\n }\n }\n }\n };\n\n if (window.WebGLRenderingContext != null) {\n checkSupport();\n unshimLookup = {};\n\n for (_i = 0, _len = unshimExtensions.length; _i < _len; _i++) {\n name = unshimExtensions[_i];\n unshimLookup[name] = true;\n }\n\n getExtension = WebGLRenderingContext.prototype.getExtension;\n\n WebGLRenderingContext.prototype.getExtension = function (name) {\n var extobj;\n extobj = shimLookup[name];\n\n if (extobj === void 0) {\n if (unshimLookup[name]) {\n return null;\n } else {\n return getExtension.call(this, name);\n }\n } else {\n return extobj;\n }\n };\n\n getSupportedExtensions = WebGLRenderingContext.prototype.getSupportedExtensions;\n\n WebGLRenderingContext.prototype.getSupportedExtensions = function () {\n var extension, result, supported, _j, _k, _len1, _len2;\n\n supported = getSupportedExtensions.call(this);\n result = [];\n\n for (_j = 0, _len1 = supported.length; _j < _len1; _j++) {\n extension = supported[_j];\n\n if (unshimLookup[extension] === void 0) {\n result.push(extension);\n }\n }\n\n for (_k = 0, _len2 = shimExtensions.length; _k < _len2; _k++) {\n extension = shimExtensions[_k];\n\n if (__indexOf.call(result, extension) < 0) {\n result.push(extension);\n }\n }\n\n return result;\n };\n\n return WebGLRenderingContext.prototype.getFloatExtension = function (spec) {\n var candidate, candidates, half, halfFramebuffer, halfLinear, halfTexture, i, importance, preference, result, single, singleFramebuffer, singleLinear, singleTexture, use, _j, _k, _l, _len1, _len2, _len3, _len4, _m, _ref, _ref1, _ref2;\n\n if (spec.prefer == null) {\n spec.prefer = ['half'];\n }\n\n if (spec.require == null) {\n spec.require = [];\n }\n\n if (spec.throws == null) {\n spec.throws = true;\n }\n\n singleTexture = this.getExtension('OES_texture_float');\n halfTexture = this.getExtension('OES_texture_half_float');\n singleFramebuffer = this.getExtension('WEBGL_color_buffer_float');\n halfFramebuffer = this.getExtension('EXT_color_buffer_half_float');\n singleLinear = this.getExtension('OES_texture_float_linear');\n halfLinear = this.getExtension('OES_texture_half_float_linear');\n single = {\n texture: singleTexture !== null,\n filterable: singleLinear !== null,\n renderable: singleFramebuffer !== null,\n score: 0,\n precision: 'single',\n half: false,\n single: true,\n type: this.FLOAT\n };\n half = {\n texture: halfTexture !== null,\n filterable: halfLinear !== null,\n renderable: halfFramebuffer !== null,\n score: 0,\n precision: 'half',\n half: true,\n single: false,\n type: (_ref = halfTexture != null ? halfTexture.HALF_FLOAT_OES : void 0) != null ? _ref : null\n };\n candidates = [];\n\n if (single.texture) {\n candidates.push(single);\n }\n\n if (half.texture) {\n candidates.push(half);\n }\n\n result = [];\n\n for (_j = 0, _len1 = candidates.length; _j < _len1; _j++) {\n candidate = candidates[_j];\n use = true;\n _ref1 = spec.require;\n\n for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) {\n name = _ref1[_k];\n\n if (candidate[name] === false) {\n use = false;\n }\n }\n\n if (use) {\n result.push(candidate);\n }\n }\n\n for (_l = 0, _len3 = result.length; _l < _len3; _l++) {\n candidate = result[_l];\n _ref2 = spec.prefer;\n\n for (i = _m = 0, _len4 = _ref2.length; _m < _len4; i = ++_m) {\n preference = _ref2[i];\n importance = Math.pow(2, spec.prefer.length - i - 1);\n\n if (candidate[preference]) {\n candidate.score += importance;\n }\n }\n }\n\n result.sort(function (a, b) {\n if (a.score === b.score) {\n return 0;\n } else if (a.score < b.score) {\n return 1;\n } else if (a.score > b.score) {\n return -1;\n }\n });\n\n if (result.length === 0) {\n if (spec.throws) {\n throw 'No floating point texture support that is ' + spec.require.join(', ');\n } else {\n return null;\n }\n } else {\n result = result[0];\n return {\n filterable: result.filterable,\n renderable: result.renderable,\n type: result.type,\n precision: result.precision\n };\n }\n };\n }\n};\n\nnukeVendorPrefix();\ntextureFloatShims();\n\nvar Shader = function () {\n function Shader(gl, _arg) {\n var fragment, vertex;\n this.gl = gl;\n vertex = _arg.vertex;\n fragment = _arg.fragment;\n this.program = this.gl.createProgram();\n this.vs = this.gl.createShader(this.gl.VERTEX_SHADER);\n this.fs = this.gl.createShader(this.gl.FRAGMENT_SHADER);\n this.gl.attachShader(this.program, this.vs);\n this.gl.attachShader(this.program, this.fs);\n this.compileShader(this.vs, vertex);\n this.compileShader(this.fs, fragment);\n this.link();\n this.value_cache = {};\n this.uniform_cache = {};\n this.attribCache = {};\n }\n\n Shader.prototype.attribLocation = function (name) {\n var location = this.attribCache[name];\n\n if (location === void 0) {\n location = this.attribCache[name] = this.gl.getAttribLocation(this.program, name);\n }\n\n return location;\n };\n\n Shader.prototype.compileShader = function (shader, source) {\n this.gl.shaderSource(shader, source);\n this.gl.compileShader(shader);\n\n if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) {\n throw 'Shader Compile Error: ' + this.gl.getShaderInfoLog(shader);\n }\n };\n\n Shader.prototype.link = function () {\n this.gl.linkProgram(this.program);\n\n if (!this.gl.getProgramParameter(this.program, this.gl.LINK_STATUS)) {\n throw 'Shader Link Error: ' + this.gl.getProgramInfoLog(this.program);\n }\n };\n\n Shader.prototype.use = function () {\n this.gl.useProgram(this.program);\n return this;\n };\n\n Shader.prototype.uniformLoc = function (name) {\n var location = this.uniform_cache[name];\n\n if (location === void 0) {\n location = this.uniform_cache[name] = this.gl.getUniformLocation(this.program, name);\n }\n\n return location;\n };\n\n Shader.prototype.int = function (name, value) {\n var cached, loc;\n cached = this.value_cache[name];\n\n if (cached !== value) {\n this.value_cache[name] = value;\n loc = this.uniformLoc(name);\n\n if (loc) {\n this.gl.uniform1i(loc, value);\n }\n }\n\n return this;\n };\n\n Shader.prototype.vec2 = function (name, a, b) {\n var loc;\n loc = this.uniformLoc(name);\n\n if (loc) {\n this.gl.uniform2f(loc, a, b);\n }\n\n return this;\n };\n\n Shader.prototype.float = function (name, value) {\n var cached, loc;\n cached = this.value_cache[name];\n\n if (cached !== value) {\n this.value_cache[name] = value;\n loc = this.uniformLoc(name);\n\n if (loc) {\n this.gl.uniform1f(loc, value);\n }\n }\n\n return this;\n };\n\n return Shader;\n}();\n\nvar Framebuffer = function () {\n function Framebuffer(gl) {\n this.gl = gl;\n this.buffer = this.gl.createFramebuffer();\n }\n\n Framebuffer.prototype.destroy = function () {\n return this.gl.deleteFRamebuffer(this.buffer);\n };\n\n Framebuffer.prototype.bind = function () {\n this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, this.buffer);\n return this;\n };\n\n Framebuffer.prototype.unbind = function () {\n this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, null);\n return this;\n };\n\n Framebuffer.prototype.check = function () {\n var result;\n result = this.gl.checkFramebufferStatus(this.gl.FRAMEBUFFER);\n\n switch (result) {\n case this.gl.FRAMEBUFFER_UNSUPPORTED:\n throw 'Framebuffer is unsupported'; // eslint-disable-next-line no-unreachable\n\n break;\n\n case this.gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:\n throw 'Framebuffer incomplete attachment'; // eslint-disable-next-line no-unreachable\n\n break;\n\n case this.gl.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:\n throw 'Framebuffer incomplete dimensions'; // eslint-disable-next-line no-unreachable\n\n break;\n\n case this.gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:\n throw 'Framebuffer incomplete missing attachment';\n }\n\n return this;\n };\n\n Framebuffer.prototype.color = function (texture) {\n this.gl.framebufferTexture2D(this.gl.FRAMEBUFFER, this.gl.COLOR_ATTACHMENT0, texture.target, texture.handle, 0);\n this.check();\n return this;\n };\n\n Framebuffer.prototype.depth = function (buffer) {\n this.gl.framebufferRenderbuffer(this.gl.FRAMEBUFFER, this.gl.DEPTH_ATTACHMENT, this.gl.RENDERBUFFER, buffer.id);\n this.check();\n return this;\n };\n\n Framebuffer.prototype.destroy = function () {\n return this.gl.deleteFramebuffer(this.buffer);\n };\n\n return Framebuffer;\n}();\n\nvar Texture = function () {\n function Texture(gl, params) {\n var _ref, _ref1;\n\n this.gl = gl;\n\n if (params == null) {\n params = {};\n }\n\n this.channels = this.gl[((_ref = params.channels) != null ? _ref : 'rgba').toUpperCase()];\n\n if (typeof params.type === 'number') {\n this.type = params.type;\n } else {\n this.type = this.gl[((_ref1 = params.type) != null ? _ref1 : 'unsigned_byte').toUpperCase()];\n }\n\n switch (this.channels) {\n case this.gl.RGBA:\n this.chancount = 4;\n break;\n\n case this.gl.RGB:\n this.chancount = 3;\n break;\n\n case this.gl.LUMINANCE_ALPHA:\n this.chancount = 2;\n break;\n\n default:\n this.chancount = 1;\n }\n\n this.target = this.gl.TEXTURE_2D;\n this.handle = this.gl.createTexture();\n }\n\n Texture.prototype.destroy = function () {\n return this.gl.deleteTexture(this.handle);\n };\n\n Texture.prototype.bind = function (unit) {\n if (unit == null) {\n unit = 0;\n }\n\n if (unit > 15) {\n throw 'Texture unit too large: ' + unit;\n }\n\n this.gl.activeTexture(this.gl.TEXTURE0 + unit);\n this.gl.bindTexture(this.target, this.handle);\n return this;\n };\n\n Texture.prototype.setSize = function (width, height) {\n this.width = width;\n this.height = height;\n this.gl.texImage2D(this.target, 0, this.channels, this.width, this.height, 0, this.channels, this.type, null);\n return this;\n };\n\n Texture.prototype.upload = function (data) {\n this.width = data.width;\n this.height = data.height;\n this.gl.texImage2D(this.target, 0, this.channels, this.channels, this.type, data);\n return this;\n };\n\n Texture.prototype.linear = function () {\n this.gl.texParameteri(this.target, this.gl.TEXTURE_MAG_FILTER, this.gl.LINEAR);\n this.gl.texParameteri(this.target, this.gl.TEXTURE_MIN_FILTER, this.gl.LINEAR);\n return this;\n };\n\n Texture.prototype.nearest = function () {\n this.gl.texParameteri(this.target, this.gl.TEXTURE_MAG_FILTER, this.gl.NEAREST);\n this.gl.texParameteri(this.target, this.gl.TEXTURE_MIN_FILTER, this.gl.NEAREST);\n return this;\n };\n\n Texture.prototype.clampToEdge = function () {\n this.gl.texParameteri(this.target, this.gl.TEXTURE_WRAP_S, this.gl.CLAMP_TO_EDGE);\n this.gl.texParameteri(this.target, this.gl.TEXTURE_WRAP_T, this.gl.CLAMP_TO_EDGE);\n return this;\n };\n\n Texture.prototype.repeat = function () {\n this.gl.texParameteri(this.target, this.gl.TEXTURE_WRAP_S, this.gl.REPEAT);\n this.gl.texParameteri(this.target, this.gl.TEXTURE_WRAP_T, this.gl.REPEAT);\n return this;\n };\n\n return Texture;\n}();\n\nvar Node = function () {\n function Node(gl, width, height) {\n var floatExt;\n this.gl = gl;\n this.width = width;\n this.height = height;\n floatExt = this.gl.getFloatExtension({\n require: ['renderable']\n });\n this.texture = new Texture(this.gl, {\n type: floatExt.type\n }).bind(0).setSize(this.width, this.height).nearest().clampToEdge();\n this.fbo = new Framebuffer(this.gl).bind().color(this.texture).unbind();\n }\n\n Node.prototype.use = function () {\n return this.fbo.bind();\n };\n\n Node.prototype.bind = function (unit) {\n return this.texture.bind(unit);\n };\n\n Node.prototype.end = function () {\n return this.fbo.unbind();\n };\n\n Node.prototype.resize = function (width, height) {\n this.width = width;\n this.height = height;\n return this.texture.bind(0).setSize(this.width, this.height);\n };\n\n return Node;\n}();\n\nvar Heights = function () {\n function Heights(heatmap, gl, width, height) {\n var i, _i, _ref;\n\n this.heatmap = heatmap;\n this.gl = gl;\n this.width = width;\n this.height = height;\n this.shader = new Shader(this.gl, {\n vertex: 'attribute vec4 position, intensity;\\nvarying vec2 off, dim;\\nvarying float vIntensity;\\nuniform vec2 viewport;\\n\\nvoid main(){\\n dim = abs(position.zw);\\n off = position.zw;\\n vec2 pos = position.xy + position.zw;\\n vIntensity = intensity.x;\\n gl_Position = vec4((pos/viewport)*2.0-1.0, 0.0, 1.0);\\n}',\n fragment: '#ifdef GL_FRAGMENT_PRECISION_HIGH\\n precision highp int;\\n precision highp float;\\n#else\\n precision mediump int;\\n precision mediump float;\\n#endif\\nvarying vec2 off, dim;\\nvarying float vIntensity;\\nvoid main(){\\n float falloff = (1.0 - smoothstep(0.0, 1.0, length(off/dim)));\\n float intensity = falloff*vIntensity;\\n gl_FragColor = vec4(intensity);\\n}'\n });\n this.clampShader = new Shader(this.gl, {\n vertex: vertexShaderBlit,\n fragment: fragmentShaderBlit + 'uniform float low, high;\\nvoid main(){\\n gl_FragColor = vec4(clamp(texture2D(source, texcoord).rgb, low, high), 1.0);\\n}'\n });\n this.multiplyShader = new Shader(this.gl, {\n vertex: vertexShaderBlit,\n fragment: fragmentShaderBlit + 'uniform float value;\\nvoid main(){\\n gl_FragColor = vec4(texture2D(source, texcoord).rgb*value, 1.0);\\n}'\n });\n this.blurShader = new Shader(this.gl, {\n vertex: vertexShaderBlit,\n fragment: fragmentShaderBlit + 'uniform vec2 viewport;\\nvoid main(){\\n vec4 result = vec4(0.0);\\n for(int x=-1; x<=1; x++){\\n for(int y=-1; y<=1; y++){\\n vec2 off = vec2(x,y)/viewport;\\n //float factor = 1.0 - smoothstep(0.0, 1.5, length(off));\\n float factor = 1.0;\\n result += vec4(texture2D(source, texcoord+off).rgb*factor, factor);\\n }\\n }\\n gl_FragColor = vec4(result.rgb/result.w, 1.0);\\n}'\n });\n this.nodeBack = new Node(this.gl, this.width, this.height);\n this.nodeFront = new Node(this.gl, this.width, this.height);\n this.vertexBuffer = this.gl.createBuffer();\n this.vertexSize = 8;\n this.maxPointCount = 1024 * 10;\n this.vertexBufferData = new Float32Array(this.maxPointCount * this.vertexSize * 6);\n this.vertexBufferViews = [];\n\n for (i = _i = 0, _ref = this.maxPointCount; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {\n this.vertexBufferViews.push(new Float32Array(this.vertexBufferData.buffer, 0, i * this.vertexSize * 6));\n }\n\n this.bufferIndex = 0;\n this.pointCount = 0;\n }\n\n Heights.prototype.resize = function (width, height) {\n this.width = width;\n this.height = height;\n this.nodeBack.resize(this.width, this.height);\n return this.nodeFront.resize(this.width, this.height);\n };\n\n Heights.prototype.update = function () {\n var intensityLoc, positionLoc;\n\n if (this.pointCount > 0) {\n this.gl.enable(this.gl.BLEND);\n this.nodeFront.use();\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.vertexBuffer);\n this.gl.bufferData(this.gl.ARRAY_BUFFER, this.vertexBufferViews[this.pointCount], this.gl.STREAM_DRAW);\n positionLoc = this.shader.attribLocation('position');\n intensityLoc = this.shader.attribLocation('intensity');\n this.gl.enableVertexAttribArray(1);\n this.gl.vertexAttribPointer(positionLoc, 4, this.gl.FLOAT, false, 8 * 4, 0);\n this.gl.vertexAttribPointer(intensityLoc, 4, this.gl.FLOAT, false, 8 * 4, 4 * 4);\n this.shader.use().vec2('viewport', this.width, this.height);\n this.gl.drawArrays(this.gl.TRIANGLES, 0, this.pointCount * 6);\n this.gl.disableVertexAttribArray(1);\n this.pointCount = 0;\n this.bufferIndex = 0;\n this.nodeFront.end();\n return this.gl.disable(this.gl.BLEND);\n }\n };\n\n Heights.prototype.clear = function () {\n this.nodeFront.use();\n this.gl.clearColor(0, 0, 0, 1);\n this.gl.clear(this.gl.COLOR_BUFFER_BIT);\n return this.nodeFront.end();\n };\n\n Heights.prototype.clamp = function (min, max) {\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.heatmap.quad);\n this.gl.vertexAttribPointer(0, 4, this.gl.FLOAT, false, 0, 0);\n this.nodeFront.bind(0);\n this.nodeBack.use();\n this.clampShader.use().int('source', 0).float('low', min).float('high', max);\n this.gl.drawArrays(this.gl.TRIANGLES, 0, 6);\n this.nodeBack.end();\n return this.swap();\n };\n\n Heights.prototype.multiply = function (value) {\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.heatmap.quad);\n this.gl.vertexAttribPointer(0, 4, this.gl.FLOAT, false, 0, 0);\n this.nodeFront.bind(0);\n this.nodeBack.use();\n this.multiplyShader.use().int('source', 0).float('value', value);\n this.gl.drawArrays(this.gl.TRIANGLES, 0, 6);\n this.nodeBack.end();\n return this.swap();\n };\n\n Heights.prototype.blur = function () {\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.heatmap.quad);\n this.gl.vertexAttribPointer(0, 4, this.gl.FLOAT, false, 0, 0);\n this.nodeFront.bind(0);\n this.nodeBack.use();\n this.blurShader.use().int('source', 0).vec2('viewport', this.width, this.height);\n this.gl.drawArrays(this.gl.TRIANGLES, 0, 6);\n this.nodeBack.end();\n return this.swap();\n };\n\n Heights.prototype.swap = function () {\n var tmp = this.nodeFront;\n this.nodeFront = this.nodeBack;\n return this.nodeBack = tmp;\n };\n\n Heights.prototype.addVertex = function (x, y, xs, ys, intensity) {\n this.vertexBufferData[this.bufferIndex++] = x;\n this.vertexBufferData[this.bufferIndex++] = y;\n this.vertexBufferData[this.bufferIndex++] = xs;\n this.vertexBufferData[this.bufferIndex++] = ys;\n this.vertexBufferData[this.bufferIndex++] = intensity;\n this.vertexBufferData[this.bufferIndex++] = intensity;\n this.vertexBufferData[this.bufferIndex++] = intensity;\n return this.vertexBufferData[this.bufferIndex++] = intensity;\n };\n\n Heights.prototype.addPoint = function (x, y, size, intensity) {\n var s;\n\n if (size == null) {\n size = 50;\n }\n\n if (intensity == null) {\n intensity = 0.2;\n }\n\n if (this.pointCount >= this.maxPointCount - 1) {\n this.update();\n }\n\n y = this.height - y;\n s = size / 2;\n this.addVertex(x, y, -s, -s, intensity);\n this.addVertex(x, y, +s, -s, intensity);\n this.addVertex(x, y, -s, +s, intensity);\n this.addVertex(x, y, -s, +s, intensity);\n this.addVertex(x, y, +s, -s, intensity);\n this.addVertex(x, y, +s, +s, intensity);\n return this.pointCount += 1;\n };\n\n return Heights;\n}();\n\nvar WebGLHeatmap = function () {\n function WebGLHeatmap(_arg) {\n var alphaEnd, alphaRange, alphaStart, error, getColorFun, gradientTexture, image, intensityToAlpha, output, quad, textureGradient, _ref, _ref1;\n\n _ref = _arg != null ? _arg : {}, this.canvas = _ref.canvas, this.width = _ref.width, this.height = _ref.height, intensityToAlpha = _ref.intensityToAlpha, gradientTexture = _ref.gradientTexture, alphaRange = _ref.alphaRange;\n\n if (!this.canvas) {\n this.canvas = document.createElement('canvas');\n }\n\n try {\n this.gl = this.canvas.getContext('experimental-webgl', {\n depth: false,\n antialias: false\n });\n\n if (this.gl === null) {\n this.gl = this.canvas.getContext('webgl', {\n depth: false,\n antialias: false\n });\n\n if (this.gl === null) {\n throw 'WebGL not supported';\n }\n }\n } catch (_error) {\n error = _error;\n throw 'WebGL not supported';\n }\n\n if (window.WebGLDebugUtils != null) {\n // eslint-disable-next-line no-undef\n this.gl = WebGLDebugUtils.makeDebugContext(this.gl, function (err, funcName, args) {\n // eslint-disable-next-line no-undef\n throw WebGLDebugUtils.glEnumToString(err) + ' was caused by call to: ' + funcName;\n });\n }\n\n this.gl.enableVertexAttribArray(0);\n this.gl.blendFunc(this.gl.ONE, this.gl.ONE);\n\n if (gradientTexture) {\n textureGradient = this.gradientTexture = new Texture(this.gl, {\n channels: 'rgba'\n }).bind(0).setSize(2, 2).nearest().clampToEdge();\n\n if (typeof gradientTexture === 'string') {\n image = new Image();\n\n image.onload = function () {\n return textureGradient.bind().upload(image);\n };\n\n image.src = gradientTexture;\n } else {\n if (gradientTexture.width > 0 && gradientTexture.height > 0) {\n textureGradient.upload(gradientTexture);\n } else {\n gradientTexture.onload = function () {\n return textureGradient.upload(gradientTexture);\n };\n }\n }\n\n getColorFun = 'uniform sampler2D gradientTexture;\\nvec3 getColor(float intensity){\\n return texture2D(gradientTexture, vec2(intensity, 0.0)).rgb;\\n}';\n } else {\n textureGradient = null;\n getColorFun = 'vec3 getColor(float intensity){\\n vec3 blue = vec3(0.0, 0.0, 1.0);\\n vec3 cyan = vec3(0.0, 1.0, 1.0);\\n vec3 green = vec3(0.0, 1.0, 0.0);\\n vec3 yellow = vec3(1.0, 1.0, 0.0);\\n vec3 red = vec3(1.0, 0.0, 0.0);\\n\\n vec3 color = (\\n fade(-0.25, 0.25, intensity)*blue +\\n fade(0.0, 0.5, intensity)*cyan +\\n fade(0.25, 0.75, intensity)*green +\\n fade(0.5, 1.0, intensity)*yellow +\\n smoothstep(0.75, 1.0, intensity)*red\\n );\\n return color;\\n}';\n }\n\n if (intensityToAlpha == null) {\n intensityToAlpha = true;\n }\n\n if (intensityToAlpha) {\n ;\n _ref1 = alphaRange != null ? alphaRange : [0, 1], alphaStart = _ref1[0], alphaEnd = _ref1[1];\n output = 'vec4 alphaFun(vec3 color, float intensity){\\n float alpha = smoothstep(' + alphaStart.toFixed(8) + ', ' + alphaEnd.toFixed(8) + ', intensity);\\n return vec4(color*alpha, alpha);\\n}';\n } else {\n output = 'vec4 alphaFun(vec3 color, float intensity){\\n return vec4(color, 1.0);\\n}';\n }\n\n this.shader = new Shader(this.gl, {\n vertex: vertexShaderBlit,\n fragment: fragmentShaderBlit + ('float linstep(float low, float high, float value){\\n return clamp((value-low)/(high-low), 0.0, 1.0);\\n}\\n\\nfloat fade(float low, float high, float value){\\n float mid = (low+high)*0.5;\\n float range = (high-low)*0.5;\\n float x = 1.0 - clamp(abs(mid-value)/range, 0.0, 1.0);\\n return smoothstep(0.0, 1.0, x);\\n}\\n\\n' + getColorFun + '\\n' + output + '\\n\\nvoid main(){\\n float intensity = smoothstep(0.0, 1.0, texture2D(source, texcoord).r);\\n vec3 color = getColor(intensity);\\n gl_FragColor = alphaFun(color, intensity);\\n}')\n });\n\n if (this.width == null) {\n this.width = this.canvas.offsetWidth || 2;\n }\n\n if (this.height == null) {\n this.height = this.canvas.offsetHeight || 2;\n }\n\n this.canvas.width = this.width;\n this.canvas.height = this.height;\n this.gl.viewport(0, 0, this.width, this.height);\n this.quad = this.gl.createBuffer();\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.quad);\n quad = new Float32Array([-1, -1, 0, 1, 1, -1, 0, 1, -1, 1, 0, 1, -1, 1, 0, 1, 1, -1, 0, 1, 1, 1, 0, 1]);\n this.gl.bufferData(this.gl.ARRAY_BUFFER, quad, this.gl.STATIC_DRAW);\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, null);\n this.heights = new Heights(this, this.gl, this.width, this.height);\n }\n\n WebGLHeatmap.prototype.adjustSize = function () {\n var canvasHeight, canvasWidth;\n canvasWidth = this.canvas.offsetWidth || 2;\n canvasHeight = this.canvas.offsetHeight || 2;\n\n if (this.width !== canvasWidth || this.height !== canvasHeight) {\n this.gl.viewport(0, 0, canvasWidth, canvasHeight);\n this.canvas.width = canvasWidth;\n this.canvas.height = canvasHeight;\n this.width = canvasWidth;\n this.height = canvasHeight;\n return this.heights.resize(this.width, this.height);\n }\n };\n\n WebGLHeatmap.prototype.display = function () {\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.quad);\n this.gl.vertexAttribPointer(0, 4, this.gl.FLOAT, false, 0, 0);\n this.heights.nodeFront.bind(0);\n\n if (this.gradientTexture) {\n this.gradientTexture.bind(1);\n }\n\n this.shader.use().int('source', 0).int('gradientTexture', 1);\n return this.gl.drawArrays(this.gl.TRIANGLES, 0, 6);\n };\n\n WebGLHeatmap.prototype.update = function () {\n return this.heights.update();\n };\n\n WebGLHeatmap.prototype.clear = function () {\n return this.heights.clear();\n };\n\n WebGLHeatmap.prototype.clamp = function (min, max) {\n if (min == null) {\n min = 0;\n }\n\n if (max == null) {\n max = 1;\n }\n\n return this.heights.clamp(min, max);\n };\n\n WebGLHeatmap.prototype.multiply = function (value) {\n if (value == null) {\n value = 0.95;\n }\n\n return this.heights.multiply(value);\n };\n\n WebGLHeatmap.prototype.blur = function () {\n return this.heights.blur();\n };\n\n WebGLHeatmap.prototype.addPoint = function (x, y, size, intensity) {\n return this.heights.addPoint(x, y, size, intensity);\n };\n\n WebGLHeatmap.prototype.addPoints = function (items) {\n var item, _i, _len, _results;\n\n _results = [];\n\n for (_i = 0, _len = items.length; _i < _len; _i++) {\n item = items[_i];\n\n _results.push(this.addPoint(item.x, item.y, item.size, item.intensity));\n }\n\n return _results;\n };\n\n return WebGLHeatmap;\n}();\n\nfunction createWebGLHeatmap(params) {\n return new WebGLHeatmap(params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NwZWMucHJlZmVyLmxlbmd0aCAtIGkgLSAxKVxuICAgICAgICAgIGlmIChjYW5kaWRhdGVbcHJlZmVyZW5jZV0pIHtcbiAgICAgICAgICAgIGNhbmRpZGF0ZS5zY29yZSArPSBpbXBvcnRhbmNlXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgICByZXN1bHQuc29ydChmdW5jdGlvbihhLCBiKSB7XG4gICAgICAgIGlmIChhLnNjb3JlID09PSBiLnNjb3JlKSB7XG4gICAgICAgICAgcmV0dXJuIDBcbiAgICAgICAgfSBlbHNlIGlmIChhLnNjb3JlIDwgYi5zY29yZSkge1xuICAgICAgICAgIHJldHVybiAxXG4gICAgICAgIH0gZWxzZSBpZiAoYS5zY29yZSA+IGIuc2NvcmUpIHtcbiAgICAgICAgICByZXR1cm4gLTFcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIGlmIChyZXN1bHQubGVuZ3RoID09PSAwKSB7XG4gICAgICAgIGlmIChzcGVjLnRocm93cykge1xuICAgICAgICAgIHRocm93ICdObyBmbG9hdGluZyBwb2ludCB0ZXh0dXJlIHN1cHBvcnQgdGhhdCBpcyAnICtcbiAgICAgICAgICAgIHNwZWMucmVxdWlyZS5qb2luKCcsICcpXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgfVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmVzdWx0ID0gcmVzdWx0WzBdXG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgZmlsdGVyYWJsZTogcmVzdWx0LmZpbHRlcmFibGUsXG4gICAgICAgICAgcmVuZGVyYWJsZTogcmVzdWx0LnJlbmRlcmFibGUsXG4gICAgICAgICAgdHlwZTogcmVzdWx0LnR5cGUsXG4gICAgICAgICAgcHJlY2lzaW9uOiByZXN1bHQucHJlY2lzaW9uXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9KVxuICB9XG59XG5cbm51a2VWZW5kb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BQUE7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/heat/webgl-heatmap.js\n");
- /***/ }),
- /***/ "./modules/history-track/Track.js":
- /*!****************************************!*\
- !*** ./modules/history-track/Track.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _TrackViewMode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TrackViewMode */ \"./modules/history-track/TrackViewMode.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-19 11:21:48\n */\n\n\n\n\n\n\n\n\nvar DEF_OPTS = {\n clampToGround: false,\n clampToTileset: false,\n interpolationType: 'Linear',\n interpolationDegree: 2,\n endDelayTime: 0.5\n};\nvar DEF_PATH_STYLE = {\n width: 2,\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.ORANGE,\n clampToGround: true,\n depthFailMaterial: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.ORANGE.withAlpha(0.8)\n};\n\nvar Track = /*#__PURE__*/function () {\n function Track(positions, duration, callback, options) {\n var _this = this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Track);\n\n this._id = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].uuid();\n this._bid = undefined;\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePositions(positions);\n this._duration = duration || 20;\n this._callback = callback;\n this._options = _objectSpread(_objectSpread({}, DEF_OPTS), options);\n this._controller = undefined;\n this._sampledPosition = undefined;\n this._velocityOrientation = undefined;\n this._viewed = false;\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity();\n this._pathPositions = [];\n this._path = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity({\n show: false,\n polyline: {\n positions: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CallbackProperty(function () {\n return _this._pathPositions;\n })\n }\n });\n this._positionIndex = 0;\n this._timeLine = [];\n this._startTime = undefined;\n this._endTime = undefined;\n this._trackEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"TrackEvent\"]();\n\n this._trackEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"TrackEventType\"].POST_RENDER, this._onPostRender, this);\n\n this._trackEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"TrackEventType\"].ADD, this._onAdd, this);\n\n this._trackEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"TrackEventType\"].REMOVE, this._onRemove, this);\n\n this._trackEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"TrackEventType\"].RESET_TIME_LINE, this._resetTimeLine, this);\n\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Track, [{\n key: \"trackId\",\n get: function get() {\n return this._id;\n }\n }, {\n key: \"id\",\n get: function get() {\n return this._bid;\n },\n set: function set(id) {\n this._bid = id;\n return this;\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(postions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePositions(postions);\n\n this._resetTimeLine({});\n\n return this;\n }\n }, {\n key: \"duration\",\n get: function get() {\n return this._duration;\n },\n set: function set(duration) {\n this._duration = duration;\n\n this._resetTimeLine({});\n\n return this;\n }\n }, {\n key: \"startTime\",\n get: function get() {\n return this._startTime;\n },\n set: function set(startTime) {\n if (startTime instanceof Date) {\n this._startTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.fromDate(startTime);\n } else {\n this._startTime = startTime;\n }\n\n this._resetTimeLine({});\n\n return this;\n }\n }, {\n key: \"viewed\",\n get: function get() {\n return this._viewed;\n },\n set: function set(viewed) {\n this._viewed = viewed;\n return this;\n }\n }, {\n key: \"trackEvent\",\n get: function get() {\n return this._trackEvent;\n }\n }, {\n key: \"state\",\n get: function get() {\n return this._state;\n }\n /**\n * add to entities\n * @param controller\n * @private\n */\n\n }, {\n key: \"_onAdd\",\n value: function _onAdd(controller) {\n if (!controller) {\n return false;\n }\n\n this._controller = controller;\n\n this._controller.delegate.add(this._delegate);\n\n this._controller.delegate.add(this._path);\n\n !this._startTime && (this._startTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.now());\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].ADDED;\n }\n /**\n * remove from entities\n * @private\n */\n\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n if (!this._controller) {\n return false;\n }\n\n this._controller.delegate.remove(this._delegate);\n\n this._controller.delegate.remove(this._path);\n\n this._viewed = false;\n this._startTime = undefined;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].REMOVED;\n }\n /**\n *\n * @param viewer\n * @param viewOption\n * @private\n */\n\n }, {\n key: \"_onPostRender\",\n value: function _onPostRender(_ref) {\n var viewer = _ref.viewer,\n viewOption = _ref.viewOption;\n\n if (!this._startTime || !this._endTime) {\n return false;\n }\n\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.now();\n\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.lessThanOrEquals(now, this._endTime)) {\n var p = this._sampledPosition.getValue(now);\n\n this._pathPositions.push(p);\n\n if (this._options.clampToTileset) {\n this._delegate.position = viewer.scene.clampToHeight(p, [this._delegate]);\n } else {\n this._delegate.position = p;\n }\n\n var orientation = this._velocityOrientation.getValue(now);\n\n if (orientation) {\n this._delegate.orientation = orientation;\n }\n\n var time = this._timeLine[this._positionIndex];\n\n if (time) {\n var timeDiff = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.secondsDifference(now, time);\n\n if (timeDiff >= 0 && timeDiff <= 1) {\n var position = this._positions[this._positionIndex] || undefined;\n\n if (position && orientation) {\n var mat = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Matrix3.fromQuaternion(orientation);\n var mat4 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Matrix4.fromRotationTranslation(mat, p);\n var hpr = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Transforms.fixedFrameToHeadingPitchRoll(mat4);\n position.heading = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toDegrees(hpr.heading);\n position.pitch = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toDegrees(hpr.pitch);\n position.roll = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toDegrees(hpr.roll);\n }\n\n this._callback && this._callback(position, this._positionIndex + 1 === this._positions.length);\n this._positionIndex++;\n }\n }\n }\n\n this._setCameraView(viewer, viewOption);\n }\n /**\n * Sets camera position\n * @param viewer\n * @param viewOption\n * @private\n */\n\n }, {\n key: \"_setCameraView\",\n value: function _setCameraView(viewer, viewOption) {\n if (!this._viewed) {\n return false;\n }\n\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.now();\n\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.greaterThan(now, this._endTime)) {\n viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Matrix4.IDENTITY);\n viewer.delegate.trackedEntity && (viewer.delegate.trackedEntity = undefined);\n this._viewed = false;\n } else {\n var p = this._sampledPosition.getValue(now);\n\n var next_p = this._sampledPosition.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.addSeconds(now, 1 / 60, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate()));\n\n if (p && next_p) {\n var _viewer$delegate, _viewer$delegate$trac, _this$_delegate;\n\n if ((viewOption === null || viewOption === void 0 ? void 0 : viewOption.mode) === _TrackViewMode__WEBPACK_IMPORTED_MODULE_10__[\"default\"].TRACKED && ((_viewer$delegate = viewer.delegate) === null || _viewer$delegate === void 0 ? void 0 : (_viewer$delegate$trac = _viewer$delegate.trackedEntity) === null || _viewer$delegate$trac === void 0 ? void 0 : _viewer$delegate$trac.id) !== ((_this$_delegate = this._delegate) === null || _this$_delegate === void 0 ? void 0 : _this$_delegate.id)) {\n viewer.delegate.trackedEntity = this._delegate;\n } else if ((viewOption === null || viewOption === void 0 ? void 0 : viewOption.mode) === _TrackViewMode__WEBPACK_IMPORTED_MODULE_10__[\"default\"].FP) {\n viewer.camera.lookAt(p, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeadingPitchRange(Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_9__[\"heading\"])(p, next_p), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toRadians((viewOption === null || viewOption === void 0 ? void 0 : viewOption.pitch) || 0), (viewOption === null || viewOption === void 0 ? void 0 : viewOption.range) || 10));\n } else if ((viewOption === null || viewOption === void 0 ? void 0 : viewOption.mode) === _TrackViewMode__WEBPACK_IMPORTED_MODULE_10__[\"default\"].TP) {\n viewer.camera.lookAt(p, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeadingPitchRange(0, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toRadians((viewOption === null || viewOption === void 0 ? void 0 : viewOption.pitch) || -90), (viewOption === null || viewOption === void 0 ? void 0 : viewOption.range) || 1000));\n }\n }\n }\n }\n /**\n *\n * @param params\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_resetTimeLine\",\n value: function _resetTimeLine(params) {\n var _this$_positions,\n _this2 = this;\n\n if (!this._startTime || !this._duration || !((_this$_positions = this._positions) !== null && _this$_positions !== void 0 && _this$_positions.length)) {\n return false;\n }\n\n var interval = 0;\n\n if (!(params !== null && params !== void 0 && params.stopTime) && !(params !== null && params !== void 0 && params.duration)) {\n var v = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_9__[\"distance\"])(this._positions) / this._duration;\n\n this._timeLine = this._positions.map(function (item, index, arr) {\n if (index !== 0) {\n interval += Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_9__[\"distance\"])([arr[index - 1], item]) / v;\n }\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.addSeconds(_this2._startTime, interval, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate());\n });\n this._pathPositions = [];\n this._positionIndex = 0;\n } else if (params !== null && params !== void 0 && params.stopTime && params !== null && params !== void 0 && params.duration) {\n this._duration += params.duration;\n this._timeLine = this._timeLine.map(function (item) {\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.greaterThan(item, params.stopTime)) {\n item = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.addSeconds(item, params.duration, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate());\n }\n\n return item;\n });\n }\n\n this._sampledPosition = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].SampledPositionProperty();\n\n this._sampledPosition.addSamples(this._timeLine, _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions));\n\n this._sampledPosition.forwardExtrapolationType = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ExtrapolationType.HOLD; /// setInterpolationOptions\n\n if (this._options.interpolationType === 'Hermite') {\n this._sampledPosition.setInterpolationOptions({\n interpolationDegree: this._options.interpolationDegree || 2,\n interpolationAlgorithm: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HermitePolynomialApproximation\n });\n } else if (this._options.interpolationType === 'Linear') {\n this._sampledPosition.setInterpolationOptions({\n interpolationDegree: this._options.interpolationDegree || 1,\n interpolationAlgorithm: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].LinearApproximation\n });\n } else if (this._options.interpolationType === 'Lagrange') {\n this._sampledPosition.setInterpolationOptions({\n interpolationDegree: this._options.interpolationDegree || 5,\n interpolationAlgorithm: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].LagrangePolynomialApproximation\n });\n }\n\n this._velocityOrientation = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].VelocityOrientationProperty(this._sampledPosition);\n this._endTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.addSeconds(this._timeLine[this._timeLine.length - 1], this._options.endDelayTime, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate());\n }\n /**\n * Adds Position\n * @param position\n * @param duration\n * @returns {Track}\n */\n\n }, {\n key: \"addPosition\",\n value: function addPosition(position, duration) {\n this._positions.push(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position));\n\n this._duration += duration;\n\n this._resetTimeLine({});\n\n return this;\n }\n /**\n * Sets model\n * @param modelPath\n * @param style\n * @returns {Track}\n */\n\n }, {\n key: \"setModel\",\n value: function setModel(modelPath, style) {\n this._delegate.model = _objectSpread(_objectSpread({}, style), {}, {\n uri: modelPath,\n heightReference: this._options.clampToGround ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.CLAMP_TO_GROUND : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.NONE\n });\n return this;\n }\n /**\n * Sets billboard\n * @param icon\n * @param style\n * @returns {Track}\n */\n\n }, {\n key: \"setBillboard\",\n value: function setBillboard(icon, style) {\n this._delegate.billboard = _objectSpread(_objectSpread({}, style), {}, {\n image: icon,\n heightReference: this._options.clampToGround ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.CLAMP_TO_GROUND : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.NONE\n });\n return this;\n }\n /**\n * Sets label\n * @param text\n * @param style\n * @returns {Track}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, style) {\n this._delegate.label = _objectSpread(_objectSpread({}, style), {}, {\n text: text,\n heightReference: this._options.clampToGround ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.CLAMP_TO_GROUND : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.NONE\n });\n return this;\n }\n /**\n *\n * @param visible\n * @param style\n * @returns {Track}\n */\n\n }, {\n key: \"setPath\",\n value: function setPath(visible) {\n var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n this._path.show = !!visible;\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._path.polyline, DEF_PATH_STYLE, style);\n return this;\n }\n }]);\n\n return Track;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Track);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2hpc3RvcnktdHJhY2svVHJhY2suanMuanMiLCJzb3VyY2VzIj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kgPSB0aGlzLl9kZWxlZ2F0ZVxuICAgICAgICB9IGVsc2UgaWYgKHZpZXdPcHRpb24/Lm1vZGUgPT09IFRyYWNrVmlld01vZGUuRlApIHtcbiAgICAgICAgICB2aWV3ZXIuY2FtZXJhLmxvb2tBdChcbiAgICAgICAgICAgIHAsXG4gICAgICAgICAgICBuZXcgQ2VzaXVtLkhlYWRpbmdQaXRjaFJhbmdlKFxuICAgICAgICAgICAgICBoZWFkaW5nKHAsIG5leHRfcCksXG4gICAgICAgICAgICAgIENlc2l1bS5NYXRoLnRvUmFkaWFucyh2aWV3T3B0aW9uPy5waXRjaCB8fCAwKSxcbiAgICAgICAgICAgICAgdmlld09wdGlvbj8ucmFuZ2UgfHwgMTBcbiAgICAgICAgICAgIClcbiAgICAgICAgICApXG4gICAgICAgIH0gZWxzZSBpZiAodmlld09wdGlvbj8ubW9kZSA9PT0gVHJhY2tWaWV3TW9kZS5UUCkge1xuICAgICAgICAgIHZpZXdlci5jYW1lcmEubG9va0F0KFxuICAgICAgICAgICAgcCxcbiAgICAgICAgICAgIG5ldyBDZXNpdW0uSGVhZGluZ1BpdGNoUmFuZ2UoXG4gICAgICAgICAgICAgIDAsXG4gICAgICAgICAgICAgIENlc2l1bS5NYXRoLnRvUmFkaWFucyh2aWV3T3B0aW9uPy5waXRjaCB8fCAtOTApLFxuICAgICAgICAgICAgICB2aWV3T3B0aW9uPy5yYW5nZSB8fCAxMDAwXG4gICAgICAgICAgICApXG4gICAgICAgICAgKVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwYXJhbSBwYXJhbXNcbiAgICogQHJldHVybnMge2Jvb2xlYW59XG4gICAqIEBwcml2YXRlXG4gICAqL1xuICBfcmVzZXRUaW1lTGluZShwYXJhbXMpIHtcbiAgICBpZiAoIXRoaXMuX3N0YXJ0VGltZSB8fCAhdGhpcy5fZHVyYXRpb24gfHwgIXRoaXMuX3Bvc2l0aW9ucz8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BQUE7QUFDQTtBQUFBO0FBQ0E7QUFHQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUFBO0FBR0E7QUFLQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFIQTtBQU9BO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFIQTtBQU9BO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFIQTtBQU9BO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/history-track/Track.js\n");
- /***/ }),
- /***/ "./modules/history-track/TrackController.js":
- /*!**************************************************!*\
- !*** ./modules/history-track/TrackController.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _TrackViewMode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TrackViewMode */ \"./modules/history-track/TrackViewMode.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-04-01 10:36:36\n */\n\n\n\n\nvar TrackController = /*#__PURE__*/function () {\n function TrackController(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TrackController);\n\n this._viewer = viewer;\n this._cache = {};\n this._delegete = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CustomDataSource('history-track-layer');\n\n this._viewer.dataSources.add(this._delegete);\n\n this._activedTrack = undefined;\n this._viewMode = undefined;\n this._viewOption = {};\n this._stopTime = undefined;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TrackController, [{\n key: \"delegate\",\n get: function get() {\n return this._delegete.entities;\n }\n /**\n * @private\n */\n\n }, {\n key: \"_onPostRender\",\n value: function _onPostRender() {\n var _this = this;\n\n Object.keys(this._cache).forEach(function (key) {\n var track = _this._cache[key];\n track.trackEvent && track.trackEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"TrackEventType\"].POST_RENDER, {\n viewer: _this._viewer,\n viewOption: _this._viewOption\n });\n });\n\n this._viewer.scene.requestRender();\n }\n /**\n *\n * @param track\n * @returns {TrackController}\n */\n\n }, {\n key: \"addTrack\",\n value: function addTrack(track) {\n if (track && track.trackEvent && !this._cache.hasOwnProperty(track.trackId)) {\n track.trackEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"TrackEventType\"].ADD, this);\n this._cache[track.trackId] = track;\n }\n\n return this;\n }\n /**\n *\n * @param tracks\n * @returns {TrackController}\n */\n\n }, {\n key: \"addTracks\",\n value: function addTracks(tracks) {\n var _this2 = this;\n\n if (Array.isArray(tracks)) {\n tracks.forEach(function (item) {\n _this2.addTrack(item);\n });\n }\n\n return this;\n }\n /**\n * Returns a track\n * @param id\n * @returns {*|undefined}\n */\n\n }, {\n key: \"getTrack\",\n value: function getTrack(id) {\n var filters = this.getTracks().filter(function (item) {\n return item.id === id;\n });\n return filters && filters.length ? filters[0] : undefined;\n }\n /**\n * Removes a track\n * @param track\n * @returns {TrackController}\n */\n\n }, {\n key: \"removeTrack\",\n value: function removeTrack(track) {\n if (track && track.trackEvent && this._cache.hasOwnProperty(track.trackId)) {\n track.trackEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"TrackEventType\"].REMOVE, this);\n delete this._cache[track.trackId];\n }\n\n return this;\n }\n /**\n *\n * @returns {*[]}\n */\n\n }, {\n key: \"getTracks\",\n value: function getTracks() {\n var _this3 = this;\n\n var result = [];\n Object.keys(this._cache).forEach(function (key) {\n result.push(_this3._cache[key]);\n });\n return result;\n }\n /**\n * Starts play all path\n * @returns {TrackController}\n */\n\n }, {\n key: \"play\",\n value: function play() {\n var _this4 = this;\n\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.now();\n Object.keys(this._cache).forEach(function (key) {\n var track = _this4._cache[key];\n track.startTime = now;\n track.viewed = false;\n });\n this._activedTrack = undefined;\n this._stopTime = undefined;\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n return this;\n }\n /**\n *\n */\n\n }, {\n key: \"pause\",\n value: function pause() {\n this._stopTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.now();\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.delegate.trackedEntity = undefined;\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n return this;\n }\n /**\n *\n */\n\n }, {\n key: \"restore\",\n value: function restore() {\n var _this5 = this;\n\n if (this._stopTime) {\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.now();\n Object.keys(this._cache).forEach(function (key) {\n var track = _this5._cache[key];\n track.trackEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"TrackEventType\"].RESET_TIME_LINE, {\n stopTime: _this5._stopTime,\n duration: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.secondsDifference(now, _this5._stopTime)\n });\n });\n }\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n return this;\n }\n /**\n *\n * @param speed\n * @returns {TrackController}\n */\n\n }, {\n key: \"changeSpeed\",\n value: function changeSpeed(speed) {\n this._viewer.clock.multiplier = speed;\n return this;\n }\n /**\n *\n * @param track\n * @param viewOption\n * @returns {TrackController}\n */\n\n }, {\n key: \"viewTrack\",\n value: function viewTrack(track) {\n var viewOption = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!this._cache.hasOwnProperty(track.trackId)) {\n throw new Error('TrackController: track does not added ');\n }\n\n this._viewOption = viewOption;\n\n if (this._activedTrack) {\n this._activedTrack.viewed = false;\n }\n\n track.viewed = true;\n this._activedTrack = track;\n\n if (viewOption.mode === _TrackViewMode__WEBPACK_IMPORTED_MODULE_4__[\"default\"].FREE) {\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.delegate.trackedEntity = undefined;\n }\n\n return this;\n }\n /**\n *\n * @param track\n * @returns {TrackController}\n */\n\n }, {\n key: \"releaseTrack\",\n value: function releaseTrack(track) {\n if (!this._cache.hasOwnProperty(track.trackId)) {\n throw new Error('TrackController: track does not added ');\n }\n\n if (track.viewed) {\n track.viewed = false;\n }\n\n this._activedTrack = undefined;\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n this._viewer.delegate.trackedEntity = undefined;\n return this;\n }\n /**\n *\n * @returns {TrackController}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this._cache = {};\n this._activedTrack && (this._activedTrack.viewed = false);\n this._activedTrack = undefined;\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n return this;\n }\n }]);\n\n return TrackController;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (TrackController);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxl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biAgICogQHByaXZhdGVcbiAgICovXG4gIF9vblBvc3RSZW5kZXIoKSB7XG4gICAgT2JqZWN0LmtleXModGhpcy5fY2FjaGUpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgIGxldCB0cmFjayA9IHRoaXMuX2NhY2hlW2tleV1cbiAgICAgIHRyYWNrLnRyYWNrRXZlbnQgJiZcbiAgICAgICAgdHJhY2sudHJhY2tFdmVudC5maXJlKFRyYWNrRXZlbnRUeXBlLlBPU1RfUkVOREVSLCB7XG4gICAgICAgICAgdmlld2VyOiB0aGlzLl92aWV3ZXIsXG4gICAgICAgICAgdmlld09wdGlvbjogdGhpcy5fdmlld09wdGlvblxuICAgICAgICB9KVxuICAgIH0pXG4gICAgdGhpcy5fdmlld2VyLnNjZW5lLnJlcXVlc3RSZW5kZXIoKVxuICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwYXJhbSB0cmFja1xuICAgKiBAcmV0dXJucyB7VHJhY2tDb250cm9sbGVyfVxuICAgKi9cbiAgYWRkVHJhY2sodHJhY2spIHtcbiAgICBpZiAoXG4gICAgICB0cmFjayAmJlxuICAgICAgdHJhY2sudHJhY2tFdmVudCAmJlxuICAgICAgIXRoaXMuX2NhY2hlLmhhc093blByb3BlcnR5KHRyYWNrLnRyYWNrSWQpXG4gICAgKSB7XG4gICAgICB0cmFjay50cmFja0V2ZW50LmZpcmUoVHJhY2tFdmVudFR5cGUuQURELCB0aGlzKVxuICAgICAgdGhpcy5fY2FjaGVbdHJhY2sudHJhY2tJZF0gPSB0cmFja1xuICAgIH1cbiAgICByZXR1cm4gdGhpc1xuICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwYXJhbSB0cmFja3NcbiAgICogQHJldHVybnMge1RyYWNrQ29udHJvbGxlcn1cbiAgICovXG4gIGFkZFRyYWNrcyh0cmFja3MpIHtcbiAgICBpZiAoQXJyYXkuaXNBcnJheSh0cmFja3MpKSB7XG4gICAgICB0cmFja3MuZm9yRWFjaChpdGVtID0+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O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/history-track/TrackController.js\n");
- /***/ }),
- /***/ "./modules/history-track/TrackViewMode.js":
- /*!************************************************!*\
- !*** ./modules/history-track/TrackViewMode.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-08-05 10:51:13\n */\nvar TrackViewMode = {\n FP: '1',\n TP: '2',\n TRACKED: 'tracked',\n FREE: 'free'\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (TrackViewMode);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2hpc3RvcnktdHJhY2svVHJhY2tWaWV3TW9kZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvaGlzdG9yeS10cmFjay9UcmFja1ZpZXdNb2RlLmpzPzIwNGMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDgtMDUgMTA6NTE6MTNcbiAqL1xuXG5jb25zdCBUcmFja1ZpZXdNb2RlID0ge1xuICBGUDogJzEnLFxuICBUUDogJzInLFxuICBUUkFDS0VEOiAndHJhY2tlZCcsXG4gIEZSRUU6ICdmcmVlJ1xufVxuXG5leHBvcnQgZGVmYXVsdCBUcmFja1ZpZXdNb2RlXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFPQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/history-track/TrackViewMode.js\n");
- /***/ }),
- /***/ "./modules/history-track/index.js":
- /*!****************************************!*\
- !*** ./modules/history-track/index.js ***!
- \****************************************/
- /*! exports provided: TrackController, Track, TrackViewMode */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _TrackController__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TrackController */ \"./modules/history-track/TrackController.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TrackController\", function() { return _TrackController__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Track__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Track */ \"./modules/history-track/Track.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Track\", function() { return _Track__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _TrackViewMode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TrackViewMode */ \"./modules/history-track/TrackViewMode.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TrackViewMode\", function() { return _TrackViewMode__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2020-04-13 09:32:31\n */\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2hpc3RvcnktdHJhY2svaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2hpc3RvcnktdHJhY2svaW5kZXguanM/NjJjNSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wNC0xMyAwOTozMjozMVxuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgVHJhY2tDb250cm9sbGVyIH0gZnJvbSAnLi9UcmFja0NvbnRyb2xsZXInXG5leHBvcnQgeyBkZWZhdWx0IGFzIFRyYWNrIH0gZnJvbSAnLi9UcmFjaydcbmV4cG9ydCB7IGRlZmF1bHQgYXMgVHJhY2tWaWV3TW9kZSB9IGZyb20gJy4vVHJhY2tWaWV3TW9kZSdcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/history-track/index.js\n");
- /***/ }),
- /***/ "./modules/icons/compass-inner.js":
- /*!****************************************!*\
- !*** ./modules/icons/compass-inner.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-06-06 14:05:25\n */\nvar compass_inner = \"\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n<svg width=\\\"17px\\\" height=\\\"17px\\\" viewBox=\\\"0 0 17 17\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\">\\n <!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->\\n <title>compass-inner</title>\\n <desc>Created with Sketch.</desc>\\n <defs></defs>\\n <g id=\\\"Page-1\\\" stroke=\\\"none\\\" stroke-width=\\\"1\\\" fill-rule=\\\"evenodd\\\">\\n <g id=\\\"compass-inner\\\" fill-rule=\\\"nonzero\\\">\\n <path d=\\\"M8.5,16.5 C4.081722,16.5 0.5,12.918278 0.5,8.5 C0.5,4.081722 4.081722,0.5 8.5,0.5 C12.918278,0.5 16.5,4.081722 16.5,8.5 C16.5,12.918278 12.918278,16.5 8.5,16.5 Z M8.5,15.5 C12.3659932,15.5 15.5,12.3659932 15.5,8.5 C15.5,4.63400675 12.3659932,1.5 8.5,1.5 C4.63400675,1.5 1.5,4.63400675 1.5,8.5 C1.5,12.3659932 4.63400675,15.5 8.5,15.5 Z\\\" id=\\\"Oval-96\\\"></path>\\n <path d=\\\"M9.92599835,7.09066832 C12.7122872,9.87695712 14.3709388,12.5452228 13.4497471,13.4664145 C12.5285555,14.3876061 9.86028979,12.7289545 7.074001,9.94266568 C4.2877122,7.15637688 2.62906055,4.48811119 3.55025221,3.56691953 C4.47144386,2.64572788 7.13970955,4.30437952 9.92599835,7.09066832 Z M9.21889157,7.7977751 C6.92836458,5.50724811 4.52075769,4.01062761 4.25735899,4.27402631 C3.99396029,4.53742501 5.49058078,6.9450319 7.78110778,9.2355589 C10.0716348,11.5260859 12.4792417,13.0227064 12.7426404,12.7593077 C13.0060391,12.495909 11.5094186,10.0883021 9.21889157,7.7977751 Z\\\" id=\\\"Oval-96-Copy-2\\\"></path>\\n <path d=\\\"M9.92599835,9.94266568 C7.13970955,12.7289545 4.47144386,14.3876061 3.55025221,13.4664145 C2.62906055,12.5452228 4.2877122,9.87695712 7.074001,7.09066832 C9.86028979,4.30437952 12.5285555,2.64572788 13.4497471,3.56691953 C14.3709388,4.48811119 12.7122872,7.15637688 9.92599835,9.94266568 Z M9.21889157,9.2355589 C11.5094186,6.9450319 13.0060391,4.53742501 12.7426404,4.27402631 C12.4792417,4.01062761 10.0716348,5.50724811 7.78110778,7.7977751 C5.49058078,10.0883021 3.99396029,12.495909 4.25735899,12.7593077 C4.52075769,13.0227064 6.92836458,11.5260859 9.21889157,9.2355589 Z\\\" id=\\\"Oval-96-Copy-3\\\"></path>\\n <path d=\\\"M15.1464466,1.1464466 L14.3453364,1.94755684 L13.9608692,2.33202401 L14.667976,3.03913077 L15.0524431,2.65466362 L15.8535534,1.8535534 L15.1464466,1.1464466 Z M2.29760014,13.995293 L1.85311902,14.4397742 L1.004311,15.2885822 L1.71141776,15.995689 L2.56022581,15.146881 L3.00470698,14.7023998 L2.29760014,13.995293 Z\\\" id=\\\"Line\\\"></path>\\n <circle id=\\\"Oval-432\\\" cx=\\\"16\\\" cy=\\\"1\\\" r=\\\"1\\\"></circle>\\n <circle id=\\\"Oval-432-Copy\\\" cx=\\\"1\\\" cy=\\\"16\\\" r=\\\"1\\\"></circle>\\n </g>\\n </g>\\n</svg>\\n\";\n/* harmony default export */ __webpack_exports__[\"default\"] = (compass_inner);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ljb25zL2NvbXBhc3MtaW5uZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2ljb25zL2NvbXBhc3MtaW5uZXIuanM/YjgwNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wNi0wNiAxNDowNToyNVxuICovXG5cbmNvbnN0IGNvbXBh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2NiBaIE0yLjI5NzYwMDE0LDEzLjk5NTI5MyBMMS44NTMxMTkwMiwxNC40Mzk3NzQyIEwxLjAwNDMxMSwxNS4yODg1ODIyIEwxLjcxMTQxNzc2LDE1Ljk5NTY4OSBMMi41NjAyMjU4MSwxNS4xNDY4ODEgTDMuMDA0NzA2OTgsMTQuNzAyMzk5OCBMMi4yOTc2MDAxNCwxMy45OTUyOTMgWlwiIGlkPVwiTGluZVwiPjwvcGF0aD5cbiAgICAgICAgICAgIDxjaXJjbGUgaWQ9XCJPdmFsLTQzMlwiIGN4PVwiMTZcIiBjeT1cIjFcIiByPVwiMVwiPjwvY2lyY2xlPlxuICAgICAgICAgICAgPGNpcmNsZSBpZD1cIk92YWwtNDMyLUNvcHlcIiBjeD1cIjFcIiBjeT1cIjE2XCIgcj1cIjFcIj48L2NpcmNsZT5cbiAgICAgICAgPC9nPlxuICAgIDwvZz5cbjwvc3ZnPlxuYFxuXG5leHBvcnQgZGVmYXVsdCBjb21wYXNzX2lubmVyXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQW9CQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/icons/compass-inner.js\n");
- /***/ }),
- /***/ "./modules/icons/compass-outer.js":
- /*!****************************************!*\
- !*** ./modules/icons/compass-outer.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-06-05 16:01:22\n */\nvar compass_outer = \"\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n<svg width=\\\"162px\\\" height=\\\"162px\\\" viewBox=\\\"0 0 162 162\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\">\\n <!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->\\n <title>compass-outer</title>\\n <desc>Created with Sketch.</desc>\\n <defs></defs>\\n <g id=\\\"Page-1\\\" stroke=\\\"none\\\" stroke-width=\\\"1\\\" fill-rule=\\\"evenodd\\\">\\n <g id=\\\"compass-outer\\\" fill-rule=\\\"nonzero\\\">\\n <path d=\\\"M80.8410544,161.682109 C36.1937731,161.682109 0,125.488336 0,80.8410544 C0,36.1937731 36.1937731,0 80.8410544,0 C125.488336,0 161.682109,36.1937731 161.682109,80.8410544 C161.682109,125.488336 125.488336,161.682109 80.8410544,161.682109 Z M81.1836011,134.620909 C110.696211,134.620909 134.620909,110.696211 134.620909,81.1836011 C134.620909,51.6709916 110.696211,27.7462941 81.1836011,27.7462941 C51.6709916,27.7462941 27.7462941,51.6709916 27.7462941,81.1836011 C27.7462941,110.696211 51.6709916,134.620909 81.1836011,134.620909 Z\\\" id=\\\"Oval-108\\\"></path>\\n <circle id=\\\"Oval-74\\\" fill=\\\"#FFFFFF\\\" cx=\\\"129.493683\\\" cy=\\\"127.952092\\\" r=\\\"1.54159147\\\"></circle>\\n <circle id=\\\"Oval-74-Copy-3\\\" fill=\\\"#FFFFFF\\\" cx=\\\"129.493683\\\" cy=\\\"35.4566038\\\" r=\\\"1.54159147\\\"></circle>\\n <circle id=\\\"Oval-74-Copy-5\\\" fill=\\\"#FFFFFF\\\" cx=\\\"30.8318294\\\" cy=\\\"127.952092\\\" r=\\\"1.54159147\\\"></circle>\\n <circle id=\\\"Oval-74-Copy-4\\\" fill=\\\"#FFFFFF\\\" cx=\\\"30.8318294\\\" cy=\\\"35.4566038\\\" r=\\\"1.54159147\\\"></circle>\\n <polygon id=\\\"N\\\" fill=\\\"#FFFFFF\\\" points=\\\"84.9318072 23.1238721 84.9318072 13.1321362 82.5623385 13.1321362 82.5623385 19.2984646 77.951866 13.1321362 75.7108625 13.1321362 75.7108625 23.1238721 78.0946053 23.1238721 78.0946053 16.9718176 82.6908037 23.1238721\\\"></polygon>\\n <polygon id=\\\"Line\\\" fill=\\\"#FFFFFF\\\" points=\\\"143.368007 82.1093476 152.617555 82.1093476 152.617555 81.2993476 143.368007 81.2993476\\\"></polygon>\\n <polygon id=\\\"Line-Copy-8\\\" fill=\\\"#FFFFFF\\\" points=\\\"9.24954884 82.1093476 18.4990976 82.1093476 18.4990976 81.2993476 9.24954884 81.2993476\\\"></polygon>\\n <polygon id=\\\"Line\\\" fill=\\\"#FFFFFF\\\" points=\\\"81.2993476 143.368007 81.2993476 152.617555 82.1093476 152.617555 82.1093476 143.368007\\\"></polygon>\\n </g>\\n </g>\\n</svg>\\n\";\n/* harmony default export */ __webpack_exports__[\"default\"] = (compass_outer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ljb25zL2NvbXBhc3Mtb3V0ZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2ljb25zL2NvbXBhc3Mtb3V0ZXIuanM/YzkwOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wNi0wNSAxNjowMToyMlxuICovXG5cbmNvbnN0IGNvbXBhc3Nfb3V0ZXIgPSBgXG48P3htbCB2ZXJzaW9uPVwiMS4wXCIgZW5jb2Rpbmc9XCJVVEYtOFwiIHN0YW5kYWxvbmU9XCJub1wiPz5cbjxzdmcgd2lkdGg9XCIxNjJweFwiIGhlaWdodD1cIjE2MnB4XCIgdmlld0JveD1cIjAgMCAxNjIgMTYyXCIgdmVyc2lvbj1cIjEuMVwiIHhtbG5zPVwiaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmdcIiB4bWxuczp4bGluaz1cImh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmtcIj5cbiAgICA8IS0tIEdlbmVyYXRvcjogU2tldG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TMgMjMuMTIzODcyMSA3OC4wOTQ2MDUzIDE2Ljk3MTgxNzYgODIuNjkwODAzNyAyMy4xMjM4NzIxXCI+PC9wb2x5Z29uPlxuICAgICAgICAgICAgPHBvbHlnb24gaWQ9XCJMaW5lXCIgZmlsbD1cIiNGRkZGRkZcIiBwb2ludHM9XCIxNDMuMzY4MDA3IDgyLjEwOTM0NzYgMTUyLjYxNzU1NSA4Mi4xMDkzNDc2IDE1Mi42MTc1NTUgODEuMjk5MzQ3NiAxNDMuMzY4MDA3IDgxLjI5OTM0NzZcIj48L3BvbHlnb24+XG4gICAgICAgICAgICA8cG9seWdvbiBpZD1cIkxpbmUtQ29weS04XCIgZmlsbD1cIiNGRkZGRkZcIiBwb2ludHM9XCI5LjI0OTU0ODg0IDgyLjEwOTM0NzYgMTguNDk5MDk3NiA4Mi4xMDkzNDc2IDE4LjQ5OTA5NzYgODEuMjk5MzQ3NiA5LjI0OTU0ODg0IDgxLjI5OTM0NzZcIj48L3BvbHlnb24+XG4gICAgICAgICAgICA8cG9seWdvbiBpZD1cIkxpbmVcIiBmaWxsPVwiI0ZGRkZGRlwiIHBvaW50cz1cIjgxLjI5OTM0NzYgMTQzLjM2ODAwNyA4MS4yOTkzNDc2IDE1Mi42MTc1NTUgODIuMTA5MzQ3NiAxNTIuNjE3NTU1IDgyLjEwOTM0NzYgMTQzLjM2ODAwN1wiPjwvcG9seWdvbj5cbiAgICAgICAgPC9nPlxuICAgIDwvZz5cbjwvc3ZnPlxuYFxuXG5leHBvcnQgZGVmYXVsdCBjb21wYXNzX291dGVyXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQXVCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/icons/compass-outer.js\n");
- /***/ }),
- /***/ "./modules/icons/compass-rotation-marker.js":
- /*!**************************************************!*\
- !*** ./modules/icons/compass-rotation-marker.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-06-06 14:11:56\n */\nvar compass_rotation_marker = \"\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n<svg width=\\\"53px\\\" height=\\\"53px\\\" viewBox=\\\"0 0 53 53\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" xmlns:sketch=\\\"http://www.bohemiancoding.com/sketch/ns\\\">\\n <!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch -->\\n <title>compass-rotation-marker</title>\\n <desc>Created with Sketch.</desc>\\n <defs></defs>\\n <g id=\\\"Page-1\\\" stroke=\\\"none\\\" stroke-width=\\\"1\\\" fill=\\\"none\\\" fill-rule=\\\"evenodd\\\">\\n <g id=\\\"compass-rotation-marker\\\">\\n <path d=\\\"M52.4399986,26.2199993 C52.4399986,11.7390936 40.7009051,0 26.2199993,0 C11.7390936,0 0,11.7390936 0,26.2199993 C0,40.7009051 11.7390936,52.4399986 26.2199993,52.4399986 C40.7009051,52.4399986 52.4399986,40.7009051 52.4399986,26.2199993 Z\\\" id=\\\"rotator\\\" stroke-opacity=\\\"0.135841259\\\" stroke=\\\"#E2A549\\\" stroke-width=\\\"9\\\" opacity=\\\"0.201434235\\\"></path>\\n <path d=\\\"M0,26.2199993 C0,11.7390936 11.7390936,0 26.2199993,0 L26.2199993,9 C16.7096563,9 9,16.7096563 9,26.2199993\\\" id=\\\"Shape\\\" opacity=\\\"0.634561567\\\" fill=\\\"#4990E2\\\"></path>\\n </g>\\n </g>\\n</svg>\\n\";\n/* harmony default export */ __webpack_exports__[\"default\"] = (compass_rotation_marker);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxl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ourceURL=webpack-internal:///./modules/icons/compass-rotation-marker.js\n");
- /***/ }),
- /***/ "./modules/icons/decrease.js":
- /*!***********************************!*\
- !*** ./modules/icons/decrease.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-06-06 14:18:00\n */\nvar decrease = \"\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n<svg width=\\\"50px\\\" height=\\\"6px\\\" viewBox=\\\"0 0 50 6\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" xmlns:sketch=\\\"http://www.bohemiancoding.com/sketch/ns\\\">\\n <!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch -->\\n <title>decrease</title>\\n <path d=\\\"M46.6183575,0.657894737 L3.30112724,0.657894737 C1.44927539,0.657894737 0,1.66880618 0,2.96052632 C0,4.25224645 1.44927539,5.26315789 3.30112724,5.26315789 L46.6988728,5.26315789 C48.5507246,5.26315789 50,4.25224645 50,2.96052632 C49.9194847,1.66880618 48.4702093,0.657894737 46.6183575,0.657894737 L46.6183575,0.657894737 L46.6183575,0.657894737 Z\\\" id=\\\"Shape\\\"></path>\\n</svg>\\n\";\n/* harmony default export */ __webpack_exports__[\"default\"] = (decrease);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ljb25zL2RlY3JlYXNlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9pY29ucy9kZWNyZWFzZS5qcz9iODkxIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyM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wwLjY1Nzg5NDczNyBaXCIgaWQ9XCJTaGFwZVwiPjwvcGF0aD5cbjwvc3ZnPlxuYFxuZXhwb3J0IGRlZmF1bHQgZGVjcmVhc2VcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBUUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/icons/decrease.js\n");
- /***/ }),
- /***/ "./modules/icons/increase.js":
- /*!***********************************!*\
- !*** ./modules/icons/increase.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-06-06 14:18:00\n */\nvar increase = \"\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n<svg width=\\\"50px\\\" height=\\\"50px\\\" viewBox=\\\"0 0 50 50\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" xmlns:sketch=\\\"http://www.bohemiancoding.com/sketch/ns\\\">\\n <!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch -->\\n <title>increase</title>\\n <path d=\\\"M0,25 C0,25.3514939 0.131810207,25.659051 0.373462207,25.900703 C0.615114207,26.142355 0.922671379,26.2741652 1.27416517,26.2741652 L23.7258348,26.2741652 L23.7258348,48.7258348 C23.7258348,49.0773286 23.857645,49.3848858 24.099297,49.6265378 C24.3189807,49.8462214 24.6485061,50 25,50 C25.7029877,50 26.2741652,49.4288225 26.2741652,48.7258348 L26.2741652,26.2741652 L48.7258348,26.2741652 C49.4288225,26.2741652 50,25.7029877 50,25 C50,24.2970123 49.4288225,23.7258348 48.7258348,23.7258348 L26.2741652,23.7258348 L26.2741652,1.27416517 C26.2741652,0.571177517 25.7029877,0 25,0 C24.2970123,0 23.7258348,0.571177517 23.7258348,1.27416517 L23.7258348,23.7258348 L1.27416517,23.7258348 C0.571177517,23.7258348 0,24.2970123 0,25 L0,25 L0,25 L0,25 Z\\\" id=\\\"Shape\\\"></path>\\n</svg>\\n\";\n/* harmony default export */ __webpack_exports__[\"default\"] = (increase);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ljb25zL2luY3JlYXNlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9pY29ucy9pbmNyZWFzZS5qcz9mZDFiIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA2LTA2IDE0OjE4OjAwXG4gKi9cblxuY29uc3QgaW5jcmVhc2UgPSBgXG48P3htbCB2ZXJzaW9uPVwiMS4wXCIgZW5jb2Rpbmc9XCJVVEYtOFwiIHN0YW5kYWxvbmU9XCJub1wiPz5cbjxzdmcgd2lkdGg9XCI1MHB4XCIgaGVpZ2h0PVwiNTBweFwiIHZpZXdCb3g9XCIwIDAgNTAgNTBcIiB2ZXJzaW9uPVwiMS4xXCIgeG1sbnM9XCJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Z1wiIHhtbG5zOnhsaW5rPVwiaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGlua1wiIHhtbG5zOnNrZXRjaD1cImh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaC9uc1wiPlxuICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMy40LjMgKDE2MDQ0KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT5cbiAgICA8dGl0bGU+aW5jcmVhc2U8L3RpdGxlPlxuICAgIDxwYXRoIGQ9XCJNMCwyNSBDMCwyNS4z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G9ydCBkZWZhdWx0IGluY3JlYXNlXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQVNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/icons/increase.js\n");
- /***/ }),
- /***/ "./modules/icons/index.js":
- /*!********************************!*\
- !*** ./modules/icons/index.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _logo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./logo */ \"./modules/icons/logo.js\");\n/* harmony import */ var _compass_outer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./compass-outer */ \"./modules/icons/compass-outer.js\");\n/* harmony import */ var _compass_inner__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./compass-inner */ \"./modules/icons/compass-inner.js\");\n/* harmony import */ var _compass_rotation_marker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./compass-rotation-marker */ \"./modules/icons/compass-rotation-marker.js\");\n/* harmony import */ var _decrease__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./decrease */ \"./modules/icons/decrease.js\");\n/* harmony import */ var _increase__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./increase */ \"./modules/icons/increase.js\");\n/* harmony import */ var _refresh__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./refresh */ \"./modules/icons/refresh.js\");\n/* harmony import */ var _splitter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./splitter */ \"./modules/icons/splitter.js\");\n/**\n * @Author: Caven\n * @Date: 2020-06-05 16:35:22\n */\n\n\n\n\n\n\n\n\nvar Icons = {\n logo: _logo__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n compass_outer: _compass_outer__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n compass_inner: _compass_inner__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n compass_rotation_marker: _compass_rotation_marker__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n decrease: _decrease__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n increase: _increase__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n refresh: _refresh__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n splitter: _splitter__WEBPACK_IMPORTED_MODULE_7__[\"default\"]\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Icons);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ljb25zL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9pY29ucy9pbmRleC5qcz82YmI0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA2LTA1IDE2OjM1OjIyXG4gKi9cblxuaW1wb3J0IGxvZ28gZnJvbSAnLi9sb2dvJ1xuaW1wb3J0IGNvbXBhc3Nfb3V0ZXIgZnJvbSAnLi9jb21wYXNzLW91dGVyJ1xuaW1wb3J0IGNvbXBhc3NfaW5uZXIgZnJvbSAnLi9jb21wYXNzLWlubmVyJ1xuaW1wb3J0IGNvbXBhc3Nfcm90YXRpb25fbWFya2VyIGZyb20gJy4vY29tcGFzcy1yb3RhdGlvbi1tYXJrZXInXG5pbXBvcnQgZGVjcmVhc2UgZnJvbSAnLi9kZWNyZWFzZSdcbmltcG9ydCBpbmNyZWFzZSBmcm9tICcuL2luY3JlYXNlJ1xuaW1wb3J0IHJlZnJlc2ggZnJvbSAnLi9yZWZyZXNoJ1xuaW1wb3J0IHNwbGl0dGVyIGZyb20gJy4vc3BsaXR0ZXInXG5cbmNvbnN0IEljb25zID0ge1xuICBsb2dvLFxuICBjb21wYXNzX291dGVyLFxuICBjb21wYXNzX2lubmVyLFxuICBjb21wYXNzX3JvdGF0aW9uX21hcmtlcixcbiAgZGVjcmVhc2UsXG4gIGluY3JlYXNlLFxuICByZWZyZXNoLFxuICBzcGxpdHRlclxufVxuXG5leHBvcnQgZGVmYXVsdCBJY29uc1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFSQTtBQVdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/icons/index.js\n");
- /***/ }),
- /***/ "./modules/icons/logo.js":
- /*!*******************************!*\
- !*** ./modules/icons/logo.js ***!
- \*******************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-12-02 19:59:35\n */\nvar logo = \"\\ndata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAG5ElEQVRoQ+2Yf2xVZxnHP89py9qliPe0BUTqBrunuDEBx8QfcxuwRYcxM3HO7Y8JZUNKTweKmWyaGDBZYtwSMmnvuXRKcEMzt0WmwdllE1nclkgsyUaIUM4ZNmKihfbcDjbCpPc85rT3QG1677ltb5UlPf+e932e7/f5vu/zPO8jfMA/+YDjZ4rA/1vBKQWmFBgWAXOnex0Bu4FPAf8Evu3b1vOFgnTZHKHa1LEVgZTtEoLv9NkLfpMjs03hfMa2VucjcdkQSKTdVkGq/ebk2ghswjmxSMh2+Lb10cufgOO9AHRk7OSTw8Gajqu+beUN9GWjg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Jgv0cLtmyhtSAMK7sA70dd9uuDmf7xgC7maE7dEd+J8QyF3iQV8i+/3m5O3jrgOJtq4viWG8OJmX9mIRaz36CcrKHxLITSB0t283XGxbxqdAmJfLeQfY5dvWuslQYO72k1Xnqt5/CA2+CzId9ALIId+2wvwf+8W3Eo7bA1T4tmXGWhvDgrrUkeqAikbEuF/hk8CbKnJQVJtGa9fHp4Dj/gMYnMmI6tp879gx4A6r7Vwp18YAWTPYjsBJgXTV+dNPnKus2wuyZGDaFQvjeqDIZ14FEk7YWLFUIWwX7hKkPJALKwpNFQoRCXsoUdaANjLUInSKIXsGtGLPO/ZVmZqUt1pFnxKRx/qakw8XG5RRCSRS7mABi/Jv7sGyY+R7IM5JTXvXx4MBY6UIYdtxF1AO+iJq7PFbks9G+4e9B67FYEncK26433wETolQN7wfMR33JSAcMBV8hNc4b9+uol9G9VZgSc7ZKcIBQJZfhK+1kcSjFxno477dEE46iv5GJWA67pHQgoGs6bWThyJrpuN1g14VXbLa9u6PZIPsUgkGbhQxblDkNtArh9ZLN8JvA9U/XlE9fX/P6tnvjYYqehOHE44+27qzaOS5hXkUOL5FRIZaZeUVhDOonkWkH9gAVAJngekjHB5V0b2GUbGvr2newUJgctPnaCrxkm9bq8YKfjBM+TaZjnu3CMtVWQwsC1PppbVyLhfpEwodUPbsQFnl0bNNc+J7pJFzoZjxTByp2DowaGDrgfLaurmLVINz06undXevnXf+Yms95GEckzn+hgZPFzM+LESiOAJ5LAw9cIL1IPcAM3JHrgfhLdDDiswSdDHIoksm9C8Ce3RAnvI3WWfiIhz3f0IEIuOJ9rdnGEFwp6p+BeQaoA50JoRHjT6gV5VODXh+tCwUB3LSFJiI41LtLYkCpQIzHjtTBMYTtVLumVKglNEcj63/AIrz7E/FBbRAAAAAAElFTkSuQmCC\\n\";\n/* harmony default export */ __webpack_exports__[\"default\"] = (logo);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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MrSjdwSkZ6b1pqeFRCeXAyRG93YUdEcmdmTGF1cm1MVklOejA2dW5kWGV2blhmK1ltczk1R0Vja3puK2hnWlBGek0rTEVTaU9BSjVMQXc5Y0lMMUlQY0FNM0pIcmdmaExkRERpc3dTZERISW9rc205QzhDZTNSQW52STNXV2ZpSWh6M2YwSUVJdU9KOXJkbkdFRndwNnArQmVRYW9BNTBKb1JIalQ2Z1Y1Vk9EWGgrdEN3VUIzTFNGSmlJNDFMdExZa0NwUUl6SGp0VEJNWVR0Vkx1bVZLZ2xORWNqNjMvQUlyejdFL0ZCYlJBQUFBQUFFbEZUa1N1UW1DQ1xuYFxuZXhwb3J0IGRlZmF1bHQgbG9nb1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/icons/logo.js\n");
- /***/ }),
- /***/ "./modules/icons/refresh.js":
- /*!**********************************!*\
- !*** ./modules/icons/refresh.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-06-06 14:18:00\n */\nvar refresh = \"\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n<svg width=\\\"50px\\\" height=\\\"50px\\\" viewBox=\\\"0 0 50 50\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" xmlns:sketch=\\\"http://www.bohemiancoding.com/sketch/ns\\\">\\n <!-- Generator: Sketch 3.4.3 (16044) - http://www.bohemiancoding.com/sketch -->\\n <title>refresh</title>\\n <path d=\\\"M48.2758621,0 C47.2844828,0 46.5086207,0.775193846 46.5086207,1.76571923 L46.5086207,12.2308355 C42.0689655,4.78036173 34.0086207,0 25,0 C11.2068965,0 0,11.1972438 0,25.0215332 C0,38.8458226 11.2068965,50 25,50 C38.7931035,50 50,38.8027562 50,25.0215332 C50,24.0310078 49.2241379,23.2558139 48.2327587,23.2558139 C47.2413793,23.2558139 46.4655172,24.0310078 46.4655172,25.0215332 C46.4655172,36.8647717 36.8103448,46.5116279 24.9568965,46.5116279 C13.1034483,46.5116279 3.49137933,36.8217054 3.49137933,24.9784668 C3.49137933,13.1352283 13.1465517,3.48837212 25,3.48837212 C33.4913793,3.48837212 41.0775862,8.44099913 44.5258621,16.0206718 L32.1551724,16.0206718 C31.1637931,16.0206718 30.3879311,16.7958657 30.3879311,17.7863911 C30.3879311,18.7769164 31.1637931,19.5521103 32.1551724,19.5521103 L48.2327587,19.5521103 C49.2241379,19.5521103 50,18.7769164 50,17.7863911 L50,1.72265288 C50,0.775193846 49.2241379,0 48.2758621,0 L48.2758621,0 L48.2758621,0 Z\\\" id=\\\"Shape\\\"></path>\\n</svg>\\n\";\n/* harmony default export */ __webpack_exports__[\"default\"] = (refresh);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ljb25zL3JlZnJlc2guanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2ljb25zL3JlZnJlc2guanM/N2I5YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wNi0wNiAxNDoxODowMFxuICovXG5cbmNvbnN0IHJlZnJlc2ggPSBgXG48P3htbCB2ZXJzaW9uPVwiMS4wXCIgZW5jb2Rpbmc9XCJVVEYtOFwiIHN0YW5kYWxvbmU9XCJub1wiPz5cbjxzdmcgd2lkdGg9XCI1MHB4XCIgaGVpZ2h0PVwiNTBweFwiIHZpZXdCb3g9XCIwIDAgNTAgNTBcIiB2ZXJzaW9uPVwiM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OTc4NDY2OCBDMy40OTEzNzkzMywxMy4xMzUyMjgzIDEzLjE0NjU1MTcsMy40ODgzNzIxMiAyNSwzLjQ4ODM3MjEyIEMzMy40OTEzNzkzLDMuNDg4MzcyMTIgNDEuMDc3NTg2Miw4LjQ0MDk5OTEzIDQ0LjUyNTg2MjEsMTYuMDIwNjcxOCBMMzIuMTU1MTcyNCwxNi4wMjA2NzE4IEMzMS4xNjM3OTMxLDE2LjAyMDY3MTggMzAuMzg3OTMxMSwxNi43OTU4NjU3IDMwLjM4NzkzMTEsMTcuNzg2MzkxMSBDMzAuMzg3OTMxMSwxOC43NzY5MTY0IDMxLjE2Mzc5MzEsMTkuNTUyMTEwMyAzMi4xNTUxNzI0LDE5LjU1MjExMDMgTDQ4LjIzMjc1ODcsMTkuNTUyMTEwMyBDNDkuMjI0MTM3OSwxOS41NTIxMTAzIDUwLDE4Ljc3NjkxNjQgNTAsMTcuNzg2MzkxMSBMNTAsMS43MjI2NTI4OCBDNTAsMC43NzUxOTM4NDYgNDkuMjI0MTM3OSwwIDQ4LjI3NTg2MjEsMCBMNDguMjc1ODYyMSwwIEw0OC4yNzU4NjIxLDAgWlwiIGlkPVwiU2hhcGVcIj48L3BhdGg+XG48L3N2Zz5cbmBcblxuZXhwb3J0IGRlZmF1bHQgcmVmcmVzaFxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFTQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/icons/refresh.js\n");
- /***/ }),
- /***/ "./modules/icons/splitter.js":
- /*!***********************************!*\
- !*** ./modules/icons/splitter.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-06-06 14:18:00\n */\nvar splitter = \"\\n<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\"?>\\n<svg width=\\\"19px\\\" height=\\\"28px\\\" viewBox=\\\"0 0 19 28\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\">\\n <path d=\\\"M0.6551724,2.3448276 L0.6551724,25.6551724 C0.6551724,26.6454761 1.4579722,27.4482759 2.4482759,27.4482759 C3.4385796,27.4482759 4.2413793,26.6454761 4.2413793,25.6551724 L4.2413793,2.3448276 C4.2413793,1.3545239 3.4385796,0.5517241 2.4482759,0.5517241 C1.4579722,0.5517241 0.6551724,1.3545239 0.6551724,2.3448276 L0.6551724,2.3448276 Z M7.6551724,2.3448276 L7.6551724,25.6551724 C7.6551724,26.6454761 8.4579722,27.4482759 9.4482759,27.4482759 C10.4385796,27.4482759 11.2413793,26.6454761 11.2413793,25.6551724 L11.2413793,2.3448276 C11.2413793,1.3545239 10.4385796,0.5517241 9.4482759,0.5517241 C8.4579722,0.5517241 7.6551724,1.3545239 7.6551724,2.3448276 L7.6551724,2.3448276 Z M14.6551724,2.3448276 L14.6551724,25.6551724 C14.6551724,26.6454761 15.4579722,27.4482759 16.4482759,27.4482759 C17.4385796,27.4482759 18.2413793,26.6454761 18.2413793,25.6551724 L18.2413793,2.3448276 C18.2413793,1.3545239 17.4385796,0.5517241 16.4482759,0.5517241 C15.4579722,0.5517241 14.6551724,1.3545239 14.6551724,2.3448276 L14.6551724,2.3448276 Z\\\" id=\\\"splitter\\\"></path>\\n</svg>\\n\";\n/* harmony default export */ __webpack_exports__[\"default\"] = (splitter);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ljb25zL3NwbGl0dGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9pY29ucy9zcGxpdHRlci5qcz9hMGQ4Il0sInNvdXJjZX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ImageryLayerFactory.js":
- /*!************************************************!*\
- !*** ./modules/imagery/ImageryLayerFactory.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _ImageryType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ImageryType */ \"./modules/imagery/ImageryType.js\");\n/* harmony import */ var _provider_AmapImageryProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./provider/AmapImageryProvider */ \"./modules/imagery/provider/AmapImageryProvider.js\");\n/* harmony import */ var _provider_BaiduImageryProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./provider/BaiduImageryProvider */ \"./modules/imagery/provider/BaiduImageryProvider.js\");\n/* harmony import */ var _provider_GoogleImageryProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./provider/GoogleImageryProvider */ \"./modules/imagery/provider/GoogleImageryProvider.js\");\n/* harmony import */ var _provider_TdtImageryProvider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./provider/TdtImageryProvider */ \"./modules/imagery/provider/TdtImageryProvider.js\");\n/* harmony import */ var _provider_TencentImageryProvider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./provider/TencentImageryProvider */ \"./modules/imagery/provider/TencentImageryProvider.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-21 15:54:56\n */\n\n\n\n\n\n\n\n\nvar ImageryLayerFactory = /*#__PURE__*/function () {\n function ImageryLayerFactory() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ImageryLayerFactory);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ImageryLayerFactory, null, [{\n key: \"createAmapImageryLayer\",\n value:\n /**\n * Create amap image layer\n * @param options\n * @returns {AmapImageryProvider}\n */\n function createAmapImageryLayer(options) {\n return new _provider_AmapImageryProvider__WEBPACK_IMPORTED_MODULE_4__[\"default\"](options);\n }\n /**\n * Create baidu image layer\n * @param options\n * @returns {BaiduImageryProvider}\n */\n\n }, {\n key: \"createBaiduImageryLayer\",\n value: function createBaiduImageryLayer(options) {\n return new _provider_BaiduImageryProvider__WEBPACK_IMPORTED_MODULE_5__[\"default\"](options);\n }\n /**\n * Create google image layer\n * @param options\n * @returns {GoogleImageryProvider}\n */\n\n }, {\n key: \"createGoogleImageryLayer\",\n value: function createGoogleImageryLayer(options) {\n return new _provider_GoogleImageryProvider__WEBPACK_IMPORTED_MODULE_6__[\"default\"](options);\n }\n /**\n * Create tdt image layer\n * @param options\n * @returns {TdtImageryProvider}\n */\n\n }, {\n key: \"createTdtImageryLayer\",\n value: function createTdtImageryLayer(options) {\n return new _provider_TdtImageryProvider__WEBPACK_IMPORTED_MODULE_7__[\"default\"](options);\n }\n /**\n * Create tencent image layer\n * @param options\n * @returns {TencentImageryProvider}\n */\n\n }, {\n key: \"createTencentImageryLayer\",\n value: function createTencentImageryLayer(options) {\n return new _provider_TencentImageryProvider__WEBPACK_IMPORTED_MODULE_8__[\"default\"](options);\n }\n /**\n * Create arcgis image layer\n * @param options\n * @returns {module:cesium.ArcGisMapServerImageryProvider}\n */\n\n }, {\n key: \"createArcGisImageryLayer\",\n value: function createArcGisImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ArcGisMapServerImageryProvider(options);\n }\n /**\n * Create single tile image layer\n * @param options\n * @returns {module:cesium.SingleTileImageryProvider}\n */\n\n }, {\n key: \"createSingleTileImageryLayer\",\n value: function createSingleTileImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SingleTileImageryProvider(options);\n }\n /**\n * Create WMS image layer\n * @param options\n * @returns {module:cesium.WebMapServiceImageryProvider}\n */\n\n }, {\n key: \"createWMSImageryLayer\",\n value: function createWMSImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].WebMapServiceImageryProvider(options);\n }\n /**\n * Create WMTS image layer\n * @param options\n * @returns {module:cesium.WebMapTileServiceImageryProvider}\n */\n\n }, {\n key: \"createWMTSImageryLayer\",\n value: function createWMTSImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].WebMapTileServiceImageryProvider(options);\n }\n /**\n * Create xyz image layer\n * @param options\n * @returns {module:cesium.UrlTemplateImageryProvider}\n */\n\n }, {\n key: \"createXYZImageryLayer\",\n value: function createXYZImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].UrlTemplateImageryProvider(options);\n }\n /**\n * Create coord image layer\n * @param options\n * @returns {module:cesium.TileCoordinatesImageryProvider}\n */\n\n }, {\n key: \"createCoordImageryLayer\",\n value: function createCoordImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].TileCoordinatesImageryProvider(options);\n }\n /**\n * Create grid image layer\n * @param options\n * @returns {module:cesium.GridImageryProvider}\n */\n\n }, {\n key: \"createGridImageryLayer\",\n value: function createGridImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].GridImageryProvider(options);\n }\n /**\n * Create mapbox image layer\n * @param options\n * @returns {module:cesium.MapboxImageryProvider}\n */\n\n }, {\n key: \"createMapboxImageryLayer\",\n value: function createMapboxImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].MapboxImageryProvider(options);\n }\n /**\n * Create mapbox style image layer\n * @param options\n * @returns {module:cesium.MapboxStyleImageryProvider}\n */\n\n }, {\n key: \"createMapboxStyleImageryLayer\",\n value: function createMapboxStyleImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].MapboxStyleImageryProvider(options);\n }\n /**\n * Create TMS image layer\n * @param options\n * @returns {module:cesium.TileMapServiceImageryProvider}\n */\n\n }, {\n key: \"createTMSImageryLayer\",\n value: function createTMSImageryLayer(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].TileMapServiceImageryProvider(options);\n }\n /**\n * Create Imagery Layer\n * @param type\n * @param options\n * @returns {any}\n */\n\n }, {\n key: \"createImageryLayer\",\n value: function createImageryLayer(type, options) {\n var imageryLayer = undefined;\n\n switch (type) {\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].AMAP:\n imageryLayer = this.createAmapImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].BAIDU:\n imageryLayer = this.createBaiduImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].GOOGLE:\n imageryLayer = this.createGoogleImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].TDT:\n imageryLayer = this.createTdtImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].TENCENT:\n imageryLayer = this.createTencentImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ARCGIS:\n imageryLayer = this.createArcGisImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].SINGLE_TILE:\n imageryLayer = this.createSingleTileImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].WMS:\n imageryLayer = this.createWMSImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].WMTS:\n imageryLayer = this.createWMTSImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].XYZ:\n imageryLayer = this.createXYZImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].COORD:\n imageryLayer = this.createCoordImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].GRID:\n imageryLayer = this.createGridImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].MAPBOX:\n imageryLayer = this.createMapboxImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].MAPBOX_STYLE:\n imageryLayer = this.createMapboxStyleImageryLayer(options);\n break;\n\n case _ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].TMS:\n imageryLayer = this.createTMSImageryLayer(options);\n break;\n\n default:\n break;\n }\n\n return imageryLayer;\n }\n }]);\n\n return ImageryLayerFactory;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ImageryLayerFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ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QUFDQTtBQUNBO0FBQUE7QUFDQTtBQS9DQTtBQUNBO0FBZ0RBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/imagery/ImageryLayerFactory.js\n");
- /***/ }),
- /***/ "./modules/imagery/ImageryType.js":
- /*!****************************************!*\
- !*** ./modules/imagery/ImageryType.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-05-10 08:15:36\n */\nvar ImageryType = {\n ARCGIS: 'arcgis',\n SINGLE_TILE: 'single_tile',\n WMS: 'wms',\n WMTS: 'wmts',\n XYZ: 'xyz',\n COORD: 'coord',\n GRID: 'grid',\n MAPBOX: 'mapbox',\n MAPBOX_STYLE: 'mapbox_style',\n TMS: 'tms'\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ImageryType);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvSW1hZ2VyeVR5cGUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2ltYWdlcnkvSW1hZ2VyeVR5cGUuanM/MjNlYSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wNS0xMCAwODoxNTozNlxuICovXG5cbmxldCBJbWFnZXJ5VHlwZSA9IHtcbiAgQVJDR0lTOiAnYXJjZ2lzJyxcbiAgU0lOR0xFX1RJTEU6ICdzaW5nbGVfdGlsZScsXG4gIFdNUzogJ3dtcycsXG4gIFdNVFM6ICd3bXRzJyxcbiAgWFlaOiAneHl6JyxcbiAgQ09PUkQ6ICdjb29yZCcsXG4gIEdSSUQ6ICdncmlkJyxcbiAgTUFQQk9YOiAnbWFwYm94JyxcbiAgTUFQQk9YX1NUWUxFOiAnbWFwYm94X3N0eWxlJyxcbiAgVE1TOiAndG1zJ1xufVxuXG5leHBvcnQgZGVmYXVsdCBJbWFnZXJ5VHlwZVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVZBO0FBYUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/imagery/ImageryType.js\n");
- /***/ }),
- /***/ "./modules/imagery/index.js":
- /*!**********************************!*\
- !*** ./modules/imagery/index.js ***!
- \**********************************/
- /*! exports provided: ImageryType, ImageryLayerFactory */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ImageryType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ImageryType */ \"./modules/imagery/ImageryType.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ImageryType\", function() { return _ImageryType__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _ImageryLayerFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ImageryLayerFactory */ \"./modules/imagery/ImageryLayerFactory.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ImageryLayerFactory\", function() { return _ImageryLayerFactory__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2021-03-14 00:31:46\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2ltYWdlcnkvaW5kZXguanM/YjVlNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMy0xNCAwMDozMTo0NlxuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgSW1hZ2VyeVR5cGUgfSBmcm9tICcuL0ltYWdlcnlUeXBlJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBJbWFnZXJ5TGF5ZXJGYWN0b3J5IH0gZnJvbSAnLi9JbWFnZXJ5TGF5ZXJGYWN0b3J5J1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/imagery/index.js\n");
- /***/ }),
- /***/ "./modules/imagery/projection/BaiduMercatorProjection.js":
- /*!***************************************************************!*\
- !*** ./modules/imagery/projection/BaiduMercatorProjection.js ***!
- \***************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-01-30 22:41:41\n */\nvar EARTH_RADIUS = 6370996.81;\nvar MC_BAND = [12890594.86, 8362377.87, 5591021, 3481989.83, 1678043.12, 0];\nvar LL_BAND = [75, 60, 45, 30, 15, 0];\nvar MC2LL = [[1.410526172116255e-8, 8.98305509648872e-6, -1.9939833816331, 2.009824383106796e2, -1.872403703815547e2, 91.6087516669843, -23.38765649603339, 2.57121317296198, -0.03801003308653, 1.73379812e7], [-7.435856389565537e-9, 8.983055097726239e-6, -0.78625201886289, 96.32687599759846, -1.85204757529826, -59.36935905485877, 47.40033549296737, -16.50741931063887, 2.28786674699375, 1.026014486e7], [-3.030883460898826e-8, 8.98305509983578e-6, 0.30071316287616, 59.74293618442277, 7.357984074871, -25.38371002664745, 13.45380521110908, -3.29883767235584, 0.32710905363475, 6.85681737e6], [-1.981981304930552e-8, 8.983055099779535e-6, 0.03278182852591, 40.31678527705744, 0.65659298677277, -4.44255534477492, 0.85341911805263, 0.12923347998204, -0.04625736007561, 4.48277706e6], [3.09191371068437e-9, 8.983055096812155e-6, 0.00006995724062, 23.10934304144901, -0.00023663490511, -0.6321817810242, -0.00663494467273, 0.03430082397953, -0.00466043876332, 2.5551644e6], [2.890871144776878e-9, 8.983055095805407e-6, -0.00000003068298, 7.47137025468032, -0.00000353937994, -0.02145144861037, -0.00001234426596, 0.00010322952773, -0.00000323890364, 8.260885e5]];\nvar LL2MC = [[-0.0015702102444, 1.113207020616939e5, 1.704480524535203e15, -1.033898737604234e16, 2.611266785660388e16, -3.51496691766537e16, 2.659570071840392e16, -1.072501245418824e16, 1.800819912950474e15, 82.5], [8.277824516172526e-4, 1.113207020463578e5, 6.477955746671608e8, -4.082003173641316e9, 1.077490566351142e10, -1.517187553151559e10, 1.205306533862167e10, -5.124939663577472e9, 9.133119359512032e8, 67.5], [0.00337398766765, 1.113207020202162e5, 4.481351045890365e6, -2.339375119931662e7, 7.968221547186455e7, -1.159649932797253e8, 9.723671115602145e7, -4.366194633752821e7, 8.477230501135234e6, 52.5], [0.00220636496208, 1.113207020209128e5, 5.175186112841131e4, 3.796837749470245e6, 9.920137397791013e5, -1.22195221711287e6, 1.340652697009075e6, -6.209436990984312e5, 1.444169293806241e5, 37.5], [-3.441963504368392e-4, 1.113207020576856e5, 2.782353980772752e2, 2.485758690035394e6, 6.070750963243378e3, 5.482118345352118e4, 9.540606633304236e3, -2.71055326746645e3, 1.405483844121726e3, 22.5], [-3.218135878613132e-4, 1.113207020701615e5, 0.00369383431289, 8.237256402795718e5, 0.46104986909093, 2.351343141331292e3, 1.58060784298199, 8.77738589078284, 0.37238884252424, 7.45]];\n\nvar BaiduMercatorProjection = /*#__PURE__*/function () {\n function BaiduMercatorProjection() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BaiduMercatorProjection);\n\n this.isWgs84 = false;\n }\n /**\n *\n * @param point1\n * @param point2\n * @returns {number}\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BaiduMercatorProjection, [{\n key: \"getDistanceByMC\",\n value: function getDistanceByMC(point1, point2) {\n if (!point1 || !point2) {\n return 0;\n }\n\n point1 = this.convertMC2LL(point1);\n\n if (!point1) {\n return 0;\n }\n\n var x1 = this.toRadians(point1['lng']);\n var y1 = this.toRadians(point1['lat']);\n point2 = this.convertMC2LL(point2);\n\n if (!point2) {\n return 0;\n }\n\n var x2 = this.toRadians(point2['lng']);\n var y2 = this.toRadians(point2['lat']);\n return this.getDistance(x1, x2, y1, y2);\n }\n /**\n * Calculate the distance between two points according to the latitude and longitude coordinates\n * @param point1\n * @param point2\n * @returns {number|*}\n */\n\n }, {\n key: \"getDistanceByLL\",\n value: function getDistanceByLL(point1, point2) {\n if (!point1 || !point2) {\n return 0;\n }\n\n point1['lng'] = this.getLoop(point1['lng'], -180, 180);\n point1['lat'] = this.getRange(point1['lat'], -74, 74);\n point2['lng'] = this.getLoop(point2['lng'], -180, 180);\n point2['lat'] = this.getRange(point2['lat'], -74, 74);\n var x1 = this.toRadians(point1['lng']);\n var y1 = this.toRadians(point1['lat']);\n var x2 = this.toRadians(point2['lng']);\n var y2 = this.toRadians(point2['lat']);\n return this.getDistance(x1, x2, y1, y2);\n }\n /**\n * The plane cartesian coordinates are converted to latitude and longitude coordinates\n * @param point\n * @returns {Point|{lng: number, lat: number}}\n */\n\n }, {\n key: \"convertMC2LL\",\n value: function convertMC2LL(point) {\n if (!point) {\n return {\n lng: 0,\n lat: 0\n };\n }\n\n var lnglat = {};\n\n if (this.isWgs84) {\n lnglat.lng = point.lng / 20037508.34 * 180;\n var mmy = point.lat / 20037508.34 * 180;\n lnglat.lat = 180 / Math.PI * (2 * Math.atan(Math.exp(mmy * Math.PI / 180)) - Math.PI / 2);\n return {\n lng: lnglat['lng'].toFixed(6),\n lat: lnglat['lat'].toFixed(6)\n };\n }\n\n var temp = {\n lng: Math.abs(point['lng']),\n lat: Math.abs(point['lat'])\n };\n var factor = undefined;\n\n for (var i = 0; i < MC_BAND.length; i++) {\n if (temp['lat'] >= MC_BAND[i]) {\n factor = MC2LL[i];\n break;\n }\n }\n\n lnglat = this.convertor(point, factor);\n return {\n lng: lnglat['lng'].toFixed(6),\n lat: lnglat['lat'].toFixed(6)\n };\n }\n /**\n * The latitude and longitude coordinates are converted to plane cartesian coordinates\n * @param point\n * @returns {{lng: number, lat: number}|*}\n */\n\n }, {\n key: \"convertLL2MC\",\n value: function convertLL2MC(point) {\n if (!point) {\n return {\n lng: 0,\n lat: 0\n };\n }\n\n if (point['lng'] > 180 || point['lng'] < -180 || point['lat'] > 90 || point['lat'] < -90) {\n return point;\n }\n\n if (this.isWgs84) {\n var mercator = {};\n var earthRad = 6378137.0;\n mercator.lng = point.lng * Math.PI / 180 * earthRad;\n var a = point.lat * Math.PI / 180;\n mercator.lat = earthRad / 2 * Math.log((1.0 + Math.sin(a)) / (1.0 - Math.sin(a)));\n return {\n lng: parseFloat(mercator['lng'].toFixed(2)),\n lat: parseFloat(mercator['lat'].toFixed(2))\n };\n }\n\n point['lng'] = this.getLoop(point['lng'], -180, 180);\n point['lat'] = this.getRange(point['lat'], -74, 74);\n var temp = {\n lng: point['lng'],\n lat: point['lat']\n };\n var factor = undefined;\n\n for (var i = 0; i < LL_BAND.length; i++) {\n if (temp['lat'] >= LL_BAND[i]) {\n factor = LL2MC[i];\n break;\n }\n }\n\n if (!factor) {\n for (var _i = 0; _i < LL_BAND.length; _i++) {\n if (temp['lat'] <= -LL_BAND[_i]) {\n factor = LL2MC[_i];\n break;\n }\n }\n }\n\n var mc = this.convertor(point, factor);\n return {\n lng: parseFloat(mc['lng'].toFixed(2)),\n lat: parseFloat(mc['lat'].toFixed(2))\n };\n }\n /**\n *\n * @param fromPoint\n * @param factor\n * @returns {{lng: *, lat: *}}\n */\n\n }, {\n key: \"convertor\",\n value: function convertor(fromPoint, factor) {\n if (!fromPoint || !factor) {\n return {\n lng: 0,\n lat: 0\n };\n }\n\n var x = factor[0] + factor[1] * Math.abs(fromPoint['lng']);\n var temp = Math.abs(fromPoint['lat']) / factor[9];\n var y = factor[2] + factor[3] * temp + factor[4] * temp * temp + factor[5] * temp * temp * temp + factor[6] * temp * temp * temp * temp + factor[7] * temp * temp * temp * temp * temp + factor[8] * temp * temp * temp * temp * temp * temp;\n x *= fromPoint['lng'] < 0 ? -1 : 1;\n y *= fromPoint['lat'] < 0 ? -1 : 1;\n return {\n lng: x,\n lat: y\n };\n }\n /**\n *\n * @param x1\n * @param x2\n * @param y1\n * @param y2\n * @returns {number}\n */\n\n }, {\n key: \"getDistance\",\n value: function getDistance(x1, x2, y1, y2) {\n return EARTH_RADIUS * Math.acos(Math.sin(y1) * Math.sin(y2) + Math.cos(y1) * Math.cos(y2) * Math.cos(x2 - x1));\n }\n /**\n *\n * @param deg\n * @returns {number}\n */\n\n }, {\n key: \"toRadians\",\n value: function toRadians(deg) {\n return Math.PI * deg / 180;\n }\n /**\n *\n * @param rad\n * @returns {number}\n */\n\n }, {\n key: \"toDegrees\",\n value: function toDegrees(rad) {\n return 180 * rad / Math.PI;\n }\n /**\n *\n * @param v\n * @param a\n * @param b\n * @returns {number}\n */\n\n }, {\n key: \"getRange\",\n value: function getRange(v, a, b) {\n if (a != null) {\n v = Math.max(v, a);\n }\n\n if (b != null) {\n v = Math.min(v, b);\n }\n\n return v;\n }\n /**\n *\n * @param v\n * @param a\n * @param b\n * @returns {*}\n */\n\n }, {\n key: \"getLoop\",\n value: function getLoop(v, a, b) {\n while (v > b) {\n v -= b - a;\n }\n\n while (v < a) {\n v += b - a;\n }\n\n return v;\n }\n /**\n *\n * @param point\n * @returns {{lng: number, lat: number}|*}\n */\n\n }, {\n key: \"lngLatToMercator\",\n value: function lngLatToMercator(point) {\n return this.convertLL2MC(point);\n }\n /**\n *\n * @param point\n * @returns {{x: (number|*), y: (number|*)}}\n */\n\n }, {\n key: \"lngLatToPoint\",\n value: function lngLatToPoint(point) {\n var mercator = this.convertLL2MC(point);\n return {\n x: mercator['lng'],\n y: mercator['lat']\n };\n }\n /**\n * WebMercator transforms to latitude and longitude\n * @param point\n * @returns {Point|{lng: number, lat: number}}\n */\n\n }, {\n key: \"mercatorToLngLat\",\n value: function mercatorToLngLat(point) {\n return this.convertMC2LL(point);\n }\n /**\n *\n * @param point\n * @returns {Point|{lng: number, lat: number}}\n */\n\n }, {\n key: \"pointToLngLat\",\n value: function pointToLngLat(point) {\n var mercator = {\n lng: point.x,\n lat: point.y\n };\n return this.convertMC2LL(mercator);\n }\n /**\n * Latitude and longitude coordinates transforms to pixel coordinates\n * @param point\n * @param zoom\n * @param mapCenter\n * @param mapSize\n * @returns {{x: number, y: number}}\n */\n\n }, {\n key: \"pointToPixel\",\n value: function pointToPixel(point, zoom, mapCenter, mapSize) {\n if (!point) {\n return {\n x: 0,\n y: 0\n };\n }\n\n point = this.lngLatToMercator(point);\n var zoomUnits = this.getZoomUnits(zoom);\n var x = Math.round((point['lng'] - mapCenter['lng']) / zoomUnits + mapSize.width / 2);\n var y = Math.round((mapCenter['lat'] - point['lat']) / zoomUnits + mapSize.height / 2);\n return {\n x: x,\n y: y\n };\n }\n /**\n * Pixel coordinates transforms to latitude and longitude coordinates\n * @param pixel\n * @param zoom\n * @param mapCenter\n * @param mapSize\n * @returns {Point|{lng: number, lat: number}}\n */\n\n }, {\n key: \"pixelToPoint\",\n value: function pixelToPoint(pixel, zoom, mapCenter, mapSize) {\n if (!pixel) {\n return {\n lng: 0,\n lat: 0\n };\n }\n\n var zoomUnits = this.getZoomUnits(zoom);\n var lng = mapCenter['lng'] + zoomUnits * (pixel.x - mapSize.width / 2);\n var lat = mapCenter['lat'] - zoomUnits * (pixel.y - mapSize.height / 2);\n var point = {\n lng: lng,\n lat: lat\n };\n return this.mercatorToLngLat(point);\n }\n /**\n *\n * @param zoom\n * @returns {number}\n */\n\n }, {\n key: \"getZoomUnits\",\n value: function getZoomUnits(zoom) {\n return Math.pow(2, 18 - zoom);\n }\n }]);\n\n return BaiduMercatorProjection;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (BaiduMercatorProjection);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvcHJvamVjdGlvbi9CYWlkdU1lcmNhdG9yUHJvamVjdGlvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvaW1hZ2VyeS9wcm9qZWN0aW9uL0JhaWR1TWVyY2F0b3JQcm9qZWN0aW9uLmpzP2Y5ZGYiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDEtMzAgMjI6NDE6NDFcbiAqL1xuXG5jb25zdCBFQVJUSF9SQURJVVMgPSA2M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tBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/imagery/projection/BaiduMercatorProjection.js\n");
- /***/ }),
- /***/ "./modules/imagery/provider/AmapImageryProvider.js":
- /*!*********************************************************!*\
- !*** ./modules/imagery/provider/AmapImageryProvider.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _ImageryType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ImageryType */ \"./modules/imagery/ImageryType.js\");\n/* harmony import */ var _tiling_scheme_AmapMercatorTilingScheme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tiling-scheme/AmapMercatorTilingScheme */ \"./modules/imagery/tiling-scheme/AmapMercatorTilingScheme.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-15 20:31:28\n */\n\n\n\nvar TILE_URL = {\n img: '//webst{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',\n vec: '//webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',\n cia: '//webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'\n};\n\nvar AmapImageryProvider = /*#__PURE__*/function (_Cesium$UrlTemplateIm) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AmapImageryProvider, _Cesium$UrlTemplateIm);\n\n var _super = _createSuper(AmapImageryProvider);\n\n function AmapImageryProvider() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AmapImageryProvider);\n\n options['url'] = options.url || [options.protocol || '', TILE_URL[options.style] || TILE_URL['vec']].join('');\n options['subdomains'] = options.subdomains || ['01', '02', '03', '04'];\n\n if (options.crs === 'WGS84') {\n options['tilingScheme'] = new _tiling_scheme_AmapMercatorTilingScheme__WEBPACK_IMPORTED_MODULE_7__[\"default\"]();\n }\n\n return _super.call(this, options);\n }\n\n return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(AmapImageryProvider);\n}(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].UrlTemplateImageryProvider);\n\n_ImageryType__WEBPACK_IMPORTED_MODULE_6__[\"default\"].AMAP = 'amap';\n/* harmony default export */ __webpack_exports__[\"default\"] = (AmapImageryProvider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvcHJvdmlkZXIvQW1hcEltYWdlcnlQcm92aWRlci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvaW1hZ2VyeS9wcm92aWRlci9BbWFwSW1hZ2VyeVByb3ZpZGVyLmpzP2IwYzkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDEtMTUgMjA6MzE6MjhcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgSW1hZ2VyeVR5cGUgZnJvbSAnLi4vSW1hZ2VyeVR5cGUnXG5pbXBvcnQgQW1hcE1lcmNhdG9yVGlsaW5nU2NoZW1lIGZyb20gJy4uL3RpbGluZy1zY2hlbWUvQW1hcE1lcmNhdG9yVGlsaW5nU2NoZW1lJ1xuXG5jb25zdCBUSUxFX1VSTCA9IHtcbiAgaW1nOiAnLy93ZWJzdHtzfS5pcy5hdXRvbmF2aS5jb20vYXBwbWFwdGlsZT9zdHlsZT02Jng9e3h9Jnk9e3l9Jno9e3p9JyxcbiAgdmVjOlxuICAgICcvL3dlYnJke3N9LmlzLmF1dG9uYXZpLmNvbS9hcHBtYXB0aWxlP2xhbmc9emhfY24mc2l6ZT0xJnNjYWxlPTEmc3R5bGU9OCZ4PXt4fSZ5PXt5fSZ6PXt6fScsXG4gIGNpYTpcbiAgICAnLy93ZWJzdHtzfS5pcy5hdX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tBQUNBO0FBZUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/imagery/provider/AmapImageryProvider.js\n");
- /***/ }),
- /***/ "./modules/imagery/provider/BaiduImageryProvider.js":
- /*!**********************************************************!*\
- !*** ./modules/imagery/provider/BaiduImageryProvider.js ***!
- \**********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _ImageryType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ImageryType */ \"./modules/imagery/ImageryType.js\");\n/* harmony import */ var _tiling_scheme_BaiduMercatorTilingScheme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tiling-scheme/BaiduMercatorTilingScheme */ \"./modules/imagery/tiling-scheme/BaiduMercatorTilingScheme.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-15 20:27:27\n */\n\n\n\nvar TILE_URL = {\n img: '//shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46',\n cia: '//online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020',\n custom: '//api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&scale=1&customid={style}',\n traffic: '//its.map.baidu.com:8002/traffic/TrafficTileService?time={time}&label={labelStyle}&v=016&level={z}&x={x}&y={y}&scaler=2',\n vec: '//maponline{s}.bdimg.com/tile/?qt=vtile&x={x}&y={y}&z={z}&styles=pl&scaler=2&udt=&from=jsapi2_0'\n};\n\nvar BaiduImageryProvider = /*#__PURE__*/function () {\n function BaiduImageryProvider() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BaiduImageryProvider);\n\n this._url = options.url || [options.protocol || '', TILE_URL[options.style] || TILE_URL['custom']].join('');\n this._labelStyle = options.labelStyle || 'web2D';\n this._tileWidth = 256;\n this._tileHeight = 256;\n this._maximumLevel = 18;\n this._crs = options.crs || 'BD09';\n\n if (options.crs === 'WGS84') {\n var resolutions = [];\n\n for (var i = 0; i < 19; i++) {\n resolutions[i] = 256 * Math.pow(2, 18 - i);\n }\n\n this._tilingScheme = new _tiling_scheme_BaiduMercatorTilingScheme__WEBPACK_IMPORTED_MODULE_4__[\"default\"]({\n resolutions: resolutions,\n rectangleSouthwestInMeters: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(-20037726.37, -12474104.17),\n rectangleNortheastInMeters: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(20037726.37, 12474104.17)\n });\n } else {\n this._tilingScheme = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].WebMercatorTilingScheme({\n rectangleSouthwestInMeters: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(-33554054, -33746824),\n rectangleNortheastInMeters: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(33554054, 33746824)\n });\n }\n\n this._rectangle = this._tilingScheme.rectangle;\n this._credit = undefined;\n this._token = undefined;\n this._style = options.style || 'normal';\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BaiduImageryProvider, [{\n key: \"url\",\n get: function get() {\n return this._url;\n }\n }, {\n key: \"token\",\n get: function get() {\n return this._token;\n }\n }, {\n key: \"tileWidth\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].DeveloperError('tileWidth must not be called before the imagery provider is ready.');\n }\n\n return this._tileWidth;\n }\n }, {\n key: \"tileHeight\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].DeveloperError('tileHeight must not be called before the imagery provider is ready.');\n }\n\n return this._tileHeight;\n }\n }, {\n key: \"maximumLevel\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].DeveloperError('maximumLevel must not be called before the imagery provider is ready.');\n }\n\n return this._maximumLevel;\n }\n }, {\n key: \"minimumLevel\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].DeveloperError('minimumLevel must not be called before the imagery provider is ready.');\n }\n\n return 0;\n }\n }, {\n key: \"tilingScheme\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].DeveloperError('tilingScheme must not be called before the imagery provider is ready.');\n }\n\n return this._tilingScheme;\n }\n }, {\n key: \"rectangle\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].DeveloperError('rectangle must not be called before the imagery provider is ready.');\n }\n\n return this._rectangle;\n }\n }, {\n key: \"ready\",\n get: function get() {\n return !!this._url;\n }\n }, {\n key: \"credit\",\n get: function get() {\n return this._credit;\n }\n }, {\n key: \"hasAlphaChannel\",\n get: function get() {\n return true;\n }\n }, {\n key: \"getTileCredits\",\n value: function getTileCredits(x, y, level) {}\n /**\n * Request Image\n * @param x\n * @param y\n * @param level\n * @returns {Promise<HTMLImageElement | HTMLCanvasElement>}\n */\n\n }, {\n key: \"requestImage\",\n value: function requestImage(x, y, level) {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].DeveloperError('requestImage must not be called before the imagery provider is ready.');\n }\n\n var xTiles = this._tilingScheme.getNumberOfXTilesAtLevel(level);\n\n var yTiles = this._tilingScheme.getNumberOfYTilesAtLevel(level);\n\n var url = this._url.replace('{z}', level).replace('{s}', String(1)).replace('{style}', this._style).replace('{labelStyle}', this._labelStyle).replace('{time}', String(new Date().getTime()));\n\n if (this._crs === 'WGS84') {\n url = url.replace('{x}', String(x)).replace('{y}', String(-y));\n } else {\n url = url.replace('{x}', String(x - xTiles / 2)).replace('{y}', String(yTiles / 2 - y - 1));\n }\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ImageryProvider.loadImage(this, url);\n }\n }]);\n\n return BaiduImageryProvider;\n}();\n\n_ImageryType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].BAIDU = 'baidu';\n/* harmony default export */ __webpack_exports__[\"default\"] = (BaiduImageryProvider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvcHJvdmlkZXIvQmFpZHVJbWFnZXJ5UHJvdmlkZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9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pack-internal:///./modules/imagery/provider/BaiduImageryProvider.js\n");
- /***/ }),
- /***/ "./modules/imagery/provider/GoogleImageryProvider.js":
- /*!***********************************************************!*\
- !*** ./modules/imagery/provider/GoogleImageryProvider.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _ImageryType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ImageryType */ \"./modules/imagery/ImageryType.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-21 16:06:14\n */\n\n\nvar TILE_URL = {\n img: '//mt{s}.google.cn/vt/lyrs=s&hl=zh-CN&x={x}&y={y}&z={z}&s=Gali',\n vec: '//mt{s}.google.cn/vt/lyrs=m@207000000&hl=zh-CN&gl=CN&src=app&x={x}&y={y}&z={z}&s=Galile',\n ter: '//mt{s}.google.cn/vt/lyrs=t@131,r@227000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&s=Galile'\n};\n\nvar GoogleImageryProvider = /*#__PURE__*/function (_Cesium$UrlTemplateIm) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GoogleImageryProvider, _Cesium$UrlTemplateIm);\n\n var _super = _createSuper(GoogleImageryProvider);\n\n function GoogleImageryProvider() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, GoogleImageryProvider);\n\n options['url'] = options.url || [options.protocol || '', TILE_URL[options.style] || TILE_URL['vec']].join('');\n options['subdomains'] = options.subdomains || ['1', '2', '3'];\n return _super.call(this, options);\n }\n\n return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(GoogleImageryProvider);\n}(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].UrlTemplateImageryProvider);\n\n_ImageryType__WEBPACK_IMPORTED_MODULE_6__[\"default\"].GOOGLE = 'google';\n/* harmony default export */ __webpack_exports__[\"default\"] = (GoogleImageryProvider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvcHJvdmlkZXIvR29vZ2xlSW1hZ2VyeVByb3ZpZGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9pbWFnZXJ5L3Byb3ZpZGVyL0dvb2dsZUltYWdlcnlQcm92aWRlci5qcz80MDJmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiA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xuXG5leHBvcnQgZGVmYXVsdCBHb29nbGVJbWFnZXJ5UHJvdmlkZXJcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUpBO0FBQ0E7QUFPQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFNQTtBQVBBO0FBU0E7QUFDQTs7QUFYQTtBQUNBO0FBWUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/imagery/provider/GoogleImageryProvider.js\n");
- /***/ }),
- /***/ "./modules/imagery/provider/TdtImageryProvider.js":
- /*!********************************************************!*\
- !*** ./modules/imagery/provider/TdtImageryProvider.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _ImageryType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ImageryType */ \"./modules/imagery/ImageryType.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-15 20:31:46\n */\n\n\nvar MAP_URL = '//t{s}.tianditu.gov.cn/DataServer?T={style}_w&x={x}&y={y}&l={z}&tk={key}';\n\nvar TdtImageryProvider = /*#__PURE__*/function (_Cesium$UrlTemplateIm) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TdtImageryProvider, _Cesium$UrlTemplateIm);\n\n var _super = _createSuper(TdtImageryProvider);\n\n function TdtImageryProvider() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TdtImageryProvider);\n\n return _super.call(this, {\n url: [options.protocol || '', MAP_URL.replace(/\\{style\\}/g, options.style || 'vec').replace(/\\{key\\}/g, options.key || '')].join(''),\n subdomains: ['0', '1', '2', '3', '4', '5', '6', '7'],\n tilingScheme: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].WebMercatorTilingScheme(),\n maximumLevel: 18\n });\n }\n\n return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TdtImageryProvider);\n}(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].UrlTemplateImageryProvider);\n\n_ImageryType__WEBPACK_IMPORTED_MODULE_6__[\"default\"].TDT = 'tdt';\n/* harmony default export */ __webpack_exports__[\"default\"] = (TdtImageryProvider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZX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G4gICAgICB0aWxpbmdTY2hlbWU6IG5ldyBDZXNpdW0uV2ViTWVyY2F0b3JUaWxpbmdTY2hlbWUoKSxcbiAgICAgIG1heGltdW1MZXZlbDogMThcbiAgICB9KVxuICB9XG59XG5cbkltYWdlcnlUeXBlLlREVCA9ICd0ZHQnXG5cbmV4cG9ydCBkZWZhdWx0IFRkdEltYWdlcnlQcm92aWRlclxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFFQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFFQTtBQU9BO0FBQ0E7QUFDQTtBQVZBO0FBWUE7QUFDQTs7QUFmQTtBQUNBO0FBZ0JBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/imagery/provider/TdtImageryProvider.js\n");
- /***/ }),
- /***/ "./modules/imagery/provider/TencentImageryProvider.js":
- /*!************************************************************!*\
- !*** ./modules/imagery/provider/TencentImageryProvider.js ***!
- \************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _ImageryType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ImageryType */ \"./modules/imagery/ImageryType.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-21 18:10:47\n */\n\n\nvar TILE_URL = {\n img: '//p{s}.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{reverseY}.jpg?version=400',\n vec: '//rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid={style}&scene=0&version=347'\n};\n\nvar TencentImageryProvider = /*#__PURE__*/function (_Cesium$UrlTemplateIm) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TencentImageryProvider, _Cesium$UrlTemplateIm);\n\n var _super = _createSuper(TencentImageryProvider);\n\n function TencentImageryProvider() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, TencentImageryProvider);\n\n var url = options.url || [options.protocol || '', TILE_URL[options.style] || TILE_URL['vec']].join('');\n var layerStyle;\n\n switch (options.style) {\n case 'cia':\n layerStyle = 2;\n break;\n\n case 'cva':\n layerStyle = 3;\n break;\n\n case 'dark':\n layerStyle = 4;\n break;\n }\n\n options['url'] = url.replace('{style}', layerStyle || 1);\n options['subdomains'] = options.subdomains || ['1', '2', '3'];\n\n if (options.style === 'img') {\n options['customTags'] = {\n sx: function sx(imageryProvider, x, y, level) {\n return x >> 4;\n },\n sy: function sy(imageryProvider, x, y, level) {\n return (1 << level) - y >> 4;\n }\n };\n }\n\n return _super.call(this, options);\n }\n\n return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(TencentImageryProvider);\n}(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].UrlTemplateImageryProvider);\n\n_ImageryType__WEBPACK_IMPORTED_MODULE_6__[\"default\"].TENCENT = 'tencent';\n/* harmony default export */ __webpack_exports__[\"default\"] = (TencentImageryProvider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvcHJvdmlkZXIvVGVuY2VudEltYWdlcnlQcm92aWRlci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvaW1hZ2VyeS9wcm92aWRlci9UZW5jZW50SW1hZ2VyeVByb3ZpZGVyLmpzPzVmZmQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDEtMjEgMTg6MTA6NDdcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgSW1hZ2VyeVR5cGUgZnJvbSAnLi4vSW1hZ2VyeVR5cGUnXG5cbmNvbnN0IFRJTEVfVVJMID0ge1xuICBpbWc6XG4gICAgJy8vcHtzfS5tYXAuZ3RpbWcuY29tL3NhdGVUaWxlcy97en0ve3N4fS97c3l9L3t4fV97cmV2ZXJzZVl9LmpwZz92ZXJzaW9uPTQwMCcsXG4gIHZlYzpcbiAgICAnLy9ydHtzfS5tYXAuZ3RpbWcuY29tL3RpbGU/ej17en0meD17eH0meT17cmV2ZXJzZVl9JnN0eWxlaWQ9e3N0eWxlfSZzY2VuZ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WwpID0+IHtcbiAgICAgICAgICByZXR1cm4gKCgxIDw8IGxldmVsKSAtIHkpID4+IDRcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICBzdXBlcihvcHRpb25zKVxuICB9XG59XG5cbkltYWdlcnlUeXBlLlRFTkNFTlQgPSAndGVuY2VudCdcblxuZXhwb3J0IGRlZmF1bHQgVGVuY2VudEltYWdlcnlQcm92aWRlclxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUhBO0FBQ0E7QUFNQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFNQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBVEE7QUFDQTtBQVVBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFOQTtBQVFBO0FBQ0E7QUEvQkE7QUFnQ0E7QUFDQTs7QUFsQ0E7QUFDQTtBQW1DQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/imagery/provider/TencentImageryProvider.js\n");
- /***/ }),
- /***/ "./modules/imagery/tiling-scheme/AmapMercatorTilingScheme.js":
- /*!*******************************************************************!*\
- !*** ./modules/imagery/tiling-scheme/AmapMercatorTilingScheme.js ***!
- \*******************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-31 22:07:05\n */\n\n\n\nvar AmapMercatorTilingScheme = /*#__PURE__*/function (_Cesium$WebMercatorTi) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AmapMercatorTilingScheme, _Cesium$WebMercatorTi);\n\n var _super = _createSuper(AmapMercatorTilingScheme);\n\n function AmapMercatorTilingScheme(options) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, AmapMercatorTilingScheme);\n\n _this = _super.call(this, options);\n var projection = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].WebMercatorProjection();\n\n _this._projection.project = function (cartographic, result) {\n result = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"CoordTransform\"].WGS84ToGCJ02(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toDegrees(cartographic.longitude), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toDegrees(cartographic.latitude));\n result = projection.project(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartographic(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(result[0]), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(result[1])));\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(result.x, result.y);\n };\n\n _this._projection.unproject = function (cartesian, result) {\n var cartographic = projection.unproject(cartesian);\n result = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"CoordTransform\"].GCJ02ToWGS84(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toDegrees(cartographic.longitude), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toDegrees(cartographic.latitude));\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartographic(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(result[0]), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(result[1]));\n };\n\n return _this;\n }\n\n return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0___default()(AmapMercatorTilingScheme);\n}(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].WebMercatorTilingScheme);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AmapMercatorTilingScheme);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvdGl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FBQ0E7QUFJQTtBQUlBO0FBQ0E7QUEzQkE7QUEyQkE7QUFDQTs7QUE3QkE7QUFDQTtBQThCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/imagery/tiling-scheme/AmapMercatorTilingScheme.js\n");
- /***/ }),
- /***/ "./modules/imagery/tiling-scheme/BaiduMercatorTilingScheme.js":
- /*!********************************************************************!*\
- !*** ./modules/imagery/tiling-scheme/BaiduMercatorTilingScheme.js ***!
- \********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _projection_BaiduMercatorProjection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../projection/BaiduMercatorProjection */ \"./modules/imagery/projection/BaiduMercatorProjection.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-31 19:22:04\n */\n\n\n\n\nvar BaiduMercatorTilingScheme = /*#__PURE__*/function (_Cesium$WebMercatorTi) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BaiduMercatorTilingScheme, _Cesium$WebMercatorTi);\n\n var _super = _createSuper(BaiduMercatorTilingScheme);\n\n function BaiduMercatorTilingScheme(options) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BaiduMercatorTilingScheme);\n\n _this = _super.call(this, options);\n var projection = new _projection_BaiduMercatorProjection__WEBPACK_IMPORTED_MODULE_7__[\"default\"]();\n\n _this._projection.project = function (cartographic, result) {\n result = result || {};\n result = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"CoordTransform\"].WGS84ToGCJ02(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toDegrees(cartographic.longitude), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toDegrees(cartographic.latitude));\n result = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"CoordTransform\"].GCJ02ToBD09(result[0], result[1]);\n result[0] = Math.min(result[0], 180);\n result[0] = Math.max(result[0], -180);\n result[1] = Math.min(result[1], 74.000022);\n result[1] = Math.max(result[1], -71.988531);\n result = projection.lngLatToPoint({\n lng: result[0],\n lat: result[1]\n });\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(result.x, result.y);\n };\n\n _this._projection.unproject = function (cartesian, result) {\n result = result || {};\n result = projection.mercatorToLngLat({\n lng: cartesian.x,\n lat: cartesian.y\n });\n result = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"CoordTransform\"].BD09ToGCJ02(result.lng, result.lat);\n result = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"CoordTransform\"].GCJ02ToWGS84(result[0], result[1]);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartographic(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(result[0]), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(result[1]));\n };\n\n _this.resolutions = options.resolutions || [];\n return _this;\n }\n /**\n *\n * @param x\n * @param y\n * @param level\n * @param result\n * @returns {module:cesium.Rectangle|*}\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BaiduMercatorTilingScheme, [{\n key: \"tileXYToNativeRectangle\",\n value: function tileXYToNativeRectangle(x, y, level, result) {\n var tileWidth = this.resolutions[level];\n var west = x * tileWidth;\n var east = (x + 1) * tileWidth;\n var north = ((y = -y) + 1) * tileWidth;\n var south = y * tileWidth;\n\n if (!_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defined(result)) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Rectangle(west, south, east, north);\n }\n\n result.west = west;\n result.south = south;\n result.east = east;\n result.north = north;\n return result;\n }\n /**\n *\n * @param position\n * @param level\n * @param result\n * @returns {undefined|*}\n */\n\n }, {\n key: \"positionToTileXY\",\n value: function positionToTileXY(position, level, result) {\n var rectangle = this._rectangle;\n\n if (!_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Rectangle.contains(rectangle, position)) {\n return undefined;\n }\n\n var projection = this._projection;\n var webMercatorPosition = projection.project(position);\n\n if (!_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defined(webMercatorPosition)) {\n return undefined;\n }\n\n var tileWidth = this.resolutions[level];\n var xTileCoordinate = Math.floor(webMercatorPosition.x / tileWidth);\n var yTileCoordinate = -Math.floor(webMercatorPosition.y / tileWidth);\n\n if (!_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defined(result)) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(xTileCoordinate, yTileCoordinate);\n }\n\n result.x = xTileCoordinate;\n result.y = yTileCoordinate;\n return result;\n }\n }]);\n\n return BaiduMercatorTilingScheme;\n}(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].WebMercatorTilingScheme);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (BaiduMercatorTilingScheme);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcnkvdGlsaW5nLXNjaGVtZS9CYWlkdU1lcmNhdG9yVGlsaW5nU2NoZW1lLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9pbWFnZXJ5L3RpbGluZy1zY2hlbWUvQmFpZHVNZXJjYXRvclRpbGluZ1NjaGVtZS5qcz83YmFkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTAxLTMxIDE5OjIyOjA0XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgQ29vcmRUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgQmFpZHVNZXJjYXRvclByb2plY3Rpb24gZnJvbSAnLi4vcHJvamVjdGlvbi9CYWlkdU1lcmNhdG9yUHJvamVjdGlvbidcblxuY2xhc3MgQmFpZHVNZ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TtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXpGQTtBQUNBO0FBMkZBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/imagery/tiling-scheme/BaiduMercatorTilingScheme.js\n");
- /***/ }),
- /***/ "./modules/images/chaoxiang_icon.svg":
- /*!*******************************************!*\
- !*** ./modules/images/chaoxiang_icon.svg ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"data:image/svg+xml;base64,PHN2ZyB0PSIxNjY3MjA2Mzg2NjgwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwNTMgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijk2NzciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48cGF0aCBkPSJNODIzLjMyNDU1NSA1NjAuNzgwNzlMNTMzLjgxMjU0OCAzMi41MjA1MjcgMjQyLjcxNDE3NSA1NDkuNjc2MjJsMjgzLjk1OTcyMS03Mi4xNzk3MDZ6IiBmaWxsPSIjN0NCMEYxIiBwLWlkPSI5Njc4Ij48L3BhdGg+PHBhdGggZD0iTTg1NS4wNTE4OTggNTg2LjE2MjY2NUw1MjYuNjczODk2IDQ5NC4xNTMzNjlsLTMxNS42ODc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pBdU56a3pNVGcwTFRjdU9UTXhPRE0ySURjdU9UTXhPRE0yTFRFekxqUTROREV5TVNBeE5TNDROak0yTnpFdE1UTXVORGcwTVRJeGN6RTBMakkzTnpNd05DQTFMalUxTWpJNE5TQXhOUzQ0TmpNMk56SWdNVE11TkRnME1USXhiREV3TXk0NU1EY3dORGtnTnprd0xqZ3dOREF5T0dNd0xqYzVNekU0TkNBekxqRTNNamN6TkNBd0lEY3VNVE00TmpVeUxUSXVNemM1TlRVeElERXdMak14TVRNNE5td3RNVEV4TGpBME5UY3dNU0F4T0RRdU9ERXhOemMwWXkweUxqTTNPVFUxTVNBMUxqVTFNakk0TlMwM0xqa3pNVGd6TmlBM0xqa3pNVGd6TmkweE15NDBPRFF4TWpFZ055NDVNekU0TXpaNklHMHRPRGt1TmpJNU56UTBMVEl3TWk0eU5qRTRNVE5zT1RBdU5ESXlPVEk0SURFMU5TNDBOak01T0RJZ09UUXVNemc0T0RRMkxURTFOeTR3TlRBek5Ea3RPRGd1T0RNMk5UWXhMVFkzTVM0d016TXpNRGN0T1RVdU9UYzFNakV6SURZM01pNDJNVGsyTnpSNklpQm1hV3hzUFNJak1UTXhNekV6SWlCd0xXbGtQU0k1TmpnMUlqNDhMM0JoZEdnK1BIQmhkR2dnWkQwaVRUVXhNQzQ0TlRjNE1UWWdNVEF3T0M0MU16STVNbXcyTGpZM01EWTNOQzA1TnpVdU5qRTFPREF4SURNeExqY3lOek0wTXlBd0xqSXhOREUxT1MwMkxqWTJNamMwTWlBNU56VXVOakUxT0RBeWVpSWdabWxzYkQwaUl6RXpNVE14TXlJZ2NDMXBaRDBpT1RZNE5pSStQQzl3WVhSb1Bqd3ZjM1puUGc9PVwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/images/chaoxiang_icon.svg\n");
- /***/ }),
- /***/ "./modules/images/circle_blue.png":
- /*!****************************************!*\
- !*** ./modules/images/circle_blue.png ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsSAAALEgHS3X78AAACDElEQVQ4jWP8//8/Ax5gwMDAIACVfgDF2AHIIDSscO/l7x3ff/378fz9n++Hr//4fezmz+9ffvz7/eHr33eP3/6Z8P//fwF0fSguevv5X6UwL1PbwoNfGRrWfGJ48PoPiuUOWuwMDSH8DHryrB8FuZkcGBgYLsDk4AZ9/Pavg5mJscS24SXzhQe/8XmXocCLl6Etgv8XJxujOcwwmEEOX37830OMITCQYM/NMD1F8CcHK6MEAwPDByaQ+Ofv/9fUrvpItCEgsODgV4aTt3+xP3n3twHEBxlk8On7P/4J2z4TbQgMNKz5yCDCy5QBNujJu78Ja05+YyHZFAYGhgPXfjJ8+PoPFDYGTEyMDCYPXv8lxxwwuPnsDwcorTGxsTDyoEczOYDp4es/Fwzk2cg2gI2F8QeIZjJWYjtgoMBKliEC3EwMlmpsIK9dAMXaBn8TTgYFUdLDu8CTl+H2iz/nYenow8uPf+cvyBQiyRCQxcU+vH9VJViKGKDpiEGcn7lIW5b1MbGGgby0qVTk75vPf1eCUgFIDDnTCrz5/O/S1ce/ZROmv8PIsDAAyrhLcoT/MDIybJcSZPaDiaOXRwIvP/7tE+dnTtx45js4wV148Ass4aDFwRBkxvlXVZLlz4ev/4okBJinIWvEVbApvP38L/LT93/2vJxMoEzJ8OXHv6sKoiy7QdkMQzUDAwMAuq71NKWtMMgAAAAASUVORK5CYII=\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcy9jaXJjbGVfYmx1ZS5wbmcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2ltYWdlcy9jaXJjbGVfYmx1ZS5wbmc/MzAxMCJdLCJ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VmJBcHZQMzhML0xUOTMvMnZKeE1vRXpKOE9YSHY2c0tvaXk3UWRrTVF6VURBd01BdXE3MU5LV3RNTWdBQUFBQVNVVk9SSzVDWUlJPVwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/images/circle_blue.png\n");
- /***/ }),
- /***/ "./modules/images/circle_red.png":
- /*!***************************************!*\
- !*** ./modules/images/circle_red.png ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsSAAALEgHS3X78AAACCklEQVQ4jWP8//8/Ax5gwMDAIACVfgDF2AHIIDSs8Of+8x3/vv/88ffFu++/jl75/evEte//vnz//e/Dl3d/nrye8P//fwF0fSicv28/Vv7/////t8W7/79Wi///gt0DBb9zLfv/89Cl/3/fff7w//9/A2S9cK/9//i1g4GZqeSdcwnzn4v38HmXgSs3gIGnKfEXIyebOQMDwwWQGMwgh/9fvu8hxhAY4Ix1ZeCdnPOTkYNNgoGB4QMT2DWfv6/50riIaENA4Pvi3Qy/T99k//v0TQOIDzLI4P/nb/zfJm8g2hAY+Nq8hIFJmC8DbNDfp28Sfqw7zEKyKQwMDL8OXQKFLShsDJgYmRhN/j58SY45YPDn1hMOUFpjYmBj5aHEIBhg+vvw5QVWPWWyDWBkY/kBoplYjVQPsOgrkWeIADcDq7kmyGsXQLG2gd3XkoFZXpxkg7hzAhn+3nl6HpaOPvx79X4+35xikgwBWcxVEPSXWUW6iAGajhiYxASLWLTkHxNrGMhLAmsb/v57+2klAwPDAbAYUjEi8O/tp0t/rj2U/ZTSy4ArJtns9Bj4F5T9YWBk2M4kKewHNxytPBL49+p9H5OYYOLPzcfBCQ6WbUAGsAdY/2VWkfrz/+PXIiZxwWkorsRRsCn8e/cp8v+nb/aMvFygTMnw/8v3q8zy4rsZGBgWYKh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szNXhpa2d3QldjeFZFUFNYV1VXNmlBR2FqaGlZeEFTTFdMVGtIeE5yR01oTEFtc2IvdjU3KzJrbEF3UERBYkFZVWpFaThPL3RwMHQvcmoyVS9aVFN5NEFySnRuczlCajRGNVQ5WVdCazJNNGtLZXdITnh5dFBCTDQ5K3A5SDVPWVlPTFB6Y2ZCQ1E2V2JVQUdzQWRZLzJWV2tmcnovK1BYSWlaeHdXa29yc1JSc0NuOGUvY3A4dituYi9hTXZGeWdUTW53Lzh2M3E4enk0cnNaR0JnV1lLaG1ZR0FBQU42RUdFOWlnYVQrQUFBQUFFbEZUa1N1UW1DQ1wiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/images/circle_red.png\n");
- /***/ }),
- /***/ "./modules/images/circle_yellow.png":
- /*!******************************************!*\
- !*** ./modules/images/circle_yellow.png ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsSAAALEgHS3X78AAAB+klEQVQ4jZ2UT2gTQRTGv5nd7G7TsNnW1QimWC+CghBEqJ7sSTx50oM3iwhejSJ486J4qdWLt6JXsQdPVdRDj0WQBqEehKJotLbEbrLNJvtnZlYmZEub1rLJB8Mw8+b9Zt7Me0PiOMY+KgGwuubv3ba3JKinjUfBj7dC+D6L1tt+82Pke5/agnsRZ+4GC38/iePY6vXbcSLBnXtUGXnYdObQWJ8BC6s7NjeGzyJfuAXNONGgSn4SQCWxbYEE33xECL3zZ+WyEvpf9gsXpn0dVuFuSKgxkcAS0GQsvA9pIIlyI1cweuRBQIh+GECddk4jvLn62nRqiFTTeYWgtaTzaPW+HEtQKeabebc2mxqSqLE2A6qO3uyAeLR6rdWYV/umAPC9RQjuyrspUYCeYVE1hdveioIVQ+YaJSST633mQURZ9KuiDZ0cGECI5sueakOnFjLGY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VDZGRrNGp2TG42Mm5ScWlGVFRlWVdndGFUemFQVytIRXRRS2VhYmViYzJteHFTcUxFMkE2cU8zdXlBZUxSNnJkV1lWL3VtQVBDOVJRanV5cnNwVVlDZVlWRTFoZHZlaW9JVlErWWFKU1NUNjMzbVFVUlo5S3VpRFowY0dFQ0k1c3VlYWtPbkZqTEdZQ0NxbU5DenAyVm9GZmxxcjdQbUJhaGFzVytRVEV3V2ZGdEs4cWpPV2UzNWdlSjBYeEM1c1duZjRLcCtySXh1SGtGUjdiS21ILytaRmlaRE9uUjBsblBtdkFTd0lPZTJGNjBsMk1ibk1QZzY5cmQ2ZTFmQkpwS0ZhNDg5WlFCNW8yUUtsNUw1M3YvSTRxejJXRkh0cVpiN0RvRzNpTEM5M0RFWXVYUEltaGRsS0V4d3Q2eW9CNTl0ZC96Znh6WXV1SE5WOE9aNVNvZGxVVUtJMXJLcUZkOERlTEZyTllCL0E2YjFRejlFelJNQUFBQUFTVVZPUks1Q1lJST1cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/images/circle_yellow.png\n");
- /***/ }),
- /***/ "./modules/images/cloud.jpg":
- /*!**********************************!*\
- !*** ./modules/images/cloud.jpg ***!
- \**********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAgCgAwAEAAAAAQAAAQAAAAAA/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/AABEIAQACAAMBIgACEQEDEQH/xAAfAAABBQ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TVlhQV3JVcSsxVmlPYUFQLzJRPT1cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/images/cloud.jpg\n");
- /***/ }),
- /***/ "./modules/images/fence.png":
- /*!**********************************!*\
- !*** ./modules/images/fence.png ***!
- \**********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAOhlWElmTU0AKgAAAAgABgESAAMAAAABAAEAAAEaAAUAAAABAAAAVgEbAAUAAAABAAAAXgExAAIAAAAkAAAAZgEyAAIAAAAUAAAAiodpAAQAAAABAAAAngAAAAAAAABIAAAAAQAAAEgAAAABQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKE1hY2ludG9zaCkAMjAxODoxMDoyNiAxNTozMDozNAAABJAEAAIAAAAUAAAA1KABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAAAyMDE4OjEwOjI2IDE1OjI0OjI1ALUCxicAAAAJcEhZcwAACxMAAAsTAQCanBgAAAdgaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjQuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAg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3Z00xbi9vVEYvRGR5U0NRQmFZNGVNWURpK3dKNm9Sck5NV0tVMEh5eHVnT2lGcVRldTNLQTQzTm05MlFkb3ZYOTNZVDlLbUl3citPYW5EN0k2YitjSFFKNU9sYk5MaHZRV0piODYrZ0E4WjFGMjJTcXFNYnJpeWQrZ0JHbVlLSm05MGpQL3dpenpqM2djTm12ZS81SFlEZ0RzZ0hrSmtveGRzSXg2TXoyUDhrZklBbjJhOWlCVURhdzArZmkyRkYyS3BwWHB6MHNkZ3hiZ3pDamp2eHQwMS9kWENMajk1N29PL0EyUUVZdmY3dHBGc2dMQ2dHL3c5TmpHWnljVFUwTWRYbEpEL0g1aGJqVVFnK0cyUHNzWXVMWHZ2b3d3ZGZuOEFIMjNjQmJmcm5INDN5YzVpeGowRnYxVHBJaUorU1haYnZPQnUveFJCWDJXenpoREhCRm1Lb2xjdTZkdGR3OVdCOHNyVlAzSWxYbmdOMjhjdmdMbDZ1ZjRHbC9GMkFpZHdCNnB6TXVXQzdFVW04OWdPVGlVK2NqaWNOMWkrdlc4MHRwM0lUYkp3MFJSL0lFK0o2S2t5ek1sWnVMc1VNSHJaOHlvOVlNZUJyak1RZXpQb1c0Q1dnWVlwSjVhN2FTZnAxY3ZpdE95Zm8yN0pUYklSRmRIQWFCaE9ic2ttTEcwell5T29PMDRJWTF6eTEzVGNLblIzUTVsTUEyTXVIZnhwNzVWTjRMZ09pNFpOdGY3NE1PVW5Jd0NXRFYvNWU3dVNsa2JmQ2NSTXVIMnlydkJSbExnY085eFhxaklQLzlsVWVUTGpGSTN6OEYrdWFsSXZscHRESkFBQUFBRWxGVGtTdVFtQ0NcIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/images/fence.png\n");
- /***/ }),
- /***/ "./modules/images/lighting.png":
- /*!*************************************!*\
- !*** ./modules/images/lighting.png ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports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QmdseThCQWtDaFNmSzREZ0VBN1BJV0FBQVVzZ0FBUUNGdkFRQkFJUXNBQUJSU0FBQ2drRXVBQUZEbytUb0FBTERQbHdBQm9KQUNBQUNGRkFBQUtPUXRBQUFvWkFFQWdFSVdBQUFvcEFBQVFDRUZBQUFLdVFNQUFJVXNBQUJReUtlQUFhQ1FCUUFBQ3JrREFBQ0ZIQUVBUUNFTEFBQVVzZ0FBUUNFTEFBQVVzZ0FBUUNFTEFBQVVzZ0FBUUNFRkFBQUtPUUlBZ0VJV0FBQW81TGNBQUtDUUFnQUFoUndCQUVBaEN3QUFGTElBQUVBaEN3QUFGTElBQUVBaEJRQUFDdmtTSUFBVXNnQUFRQ0VGQUFBS0tRQUFVTWhyZ0FCUXlBSUFBSVVVQUFBbzVBZ0FBQXBaQUFDZ2tBSUFBSVVVQUFBbzVBNEFBQlQ2QTZnYVBRNi93UklmQUFBQUFFbEZUa1N1UW1DQ1wiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/images/lighting.png\n");
- /***/ }),
- /***/ "./modules/images/space_line.png":
- /*!***************************************!*\
- !*** ./modules/images/space_line.png ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVwAAABACAYAAABWdc94AAAACXBIWXMAAAsTAAALEwEAmpwYAAAGx2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgMTE2LjE2NDY1NSwgMjAyMS8wMS8yNi0xNTo0MToyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8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ULFf/svQeA/72nDwC4heACRAQXICK4ABHBBYgILkBEcAEiggsQEVyAiOACRAQXICK4ABHBBYgILkBkzYx9RoDAmpnn9BEAN/BSAIgILkBEcAEiggsQEVyAiOACRAQXICK4ABHBBYgILkBEcAEiggsQEVyAiOACRAQXIGKAHCBigBwg4qUAEBFcgIjgAkQEFyAiuAARwQWICC5ARHABIoILEBFcgIjgAkQEFyAiuAARwQWI2MMFiNjDBYh4KQBEBBcgIrgAEcEFiAguQERwASKCCxARXICI4AJEBBcgIrgAEcEFiAguQERwASIfRmAGiWTgoMYAAAAASUVORK5CYII=\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2ltYWdlcy9zcGFjZV9saW5lLnBuZy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvaW1hZ2VzL3NwYWNlX2xpbmUucG5nPzllNWEiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBVndBQUFCQUNBWUFBQUJXZGM5NEFBQUFDWEJJV1hNQUFBc1RBQUFMRXdFQW1wd1lBQUFHeDJsVVdIUllUVXc2WTI5dExtRmtiMkpsTG5odGNBQUFBQUFBUEQ5NGNHRmphMlYwSUdKbFoybHVQU0x2dTc4aUlHbGtQU0pYTlUwd1RYQkRaV2hwU0hweVpWTjZUbFJqZW10ak9XUWlQejRnUEhnNmVHMXdiV1YwWVNCNGJXeHVjenA0UFNKaFpHOWlaVHB1Y3pwdFpYUmhMeUlnZURwNGJYQjBhejBpUVdSdlltVWdXRTFRSUVOdmNtVWdOaTR3TFdNd01ESWdNVEUyTGpFMk5EWTFOU3dnTWpBeU1TOHdNUzh5TmkweE5UbzBNVG95TUNBZ0lDQWdJQ0FnSWo0Z1BISmtaan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VNLQ0N4QVJYSUNJNEFKRUJCY2dJcmdBRWNFRmlBZ3VRRVJ3QVNJZlJtQUdpV1Rnb01ZQUFBQUFTVVZPUks1Q1lJST1cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/images/space_line.png\n");
- /***/ }),
- /***/ "./modules/layer/Layer.js":
- /*!********************************!*\
- !*** ./modules/layer/Layer.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _LayerType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LayerType */ \"./modules/layer/LayerType.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-03 09:38:21\n */\n\n\n\n\n\n\nvar Layer = /*#__PURE__*/function () {\n function Layer(id) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Layer);\n\n this._id = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_3__[\"Util\"].uuid();\n this._bid = id || _gd_modules_utils__WEBPACK_IMPORTED_MODULE_3__[\"Util\"].uuid();\n this._delegate = undefined;\n this._viewer = undefined;\n this._state = undefined;\n this._show = true;\n this._isGround = false;\n this._cache = {};\n this._attr = {};\n this._layerEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"LayerEvent\"]();\n\n this._layerEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"LayerEventType\"].ADD, this._onAdd, this);\n\n this._layerEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"LayerEventType\"].REMOVE, this._onRemove, this);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Layer, [{\n key: \"layerId\",\n get: function get() {\n return this._id;\n }\n }, {\n key: \"id\",\n get: function get() {\n return this._bid;\n }\n }, {\n key: \"delegate\",\n get: function get() {\n return this._delegate;\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n },\n set: function set(show) {\n this._show = show;\n this._delegate && (this._delegate.show = this._show);\n }\n }, {\n key: \"layerEvent\",\n get: function get() {\n return this._layerEvent;\n }\n }, {\n key: \"attr\",\n get: function get() {\n return this._attr;\n },\n set: function set(attr) {\n this._attr = attr;\n }\n }, {\n key: \"state\",\n get: function get() {\n return this._state;\n }\n /**\n * The hook for added\n * @private\n */\n\n }, {\n key: \"_addedHook\",\n value: function _addedHook() {}\n /**\n * The hook for removed\n * @private\n */\n\n }, {\n key: \"_removedHook\",\n value: function _removedHook() {}\n /**\n * The layer added callback function\n * Subclasses need to be overridden\n * @param viewer\n * @private\n */\n\n }, {\n key: \"_onAdd\",\n value: function _onAdd(viewer) {\n this._viewer = viewer;\n\n if (!this._delegate) {\n return;\n }\n\n if (this._delegate instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PrimitiveCollection) {\n if (this._isGround) {\n this._viewer.scene.groundPrimitives.add(this._delegate);\n } else {\n this._viewer.scene.primitives.add(this._delegate);\n }\n } else {\n this._viewer.dataSources.add(this._delegate);\n }\n\n this._addedHook && this._addedHook();\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_4__[\"default\"].ADDED;\n }\n /**\n * The layer added callback function\n * Subclasses need to be overridden\n * @private\n */\n\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n if (!this._delegate) {\n return;\n }\n\n if (this._viewer) {\n this._cache = {};\n\n if (this._delegate instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PrimitiveCollection) {\n this._delegate.removeAll();\n\n if (this._isGround) {\n this._viewer.scene.groundPrimitives.remove(this._delegate);\n } else {\n this._viewer.scene.primitives.remove(this._delegate);\n }\n } else if (this._delegate.then) {\n this._delegate.then(function (dataSource) {\n dataSource.entities.removeAll();\n });\n\n this._viewer.dataSources.remove(this._delegate);\n } else {\n this._delegate.entities && this._delegate.entities.removeAll();\n\n this._viewer.dataSources.remove(this._delegate);\n }\n\n this._removedHook && this._removedHook();\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_4__[\"default\"].REMOVED;\n }\n }\n /**\n * The layer add overlay\n * @param overlay\n * @private\n */\n\n }, {\n key: \"_addOverlay\",\n value: function _addOverlay(overlay) {\n if (!this._cache.hasOwnProperty(overlay.overlayId)) {\n this._cache[overlay.overlayId] = overlay;\n this._delegate && overlay.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"OverlayEventType\"].ADD, this);\n\n if (this._state === _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_4__[\"default\"].CLEARED) {\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_4__[\"default\"].ADDED;\n }\n }\n }\n /**\n * The layer remove overlay\n * @param overlay\n * @private\n */\n\n }, {\n key: \"_removeOverlay\",\n value: function _removeOverlay(overlay) {\n if (this._cache.hasOwnProperty(overlay.overlayId)) {\n this._delegate && overlay.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"OverlayEventType\"].REMOVE, this);\n delete this._cache[overlay.overlayId];\n }\n }\n /**\n * Add overlay\n * @param overlay\n * @returns {Layer}\n */\n\n }, {\n key: \"addOverlay\",\n value: function addOverlay(overlay) {\n this._addOverlay(overlay);\n\n return this;\n }\n /**\n * Add overlays\n * @param overlays\n * @returns {Layer}\n */\n\n }, {\n key: \"addOverlays\",\n value: function addOverlays(overlays) {\n var _this = this;\n\n if (Array.isArray(overlays)) {\n overlays.forEach(function (item) {\n _this._addOverlay(item);\n });\n }\n\n return this;\n }\n /**\n * Remove overlay\n * @param overlay\n * @returns {Layer}\n */\n\n }, {\n key: \"removeOverlay\",\n value: function removeOverlay(overlay) {\n this._removeOverlay(overlay);\n\n return this;\n }\n /**\n * Returns the overlay by overlayId\n * @param overlayId\n * @returns {*|undefined}\n */\n\n }, {\n key: \"getOverlay\",\n value: function getOverlay(overlayId) {\n return this._cache[overlayId] || undefined;\n }\n /**\n * Returns the overlay by bid\n * @param id\n * @returns {any}\n */\n\n }, {\n key: \"getOverlayById\",\n value: function getOverlayById(id) {\n var _this2 = this;\n\n var overlay = undefined;\n Object.keys(this._cache).forEach(function (key) {\n if (_this2._cache[key].id === id) {\n overlay = _this2._cache[key];\n }\n });\n return overlay;\n }\n /**\n * Returns the overlays by attrName and AttrVal\n * @param attrName\n * @param attrVal\n * @returns {[]}\n */\n\n }, {\n key: \"getOverlaysByAttr\",\n value: function getOverlaysByAttr(attrName, attrVal) {\n var result = [];\n this.eachOverlay(function (item) {\n if (item.attr[attrName] === attrVal) {\n result.push(item);\n }\n }, this);\n return result;\n }\n /**\n * Iterate through each overlay and pass it as an argument to the callback function\n * @param method\n * @param context\n * @returns {Layer}\n */\n\n }, {\n key: \"eachOverlay\",\n value: function eachOverlay(method, context) {\n var _this3 = this;\n\n Object.keys(this._cache).forEach(function (key) {\n method && method.call(context || _this3, _this3._cache[key]);\n });\n return this;\n }\n /**\n * Returns all overlays\n * @returns {[]}\n */\n\n }, {\n key: \"getOverlays\",\n value: function getOverlays() {\n var _this4 = this;\n\n var result = [];\n Object.keys(this._cache).forEach(function (key) {\n result.push(_this4._cache[key]);\n });\n return result;\n }\n /**\n * Clears all overlays\n * Subclasses need to be overridden\n */\n\n }, {\n key: \"clear\",\n value: function clear() {}\n /**\n * Removes from the viewer\n */\n\n }, {\n key: \"remove\",\n value: function remove() {\n if (this._viewer) {\n this._viewer.removeLayer(this);\n }\n }\n /**\n * Adds to the viewer\n * @param viewer\n * @returns {Layer}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (viewer !== null && viewer !== void 0 && viewer.addLayer) {\n viewer.addLayer(this);\n }\n\n return this;\n }\n /**\n * sets the style, the style will apply to every overlay of the layer\n * Subclasses need to be overridden\n * @param style\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {}\n /**\n * Subscribe event\n * @param type\n * @param callback\n * @param context\n * @returns {Layer}\n */\n\n }, {\n key: \"on\",\n value: function on(type, callback, context) {\n this._layerEvent.on(type, callback, context || this);\n\n return this;\n }\n /**\n * Unsubscribe event\n * @param type\n * @param callback\n * @param context\n * @returns {Layer}\n */\n\n }, {\n key: \"off\",\n value: function off(type, callback, context) {\n this._layerEvent.off(type, callback, context || this);\n\n return this;\n }\n /**\n * Trigger subscription event\n * @param type\n * @param params\n * @returns {Layer}\n */\n\n }, {\n key: \"fire\",\n value: function fire(type, params) {\n this._layerEvent.fire(type, params);\n\n return this;\n }\n /**\n * Registers Type\n * @param type\n */\n\n }], [{\n key: \"registerType\",\n value: function registerType(type) {\n if (type) {\n _LayerType__WEBPACK_IMPORTED_MODULE_6__[\"default\"][type.toLocaleUpperCase()] = type.toLocaleLowerCase();\n }\n }\n /**\n * Returns type\n * @param type\n * @returns {*|undefined}\n */\n\n }, {\n key: \"getLayerType\",\n value: function getLayerType(type) {\n return _LayerType__WEBPACK_IMPORTED_MODULE_6__[\"default\"][type.toLocaleUpperCase()] || undefined;\n }\n }]);\n\n return Layer;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Layer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL0xheWVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9sYXllci9MYXllci5qcz80NDUzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTAzIDA5OjM4OjIxXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IHsgTGF5ZXJFdmVudFR5cGUsIE92ZXJsYXlFdmVudFR5cGUsIExheWVyRXZlbnQgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCBMYXllclR5cGUgZnJvbSAnLi9MYXllclR5cGUnXG5cbmNsYXNzIExheWVyIHtcbiAgY29uc3RydWN0b3IoaWQpIHtcbiAgICB0aGlzLl9pZCA9IFV0aW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QTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/layer/Layer.js\n");
- /***/ }),
- /***/ "./modules/layer/LayerController.js":
- /*!******************************************!*\
- !*** ./modules/layer/LayerController.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/imagery */ \"./modules/imagery/index.js\");\n/* harmony import */ var _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/terrain */ \"./modules/terrain/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-09-01 10:14\n * @Description 图层对象管理器\n */\n\n\n\n/**\n * 支持图层类型\n */\n\nvar LayerType = {\n IMAGERY: 'imagery',\n TERRAIN: 'terrain',\n OVERLAY: 'overlay'\n};\n/**\n * 支持影像图层类型\n */\n\nvar ImageryType = {\n AMAP: 'amap',\n BD: 'baidu',\n GOOGLE: 'google',\n TDT: 'tdt',\n TENCENT: 'tencent',\n ARCGIS: 'arcgis',\n SINGLE_TILE: 'single_tile',\n WMS: 'wms',\n WMTS: 'wmts',\n XYZ: 'xyz',\n COORD: 'coord',\n GRID: 'grid',\n MAPBOX: 'mapbox',\n MAPBOX_STYLE: 'mapbox_style',\n TMS: 'tms'\n};\n/**\n * 支持地形图层类型\n */\n\nvar TerrainType = {\n NONE: 'none',\n XYZ: 'xyz',\n CESIUM: 'cesium',\n ARCGIS: 'arcgis',\n GOOGLE: 'google',\n VR: 'vr'\n};\n/**\n * 支持叠加模型图层类型\n */\n\nvar OverlayType = {\n TILESET: 'tileset',\n BIM: 'bim',\n MODEL: 'model'\n};\n\nvar LayerController = /*#__PURE__*/function () {\n function LayerController(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LayerController);\n\n this._viewer = viewer._delegate || viewer;\n this._cache = [];\n this._baseLayer = [];\n }\n /**\n * 添加图层对象\n * @param {Object} options 图层设置。\n * @param {String} options.id 图层id。\n * @param {String} options.url 图层链接。\n * @param {String} options.token 图层令牌。\n * @param {String} options.layerType 图层类型。\n * @param {String} options.imageryType 影像供应商类型,图层为Imagery时使用。\n * @param {String} options.imageryStyle 影像样式,图层为Imagery时使用。\n * @param {Cesium.Rectangle} options.rectangle 影像图层定位范围\n * @param {String} options.terrainType 地形类型,图层为Terrain时使用。\n * @param {String} options.overlayType 叠加模型类型,图层为Overlay时使用。\n * @param {Boolean} options.show 图层是否显示\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LayerController, [{\n key: \"addLayer\",\n value: function addLayer(options) {\n switch (options.layerType) {\n case LayerType.IMAGERY:\n this.addImageryLayer(options);\n break;\n\n case LayerType.TERRAIN:\n this.addTerrainLayer(options);\n break;\n\n case LayerType.OVERLAY:\n this.addOverlayLayer(options);\n break;\n\n default:\n throw new Error('未找到对应图层类型');\n }\n }\n /**\n * 添加影像图层对象\n */\n\n }, {\n key: \"addImageryLayer\",\n value: function addImageryLayer(options) {\n var show = options.show;\n var uuid = URL.createObjectURL(new Blob()).substr(-36);\n var layerId = options.id || uuid;\n var imageryProvider = null;\n var rectangle = options.rectangle;\n\n switch (options.imageryType) {\n case ImageryType.AMAP:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createAmapImageryLayer({\n url: options.url,\n style: options.imageryStyle,\n crs: 'WGS84'\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.BD:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createBaiduImageryLayer({\n url: options.url,\n style: options.imageryStyle,\n crs: 'WGS84'\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.GOOGLE:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createGoogleImageryLayer({\n url: options.url,\n style: options.imageryStyle\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.TDT:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createTdtImageryLayer({\n key: options.token,\n style: options.imageryStyle\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.TENCENT:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createTencentImageryLayer({\n url: options.url,\n style: options.imageryStyle\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.ARCGIS:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createArcGisImageryLayer({\n url: options.url,\n token: options.token\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.SINGLE_TILE:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createSingleTileImageryLayer({\n url: options.url\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.WMS:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createWMSImageryLayer({\n url: options.url\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.WMTS:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createWMTSImageryLayer({\n url: options.url\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.XYZ:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createXYZImageryLayer({\n url: options.url\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.COORD:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createCoordImageryLayer();\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.GRID:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createGridImageryLayer();\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.MAPBOX:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createMapboxImageryLayer({\n url: options.url,\n accessToken: options.token\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.MAPBOX_STYLE:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createMapboxStyleImageryLayer({\n url: options.url,\n accessToken: options.token\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n case ImageryType.TMS:\n imageryProvider = _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_3__[\"ImageryLayerFactory\"].createTMSImageryLayer({\n url: options.url\n });\n this.registerImagery(layerId, imageryProvider, show, rectangle);\n break;\n\n default:\n throw new Error('未找到对应影像类型');\n }\n }\n /**\n * 添加地形图层对象\n */\n\n }, {\n key: \"addTerrainLayer\",\n value: function addTerrainLayer(options) {\n var show = options.show;\n var terrainId = options.id;\n var terrain = null;\n\n switch (options.terrainType) {\n case TerrainType.NONE:\n terrain = _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_4__[\"TerrainFactory\"].createEllipsoidTerrain();\n this.registerTerrain(terrainId, terrain, show);\n break;\n\n case TerrainType.XYZ:\n terrain = _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_4__[\"TerrainFactory\"].createUrlTerrain({\n url: options.url\n });\n this.registerTerrain(terrainId, terrain, show);\n break;\n\n case TerrainType.CESIUM:\n terrain = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].createWorldTerrain();\n this.registerTerrain(terrainId, terrain, show);\n break;\n\n case TerrainType.ARCGIS:\n terrain = _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_4__[\"TerrainFactory\"].createArcgisTerrain({\n url: options.url,\n token: options.token\n });\n this.registerTerrain(terrainId, terrain, show);\n break;\n\n case TerrainType.GOOGLE:\n terrain = _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_4__[\"TerrainFactory\"].createGoogleTerrain({\n url: options.url\n });\n this.registerTerrain(terrainId, terrain, show);\n break;\n\n case TerrainType.VR:\n terrain = _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_4__[\"TerrainFactory\"].createVRTerrain({\n url: options.url\n });\n this.registerTerrain(terrainId, terrain, show);\n break;\n\n default:\n throw new Error('未找到对应地形类型');\n }\n }\n /**\n * 添加模型图层对象\n */\n\n }, {\n key: \"addOverlayLayer\",\n value: function addOverlayLayer(options) {\n var show = options.show;\n var overlayId = options.id;\n var overlay = null;\n\n switch (options.overlayType) {\n case OverlayType.TILESET:\n overlay = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cesium3DTileset({\n url: options.url\n });\n this.registerOverlay(overlayId, overlay, show);\n break;\n\n default:\n throw new Error('未找到对应模型类型');\n }\n }\n /**\n * 缓存影像图层对象\n */\n\n }, {\n key: \"registerImagery\",\n value: function registerImagery(layerId, imageryProvider, show, rectangle) {\n var layer = this._viewer.imageryLayers.addImageryProvider(imageryProvider);\n\n if (!show) {\n layer.show = false;\n }\n\n this._cache.push({\n id: layerId,\n instance: layer,\n provider: imageryProvider,\n type: LayerType.IMAGERY,\n rectangle: rectangle\n });\n }\n /**\n * 缓存地形图层对象\n */\n\n }, {\n key: \"registerTerrain\",\n value: function registerTerrain(terrainId, terrain, show) {\n if (show) {\n this._viewer.terrainProvider = terrain;\n }\n\n this._cache.push({\n id: terrainId,\n provider: terrain,\n type: LayerType.TERRAIN\n });\n }\n /**\n * 缓存模型图层对象\n */\n\n }, {\n key: \"registerOverlay\",\n value: function registerOverlay(OverlayId, Overlay, show) {\n this._viewer.scene.primitives.add(Overlay);\n\n if (!show) {\n Overlay.show = false;\n }\n\n this._cache.push({\n id: OverlayId,\n instance: Overlay,\n type: LayerType.OVERLAY\n });\n }\n /**\n * 设置基类图层对象,在removeAll之后重新加载\n * @param {String} id 图层id。\n */\n\n }, {\n key: \"setBaseLayer\",\n value: function setBaseLayer(id) {\n var layer = this.getLayer(id).object;\n\n this._baseLayer.push(layer);\n }\n /**\n * 加载基类图层\n */\n\n }, {\n key: \"addBaseLayer\",\n value: function addBaseLayer() {\n var _this = this;\n\n var show = true;\n\n this._baseLayer.forEach(function (val) {\n switch (val.type) {\n case LayerType.IMAGERY:\n _this.registerImagery(val.id, val.provider, show, val.rectangle);\n\n break;\n\n case LayerType.TERRAIN:\n _this.registerTerrain(val.id, val.provider, show);\n\n break;\n\n case LayerType.OVERLAY:\n _this.registerOverlay(val.id, val.instance, show);\n\n break;\n }\n });\n }\n /**\n * 根据id获取缓存中的图层对象\n * @param {String} id 图层id。\n * @returns {Object} 返回图层对象和数组下标\n */\n\n }, {\n key: \"getLayer\",\n value: function getLayer(id) {\n return {\n object: this._cache.find(function (val) {\n return val.id === id;\n }),\n index: this._cache.findIndex(function (val) {\n return val.id === id;\n })\n };\n }\n /**\n * 显示指定图层\n * @param {String} id 图层id。\n */\n\n }, {\n key: \"showLayer\",\n value: function showLayer(id) {\n var layer = this.getLayer(id).object;\n\n switch (layer.type) {\n case LayerType.IMAGERY:\n layer.instance.show = true;\n break;\n\n case LayerType.TERRAIN:\n this._viewer.terrainProvider = layer.provider;\n break;\n\n case LayerType.OVERLAY:\n layer.instance.show = true;\n break;\n }\n }\n /**\n * 显示所有图层,地形显示最后一个添加的\n */\n\n }, {\n key: \"showAll\",\n value: function showAll() {\n var _this2 = this;\n\n this._cache.forEach(function (layer) {\n switch (layer.type) {\n case LayerType.IMAGERY:\n layer.instance.show = true;\n break;\n\n case LayerType.TERRAIN:\n _this2._viewer.terrainProvider = layer.provider;\n break;\n\n case LayerType.OVERLAY:\n layer.instance.show = true;\n break;\n }\n });\n }\n /**\n * 隐藏指定图层\n * @param {String} id 图层id。\n */\n\n }, {\n key: \"hideLayer\",\n value: function hideLayer(id) {\n var layer = this.getLayer(id).object;\n\n switch (layer.type) {\n case LayerType.IMAGERY:\n layer.instance.show = false;\n break;\n\n case LayerType.TERRAIN:\n this._viewer.terrainProvider = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].EllipsoidTerrainProvider();\n break;\n\n case LayerType.OVERLAY:\n layer.instance.show = false;\n break;\n }\n }\n /**\n * 隐藏所有图层\n */\n\n }, {\n key: \"hideAll\",\n value: function hideAll() {\n this._viewer.terrainProvider = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].EllipsoidTerrainProvider();\n\n this._cache.forEach(function (layer) {\n switch (layer.type) {\n case LayerType.IMAGERY:\n layer.instance.show = false;\n break;\n\n case LayerType.OVERLAY:\n layer.instance.show = false;\n break;\n }\n });\n }\n /**\n * 移除指定图层\n * @param {String} id 图层id。\n */\n\n }, {\n key: \"removeLayer\",\n value: function removeLayer(id) {\n var layer = this.getLayer(id).object;\n var index = this.getLayer(id).index;\n\n switch (layer.type) {\n case LayerType.IMAGERY:\n this._viewer.imageryLayers.remove(layer.instance);\n\n break;\n\n case LayerType.TERRAIN:\n this._viewer.terrainProvider = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].EllipsoidTerrainProvider();\n break;\n\n case LayerType.OVERLAY:\n this._viewer.scene.primitives.remove(layer.instance);\n\n break;\n }\n\n this._cache.splice(index, 1);\n }\n /**\n * 移除所有图层\n */\n\n }, {\n key: \"removeAll\",\n value: function removeAll() {\n this._viewer.imageryLayers.removeAll();\n\n this._viewer.scene.primitives.removeAll();\n\n this._viewer.terrainProvider = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].EllipsoidTerrainProvider();\n this._cache.length = 0;\n this.addBaseLayer();\n }\n /**\n * 获取图层数组\n */\n\n }, {\n key: \"getLayerList\",\n value: function getLayerList() {\n return this._cache;\n }\n /**\n * 设置图层透明度\n * @param {String} id 图层id。\n * @param {Number} val 透明度参数,范围0-1。\n */\n\n }, {\n key: \"setLayerAlpha\",\n value: function setLayerAlpha(id, val) {\n var layer = this.getLayer(id).object;\n\n switch (layer.type) {\n case LayerType.IMAGERY:\n layer.instance.alpha = val;\n break;\n\n case LayerType.OVERLAY:\n var color = \"color('rgba(255,255,255,\" + val + \")')\";\n layer.instance.style = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cesium3DTileStyle({\n color: color\n });\n break;\n\n case LayerType.TERRAIN:\n throw new Error('不支持地形透明度调节');\n }\n }\n /**\n * 设置图层亮度\n * @param {String} id 图层id。\n * @param {Number} val l亮度参数,范围0-1。\n */\n\n }, {\n key: \"setLayerBrightness\",\n value: function setLayerBrightness(id, val) {\n var layer = this.getLayer(id).object;\n\n switch (layer.type) {\n case LayerType.IMAGERY:\n layer.instance.brightness = val;\n break;\n\n case LayerType.OVERLAY:\n var brightness = 255 * val;\n var color = \"color('rgba(\".concat(brightness, \",\").concat(brightness, \",\").concat(brightness, \",1)')\");\n layer.instance.style = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cesium3DTileStyle({\n color: color\n });\n break;\n\n case LayerType.TERRAIN:\n throw new Error('不支持地形亮度调节');\n }\n }\n /**\n * 影像提升一个索引,改变影像叠加顺序\n */\n\n }, {\n key: \"raiseImagery\",\n value: function raiseImagery(id) {\n var layer = this.getLayer(id).object;\n\n if (layer.type !== LayerType.IMAGERY) {\n throw new Error('仅支持影像层级调节');\n }\n\n this._viewer.imageryLayers.raise(layer.instance);\n }\n /**\n * 影像图层置顶\n */\n\n }, {\n key: \"raiseToTopImagery\",\n value: function raiseToTopImagery(id) {\n var layer = this.getLayer(id).object;\n\n if (layer.type !== LayerType.IMAGERY) {\n throw new Error('仅支持影像层级调节');\n }\n\n this._viewer.imageryLayers.raiseToTop(layer.instance);\n }\n /**\n * 影像降低一个索引,改变影像叠加顺序\n */\n\n }, {\n key: \"lowerImagery\",\n value: function lowerImagery(id) {\n var layer = this.getLayer(id).object;\n\n if (layer.type !== LayerType.IMAGERY) {\n throw new Error('仅支持影像层级调节');\n }\n\n this._viewer.imageryLayers.lower(layer.instance);\n }\n }, {\n key: \"lowerToBottomImagery\",\n value: function lowerToBottomImagery(id) {\n var layer = this.getLayer(id).object;\n\n if (layer.type !== LayerType.IMAGERY) {\n throw new Error('仅支持影像层级调节');\n }\n\n this._viewer.imageryLayers.lowerToBottom(layer.instance);\n }\n /**\n * 定位图层数组,影像需要设置rectangle\n */\n\n }, {\n key: \"zoomLayer\",\n value: function zoomLayer(id) {\n var layer = this.getLayer(id).object;\n\n switch (layer.type) {\n case LayerType.IMAGERY:\n if (layer.rectangle) {\n this._viewer.camera.flyTo({\n destination: layer.rectangle\n });\n } else {\n this._viewer.flyTo(layer.instance);\n }\n\n break;\n\n case LayerType.OVERLAY:\n this._viewer.flyTo(layer.instance);\n\n break;\n\n case LayerType.TERRAIN:\n throw new Error('不支持地形定位');\n }\n }\n }]);\n\n return LayerController;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (LayerController);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL0xheWVyQ29udHJvbGxlci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbGF5ZXIvTGF5ZXJDb250cm9sbGVyLmpzPzQ5YTUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yIOWImOetllxuICogQERhdGUgMjAyMi0wOS0wMSAxMDoxNFxuICogQERlc2NyaXB0aW9uIOWbvuWxguWvueixoeeuoeeQhuWZqFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IEltYWdlcnlMYXllckZhY3RvcnkgfSBmcm9tIFwiQGdkLW1vZHVsZXMvaW1hZ2VyeVwiO1xuaW1wb3J0IHsgVGVycmFpbkZhY3RvcnkgfSBmcm9tICdAZ2QtbW9kdWxlcy90ZXJyYWluJ1xuXG4vKipcbiAqICDmlK/mjIHlm77lsYLnsbvlnotcbiAqL1xuY29uc3QgTGF5ZXJUeXBlID0ge1xuICBJTUFHRVJZOiAnaW1hZ2VyeScsXG4gIFRFUlJBSU46ICd0ZXJyYWluJyxcbiAgT1ZFUkxBWTogJ292ZXJsYXknX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ybFRlcnJhaW4oe1xuICAgICAgICAgIHVybDogb3B0aW9ucy51cmxcbiAgICAgICAgfSlcbiAgICAgICAgdGhpcy5yZWdpc3RlclRlcnJhaW4odGVycmFpbklkLCB0ZXJyYWluLCBzaG93KVxuICAgICAgICBicmVha1xuICAgICAgY2FzZSBUZXJyYWluVHlwZS5DRVNJVU06XG4gICAgICAgIHRlcnJhaW4gPSBDZXNpdW0uY3JlYXRlV29ybGRUZXJyYWluKClcbiAgICAgICAgdGhpcy5yZWdpc3RlclRlcnJhaW4odGVycmFpbklkLCB0ZXJyYWluLCBzaG93KVxuICAgICAgICBicmVha1xuICAgICAgY2FzZSBUZXJyYWluVHlwZS5BUkNHSVM6XG4gICAgICAgIHRlcnJhaW4gPSBUZXJyYWluRmFjdG9yeS5jcmVhdGVBcmNnaXNUZXJyYWluKHtcbiAgICAgICAgICB1cmwgOiBvcHRpb25zLnVybCxcbiAgICAgICAgICB0b2tlbjogb3B0aW9ucy50b2tlblxuICAgICAgICB9KVxuICAgICAgICB0aGlzLnJlZ2lzdGVyVGVycmFpbih0ZXJyYWluSWQsIHRlcnJhaW4sIHNob3cpXG4gICAgICAgIGJyZWFrXG4gICAgICBjYXNlIFRlcnJhaW5UeXBlLkdPT0dMRTpcbiAgICAgICAgdGVycmFpbiA9IFRlcnJhaW5GYWN0b3J5LmNyZWF0ZUdvb2dsZVRlcnJhaW4oe1xuICAgICAgICAgIHVybDogb3B0aW9ucy51cmxcbiAgICAgICAgfSlcbiAgICAgICAgdGhpcy5yZWdpc3RlclRlcnJhaW4odGVycmFpbklkLCB0ZXJyYWluLCBzaG93KVxuICAgICAgICBicmVha1xuICAgICAgY2FzZSBUZXJyYWluVHlwZS5WUjpcbiAgICAgICAgdGVycmFpbiA9IFRlcnJhaW5GYWN0b3J5LmNyZWF0ZVZSVGVycmFpbih7XG4gICAgICAgICAgdXJsOiBvcHRpb25zLnVybFxuICAgICAgICB9KVxuICAgICAgICB0aGlzLnJlZ2lzdGVyVGVycmF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UFBQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQUFBO0FBQ0E7QUFYQTtBQWFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQUFBO0FBQ0E7QUFaQTtBQWNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFkQTtBQWdCQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/layer/LayerController.js\n");
- /***/ }),
- /***/ "./modules/layer/LayerGroup.js":
- /*!*************************************!*\
- !*** ./modules/layer/LayerGroup.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Layer */ \"./modules/layer/Layer.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-27 19:50:32\n */\n\n\n\n\n\nvar LayerGroup = /*#__PURE__*/function () {\n function LayerGroup(id) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LayerGroup);\n\n this._id = id || _gd_modules_utils__WEBPACK_IMPORTED_MODULE_2__[\"Util\"].uuid();\n this._cache = {};\n this._show = true;\n this._viewer = undefined;\n this._layerGroupEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"LayerGroupEvent\"]();\n\n this._layerGroupEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"LayerGroupEventType\"].ADD, this._onAdd, this);\n\n this._layerGroupEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"LayerGroupEventType\"].REMOVE, this._onRemove, this);\n\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LayerGroup, [{\n key: \"id\",\n get: function get() {\n return this._id;\n }\n }, {\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getLayerType('layer_group');\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n },\n set: function set(show) {\n var _this = this;\n\n this._show = show;\n Object.keys(this._cache).forEach(function (key) {\n _this._cache[key].show = _this._show;\n });\n }\n }, {\n key: \"layerGroupEvent\",\n get: function get() {\n return this._layerGroupEvent;\n }\n }, {\n key: \"state\",\n get: function get() {\n return this._state;\n }\n /**\n *\n * @param viewer\n * @private\n */\n\n }, {\n key: \"_onAdd\",\n value: function _onAdd(viewer) {\n var _this2 = this;\n\n this._viewer = viewer;\n Object.keys(this._cache).forEach(function (key) {\n _this2._viewer.addLayer(_this2._cache[key]);\n });\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n var _this3 = this;\n\n Object.keys(this._cache).forEach(function (key) {\n _this3._viewer && _this3._viewer.removeLayer(_this3._cache[key]);\n });\n this._cache = {};\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].REMOVED;\n }\n /**\n * Adds a layer\n * @param layer\n * @returns {LayerGroup}\n */\n\n }, {\n key: \"addLayer\",\n value: function addLayer(layer) {\n if (!Object(this._cache).hasOwnProperty(layer.id)) {\n this._cache[layer.id] = layer;\n this._viewer && this._viewer.addLayer(layer);\n }\n\n return this;\n }\n /**\n * Removes a layer\n * @param layer\n * @returns {LayerGroup}\n */\n\n }, {\n key: \"removeLayer\",\n value: function removeLayer(layer) {\n if (Object(this._cache).hasOwnProperty(layer.id)) {\n this._viewer && this._viewer.removeLayer(layer);\n delete this._cache[layer.id];\n }\n\n return this;\n }\n /**\n * Returns a layer by id\n * @param id\n * @returns {*|undefined}\n */\n\n }, {\n key: \"getLayer\",\n value: function getLayer(id) {\n return this._cache[id] || undefined;\n }\n /**\n * Returns all layers\n * @returns {[]}\n */\n\n }, {\n key: \"getLayers\",\n value: function getLayers() {\n var _this4 = this;\n\n var result = [];\n Object.keys(this._cache).forEach(function (key) {\n result.push(_this4._cache[key]);\n });\n return result;\n }\n /**\n * Adds to the viewer\n * @param viewer\n * @returns {LayerGroup}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (viewer && viewer.addLayerGroup) {\n viewer.addLayerGroup(this);\n }\n\n return this;\n }\n /**\n *\n * @returns {LayerGroup}\n */\n\n }, {\n key: \"remove\",\n value: function remove() {\n this._viewer && this._viewer.removeLayerGroup(this);\n return this;\n }\n }]);\n\n return LayerGroup;\n}();\n\n_Layer__WEBPACK_IMPORTED_MODULE_5__[\"default\"].registerType('layer_group');\n/* harmony default export */ __webpack_exports__[\"default\"] = (LayerGroup);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL0xheWVyR3JvdXAuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2xheWVyL0xheWVyR3JvdXAuanM/MTAyMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0yNyAxOTo1MDozMlxuICovXG5cbmltcG9ydCB7IFV0aWwgfSBmcm9tICd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UE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUdBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/layer/LayerGroup.js\n");
- /***/ }),
- /***/ "./modules/layer/LayerType.js":
- /*!************************************!*\
- !*** ./modules/layer/LayerType.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-05-10 08:21:19\n */\nvar LayerType = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (LayerType);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL0xheWVyVHlwZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbGF5ZXIvTGF5ZXJUeXBlLmpzPzllODciXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDUtMTAgMDg6MjE6MTlcbiAqL1xuXG5sZXQgTGF5ZXJUeXBlID0ge31cblxuZXhwb3J0IGRlZmF1bHQgTGF5ZXJUeXBlXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/layer/LayerType.js\n");
- /***/ }),
- /***/ "./modules/layer/index.js":
- /*!********************************!*\
- !*** ./modules/layer/index.js ***!
- \********************************/
- /*! exports provided: LayerType, Layer, LayerGroup, LayerController, ClusterLayer, CzmlLayer, DynamicLayer, FeatureGridLayer, GeoJsonLayer, GpxLayer, GroundPrimitiveLayer, HtmlLayer, KmlLayer, LabelLayer, PrimitiveLayer, TilesetLayer, TopoJsonLayer, VectorLayer */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _LayerType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LayerType */ \"./modules/layer/LayerType.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LayerType\", function() { return _LayerType__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Layer */ \"./modules/layer/Layer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Layer\", function() { return _Layer__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _LayerGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LayerGroup */ \"./modules/layer/LayerGroup.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LayerGroup\", function() { return _LayerGroup__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _LayerController__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LayerController */ \"./modules/layer/LayerController.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LayerController\", function() { return _LayerController__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _type_ClusterLayer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./type/ClusterLayer */ \"./modules/layer/type/ClusterLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ClusterLayer\", function() { return _type_ClusterLayer__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _type_CzmlLayer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./type/CzmlLayer */ \"./modules/layer/type/CzmlLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CzmlLayer\", function() { return _type_CzmlLayer__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _type_DynamicLayer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./type/DynamicLayer */ \"./modules/layer/type/DynamicLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DynamicLayer\", function() { return _type_DynamicLayer__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _type_FeatureGridLayer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./type/FeatureGridLayer */ \"./modules/layer/type/FeatureGridLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"FeatureGridLayer\", function() { return _type_FeatureGridLayer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _type_GeoJsonLayer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./type/GeoJsonLayer */ \"./modules/layer/type/GeoJsonLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"GeoJsonLayer\", function() { return _type_GeoJsonLayer__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _type_GpxLayer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./type/GpxLayer */ \"./modules/layer/type/GpxLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"GpxLayer\", function() { return _type_GpxLayer__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _type_GroundPrimitiveLayer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./type/GroundPrimitiveLayer */ \"./modules/layer/type/GroundPrimitiveLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"GroundPrimitiveLayer\", function() { return _type_GroundPrimitiveLayer__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/* harmony import */ var _type_HtmlLayer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./type/HtmlLayer */ \"./modules/layer/type/HtmlLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"HtmlLayer\", function() { return _type_HtmlLayer__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _type_KmlLayer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./type/KmlLayer */ \"./modules/layer/type/KmlLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KmlLayer\", function() { return _type_KmlLayer__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; });\n\n/* harmony import */ var _type_LabelLayer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./type/LabelLayer */ \"./modules/layer/type/LabelLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LabelLayer\", function() { return _type_LabelLayer__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; });\n\n/* harmony import */ var _type_PrimitiveLayer__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./type/PrimitiveLayer */ \"./modules/layer/type/PrimitiveLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PrimitiveLayer\", function() { return _type_PrimitiveLayer__WEBPACK_IMPORTED_MODULE_14__[\"default\"]; });\n\n/* harmony import */ var _type_TilesetLayer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./type/TilesetLayer */ \"./modules/layer/type/TilesetLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TilesetLayer\", function() { return _type_TilesetLayer__WEBPACK_IMPORTED_MODULE_15__[\"default\"]; });\n\n/* harmony import */ var _type_TopoJsonLayer__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./type/TopoJsonLayer */ \"./modules/layer/type/TopoJsonLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TopoJsonLayer\", function() { return _type_TopoJsonLayer__WEBPACK_IMPORTED_MODULE_16__[\"default\"]; });\n\n/* harmony import */ var _type_VectorLayer__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./type/VectorLayer */ \"./modules/layer/type/VectorLayer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"VectorLayer\", function() { return _type_VectorLayer__WEBPACK_IMPORTED_MODULE_17__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2021-03-13 13:46:19\n */\n\n\n\n\n/**\n * types\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9sYXllci9pbmRleC5qcz9kNWQ1Il0sInNvdXJjZXND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UNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/layer/index.js\n");
- /***/ }),
- /***/ "./modules/layer/type/ClusterLayer.js":
- /*!********************************************!*\
- !*** ./modules/layer/type/ClusterLayer.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-10 10:05:41\n */\n\n\n\nvar DEF_OPT = {\n size: 18,\n pixelRange: 40,\n gradient: {\n 0.0001: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Color.DEEPSKYBLUE,\n 0.001: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Color.GREEN,\n 0.01: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Color.ORANGE,\n 0.1: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Color.RED\n },\n fontSize: 12,\n fontColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Color.BLACK,\n style: 'circle'\n};\n\nvar ClusterLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ClusterLayer, _Layer);\n\n var _super = _createSuper(ClusterLayer);\n\n function ClusterLayer(id) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ClusterLayer);\n\n _this = _super.call(this, id);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].CustomDataSource(id);\n _this._options = _objectSpread(_objectSpread({}, DEF_OPT), options);\n _this._delegate.clustering.enabled = true;\n\n _this._delegate.clustering.clusterEvent.addEventListener(_this._clusterEventHandler, _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n\n _this._delegate.clustering.pixelRange = _this._options.pixelRange;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_8__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ClusterLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getLayerType('cluster');\n }\n }, {\n key: \"enableCluster\",\n set: function set(enableCluster) {\n this._delegate.clustering.enabled = enableCluster;\n return this;\n }\n /**\n *\n * @param color\n * @param numLength\n * @returns {*}\n * @private\n */\n\n }, {\n key: \"_drawCircle\",\n value: function _drawCircle(color, numLength) {\n var size = this._options.size * (numLength + 1);\n var key = color.toCssColorString() + '-' + size;\n\n if (!this._cache[key]) {\n var canvas = document.createElement('canvas');\n canvas.width = size;\n canvas.height = size;\n var context2D = canvas.getContext('2d');\n context2D.save();\n context2D.scale(size / 24, size / 24); //Added to auto-generated code to scale up to desired size.\n\n context2D.fillStyle = color.withAlpha(0.2).toCssColorString(); //Modified from auto-generated code.\n\n context2D.beginPath();\n context2D.arc(12, 12, 9, 0, 2 * Math.PI);\n context2D.closePath();\n context2D.fill();\n context2D.beginPath();\n context2D.arc(12, 12, 6, 0, 2 * Math.PI);\n context2D.fillStyle = color.toCssColorString();\n context2D.fill();\n context2D.closePath();\n context2D.restore();\n this._cache[key] = canvas.toDataURL();\n }\n\n return this._cache[key];\n }\n /**\n *\n * @param color\n * @param numLength\n * @returns {*}\n * @private\n */\n\n }, {\n key: \"_drawClustering\",\n value: function _drawClustering(color, numLength) {\n var size = this._options.size * (numLength + 1);\n var key = color.toCssColorString() + '-' + size;\n var startAngle = -Math.PI / 12;\n var angle = Math.PI / 2;\n var intervalAngle = Math.PI / 6;\n\n if (!this._cache[key]) {\n var canvas = document.createElement('canvas');\n canvas.width = size;\n canvas.height = size;\n var context2D = canvas.getContext('2d');\n context2D.save();\n context2D.scale(size / 24, size / 24); //Added to auto-generated code to scale up to desired size.\n\n context2D.beginPath();\n context2D.arc(12, 12, 6, 0, 2 * Math.PI);\n context2D.fillStyle = color.toCssColorString();\n context2D.fill();\n context2D.closePath();\n context2D.lineWidth = 2;\n\n for (var i = 0; i < 3; i++) {\n context2D.beginPath();\n context2D.arc(12, 12, 8, startAngle, startAngle + angle, false);\n context2D.strokeStyle = color.withAlpha(0.4).toCssColorString();\n context2D.stroke();\n context2D.arc(12, 12, 11, startAngle, startAngle + angle, false);\n context2D.strokeStyle = color.withAlpha(0.2).toCssColorString();\n context2D.stroke();\n context2D.closePath();\n startAngle = startAngle + angle + intervalAngle;\n }\n\n context2D.restore();\n this._cache[key] = canvas.toDataURL();\n }\n\n return this._cache[key];\n }\n /**\n *\n * @param {*} clusteredEntities\n * @param {*} cluster\n */\n\n }, {\n key: \"_clusterEventHandler\",\n value: function _clusterEventHandler(clusteredEntities, cluster) {\n if (!this._delegate.clustering.enabled) {\n return;\n }\n\n cluster.billboard.show = true;\n cluster.label.font = \"bold \".concat(this._options.fontSize, \"px sans-serif\");\n cluster.label.fillColor = this._options.fontColor;\n cluster.label.disableDepthTestDistance = Number.POSITIVE_INFINITY;\n\n if (this._delegate.entities.values.length) {\n var allCount = this._delegate.entities.values.length || 0;\n\n for (var key in this._options.gradient) {\n if (clusteredEntities.length >= allCount * key) {\n var numLength = String(clusteredEntities.length).length;\n\n if (this._options.style === 'circle') {\n cluster.billboard.image = this._drawCircle(this._options.gradient[key], numLength);\n } else {\n cluster.billboard.image = this._drawClustering(this._options.gradient[key], numLength);\n }\n\n cluster.label.show = true;\n\n if (numLength === 1) {\n cluster.label.pixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Cartesian2(-2, 3);\n } else {\n cluster.label.pixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Cartesian2(-5 * (numLength - 1), 5);\n }\n } else if (clusteredEntities.length <= 1) {\n cluster.label.show = false;\n }\n }\n }\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this._delegate.entities.removeAll();\n\n this._cache = {};\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_8__[\"default\"].CLEARED;\n return this;\n }\n }]);\n\n return ClusterLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('cluster');\n/* harmony default export */ __webpack_exports__[\"default\"] = (ClusterLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3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0E7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7QUF6SkE7QUFDQTtBQTJKQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/layer/type/ClusterLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/CzmlLayer.js":
- /*!*****************************************!*\
- !*** ./modules/layer/type/CzmlLayer.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-19 13:38:48\n */\n\n\n\n\nvar CzmlLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CzmlLayer, _Layer);\n\n var _super = _createSuper(CzmlLayer);\n\n function CzmlLayer(id) {\n var _this;\n\n var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CzmlLayer);\n\n _this = _super.call(this, id);\n _this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CzmlDataSource.load(url, options);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CzmlLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('czml');\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n }\n /**\n *\n * @param method\n * @param context\n * @returns {CzmlLayer}\n */\n ,\n set: function set(show) {\n var _this2 = this;\n\n this._show = show;\n this._delegate && this._delegate.then(function (dataSource) {\n dataSource.show = _this2._show;\n });\n }\n }, {\n key: \"eachOverlay\",\n value: function eachOverlay(method, context) {\n if (this._delegate) {\n this._delegate.then(function (dataSource) {\n var entities = dataSource.entities.values;\n entities.forEach(function (item) {\n method.call(context, item);\n });\n });\n\n return this;\n }\n }\n }]);\n\n return CzmlLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('czml');\n/* harmony default export */ __webpack_exports__[\"default\"] = (CzmlLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvQ3ptbExheWVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9sYXllci90eXBlL0N6bWxMYXllci5qcz80N2E1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTE5IDEzOjM4OjQ4XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IExheWVyIGZyb20gJy4uL0xheWVyJ1xuXG5jbGFzcyBDem1sTGF5ZXIgZXh0ZW5kcyBMYXllciB7XG4gIGNvbnN0cnVjdG9yKGlkLCB1cmwgPSAnJywgb3B0aW9ucyA9IHt9KSB7XG4gICAgc3VwZXIoaWQpXG4gICAgdGhpcy5fZGVsZWdhdGUgPSBDZXNpdW0uQ3ptbERhdGFTb3VyY2UubG9hZCh1cmwsIG9wdGlvbnMpXG4gICAgdGhpcy5fc3RhdGUgPSBTdGF0ZS5JTklUSUFMSVpFRFxuICB9XG5cbiAgZ2V0IHR5cGUoKSB7XG4gICAgcmV0dXJuIExheWVyLmdldExheWVyVHlwZSgnY3ptbCcpXG4gIH1cblxuICBzZXQgc2hvdyhzaG93KSB7XG4gICAgdGhpcy5fc2hvdyA9IHNob3dcbiAgICB0aGlzLl9kZWxlZ2F0ZSAmJlxuICAgICAgdGhpcy5fZGVsZWdhdGUudGhlbihkYXRhU291cmNlID0+IHtcbiAgICAgICAg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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBOzs7O0FBdkNBO0FBQ0E7QUF5Q0E7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/layer/type/CzmlLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/DynamicLayer.js":
- /*!********************************************!*\
- !*** ./modules/layer/type/DynamicLayer.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-05-05 09:12:41\n */\n\n\n\n\nvar DynamicLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(DynamicLayer, _Layer);\n\n var _super = _createSuper(DynamicLayer);\n\n function DynamicLayer(id) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DynamicLayer);\n\n _this = _super.call(this, id);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CustomDataSource(id);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DynamicLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('dynamic');\n }\n /**\n * Clears all entities\n * @returns {DynamicLayer}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this._delegate.entities && this._delegate.entities.removeAll();\n this._cache = {};\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].CLEARED;\n return this;\n }\n }]);\n\n return DynamicLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('dynamic');\n/* harmony default export */ __webpack_exports__[\"default\"] = (DynamicLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvRHluYW1pY0xheWVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3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s7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFIQTtBQUlBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXBCQTtBQUNBO0FBc0JBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/layer/type/DynamicLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/FeatureGridLayer.js":
- /*!************************************************!*\
- !*** ./modules/layer/type/FeatureGridLayer.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n/* harmony import */ var _VectorLayer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./VectorLayer */ \"./modules/layer/type/VectorLayer.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-04-15 20:00:42\n */\n\n\n\n\nvar DEF_OPTS = {\n name: '',\n count: 10,\n maximumLevel: 21,\n dataProperty: '',\n callback: function callback() {\n return null;\n }\n};\n\nvar FeatureGridLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(FeatureGridLayer, _Layer);\n\n var _super = _createSuper(FeatureGridLayer);\n\n function FeatureGridLayer(id, url) {\n var _this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, FeatureGridLayer);\n\n _this = _super.call(this, id);\n _this._url = url;\n _this._options = _objectSpread(_objectSpread({}, DEF_OPTS), options);\n _this._levelLayers = {};\n _this._tileWidth = 256;\n _this._tileHeight = 256;\n _this._maximumLevel = _this._options.maximumLevel;\n _this._tilingScheme = _this._options.tilingScheme || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].GeographicTilingScheme();\n _this._rectangle = _this._tilingScheme.rectangle;\n _this._credit = undefined;\n _this._token = undefined;\n\n for (var i = 0; i < _this.maximumLevel; i++) {\n _this._levelLayers[String(i)] = new _VectorLayer__WEBPACK_IMPORTED_MODULE_9__[\"default\"](id + '-grid-' + i);\n }\n\n _this._viewer = undefined;\n _this._imageryLayer = undefined;\n _this._imagery = document.createElement('canvas');\n _this._imagery.width = _this._tileWidth;\n _this._imagery.height = _this._tileHeight;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(FeatureGridLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getLayerType('feature_grid');\n }\n }, {\n key: \"url\",\n get: function get() {\n return this._url;\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n },\n set: function set(show) {\n var _this2 = this;\n\n this._show = show;\n Object.keys(this._levelLayers).forEach(function (key) {\n _this2._levelLayers[key].show = show;\n });\n return this;\n }\n }, {\n key: \"token\",\n get: function get() {\n return this._token;\n }\n }, {\n key: \"tileWidth\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].DeveloperError('tileWidth must not be called before the imagery provider is ready.');\n }\n\n return this._tileWidth;\n }\n }, {\n key: \"tileHeight\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].DeveloperError('tileHeight must not be called before the imagery provider is ready.');\n }\n\n return this._tileHeight;\n }\n }, {\n key: \"maximumLevel\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].DeveloperError('maximumLevel must not be called before the imagery provider is ready.');\n }\n\n return this._maximumLevel;\n }\n }, {\n key: \"minimumLevel\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].DeveloperError('minimumLevel must not be called before the imagery provider is ready.');\n }\n\n return 0;\n }\n }, {\n key: \"tilingScheme\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].DeveloperError('tilingScheme must not be called before the imagery provider is ready.');\n }\n\n return this._tilingScheme;\n }\n }, {\n key: \"rectangle\",\n get: function get() {\n if (!this.ready) {\n throw new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].DeveloperError('rectangle must not be called before the imagery provider is ready.');\n }\n\n return this._rectangle;\n }\n }, {\n key: \"ready\",\n get: function get() {\n return !!this._url;\n }\n }, {\n key: \"credit\",\n get: function get() {\n return this._credit;\n }\n }, {\n key: \"hasAlphaChannel\",\n get: function get() {\n return true;\n }\n /**\n *\n * @param {*} viewer\n * @returns\n */\n\n }, {\n key: \"_onAdd\",\n value: function _onAdd(viewer) {\n var _this3 = this;\n\n this._viewer = viewer;\n this._imageryLayer = this._viewer.imageryLayers.addImageryProvider(this);\n Object.keys(this._levelLayers).forEach(function (key) {\n _this3._viewer.addLayer(_this3._levelLayers[key]);\n });\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].ADDED;\n }\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n var _this4 = this;\n\n this._imageryLayer && this._viewer.imageryLayers.remove(this._imageryLayer);\n Object.keys(this._levelLayers).forEach(function (key) {\n _this4._viewer.removeLayer(_this4._levelLayers[key]);\n });\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].REMOVED;\n }\n }, {\n key: \"getTileCredits\",\n value: function getTileCredits(x, y, level) {}\n /**\n *\n * @param {*} x\n * @param {*} y\n * @param {*} level\n * @param {*} request\n * @returns\n */\n\n }, {\n key: \"requestImage\",\n value: function requestImage(x, y, level, request) {\n var _this5 = this;\n\n var layer = this._levelLayers[String(level)];\n\n var rectangle = this._tilingScheme.tileXYToRectangle(x, y, level);\n\n if (this._viewer && rectangle && layer && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Rectangle.intersection(rectangle, this._viewer.viewBounds)) {\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Resource.fetchJson({\n url: this._url,\n queryParameters: {\n minX: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(rectangle.west),\n minY: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(rectangle.south),\n maxX: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(rectangle.east),\n maxY: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(rectangle.north),\n count: this._options.count\n }\n }).then(function (res) {\n var dataList = res;\n\n if (_this5._options.dataProperty) {\n dataList = eval('res.' + _this5._options.dataProperty);\n }\n\n if (dataList && dataList.length) {\n for (var i = level + 3; i < _this5._maximumLevel; i++) {\n _this5._levelLayers[String(i)] && _this5._levelLayers[String(i)].clear();\n }\n\n dataList.forEach(function (item) {\n var overlay = _this5._options.callback(item);\n\n overlay && layer.addOverlay(overlay);\n });\n }\n });\n }\n\n return this._imagery;\n }\n /**\n *\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n var _this6 = this;\n\n Object.keys(this._levelLayers).forEach(function (key) {\n _this6._levelLayers[key].clear();\n });\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].CLEARED;\n }\n }]);\n\n return FeatureGridLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"].registerType('feature_grid');\n/* harmony default export */ __webpack_exports__[\"default\"] = (FeatureGridLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvRmVhdHVyZUdyaWRMYXllci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbGF5ZXIvdHlwZS9GZWF0dXJlR3JpZExheWVyLmpzPzFiMjUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDQtMTUgMjA6MDA6NDJcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgTGF5ZXIgZnJvbSAnLi4vTGF5ZXInXG5pb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************************!*\
- !*** ./modules/layer/type/GeoJsonLayer.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n/* harmony import */ var _VectorLayer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./VectorLayer */ \"./modules/layer/type/VectorLayer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-13 10:13:53\n */\n\n\n\n\n\n\nvar GeoJsonLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GeoJsonLayer, _Layer);\n\n var _super = _createSuper(GeoJsonLayer);\n\n function GeoJsonLayer(id, url) {\n var _this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GeoJsonLayer);\n\n if (!url) {\n throw new Error('GeoJsonLayer:the url invalid');\n }\n\n _this = _super.call(this, id);\n _this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeoJsonDataSource.load(url, options);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(GeoJsonLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getLayerType('geojson');\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n },\n set: function set(show) {\n var _this2 = this;\n\n this._show = show;\n this._delegate && this._delegate.then(function (dataSource) {\n dataSource.show = _this2._show;\n });\n }\n }, {\n key: \"_createBillboard\",\n value: function _createBillboard(entity) {\n if (entity.position && entity.billboard) {\n return _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_7__[\"Billboard\"].fromEntity(entity);\n }\n }\n /**\n * Returns polyline Entity\n * @param entity\n * @returns {any}\n * @private\n */\n\n }, {\n key: \"_createPolyline\",\n value: function _createPolyline(entity) {\n if (entity.polyline) {\n return _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_7__[\"Polyline\"].fromEntity(entity);\n }\n }\n /**\n * Returns polygon Entity\n * @param entity\n * @returns {any}\n * @private\n */\n\n }, {\n key: \"_createPolygon\",\n value: function _createPolygon(entity) {\n if (entity.polygon) {\n return _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_7__[\"Polygon\"].fromEntity(entity);\n }\n }\n /**\n * Returns model Entity\n * @param entity\n * @param modelUrl\n * @returns {Model}\n * @private\n */\n\n }, {\n key: \"_createModel\",\n value: function _createModel(entity, modelUrl) {\n if (entity) {\n return _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_7__[\"Model\"].fromEntity(entity, modelUrl);\n }\n }\n /**\n *\n * @param method\n * @param context\n * @returns {GeoJsonLayer}\n */\n\n }, {\n key: \"eachOverlay\",\n value: function eachOverlay(method, context) {\n if (this._delegate) {\n this._delegate.then(function (dataSource) {\n var entities = dataSource.entities.values;\n entities.forEach(function (item) {\n method.call(context, item);\n });\n });\n\n return this;\n }\n }\n /**\n * Converts to VectorLayer\n * @returns {VectorLayer}\n */\n\n }, {\n key: \"toVectorLayer\",\n value: function toVectorLayer() {\n var _this3 = this;\n\n var layer = new _VectorLayer__WEBPACK_IMPORTED_MODULE_9__[\"default\"](this.id);\n this.eachOverlay(function (item) {\n if (item.billboard) {\n layer.addOverlay(_this3._createBillboard(item));\n } else if (item.polyline) {\n layer.addOverlay(_this3._createPolyline(item));\n } else if (item.polygon) {\n layer.addOverlay(_this3._createPolygon(item));\n }\n }, this);\n return layer;\n }\n /**\n * Converts to VectorLayer\n * @param modelUrl\n * @returns {VectorLayer}\n */\n\n }, {\n key: \"toModelLayer\",\n value: function toModelLayer(modelUrl) {\n var _this4 = this;\n\n var layer = new _VectorLayer__WEBPACK_IMPORTED_MODULE_9__[\"default\"](this.id);\n this.eachOverlay(function (item) {\n layer.addOverlay(_this4._createModel(item, modelUrl));\n }, this);\n return layer;\n }\n }]);\n\n return GeoJsonLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"].registerType('geojson');\n/* harmony default export */ __webpack_exports__[\"default\"] = (GeoJsonLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvR2VvSnNvbkxheWVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9sYXllci90eXBlL0dlb0pzb25MYXllci5qcz9jODg0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTEzIDEwOjEzOjUzXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IHsgQmlsbGJvYXJkLCBQb2x5bGluZSwgUG9seWdvbiwgTW9kZWwgfSBmcm9tICdAZ2QtbW9kdWxlcy9vdmVybGF5J1xuaW1wb3J0IExheWVyIGZyb20gJy4uL0xheWVyJ1xuaW1wb3J0IFZlY3RvckxheWVyIGZyb20gJy4vVmVjdG9yTGF5ZXInXG5cbmNsYXNzIEdlb0pzb25MYXllciBleHRlbmRzIExheWVyIHtcbiAgY29uc3RydWN0b3IoaWQsIHVybCwgb3B0aW9ucyA9IHt9KSB7XG4gICAgaWYgKCF1cmwpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignR2VvSnNvbkxheWVy77yadGhlIHVybCBpbnZhbGlkJylcbiAgICB9XG4gICAgc3VwZXIoaWQpXG4gICAgdGhpcy5fZGVsZWdhdGUgPSBDZXNpdW0uR2VvSnNvbkRhdGFTb3VyY2UubG9hZCh1cmwsIG9wdGlvbnMpXG4gICAgdGhpcy5fc3RhdGUgPSBTdGF0ZS5JTklUSUFMSVpFRFxuICB9XG5cbiAgZ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XR1cm5zIG1vZGVsIEVudGl0eVxuICAgKiBAcGFyYW0gZW50aXR5XG4gICAqIEBwYXJhbSBtb2RlbFVybFxuICAgKiBAcmV0dXJucyB7TW9kZWx9XG4gICAqIEBwcml2YXRlXG4gICAqL1xuICBfY3JlYXRlTW9kZWwoZW50aXR5LCBtb2RlbFVybCkge1xuICAgIGlmIChlbnRpdHkpIHtcbiAgICAgIHJldHVybiBNb2RlbC5mcm9tRW50aXR5KGVudGl0eSwgbW9kZWxVcmwpXG4gICAgfVxuICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwYXJhbSBtZXRob2RcbiAgICogQHBhcmFtIGNvbnRleHRcbiAgICogQHJldHVybnMge0dlb0pzb25MYXllcn1cbiAgICovXG4gIGVhY2hPdmVybGF5KG1ldGhvZCwgY29udGV4dCkge1xuICAgIGlmICh0aGlzLl9kZWxlZ2F0ZSkge1xuICAgICAgdGhpcy5fZGVsZWdhdGUudGhlbihkYXRhU291cmNlID0+IHtcbiAgICAgICAgbGV0IGVudGl0aWVzID0gZGF0YVNvdXJjZS5lbnRpdGllcy52YWx1ZXNcbiAgICAgICAgZW50aXRpZXMuZm9yRWFjaChpdGVtID0+IHtcbiAgICAgICAgICBtZXRob2QuY2FsbChjb250ZXh0LCBpdGVtKVxuICAgICAgICB9KVxuICAgICAgfSlcbiAgICAgIHJldHVybiB0aGlzXG4gICAgfVxuICB9XG5cbiAgLyoqXG4gICAqIENvbnZlcnRzIHRvIFZlY3RvckxheWVyXG4gICAqIEByZXR1cm5zIHtWZWN0b3JMYXllcn1cbiAgICovXG4gIHRvVmVjdG9yTGF5ZXIoKSB7XG4gICAgbGV0IGxheWVyID0gbmV3IFZlY3RvckxheWVyKHRoaXMuaWQpXG4gICAgdGhpcy5lYWNoT3ZlcmxheShpdGVtID0+IHtcbiAgICAgIGlmIChpdGVtLmJpbGxib2FyZCkge1xuICAgICAgICBsYXllci5hZGRPdmVybGF5KHRoaXMuX2NyZWF0ZUJpbGxib2FyZChp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tBQUNBO0FBQ0E7QUFWQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBOzs7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFwSEE7QUFDQTtBQXNIQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/layer/type/GeoJsonLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/GpxLayer.js":
- /*!****************************************!*\
- !*** ./modules/layer/type/GpxLayer.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-19 11:03:17\n */\n\n\n\n\nvar GpxLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GpxLayer, _Layer);\n\n var _super = _createSuper(GpxLayer);\n\n function GpxLayer(id, url) {\n var _this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GpxLayer);\n\n if (!url) {\n throw new Error('GpxLayer: the url is empty');\n }\n\n _this = _super.call(this, id);\n _this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].KmlDataSource.load(url, options);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(GpxLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('gpx');\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n },\n set: function set(show) {\n var _this2 = this;\n\n this._show = show;\n this._delegate && this._delegate.then(function (dataSource) {\n dataSource.show = _this2._show;\n });\n }\n }, {\n key: \"eachOverlay\",\n value: function eachOverlay(method, context) {\n if (this._delegate) {\n this._delegate.then(function (dataSource) {\n var entities = dataSource.entities.values;\n entities.forEach(function (item) {\n method.call(context, item);\n });\n });\n\n return this;\n }\n }\n }]);\n\n return GpxLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('gpx');\n/* harmony default export */ __webpack_exports__[\"default\"] = (GpxLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvR3B4TGF5ZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2xheWVyL3R5cGUvR3B4TGF5ZXIuanM/NzNmYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMS0xOSAxMTowMzoxN1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVz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0gPT4ge1xuICAgICAgICAgIG1ldGhvZC5jYWxsKGNvbnRleHQsIGl0ZW0pXG4gICAgICAgIH0pXG4gICAgICB9KVxuICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gIH1cbn1cblxuTGF5ZXIucmVnaXN0ZXJUeXBlKCdncHgnKVxuXG5leHBvcnQgZGVmYXVsdCBHcHhMYXllclxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQU5BO0FBT0E7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFVQTtBQUNBO0FBQ0E7QUFWQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBOzs7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7Ozs7QUFwQ0E7QUFDQTtBQXNDQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/layer/type/GpxLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/GroundPrimitiveLayer.js":
- /*!****************************************************!*\
- !*** ./modules/layer/type/GroundPrimitiveLayer.js ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-12-03 20:12:59\n */\n\n\n\n\nvar GroundPrimitiveLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GroundPrimitiveLayer, _Layer);\n\n var _super = _createSuper(GroundPrimitiveLayer);\n\n function GroundPrimitiveLayer(id) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GroundPrimitiveLayer);\n\n _this = _super.call(this, id);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PrimitiveCollection();\n _this._isGround = true;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(GroundPrimitiveLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('ground_primitive');\n }\n /**\n *\n * @return {GroundPrimitiveLayer}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this._delegate && this._delegate.removeAll();\n this._cache = {};\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].CLEARED;\n return this;\n }\n }]);\n\n return GroundPrimitiveLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('ground_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (GroundPrimitiveLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvR3JvdW5kUHJpbWl0aXZlTGF5ZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2xheWVyL3R5cGUvR3JvdW5kUHJpbWl0aXZlTGF5ZXIuanM/ZTc1NSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0xMi0wMyAyMDoxMjo1OVxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBMYXllciBmcm9tICcuLi9MYXllcidcblxuY2xhc3MgR3JvdW5kUHJpbWl0aXZlTGF5ZXIgZXh0ZW5kcyBMYXllciB7XG4gIGNvbnN0cnVj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al:///./modules/layer/type/GroundPrimitiveLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/HtmlLayer.js":
- /*!*****************************************!*\
- !*** ./modules/layer/type/HtmlLayer.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-12 21:43:33\n */\n\n\n\n\n\n\nvar HtmlLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(HtmlLayer, _Layer);\n\n var _super = _createSuper(HtmlLayer);\n\n function HtmlLayer(id) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, HtmlLayer);\n\n _this = _super.call(this, id);\n _this._delegate = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"DomUtil\"].create('div', 'html-layer', undefined);\n\n _this._delegate.setAttribute('id', _this._id);\n\n _this._renderRemoveCallback = undefined;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(HtmlLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getLayerType('html');\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n }\n /**\n * add handler\n * @param viewer\n * @private\n */\n ,\n set: function set(show) {\n var _this2 = this;\n\n this._show = show;\n this._delegate.style.visibility = this._show ? 'visible' : 'hidden';\n Object.keys(this._cache).forEach(function (key) {\n _this2._cache[key].show = show;\n });\n return this;\n }\n }, {\n key: \"_onAdd\",\n value: function _onAdd(viewer) {\n var _this3 = this;\n\n this._viewer = viewer;\n\n this._viewer.gdContainer.appendChild(this._delegate);\n\n var scene = this._viewer.scene;\n this._renderRemoveCallback = scene.postRender.addEventListener(function () {\n var cp = _this3._viewer.camera.positionWC;\n var cd = _this3._viewer.camera.direction;\n\n _this3.eachOverlay(function (item) {\n if (item && item.position) {\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ToCartesian(item.position);\n var up = scene.globe.ellipsoid.geodeticSurfaceNormal(position, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3());\n var windowCoord = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneTransforms.wgs84ToWindowCoordinates(scene, position);\n\n item._updateStyle(windowCoord, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.distance(position, cp), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.dot(cd, up) <= 0);\n }\n }, _this3);\n }, this);\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].ADDED;\n }\n /**\n * remove handler\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n this._renderRemoveCallback && this._renderRemoveCallback();\n\n this._viewer.gdContainer.removeChild(this._delegate);\n\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].REMOVED;\n }\n /**\n * Clears all divIcons\n * @returns {HtmlLayer}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n while (this._delegate.hasChildNodes()) {\n this._delegate.removeChild(this._delegate.firstChild);\n }\n\n this._cache = {};\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].CLEARED;\n return this;\n }\n }]);\n\n return HtmlLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('html');\n/* harmony default export */ __webpack_exports__[\"default\"] = (HtmlLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvSHRtbExheWVyLmp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0E7QUFvRkE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/layer/type/HtmlLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/KmlLayer.js":
- /*!****************************************!*\
- !*** ./modules/layer/type/KmlLayer.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-19 11:03:17\n */\n\n\n\n\nvar KmlLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(KmlLayer, _Layer);\n\n var _super = _createSuper(KmlLayer);\n\n function KmlLayer(id, url) {\n var _this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KmlLayer);\n\n if (!url) {\n throw new Error('KmlLayer: the url is empty');\n }\n\n _this = _super.call(this, id);\n _this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].KmlDataSource.load(url, options);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(KmlLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('kml');\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n },\n set: function set(show) {\n var _this2 = this;\n\n this._show = show;\n this._delegate && this._delegate.then(function (dataSource) {\n dataSource.show = _this2._show;\n });\n }\n }, {\n key: \"eachOverlay\",\n value: function eachOverlay(method, context) {\n if (this._delegate) {\n this._delegate.then(function (dataSource) {\n var entities = dataSource.entities.values;\n entities.forEach(function (item) {\n method.call(context, item);\n });\n });\n\n return this;\n }\n }\n }]);\n\n return KmlLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('kml');\n/* harmony default export */ __webpack_exports__[\"default\"] = (KmlLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvS21sTG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dGhpcy5fc2hvd1xuICB9XG5cbiAgZWFjaE92ZXJsYXkobWV0aG9kLCBjb250ZXh0KSB7XG4gICAgaWYgKHRoaXMuX2RlbGVnYXRlKSB7XG4gICAgICB0aGlzLl9kZWxlZ2F0ZS50aGVuKGRhdGFTb3VyY2UgPT4ge1xuICAgICAgICBsZXQgZW50aXRpZXMgPSBkYXRhU291cmNlLmVudGl0aWVzLnZhbHVlc1xuICAgICAgICBlbnRpdGllcy5mb3JFYWNoKGl0ZW0gPT4ge1xuICAgICAgICAgIG1ldGhvZC5jYWxsKGNvbnRleHQsIGl0ZW0pXG4gICAgICAgIH0pXG4gICAgICB9KVxuICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gIH1cbn1cblxuTGF5ZXIucmVnaXN0ZXJUeXBlKCdrbWwnKVxuXG5leHBvcnQgZGVmYXVsdCBLbWxMYXllclxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQU5BO0FBT0E7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFVQTtBQUNBO0FBQ0E7QUFWQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBOzs7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7Ozs7QUFwQ0E7QUFDQTtBQXNDQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/layer/type/KmlLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/LabelLayer.js":
- /*!******************************************!*\
- !*** ./modules/layer/type/LabelLayer.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-30 17:14:00\n */\n\n\n\n\n\nvar LabelLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LabelLayer, _Layer);\n\n var _super = _createSuper(LabelLayer);\n\n function LabelLayer(id) {\n var _this;\n\n var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LabelLayer);\n\n _this = _super.call(this, id);\n _this._dataSource = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeoJsonDataSource.load(url);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CustomDataSource(id);\n\n _this._initLabel();\n\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LabelLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getLayerType('label');\n }\n }, {\n key: \"_createLabel\",\n value: function _createLabel(entity) {\n if (entity.position && entity.name) {\n return _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_7__[\"Label\"].fromEntity(entity);\n }\n }\n }, {\n key: \"_initLabel\",\n value: function _initLabel() {\n var _this2 = this;\n\n this._dataSource.then(function (dataSource) {\n var entities = dataSource.entities.values;\n entities.forEach(function (item) {\n var label = _this2._createLabel(item);\n\n _this2.addOverlay(label);\n });\n });\n }\n }]);\n\n return LabelLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_8__[\"default\"].registerType('label');\n/* harmony default export */ __webpack_exports__[\"default\"] = (LabelLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUv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B7XG4gICAgdGhpcy5fZGF0YVNvdXJjZS50aGVuKGRhdGFTb3VyY2UgPT4ge1xuICAgICAgbGV0IGVudGl0aWVzID0gZGF0YVNvdXJjZS5lbnRpdGllcy52YWx1ZXNcbiAgICAgIGVudGl0aWVzLmZvckVhY2goaXRlbSA9PiB7XG4gICAgICAgIGxldCBsYWJlbCA9IHRoaXMuX2NyZWF0ZUxhYmVsKGl0ZW0pXG4gICAgICAgIHRoaXMuYWRkT3ZlcmxheShsYWJlbClcbiAgICAgIH0pXG4gICAgfSlcbiAgfVxufVxuXG5MYXllci5yZWdpc3RlclR5cGUoJ2xhYmVsJylcblxuZXhwb3J0IGRlZmF1bHQgTGFiZWxMYXllclxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUxBO0FBTUE7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7QUEzQkE7QUFDQTtBQTZCQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/layer/type/LabelLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/PrimitiveLayer.js":
- /*!**********************************************!*\
- !*** ./modules/layer/type/PrimitiveLayer.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-10-11 18:16:47\n */\n\n\n\n/**\n * PrimitiveLayer is used to add primitve\n */\n\nvar PrimitiveLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PrimitiveLayer, _Layer);\n\n var _super = _createSuper(PrimitiveLayer);\n\n function PrimitiveLayer(id) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PrimitiveLayer);\n\n _this = _super.call(this, id);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PrimitiveCollection();\n _this._points = _this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PointPrimitiveCollection());\n _this._labels = _this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].LabelCollection());\n _this._billboards = _this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].BillboardCollection());\n _this._polylines = _this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolylineCollection());\n\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CloudCollection) {\n _this._clouds = _this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CloudCollection());\n }\n\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PrimitiveLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('primitive');\n }\n }, {\n key: \"points\",\n get: function get() {\n return this._points;\n }\n }, {\n key: \"labels\",\n get: function get() {\n return this._labels;\n }\n }, {\n key: \"billboards\",\n get: function get() {\n return this._billboards;\n }\n }, {\n key: \"polylines\",\n get: function get() {\n return this._polylines;\n }\n }, {\n key: \"clouds\",\n get: function get() {\n return this._clouds;\n }\n /**\n * Clears all primitives\n * @returns {PrimitiveLayer}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this._delegate && this._delegate.removeAll();\n this._points = this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PointPrimitiveCollection());\n this._labels = this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].LabelCollection());\n this._billboards = this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].BillboardCollection());\n this._polylines = this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolylineCollection());\n\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CloudCollection) {\n this._clouds = this._delegate.add(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CloudCollection());\n }\n\n this._cache = {};\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].CLEARED;\n return this;\n }\n }]);\n\n return PrimitiveLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (PrimitiveLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvUHJpbWl0aXZlTGF5ZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2xheWVyL3R5cGUvUHJpbWl0aXZlTGF5ZXIuanM/OTYyMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0xMC0xMSAxODoxNjo0N1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBMYXllciBmcm9tICcuLi9MYXllcidcblxuLyoqXG4gKiBQcmltaXRpdmV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ZlJylcblxuZXhwb3J0IGRlZmF1bHQgUHJpbWl0aXZlTGF5ZXJcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFWQTtBQVdBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7QUF0REE7QUFDQTtBQXdEQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/layer/type/PrimitiveLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/TilesetLayer.js":
- /*!********************************************!*\
- !*** ./modules/layer/type/TilesetLayer.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-09 09:16:27\n */\n\n\n\n/**\n * TilesetLayer is used to add various tileset\n */\n\nvar TilesetLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TilesetLayer, _Layer);\n\n var _super = _createSuper(TilesetLayer);\n\n function TilesetLayer(id) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TilesetLayer);\n\n _this = _super.call(this, id);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PrimitiveCollection();\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TilesetLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('tileset');\n }\n /**\n * Clear all tileset\n * @returns {TilesetLayer}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this._delegate.removeAll();\n\n this._cache = {};\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].CLEARED;\n return this;\n }\n }]);\n\n return TilesetLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('tileset');\n/* harmony default export */ __webpack_exports__[\"default\"] = (TilesetLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvVGlsZXNldExheWVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9sYXllci90eXBlL1RpbGVzZXRMYXllci5qcz9kMzE0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTA5IDA5OjE2OjI3XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IExheWVyIGZyb20gJy4uL0xheWVyJ1xuXG4vKipcbiAqIFRpbGVzZXRMYXllciBpcyB1c2VkIHRvIGFkZCB2YXJpb3VzIHRpbGVzZXRcbiAqL1xuY2xhc3MgVGlsZXNldExheWVyIGV4dGVuZHMgTGF5ZXIge1xuICBjb25zdHJ1Y3RvcihpZCkge1xuICA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********************************************!*\
- !*** ./modules/layer/type/TopoJsonLayer.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _GeoJsonLayer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./GeoJsonLayer */ \"./modules/layer/type/GeoJsonLayer.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-09-11 19:32:22\n */\n\n\n\n\nvar TopoJsonLayer = /*#__PURE__*/function (_GeoJsonLayer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TopoJsonLayer, _GeoJsonLayer);\n\n var _super = _createSuper(TopoJsonLayer);\n\n function TopoJsonLayer(id, url) {\n var _this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TopoJsonLayer);\n\n if (!url) {\n throw new Error('TopoJsonLayer:the url invalid');\n }\n\n _this = _super.call(this, id, url, options);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TopoJsonLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('topojson');\n }\n }]);\n\n return TopoJsonLayer;\n}(_GeoJsonLayer__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\n_GeoJsonLayer__WEBPACK_IMPORTED_MODULE_6__[\"default\"].registerType('topojson');\n/* harmony default export */ __webpack_exports__[\"default\"] = (TopoJsonLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvVG9wb0pzb25MYXllci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbGF5ZXIvdHlwZS9Ub3BvSnNvbkxheWVyLmpzPzliYzciXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDktMTEgMTk6MzI6MjJcbiAqL1xuXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgR2VvSnNvbkxheWVyIGZyb20gJy4vR2VvSnNvbkxheWVyJ1xuaW1wb3J0IExheWVyIGZyb20gJy4uL0xheWVyJ1xuXG5jbGFzcyBUb3BvSnNvbkxheWVyIGV4dGVuZHMgR2VvSnNvbkxheWVyIHtcbiAgY29uc3RydWN0b3IoaWQsIHVybCwgb3B0aW9ucyA9IHt9KSB7XG4gICAgaWYgKCF1cmwpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignVG9wb0pzb25MYXllcu+8mnRoZSB1cmwgaW52YWxpZCcpXG4gICAgfVxuICAgIHN1cGVyKGlkLCB1cmwsIG9wdGlvbnMpXG4gICAgdGhpcy5fc3RhdGUgPSBTdGF0ZS5JTklUSUFMSVpFRFxuICB9XG5cbiAgZ2V0IHR5cGUoKSB7XG4gICAgcmV0dXJuIExheWVyLmdldExheWVyVHlwZSgndG9wb2pzb24nKVxuICB9XG59XG5cbkdlb0pzb25MYXllci5yZWdpc3RlclR5cGUoJ3RvcG9qc29uJylcblxuZXhwb3J0IGRlZmF1bHQgVG9wb0pzb25MYXllclxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFMQTtBQU1BO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7OztBQVhBO0FBQ0E7QUFhQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/layer/type/TopoJsonLayer.js\n");
- /***/ }),
- /***/ "./modules/layer/type/VectorLayer.js":
- /*!*******************************************!*\
- !*** ./modules/layer/type/VectorLayer.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Layer */ \"./modules/layer/Layer.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-02 16:42:03\n */\n\n\n\n/**\n * The vector layer is used to add various entity, which is essentially a CustomDataSource\n * that is used to place entities of the same class or business attribute into the same layer\n */\n\nvar VectorLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(VectorLayer, _Layer);\n\n var _super = _createSuper(VectorLayer);\n\n function VectorLayer(id) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, VectorLayer);\n\n _this = _super.call(this, id);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CustomDataSource(id);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(VectorLayer, [{\n key: \"type\",\n get: function get() {\n return _Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getLayerType('vector');\n }\n /**\n * Clears all entities\n * @returns {VectorLayer}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this._delegate.entities && this._delegate.entities.removeAll();\n this._cache = {};\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].CLEARED;\n return this;\n }\n }]);\n\n return VectorLayer;\n}(_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Layer__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('vector');\n/* harmony default export */ __webpack_exports__[\"default\"] = (VectorLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL2xheWVyL3R5cGUvVmVjdG9yTGF5ZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL2xheWVyL3R5cGUvVmVjdG9yTGF5ZXIuanM/NTQxMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMS0wMiAxNjo0MjowM1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBMYXllciBmcm9tICcu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tBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFIQTtBQUlBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXBCQTtBQUNBO0FBc0JBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/layer/type/VectorLayer.js\n");
- /***/ }),
- /***/ "./modules/material/MaterialProperty.js":
- /*!**********************************************!*\
- !*** ./modules/material/MaterialProperty.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 22:33:50\n */\n\n\nvar MaterialProperty = /*#__PURE__*/function () {\n function MaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MaterialProperty);\n\n this._definitionChanged = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Event();\n this._color = undefined;\n this._colorSubscription = undefined;\n this._speed = undefined;\n this._speedSubscription = undefined;\n this.color = options.color || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color.fromBytes(0, 255, 255, 255);\n this.speed = options.speed || 1;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MaterialProperty, [{\n key: \"isConstant\",\n get: function get() {\n return false;\n }\n }, {\n key: \"definitionChanged\",\n get: function get() {\n return this._definitionChanged;\n }\n }, {\n key: \"getType\",\n value: function getType(time) {\n return null;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defaultValue(result, {});\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other;\n }\n }]);\n\n return MaterialProperty;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (MaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL01hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL01hdGVyaWFsUHJvcGVydHkuanM/ODUyNyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMi0yNyAyMjozMzo1MFxuICovXG5cbmltcG9ydCB7I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0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/MaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/index.js":
- /*!***********************************!*\
- !*** ./modules/material/index.js ***!
- \***********************************/
- /*! exports provided: CircleBlurMaterialProperty, CircleDiffuseMaterialProperty, CircleFadeMaterialProperty, CirclePulseMaterialProperty, CircleScanMaterialProperty, CircleSpiralMaterialProperty, CircleVaryMaterialProperty, CircleWaveMaterialProperty, EllipsoidElectricMaterialProperty, EllipsoidTrailMaterialProperty, PolylineFlickerMaterialProperty, PolylineFlowMaterialProperty, PolylineImageTrailMaterialProperty, PolylineLightingMaterialProperty, PolylineLightingTrailMaterialProperty, PolylineTrailMaterialProperty, RadarLineMaterialProperty, RadarSweepMaterialProperty, RadarWaveMaterialProperty, WallImageTrailMaterialProperty, WallLineTrailMaterialProperty, WallTrailMaterialProperty, WaterMaterialProperty */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _type_thirdpart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type/thirdpart */ \"./modules/material/type/thirdpart.js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _type_circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./type/circle */ \"./modules/material/type/circle.js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _type_ellipsoid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type/ellipsoid */ \"./modules/material/type/ellipsoid.js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _type_polyline__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./type/polyline */ \"./modules/material/type/polyline.js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _type_radar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./type/radar */ \"./modules/material/type/radar.js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _type_wall__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./type/wall */ \"./modules/material/type/wall.js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _property_circle_CircleBlurMaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./property/circle/CircleBlurMaterialProperty */ \"./modules/material/property/circle/CircleBlurMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CircleBlurMaterialProperty\", function() { return _property_circle_CircleBlurMaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _property_circle_CircleDiffuseMaterialProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./property/circle/CircleDiffuseMaterialProperty */ \"./modules/material/property/circle/CircleDiffuseMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CircleDiffuseMaterialProperty\", function() { return _property_circle_CircleDiffuseMaterialProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _property_circle_CircleFadeMaterialProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./property/circle/CircleFadeMaterialProperty */ \"./modules/material/property/circle/CircleFadeMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CircleFadeMaterialProperty\", function() { return _property_circle_CircleFadeMaterialProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _property_circle_CirclePulseMaterialProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./property/circle/CirclePulseMaterialProperty */ \"./modules/material/property/circle/CirclePulseMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CirclePulseMaterialProperty\", function() { return _property_circle_CirclePulseMaterialProperty__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _property_circle_CircleScanMaterialProperty__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./property/circle/CircleScanMaterialProperty */ \"./modules/material/property/circle/CircleScanMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CircleScanMaterialProperty\", function() { return _property_circle_CircleScanMaterialProperty__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/* harmony import */ var _property_circle_CircleSpiralMaterialProperty__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./property/circle/CircleSpiralMaterialProperty */ \"./modules/material/property/circle/CircleSpiralMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CircleSpiralMaterialProperty\", function() { return _property_circle_CircleSpiralMaterialProperty__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _property_circle_CircleVaryMaterialProperty__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./property/circle/CircleVaryMaterialProperty */ \"./modules/material/property/circle/CircleVaryMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CircleVaryMaterialProperty\", function() { return _property_circle_CircleVaryMaterialProperty__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; });\n\n/* harmony import */ var _property_circle_CircleWaveMaterialProperty__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./property/circle/CircleWaveMaterialProperty */ \"./modules/material/property/circle/CircleWaveMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CircleWaveMaterialProperty\", function() { return _property_circle_CircleWaveMaterialProperty__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; });\n\n/* harmony import */ var _property_ellipsoid_EllipsoidElectricMaterialProperty__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./property/ellipsoid/EllipsoidElectricMaterialProperty */ \"./modules/material/property/ellipsoid/EllipsoidElectricMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"EllipsoidElectricMaterialProperty\", function() { return _property_ellipsoid_EllipsoidElectricMaterialProperty__WEBPACK_IMPORTED_MODULE_14__[\"default\"]; });\n\n/* harmony import */ var _property_ellipsoid_EllipsoidTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./property/ellipsoid/EllipsoidTrailMaterialProperty */ \"./modules/material/property/ellipsoid/EllipsoidTrailMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"EllipsoidTrailMaterialProperty\", function() { return _property_ellipsoid_EllipsoidTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_15__[\"default\"]; });\n\n/* harmony import */ var _property_polyline_PolylineFlickerMaterialProperty__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./property/polyline/PolylineFlickerMaterialProperty */ \"./modules/material/property/polyline/PolylineFlickerMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PolylineFlickerMaterialProperty\", function() { return _property_polyline_PolylineFlickerMaterialProperty__WEBPACK_IMPORTED_MODULE_16__[\"default\"]; });\n\n/* harmony import */ var _property_polyline_PolylineFlowMaterialProperty__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./property/polyline/PolylineFlowMaterialProperty */ \"./modules/material/property/polyline/PolylineFlowMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PolylineFlowMaterialProperty\", function() { return _property_polyline_PolylineFlowMaterialProperty__WEBPACK_IMPORTED_MODULE_17__[\"default\"]; });\n\n/* harmony import */ var _property_polyline_PolylineImageTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./property/polyline/PolylineImageTrailMaterialProperty */ \"./modules/material/property/polyline/PolylineImageTrailMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PolylineImageTrailMaterialProperty\", function() { return _property_polyline_PolylineImageTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_18__[\"default\"]; });\n\n/* harmony import */ var _property_polyline_PolylineLightingMaterialProperty__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./property/polyline/PolylineLightingMaterialProperty */ \"./modules/material/property/polyline/PolylineLightingMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PolylineLightingMaterialProperty\", function() { return _property_polyline_PolylineLightingMaterialProperty__WEBPACK_IMPORTED_MODULE_19__[\"default\"]; });\n\n/* harmony import */ var _property_polyline_PolylineLightingTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./property/polyline/PolylineLightingTrailMaterialProperty */ \"./modules/material/property/polyline/PolylineLightingTrailMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PolylineLightingTrailMaterialProperty\", function() { return _property_polyline_PolylineLightingTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_20__[\"default\"]; });\n\n/* harmony import */ var _property_polyline_PolylineTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./property/polyline/PolylineTrailMaterialProperty */ \"./modules/material/property/polyline/PolylineTrailMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PolylineTrailMaterialProperty\", function() { return _property_polyline_PolylineTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_21__[\"default\"]; });\n\n/* harmony import */ var _property_radar_RadarLineMaterialProperty__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./property/radar/RadarLineMaterialProperty */ \"./modules/material/property/radar/RadarLineMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"RadarLineMaterialProperty\", function() { return _property_radar_RadarLineMaterialProperty__WEBPACK_IMPORTED_MODULE_22__[\"default\"]; });\n\n/* harmony import */ var _property_radar_RadarSweepMaterialProperty__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./property/radar/RadarSweepMaterialProperty */ \"./modules/material/property/radar/RadarSweepMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"RadarSweepMaterialProperty\", function() { return _property_radar_RadarSweepMaterialProperty__WEBPACK_IMPORTED_MODULE_23__[\"default\"]; });\n\n/* harmony import */ var _property_radar_RadarWaveMaterialProperty__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./property/radar/RadarWaveMaterialProperty */ \"./modules/material/property/radar/RadarWaveMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"RadarWaveMaterialProperty\", function() { return _property_radar_RadarWaveMaterialProperty__WEBPACK_IMPORTED_MODULE_24__[\"default\"]; });\n\n/* harmony import */ var _property_wall_WallImageTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./property/wall/WallImageTrailMaterialProperty */ \"./modules/material/property/wall/WallImageTrailMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WallImageTrailMaterialProperty\", function() { return _property_wall_WallImageTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_25__[\"default\"]; });\n\n/* harmony import */ var _property_wall_WallLineTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./property/wall/WallLineTrailMaterialProperty */ \"./modules/material/property/wall/WallLineTrailMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WallLineTrailMaterialProperty\", function() { return _property_wall_WallLineTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_26__[\"default\"]; });\n\n/* harmony import */ var _property_wall_WallTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./property/wall/WallTrailMaterialProperty */ \"./modules/material/property/wall/WallTrailMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WallTrailMaterialProperty\", function() { return _property_wall_WallTrailMaterialProperty__WEBPACK_IMPORTED_MODULE_27__[\"default\"]; });\n\n/* harmony import */ var _property_water_WaterMaterialProperty__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./property/water/WaterMaterialProperty */ \"./modules/material/property/water/WaterMaterialProperty.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WaterMaterialProperty\", function() { return _property_water_WaterMaterialProperty__WEBPACK_IMPORTED_MODULE_28__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2020-02-24 13:28:37\n */\n// material\n\n\n\n\n\n\n/**\n * circle material property\n */\n\n\n\n\n\n\n\n\n\n/**\n * ellipsoid material property\n */\n\n\n\n/**\n * polyline material property\n */\n\n\n\n\n\n\n\n/**\n * radar material property\n */\n\n\n\n\n/**\n * wall material property\n */\n\n\n\n\n/**\n * water material property\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9pbmRleC5qcz9hMDc3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAyLTI0IDEzOjI4OjM3XG4gKi9cblxuLy8gbWF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QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/index.js\n");
- /***/ }),
- /***/ "./modules/material/property/circle/CircleBlurMaterialProperty.js":
- /*!************************************************************************!*\
- !*** ./modules/material/property/circle/CircleBlurMaterialProperty.js ***!
- \************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 22:10:18\n */\n\n\n\nvar CircleBlurMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CircleBlurMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(CircleBlurMaterialProperty);\n\n function CircleBlurMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CircleBlurMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CircleBlurMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.CircleBlurType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof CircleBlurMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return CircleBlurMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(CircleBlurMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CircleBlurMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2NpcmNsZS9DaXJjbGVCbHVyTWF0ZXJpYWxQcm9wZXJ0eS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvcHJvcGVydHkvY2lyY2xlL0NpcmNsZUJsdXJNYXRlcmlhbFByb3BlcnR5LmpzPzRlMzQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDItMjcgMjI6MTA6MThcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3B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b3BlcnR5RGVzY3JpcHRvcignY29sb3InKSxcbiAgc3BlZWQ6IENlc2l1bS5jcmVhdGVQcm9wZXJ0eURlc2NyaXB0b3IoJ3NwZWVkJylcbn0pXG5cbmV4cG9ydCBkZWZhdWx0IENpcmNsZUJsdXJNYXRlcmlhbFByb3BlcnR5XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFFQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQU1BOzs7O0FBdkJBO0FBQ0E7QUF5QkE7QUFDQTtBQUNBO0FBRkE7QUFLQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/circle/CircleBlurMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/circle/CircleDiffuseMaterialProperty.js":
- /*!***************************************************************************!*\
- !*** ./modules/material/property/circle/CircleDiffuseMaterialProperty.js ***!
- \***************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 22:10:18\n */\n\n\n\nvar CircleDiffuseMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CircleDiffuseMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(CircleDiffuseMaterialProperty);\n\n function CircleDiffuseMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CircleDiffuseMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CircleDiffuseMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.CircleDiffuseType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof CircleDiffuseMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return CircleDiffuseMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(CircleDiffuseMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CircleDiffuseMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2NpcmNsZS9DaXJjbGVEaWZmdXNlTWF0ZXJpYWxQcm9wZXJ0eS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvcHJvcGVydHkvY2lyY2xlL0NpcmNsZURpZmZ1c2VNYXRlcmlhbFByb3BlcnR5LmpzPzRkNmEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDItMjcgMjI6MTA6MThcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgTWF0ZXJpYWxQcm9wZXJ0eSBmcm9tICcuLi8uLi9NYXRlcmlhbFByb3BlcnR5J1xuXG5jbGFz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eURlc2NyaXB0b3IoJ3NwZWVkJylcbn0pXG5cbmV4cG9ydCBkZWZhdWx0IENpcmNsZURpZmZ1c2VNYXRlcmlhbFByb3BlcnR5XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFFQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQU1BOzs7O0FBdkJBO0FBQ0E7QUF5QkE7QUFDQTtBQUNBO0FBRkE7QUFLQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/circle/CircleDiffuseMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/circle/CircleFadeMaterialProperty.js":
- /*!************************************************************************!*\
- !*** ./modules/material/property/circle/CircleFadeMaterialProperty.js ***!
- \************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-06 17:56:39\n */\n\n\n\nvar CircleFadeMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CircleFadeMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(CircleFadeMaterialProperty);\n\n function CircleFadeMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CircleFadeMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CircleFadeMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.CircleFadeType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof CircleFadeMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return CircleFadeMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(CircleFadeMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CircleFadeMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2NpcmNsZS9DaXJjbGVGYWRlTWF0ZXJpYWxQcm9wZXJ0eS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvcHJvcGVydHkvY2lyY2xlL0NpcmNsZUZhZGVNYXRlcmlhbFByb3BlcnR5LmpzPzRiZDEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDMtMDYgMTc6NTY6MzlcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgTWF0ZXJpYWxQcm9wZXJ0eSBmcm9tICcuLi8uLi9NYXRlcmlhbFByb3BlcnR5J1xuXG5jbGFzcyBDaXJjbGVGYWRlTWF0ZXJpYWxQcm9wZXJ0eSBleHRlbmRzIE1hdGVyaWFsUHJvcGVydHkge1xuICBjb25zdHJ1Y3RvcihvcHRpb25zID0ge30pIHtcbiAgICBzdXBlcihvcHRpb25zKVxuICB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FDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFFQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQU1BOzs7O0FBekJBO0FBQ0E7QUEyQkE7QUFDQTtBQUNBO0FBRkE7QUFLQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/circle/CircleFadeMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/circle/CirclePulseMaterialProperty.js":
- /*!*************************************************************************!*\
- !*** ./modules/material/property/circle/CirclePulseMaterialProperty.js ***!
- \*************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:03:44\n */\n\n\n\nvar CirclePulseMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CirclePulseMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(CirclePulseMaterialProperty);\n\n function CirclePulseMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CirclePulseMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CirclePulseMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.CirclePulseType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof CirclePulseMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return CirclePulseMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(CirclePulseMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CirclePulseMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2NpcmNsZS9DaXJjbGVQdWxzZU1hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2NpcmNsZS9DaXJjbGVQdWxzZU1hdGVyaWFsUHJvcGVydHkuanM/YmViMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMi0yNyAyMzowMzo0NFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3BlcnR5IGZyb20gJy4uLy4uL01hdGVyaWFsUHJvcGVydHknXG5cbmNsYXNzIENpcmNsZVB1bHNlTWF0ZXJpYWxQcm9wZXJ0eSBleHRlbmRzIE1hdGVyaWFsUHJvcGVydHkge1xuICBjb25zdHJ1Y3RvcihvcHRpb25zID0ge30pIHtcbiAgICBzdXBlcihvcHRpb25zKVxuICB9XG5cbiAgZ2V0VHlwZSh0aW1lKSB7XG4gICAgcmV0dXJuIENlc2l1bS5NYXRlcmlhbC5DaXJjbGVQdWxzZVR5cGVcbiAgfVxuXG4gIGdldFZhbHVlKHRpbWUsIHJlc3VsdCkge1xuICAgIGlmICghcmVzdWx0K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BO0FBQUE7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFNQTs7OztBQXpCQTtBQUNBO0FBMkJBO0FBQ0E7QUFDQTtBQUZBO0FBS0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/property/circle/CirclePulseMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/circle/CircleScanMaterialProperty.js":
- /*!************************************************************************!*\
- !*** ./modules/material/property/circle/CircleScanMaterialProperty.js ***!
- \************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-09 20:23:53\n */\n\n\n\nvar CircleScanMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CircleScanMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(CircleScanMaterialProperty);\n\n function CircleScanMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CircleScanMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CircleScanMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.CircleScanType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof CircleScanMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return CircleScanMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(CircleScanMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CircleScanMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2NpcmNsZS9DaXJjbGVTY2FuTWF0ZXJpYWxQcm9wZXJ0eS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvcHJvcGVydHkvY2lyY2xlL0NpcmNsZVNjYW5NYXRlcmlhbFByb3BlcnR5LmpzP2IxOGQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDEtMDkgMjA6MjM6NTNcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgTWF0ZXJpYWxQcm9wZXJ0eSBmcm9tICcuLi8uLi9NYXRlcmlhbFByb3BlcnR5J1xuXG5jbGFzcyBDaXJjbGVTY2FuTWF0ZXJpYWxQcm9wZXJ0eSBleHRlbmRzIE1hdGVyaWFsUHJvcGVydHkge1xuICBjb25zdHJ1Y3RvcihvcHRpb25zID0ge30pIHtcbiAgICBzdXBlcihvcHRpb25zKVxuICB9XG5cbiAgZ2V0VHlwZSh0aW1lKSB7XG4gICAgcmV0dXJuIENlc2l1bS5NYXRlcmlhbC5DaXJjbGVTY2FuVHlwZVxuICB9XG5cbiAgZ2V0VmFsdWUodGltZSwgcmVzdWx0KSB7XG4gICAgaWYgKCFyZXN1bHQpIHtcbiAgICAgIHJlc3VsdCA9IHt9XG4gICAgfVxuICAgIHJlc3VsdC5jb2xvciA9IENlc2l1bS5Qcm9wZXJ0eS5nZXRWYWx1ZU9yVW5kZWZpbmVkKHRoaXMuX2NvbG9yLCB0aW1lKVxuICAgIHJlc3VsdC5zcGVlZCA9IHRoaXMu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/CircleScanMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/circle/CircleSpiralMaterialProperty.js":
- /*!**************************************************************************!*\
- !*** ./modules/material/property/circle/CircleSpiralMaterialProperty.js ***!
- \**************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-09 20:23:53\n */\n\n\n\nvar CircleSpiralMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CircleSpiralMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(CircleSpiralMaterialProperty);\n\n function CircleSpiralMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CircleSpiralMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CircleSpiralMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.CircleSpiralType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof CircleSpiralMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return CircleSpiralMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(CircleSpiralMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CircleSpiralMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3Blc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AgIChvdGhlciBpbnN0YW5jZW9mIENpcmNsZVNwaXJhbE1hdGVyaWFsUHJvcGVydHkgJiZcbiAgICAgICAgQ2VzaXVtLlByb3BlcnR5LmVxdWFscyh0aGlzLl9jb2xvciwgb3RoZXIuX2NvbG9yKSAmJlxuICAgICAgICBDZXNpdW0uUHJvcGVydHkuZXF1YWxzKHRoaXMuX3NwZWVkLCBvdGhlci5fc3BlZWQpKVxuICAgIClcbiAgfVxufVxuXG5PYmplY3QuZGVmaW5lUHJvcGVydGllcyhDaXJjbGVTcGlyYWxNYXRlcmlhbFByb3BlcnR5LnByb3RvdHlwZSwge1xuICBjb2xvcjogQ2VzaXVtLmNyZWF0ZVByb3BlcnR5RGVzY3JpcHRvcignY29sb3InKSxcbiAgc3BlZWQ6IENlc2l1bS5jcmVhdGVQcm9wZXJ0eURlc2NyaXB0b3IoJ3NwZWVkJylcbn0pXG5cbmV4cG9ydCBkZWZhdWx0IENpcmNsZVNwaXJhbE1hdGVyaWFsUHJvcGVydHlcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFEQTtBQUVBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBTUE7Ozs7QUF6QkE7QUFDQTtBQTJCQTtBQUNBO0FBQ0E7QUFGQTtBQUtBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/property/circle/CircleSpiralMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/circle/CircleVaryMaterialProperty.js":
- /*!************************************************************************!*\
- !*** ./modules/material/property/circle/CircleVaryMaterialProperty.js ***!
- \************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 22:10:18\n */\n\n\n\nvar CircleVaryMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CircleVaryMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(CircleVaryMaterialProperty);\n\n function CircleVaryMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CircleVaryMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CircleVaryMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.CircleVaryType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof CircleVaryMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return CircleVaryMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(CircleVaryMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CircleVaryMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2NpcmNsZS9DaXJjbGVWYXJ5TWF0ZXJpYWxQcm9wZXJ0eS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ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uZXF1YWxzKHRoaXMuX2NvbG9yLCBvdGhlci5fY29sb3IpICYmXG4gICAgICAgIENlc2l1bS5Qcm9wZXJ0eS5lcXVhbHModGhpcy5fc3BlZWQsIG90aGVyLl9zcGVlZCkpXG4gICAgKVxuICB9XG59XG5cbk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKENpcmNsZVZhcnlNYXRlcmlhbFByb3BlcnR5LnByb3RvdHlwZSwge1xuICBjb2xvcjogQ2VzaXVtLmNyZWF0ZVByb3BlcnR5RGVzY3JpcHRvcignY29sb3InKSxcbiAgc3BlZWQ6IENlc2l1bS5jcmVhdGVQcm9wZXJ0eURlc2NyaXB0b3IoJ3NwZWVkJylcbn0pXG5cbmV4cG9ydCBkZWZhdWx0IENpcmNsZVZhcnlNYXRlcmlhbFByb3BlcnR5XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFFQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQU1BOzs7O0FBdkJBO0FBQ0E7QUF5QkE7QUFDQTtBQUNBO0FBRkE7QUFLQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/circle/CircleVaryMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/circle/CircleWaveMaterialProperty.js":
- /*!************************************************************************!*\
- !*** ./modules/material/property/circle/CircleWaveMaterialProperty.js ***!
- \************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-06 17:56:39\n */\n\n\n\nvar CircleWaveMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CircleWaveMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(CircleWaveMaterialProperty);\n\n function CircleWaveMaterialProperty() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CircleWaveMaterialProperty);\n\n _this = _super.call(this, options);\n _this.count = Math.max(options.count || 3, 1);\n _this.gradient = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.clamp(options.gradient || 0.1, 0, 1);\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CircleWaveMaterialProperty, [{\n key: \"isConstant\",\n get: function get() {\n return false;\n }\n }, {\n key: \"definitionChanged\",\n get: function get() {\n return this._definitionChanged;\n }\n }, {\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.CircleWaveType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n result.count = this.count;\n result.gradient = this.gradient;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof CircleWaveMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return CircleWaveMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(CircleWaveMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (CircleWaveMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2NpcmNsZS9DaXJjbGVXYXZlTWF0ZXJp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BQ0E7QUFIQTtBQUlBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFNQTs7OztBQXJDQTtBQUNBO0FBdUNBO0FBQ0E7QUFDQTtBQUZBO0FBS0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/property/circle/CircleWaveMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/ellipsoid/EllipsoidElectricMaterialProperty.js":
- /*!**********************************************************************************!*\
- !*** ./modules/material/property/ellipsoid/EllipsoidElectricMaterialProperty.js ***!
- \**********************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-03-04 22:10:18\n */\n\n\n\nvar EllipsoidElectricMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EllipsoidElectricMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(EllipsoidElectricMaterialProperty);\n\n function EllipsoidElectricMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EllipsoidElectricMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EllipsoidElectricMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.EllipsoidElectricType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof EllipsoidElectricMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return EllipsoidElectricMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(EllipsoidElectricMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (EllipsoidElectricMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2VsbGlwc29pZC9FbGxpcHNvaWRFbGVjdHJpY01hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2VsbGlwc29pZC9FbGxpcHNvaWRFbGVjdHJpY01hdGVyaWFsUHJvcGVydHkuanM/ZmZmMyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMy0wNCAyMjoxMDoxOFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3BlcnR5IGZyb20gJy4uLy4uL01hdGVyaWFsUHJvcGVydHknXG5cbmNsYXNzIEVsbGlwc29pZEVsZWN0cmljTWF0ZXJpYWxQcm9wZXJ0eSBleHRlbmRzIE1hdGVyaWFsUHJvcGVydHkge1xuICBjb25zdHJ1Y3RvcihvcHRpb25zID0ge30pIHtcbiAgICBzdXBlcihvcHRpb25zKVxuICB9XG5cbiAgZ2V0VHlwZSh0aW1lKSB7XG4gICAgcmV0dXJuIENlc2l1bS5NY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NBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBRUE7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFNQTs7OztBQXZCQTtBQUNBO0FBeUJBO0FBQ0E7QUFDQTtBQUZBO0FBS0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/property/ellipsoid/EllipsoidElectricMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/ellipsoid/EllipsoidTrailMaterialProperty.js":
- /*!*******************************************************************************!*\
- !*** ./modules/material/property/ellipsoid/EllipsoidTrailMaterialProperty.js ***!
- \*******************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-03-04 22:10:18\n */\n\n\n\nvar EllipsoidTrailMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EllipsoidTrailMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(EllipsoidTrailMaterialProperty);\n\n function EllipsoidTrailMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EllipsoidTrailMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EllipsoidTrailMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.EllipsoidTrailType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof EllipsoidTrailMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return EllipsoidTrailMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(EllipsoidTrailMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (EllipsoidTrailMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2VsbGlwc29pZC9FbGxpcHNvaWRUcmFpbE1hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L2VsbGlwc29pZC9FbGxpcHNvaWRUcmFpbE1hdGVyaWFsUHJvcGVydHkuanM/ZmUyNSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMy0wNCAyMjoxMDoxOFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3BlcnR5IGZyb20gJy4uLy4uL01hdGVyaWFsUHJvcGVydHknXG5cbmNsYXNzIEVsbGlwc29pZFRyYWlsTWF0ZXJpYWxQcm9wZXJ0eSBleHRlbmRzIE1hdGVyaWFsUHJvcGVydHkge1xuICBjb25zdHJ1Y3RvcihvcHRpb25zID0ge30pIHtcbiAgICBzdXBlcihvcHRpb25zKVxuICB9XG5cbiAgZ2V0VHlwZSh0aW1lKSB7XG4gICAgcmV0dXJuIENlc2l1bS5NYXRlcmlhbC5FbGxpcHNvaWRUcmFpbFR5cGVcbiAg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BO0FBRUE7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFNQTs7OztBQXZCQTtBQUNBO0FBeUJBO0FBQ0E7QUFDQTtBQUZBO0FBS0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/property/ellipsoid/EllipsoidTrailMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/polyline/PolylineFlickerMaterialProperty.js":
- /*!*******************************************************************************!*\
- !*** ./modules/material/property/polyline/PolylineFlickerMaterialProperty.js ***!
- \*******************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-11 21:08:02\n */\n\n\n\nvar PolylineFlickerMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PolylineFlickerMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(PolylineFlickerMaterialProperty);\n\n function PolylineFlickerMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolylineFlickerMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PolylineFlickerMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.PolylineFlickerType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof PolylineFlickerMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return PolylineFlickerMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(PolylineFlickerMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (PolylineFlickerMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lRmxpY2tlck1hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lRmxpY2tlck1hdGVyaWFsUHJvcGVydHkuanM/MzJkZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMS0xMSAyMTowODowMlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3BlcnR5IGZyb20gJy4uLy4uL01hdGVyaWFsUHJvcGVydHknXG5cbmNsYXNzIFBvbHlsaW5lRmxpY2tlck1hdGVyaWFsUHJvcGVydHkgZXh0ZW5kcyBNYXRlcmlhbFByb3BlcnR5IHtcbiAgY29uc3RydWN0b3Iob3B0aW9ucyA9IHt9KSB7XG4gICAgc3VwZXIob3B0aW9ucylcbiAgfVxuXG4gIGdldFR5cGUodGltZSkge1xuICAgIHJldHVybiBDZXNpdW0uTWF0ZXJpYWwuUG9seWxpbmVGbGlja2VyVHlwZVxuICB9XG5cbiAgZ2V0VmFsdWUodGltZSwgcmVzdWx0KSB7XG4gICAgaWYgKCFyZXN1bHQpIHtcbiAgICAgIHJlc3VsdCA9IHt9XG4gICAgfVxuICAgIHJlc3VsdC5j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7QUFDQTs7O0FBRUE7QUFDQTtBQU1BOzs7O0FBekJBO0FBQ0E7QUEyQkE7QUFDQTtBQUNBO0FBRkE7QUFLQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/polyline/PolylineFlickerMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/polyline/PolylineFlowMaterialProperty.js":
- /*!****************************************************************************!*\
- !*** ./modules/material/property/polyline/PolylineFlowMaterialProperty.js ***!
- \****************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-24 13:53:52\n */\n\n\n\nvar PolylineFlowMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PolylineFlowMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(PolylineFlowMaterialProperty);\n\n function PolylineFlowMaterialProperty() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolylineFlowMaterialProperty);\n\n _this = _super.call(this, options);\n _this._percent = undefined;\n _this._percentSubscription = undefined;\n _this._gradient = undefined;\n _this._gradientSubscription = undefined;\n _this.percent = options.percent || 0.03;\n _this.gradient = options.gradient || 0.1;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PolylineFlowMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.PolylineFlowType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n result.percent = this._percent;\n result.gradient = this._gradient;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof PolylineFlowMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._percent, other._percent) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._gradient, other._gradient);\n }\n }]);\n\n return PolylineFlowMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(PolylineFlowMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed'),\n percent: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('percent'),\n gradient: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('gradient')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (PolylineFlowMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lRmxvd01hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lRmxvd01hdGVyaWFsUHJvcGVydHkuanM/OTljNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMi0yNCAxMzo1Mzo1MlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3BlcnR5IGZyb20gJy4uLy4uL01hdGVyaWFsUHJvcGVydHknXG5cbmNsYXNzIFBvbHlsaW5lRmxvd01hdGVyaWFsUHJvcGVydHkgZXh0ZW5kcyBNYXRlcmlhbFByb3Bl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UFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFRQTs7OztBQW5DQTtBQUNBO0FBcUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQU9BIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/property/polyline/PolylineFlowMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/polyline/PolylineImageTrailMaterialProperty.js":
- /*!**********************************************************************************!*\
- !*** ./modules/material/property/polyline/PolylineImageTrailMaterialProperty.js ***!
- \**********************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-07-17 22:15:56\n */\n\n\n\nvar PolylineImageTrailMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PolylineImageTrailMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(PolylineImageTrailMaterialProperty);\n\n function PolylineImageTrailMaterialProperty() {\n var _options$repeat, _options$repeat2;\n\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolylineImageTrailMaterialProperty);\n\n _this = _super.call(this, options);\n _this._image = undefined;\n _this._imageSubscription = undefined;\n _this._repeat = undefined;\n _this._repeatSubscription = undefined;\n _this.image = options.image;\n _this.repeat = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(((_options$repeat = options.repeat) === null || _options$repeat === void 0 ? void 0 : _options$repeat.x) || 1, ((_options$repeat2 = options.repeat) === null || _options$repeat2 === void 0 ? void 0 : _options$repeat2.y) || 1);\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PolylineImageTrailMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.PolylineImageTrailType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.image = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._image, time);\n result.repeat = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._repeat, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof PolylineImageTrailMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._image, other._image) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._repeat, other._repeat) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return PolylineImageTrailMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(PolylineImageTrailMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed'),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('image'),\n repeat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('repeat')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (PolylineImageTrailMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lSW1hZ2VUcmFpbE1hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lSW1hZ2VUcmFpbE1hdGV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AgaW1hZ2U6IENlc2l1bS5jcmVhdGVQcm9wZXJ0eURlc2NyaXB0b3IoJ2ltYWdlJyksXG4gIHJlcGVhdDogQ2VzaXVtLmNyZWF0ZVByb3BlcnR5RGVzY3JpcHRvcigncmVwZWF0Jylcbn0pXG5cbmV4cG9ydCBkZWZhdWx0IFBvbHlsaW5lSW1hZ2VUcmFpbE1hdGVyaWFsUHJvcGVydHlcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBUEE7QUFXQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFRQTs7OztBQXRDQTtBQUNBO0FBd0NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQU9BIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/property/polyline/PolylineImageTrailMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/polyline/PolylineLightingMaterialProperty.js":
- /*!********************************************************************************!*\
- !*** ./modules/material/property/polyline/PolylineLightingMaterialProperty.js ***!
- \********************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-13 20:52:47\n */\n\n\n\nvar IMG = __webpack_require__(/*! @gd-modules/images/lighting.png */ \"./modules/images/lighting.png\");\n\nvar PolylineLightingMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PolylineLightingMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(PolylineLightingMaterialProperty);\n\n function PolylineLightingMaterialProperty() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolylineLightingMaterialProperty);\n\n _this = _super.call(this, options);\n _this._image = undefined;\n _this._imageSubscription = undefined;\n _this.image = IMG;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PolylineLightingMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.PolylineLightingType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.image = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._image, time);\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof PolylineLightingMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._image, other._image);\n }\n }]);\n\n return PolylineLightingMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(PolylineLightingMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('image')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (PolylineLightingMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lTGlnaHRpbmdNYXRlcmlhbFByb3BlcnR5LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9wcm9wZXJ0eS9wb2x5bGluZS9Qb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QUFDQTtBQUZBO0FBS0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/property/polyline/PolylineLightingMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/polyline/PolylineLightingTrailMaterialProperty.js":
- /*!*************************************************************************************!*\
- !*** ./modules/material/property/polyline/PolylineLightingTrailMaterialProperty.js ***!
- \*************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-13 20:52:47\n */\n\n\n\nvar IMG = __webpack_require__(/*! @gd-modules/images/lighting.png */ \"./modules/images/lighting.png\");\n\nvar PolylineLightingTrailMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PolylineLightingTrailMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(PolylineLightingTrailMaterialProperty);\n\n function PolylineLightingTrailMaterialProperty() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolylineLightingTrailMaterialProperty);\n\n _this = _super.call(this, options);\n _this._image = undefined;\n _this._imageSubscription = undefined;\n _this.image = IMG;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PolylineLightingTrailMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.PolylineLightingTrailType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.image = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._image, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof PolylineLightingTrailMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return PolylineLightingTrailMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(PolylineLightingTrailMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed'),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('image')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (PolylineLightingTrailMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lTGlnaHRpbmdUcmFpbE1hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lTGlnaHRpbmdUcmFpbE1hdGVyaWFsUHJvcGVydHkuanM/M2ViOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMS0xMyAyMDo1Mjo0N1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3BlcnR5IGZyb20gJy4uLy4uL01hdGVyaWFsUHJvcGVydHknXG5cbmNvbnN0IElNRyA9IHJlcXVpcmUoJ0BnZC1tb2R1bGVzL2ltYWdlcy9saWdodGluZy5wbmcnKVxuXG5jbGFzcyBQb2x5bGluZUxpZ2h0aW5nVHJhaWxNYXRlcmlhbFByb3BlcnR5IGV4dGVuZHMgTWF0ZXJpYWxQcm9wZXJ0eSB7XG4gIGNvbnN0cnVjdG9yKG9wdGlvbnMgPSB7fSkge1xuICAgIHN1cGV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m90b3R5cGUsIHtcbiAgY29sb3I6IENlc2l1bS5jcmVhdGVQcm9wZXJ0eURlc2NyaXB0b3IoJ2NvbG9yJyksXG4gIHNwZWVkOiBDZXNpdW0uY3JlYXRlUHJvcGVydHlEZXNjcmlwdG9yKCdzcGVlZCcpLFxuICBpbWFnZTogQ2VzaXVtLmNyZWF0ZVByb3BlcnR5RGVzY3JpcHRvcignaW1hZ2UnKVxufSlcblxuZXhwb3J0IGRlZmF1bHQgUG9seWxpbmVMaWdodGluZ1RyYWlsTWF0ZXJpYWxQcm9wZXJ0eVxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQUtBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFNQTs7OztBQTdCQTtBQUNBO0FBK0JBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFNQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/polyline/PolylineLightingTrailMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/polyline/PolylineTrailMaterialProperty.js":
- /*!*****************************************************************************!*\
- !*** ./modules/material/property/polyline/PolylineTrailMaterialProperty.js ***!
- \*****************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-24 13:09:09\n */\n\n\n\nvar PolylineTrailMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PolylineTrailMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(PolylineTrailMaterialProperty);\n\n function PolylineTrailMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolylineTrailMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PolylineTrailMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.PolylineTrailType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof PolylineTrailMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return PolylineTrailMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(PolylineTrailMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (PolylineTrailMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3BvbHlsaW5lL1BvbHlsaW5lVHJhaWxNYXRlcmlhbFByb3BlcnR5LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9wcm9wZXJ0eS9wb2x5bGluZS9Qb2x5bGluZVRyYWlsTWF0ZXJpYWxQcm9wZXJ0eS5qcz9kZjdiIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEB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yhQb2x5bGluZVRyYWlsTWF0ZXJpYWxQcm9wZXJ0eS5wcm90b3R5cGUsIHtcbiAgY29sb3I6IENlc2l1bS5jcmVhdGVQcm9wZXJ0eURlc2NyaXB0b3IoJ2NvbG9yJyksXG4gIHNwZWVkOiBDZXNpdW0uY3JlYXRlUHJvcGVydHlEZXNjcmlwdG9yKCdzcGVlZCcpXG59KVxuXG5leHBvcnQgZGVmYXVsdCBQb2x5bGluZVRyYWlsTWF0ZXJpYWxQcm9wZXJ0eVxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBRUE7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFNQTs7OztBQXpCQTtBQUNBO0FBMkJBO0FBQ0E7QUFDQTtBQUZBO0FBS0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/property/polyline/PolylineTrailMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/radar/RadarLineMaterialProperty.js":
- /*!**********************************************************************!*\
- !*** ./modules/material/property/radar/RadarLineMaterialProperty.js ***!
- \**********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:53:08\n */\n\n\n\nvar RadarLineMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(RadarLineMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(RadarLineMaterialProperty);\n\n function RadarLineMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RadarLineMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RadarLineMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.RadarLineType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof RadarLineMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return RadarLineMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(RadarLineMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (RadarLineMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3JhZGFyL1JhZGFyTGluZU1hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3JhZGFyL1JhZGFyTGluZU1hdGVyaWFsUHJvcGVydHkuanM/ZjM5NyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMi0yNyAyMzo1MzowOFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3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VkOiBDZXNpdW0uY3JlYXRlUHJvcGVydHlEZXNjcmlwdG9yKCdzcGVlZCcpXG59KVxuXG5leHBvcnQgZGVmYXVsdCBSYWRhckxpbmVNYXRlcmlhbFByb3BlcnR5XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFFQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQU1BOzs7O0FBdkJBO0FBQ0E7QUF5QkE7QUFDQTtBQUNBO0FBRkE7QUFLQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/radar/RadarLineMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/radar/RadarSweepMaterialProperty.js":
- /*!***********************************************************************!*\
- !*** ./modules/material/property/radar/RadarSweepMaterialProperty.js ***!
- \***********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:53:08\n */\n\n\n\nvar RadarSweepMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(RadarSweepMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(RadarSweepMaterialProperty);\n\n function RadarSweepMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RadarSweepMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RadarSweepMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.RadarSweepType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof RadarSweepMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return RadarSweepMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(RadarSweepMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (RadarSweepMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3JhZGFyL1JhZGFyU3dlZXBNYXRlcmlhbFByb3BlcnR5LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9wcm9wZXJ0eS9yYWRhci9SYWRhclN3ZWVwTWF0ZXJpYWxQcm9wZXJ0eS5qcz9iYTliIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTAyLTI3IDIzOjUzOjA4XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IE1hdGVyaWFsUHJvcGVydHkgZnJvbSAnLi4vLi4vTWF0ZXJpYWxQcm9wZXJ0eSdcblxuY2xhc3MgUmFkYXJTd2VlcE1hdGVyaWFsUHJvcGVydHkgZXh0ZW5kcyBNYXRlcmlhbFByb3BlcnR5IHt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bmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQURBO0FBRUE7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFNQTs7OztBQXZCQTtBQUNBO0FBeUJBO0FBQ0E7QUFDQTtBQUZBO0FBS0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/property/radar/RadarSweepMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/radar/RadarWaveMaterialProperty.js":
- /*!**********************************************************************!*\
- !*** ./modules/material/property/radar/RadarWaveMaterialProperty.js ***!
- \**********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:53:08\n */\n\n\n\nvar RadarWaveMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(RadarWaveMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(RadarWaveMaterialProperty);\n\n function RadarWaveMaterialProperty() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RadarWaveMaterialProperty);\n\n return _super.call(this, options);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RadarWaveMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.RadarWaveType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof RadarWaveMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return RadarWaveMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(RadarWaveMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (RadarWaveMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3JhZGFyL1JhZGFyV2F2ZU1hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3JhZGFyL1JhZGFyV2F2ZU1hdGVyaWFsUHJvcGVydHkuanM/NmY4OSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMi0yNyAyMzo1MzowOFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3BlcnR5IGZyb20gJy4uLy4uL01hdGVyaWFsUHJvcGVydHknXG5cbmNsYXNzIFJhZGFyV2F2ZU1hdGVyaWFsUHJvcGVydHkgZXh0ZW5kcyBNYXRlcmlhbFByb3BlcnR5IHtcbiAgY29uc3RydWN0b3Iob3B0aW9ucyA9IHt9KSB7XG4gICAgc3VwZXIob3B0aW9ucylcbiAgfVxuXG4gIGdldFR5cGUodGltZSkge1xuICAgIHJldHVybiBDZXNpdW0uTWF0ZXJpYWwuUmFkYXJXYXZlVHlwZVxuICB9XG5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UFFQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQU1BOzs7O0FBdkJBO0FBQ0E7QUF5QkE7QUFDQTtBQUNBO0FBRkE7QUFLQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/radar/RadarWaveMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/wall/WallImageTrailMaterialProperty.js":
- /*!**************************************************************************!*\
- !*** ./modules/material/property/wall/WallImageTrailMaterialProperty.js ***!
- \**************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:53:08\n */\n\n\n\nvar WallImageTrailMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(WallImageTrailMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(WallImageTrailMaterialProperty);\n\n function WallImageTrailMaterialProperty() {\n var _options$repeat, _options$repeat2;\n\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, WallImageTrailMaterialProperty);\n\n _this = _super.call(this, options);\n _this._image = undefined;\n _this._imageSubscription = undefined;\n _this._repeat = undefined;\n _this._repeatSubscription = undefined;\n _this.image = options.image;\n _this.repeat = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(((_options$repeat = options.repeat) === null || _options$repeat === void 0 ? void 0 : _options$repeat.x) || 1, ((_options$repeat2 = options.repeat) === null || _options$repeat2 === void 0 ? void 0 : _options$repeat2.y) || 1);\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WallImageTrailMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.WallImageTrailType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].defaultValue(result, {});\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.image = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._image, time);\n result.repeat = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._repeat, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof WallImageTrailMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._image, other._image) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._repeat, other._repeat) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return WallImageTrailMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(WallImageTrailMaterialProperty.prototype, {\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('image'),\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed'),\n repeat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('repeat')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (WallImageTrailMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3dhbGwvV2FsbEltYWdlVHJhaWxNYXRlcmlhbFByb3BlcnR5LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9wcm9wZXJ0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URlc2NyaXB0b3IoJ2NvbG9yJyksXG4gIHNwZWVkOiBDZXNpdW0uY3JlYXRlUHJvcGVydHlEZXNjcmlwdG9yKCdzcGVlZCcpLFxuICByZXBlYXQ6IENlc2l1bS5jcmVhdGVQcm9wZXJ0eURlc2NyaXB0b3IoJ3JlcGVhdCcpXG59KVxuXG5leHBvcnQgZGVmYXVsdCBXYWxsSW1hZ2VUcmFpbE1hdGVyaWFsUHJvcGVydHlcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBUEE7QUFXQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFRQTs7OztBQXBDQTtBQUNBO0FBc0NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQU9BIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/property/wall/WallImageTrailMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/wall/WallLineTrailMaterialProperty.js":
- /*!*************************************************************************!*\
- !*** ./modules/material/property/wall/WallLineTrailMaterialProperty.js ***!
- \*************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-02-24 13:54:09\n */\n\n\n\nvar IMG = __webpack_require__(/*! @gd-modules/images/space_line.png */ \"./modules/images/space_line.png\");\n\nvar WallLineTrailMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(WallLineTrailMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(WallLineTrailMaterialProperty);\n\n function WallLineTrailMaterialProperty() {\n var _options$repeat, _options$repeat2;\n\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, WallLineTrailMaterialProperty);\n\n _this = _super.call(this, options);\n _this._image = undefined;\n _this._imageSubscription = undefined;\n _this._repeat = undefined;\n _this._repeatSubscription = undefined;\n _this.image = IMG;\n _this.repeat = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(((_options$repeat = options.repeat) === null || _options$repeat === void 0 ? void 0 : _options$repeat.x) || 1, ((_options$repeat2 = options.repeat) === null || _options$repeat2 === void 0 ? void 0 : _options$repeat2.y) || 1);\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WallLineTrailMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.WallLineTrailType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.image = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._image, time);\n result.repeat = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._repeat, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof WallLineTrailMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._repeat, other._repeat);\n }\n }]);\n\n return WallLineTrailMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(WallLineTrailMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('image'),\n repeat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('repeat'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (WallLineTrailMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3dhbGwvV2FsbExpbmVUcmFpbE1hdGVyaWFsUHJvcGVydHkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3dhbGwvV2FsbExpbmVUcmFpbE1hdGVyaWFsUHJvcGVydHkuanM/NjhhYyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMi0yNCAxMzo1NDowOVxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBNYXRlcmlhbFByb3BlcnR5IGZyb20gJy4uLy4uL01hdGVyaWFsUHJvcGVydHknXG5jb25zdCBJTUcgPSByZXF1aXJlKCdAZ2QtbW9kdWxlcy9pbWFnZXMvc3BhY2VfbGluZS5wbmcnKVxuXG5jbGFzcyBXYWxsTGluZVRyYWlsTWF0ZXJpYWxQcm9wZXJ0eSBleHRlbmRzIE1hdGVyaWFsUHJvcGVydHkge1xuICBjb25zdHJ1Y3RvcihvcHRpb25zID0ge30pIHtcbiAgICBzdXBlcihvcHRpb25zKVxuICAgIHRoaXMuX2ltYWdlID0gdW5kZWZpbmVkXG4gICAgdGhpcy5faW1hZ2VTdWJzY3JpcH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Q0E7QUFDQTtBQXVDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFPQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/property/wall/WallLineTrailMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/wall/WallTrailMaterialProperty.js":
- /*!*********************************************************************!*\
- !*** ./modules/material/property/wall/WallTrailMaterialProperty.js ***!
- \*********************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MaterialProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../MaterialProperty */ \"./modules/material/MaterialProperty.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-06-22 16:46:14\n */\n\n\n\nvar IMG = __webpack_require__(/*! @gd-modules/images/fence.png */ \"./modules/images/fence.png\");\n\nvar WallTrailMaterialProperty = /*#__PURE__*/function (_MaterialProperty) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(WallTrailMaterialProperty, _MaterialProperty);\n\n var _super = _createSuper(WallTrailMaterialProperty);\n\n function WallTrailMaterialProperty() {\n var _this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, WallTrailMaterialProperty);\n\n _this = _super.call(this, options);\n _this._image = undefined;\n _this._imageSubscription = undefined;\n _this.image = IMG;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WallTrailMaterialProperty, [{\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.WallTrailType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.color = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._color, time);\n result.image = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.getValueOrUndefined(this._image, time);\n result.speed = this._speed;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof WallTrailMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._color, other._color) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Property.equals(this._speed, other._speed);\n }\n }]);\n\n return WallTrailMaterialProperty;\n}(_MaterialProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\nObject.defineProperties(WallTrailMaterialProperty.prototype, {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('color'),\n speed: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('speed'),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].createPropertyDescriptor('image')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (WallTrailMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3dhbGwvV2FsbFRyYWlsTWF0ZXJpYWxQcm9wZXJ0eS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvcHJvcGVydHkvd2FsbC9XYWxsVHJhaWxNYXRlcmlhbFByb3BlcnR5LmpzPzZhMjIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDYtMjIgMTY6NDY6MTRcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgTWF0ZXJpYWxQcm9wZXJ0eSBmcm9tICcuLi8uLi9NYXRlcmlhbFByb3BlcnR5J1xuXG5jb25zdCBJTUcgPSByZXF1aXJlKCdAZ2QtbW9kdWxlcy9pbWFnZXMvZmVuY2UucG5nJylcblxuY2xhc3MgV2FsbFRyYWlsTWF0ZXJpYWxQcm9wZXJ0eSBleHRlbmRzIE1hdGVyaWFsUHJvcGVydHkge1xuICBjb25zdHJ1Y3RvcihvcHRpb25zID0ge30pIHtcbiAgICBzdXBlcihvcHRpb25zKVxuICAgIHRoaXMuX2ltYWdlID0gdW5kZWZpbmVkXG4gICAgdGhpcy5faW1hZ2VTdWJzY3JpcHRpb24gPS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IENlc2l1bS5jcmVhdGVQcm9wZXJ0eURlc2NyaXB0b3IoJ2ltYWdlJylcbn0pXG5cbmV4cG9ydCBkZWZhdWx0IFdhbGxUcmFpbE1hdGVyaWFsUHJvcGVydHlcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFLQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBTUE7Ozs7QUE3QkE7QUFDQTtBQStCQTtBQUNBO0FBQ0E7QUFDQTtBQUhBO0FBTUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/property/wall/WallTrailMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/property/water/WaterMaterialProperty.js":
- /*!******************************************************************!*\
- !*** ./modules/material/property/water/WaterMaterialProperty.js ***!
- \******************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-02-25 21:16:00\n */\n\n\nvar WaterMaterialProperty = /*#__PURE__*/function () {\n function WaterMaterialProperty(options) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, WaterMaterialProperty);\n\n options = options || {};\n this._definitionChanged = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Event();\n this._baseWaterColor = undefined;\n this._baseWaterColorSubscription = undefined;\n this.baseWaterColor = options.baseWaterColor || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0.2, 0.3, 0.6, 1.0);\n this._blendColor = undefined;\n this._blendColorSubscription = undefined;\n this.blendColor = options.blendColor || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0.0, 1.0, 0.699, 1.0);\n this._specularMap = undefined;\n this._specularMapSubscription = undefined;\n this.specularMap = options.specularMap || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Material.DefaultImageId;\n this._normalMap = undefined;\n this._normalMapSubscription = undefined;\n this.normalMap = options.normalMap || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Material.DefaultImageId;\n this.frequency = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defaultValue(options.frequency, 1000);\n this.animationSpeed = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defaultValue(options.animationSpeed, 0.01);\n this.amplitude = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defaultValue(options.amplitude, 10.0);\n this.specularIntensity = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defaultValue(options.specularIntensity, 0.5);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WaterMaterialProperty, [{\n key: \"isConstant\",\n get: function get() {\n return false;\n }\n }, {\n key: \"definitionChanged\",\n get: function get() {\n return this._definitionChanged;\n }\n }, {\n key: \"getType\",\n value: function getType(time) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Material.WaterType;\n }\n }, {\n key: \"getValue\",\n value: function getValue(time, result) {\n if (!result) {\n result = {};\n }\n\n result.baseWaterColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Property.getValueOrUndefined(this._baseWaterColor, time);\n result.blendColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Property.getValueOrUndefined(this._blendColor, time);\n result.specularMap = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Property.getValueOrUndefined(this._specularMap, time);\n result.normalMap = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Property.getValueOrUndefined(this._normalMap, time);\n result.frequency = this.frequency;\n result.animationSpeed = this.animationSpeed;\n result.amplitude = this.amplitude;\n result.specularIntensity = this.specularIntensity;\n return result;\n }\n }, {\n key: \"equals\",\n value: function equals(other) {\n return this === other || other instanceof WaterMaterialProperty && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Property.equals(this._baseWaterColor, other._baseWaterColor);\n }\n }]);\n\n return WaterMaterialProperty;\n}();\n\nObject.defineProperties(WaterMaterialProperty.prototype, {\n baseWaterColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].createPropertyDescriptor('baseWaterColor'),\n blendColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].createPropertyDescriptor('blendColor'),\n specularMap: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].createPropertyDescriptor('specularMap'),\n normalMap: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].createPropertyDescriptor('normalMap')\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (WaterMaterialProperty);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3Byb3BlcnR5L3dhdGVyL1dhdGVyTWF0ZXJpYWxQcm9wZXJ0eS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvcHJvcGVydHkvd2F0ZXIvV2F0ZXJNYXRlcmlhbFByb3BlcnR5LmpzP2YxNzkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDItMjUgMjE6MTY6MDBcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5cbmNsYXNzIFdhdGVyTWF0ZXJpYWxQcm9wZXJ0eSB7XG4gIGNvbnN0cnVjdG9yKG9wdGlvbnMpIHtcbiAgICBvcHRpb25zID0gb3B0aW9ucyB8fCB7fVxuICAgIHRoaXMuX2RlZmluaXRpb25DaGFuZ2VkID0gbmV3IENlc2l1bS5FdmVudCgpXG4gICAgdGhpcy5fYmFzZVdhdGVyQ29sb3IgPSB1bmRlZmluZWRcbiAgICB0aGlzLl9iYXNlV2F0ZXJDb2xvclN1YnNjcmlwdGlvbiA9IHVuZGVmaW5lZFxuICAgIHRoaXMuYmFzZVdhdGVyQ29s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UFDQTtBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBSUE7QUFJQTtBQUlBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBS0E7Ozs7OztBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQU9BIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/property/water/WaterMaterialProperty.js\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CircleBlurMaterial.glsl":
- /*!****************************************************************!*\
- !*** ./modules/material/shader/circle/CircleBlurMaterial.glsl ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st ;\\n vec2 center = vec2(0.5);\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n float r = 0.5 + sin(time) / 3.0;\\n float dis = distance(st, center);\\n float a = 0.0;\\n if(dis < r) {\\n a = 1.0 - smoothstep(0.0, r, dis);\\n }\\n material.alpha = pow(a,10.0) ;\\n material.diffuse = color.rgb * a * 3.0;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlQmx1ck1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlQmx1ck1hdGVyaWFsLmdsc2w/NGRmYSJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSB2ZWM0IGNvbG9yO1xcbnVuaWZvcm0gZmxvYXQgc3BlZWQ7XFxuY3ptX21hdGVyaWFsIGN6bV9nZXRNYXRlcmlhbChjem1fbWF0ZXJpYWxJbnB1dCBtYXRlcmlhbElucHV0KXtcXG4gIGN6bV9tYXRlcmlhbCBtYXRlcmlhbCA9IGN6bV9nZXREZWZhdWx0TWF0ZXJpYWwobWF0ZXJpYWxJbnB1dCk7XFxuICB2ZWMyIHN0ID0gbWF0ZXJpYWxJbnB1dC5zdCA7XFxuICB2ZWMyIGNlbnRlciA9IHZlYzIoMC41KTtcXG4gIGZsb2F0IHRpbWUgPSBmcmFjdChjem1fZnJhbWVOdW1iZXIgKiBzcGVlZCAvIDEwMDAuMCk7XFxuICBmbG9hdCByID0gMC41ICsgc2luKHRpbWUpIC8gMy4wO1xcbiAgZmxvYXQgZGlzID0gZGlzdGFuY2Uoc3QsIGNlbnRlcik7XFxuICBmbG9hdCBhID0gMC4wO1xcbiAgaWYoZGlzIDwgcikge1xcbiAgICBhID0gMS4wIC0gc21vb3Roc3RlcCgwLjAsIHIsIGRpcyk7XFxuICB9XFxuICBtYXRlcmlhbC5hbHBoYSA9IHBvdyhhLDEwLjApIDtcXG4gIG1hdGVyaWFsLmRpZmZ1c2UgPSBjb2xvci5yZ2IgKiBhICogMy4wO1xcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CircleBlurMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CircleDiffuseMaterial.glsl":
- /*!*******************************************************************!*\
- !*** ./modules/material/shader/circle/CircleDiffuseMaterial.glsl ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\nvec3 circlePing(float r, float innerTail, float frontierBorder, float timeResetSeconds, float radarPingSpeed, float fadeDistance){\\n float t = fract(czm_frameNumber * speed / 1000.0);\\n float time = mod(t, timeResetSeconds) * radarPingSpeed;\\n float circle;\\n circle += smoothstep(time - innerTail, time, r) * smoothstep(time + frontierBorder,time, r);\\n circle *= smoothstep(fadeDistance, 0.0, r);\\n return vec3(circle);\\n}\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st * 2.0 - 1.0 ;\\n vec2 center = vec2(0.);\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n vec3 flagColor;\\n float r = length(st - center) / 4.;\\n flagColor += circlePing(r, 0.25, 0.025, 4.0, 0.3, 1.0) * color.rgb;\\n material.alpha = length(flagColor);\\n material.diffuse = flagColor.rgb;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlRGlmZnVzZU1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlRGlmZnVzZU1hdGVyaWFsLmdsc2w/NjY3YyJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSB2ZWM0IGNvbG9yO1xcbnVuaWZvcm0gZmxvYXQgc3BlZWQ7XFxuXFxudmVjMyBjaXJjbGVQaW5nKGZsb2F0IHIsIGZsb2F0IGlubmVyVGFpbCwgIGZsb2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WFsLmFscGhhID0gbGVuZ3RoKGZsYWdDb2xvcik7XFxuICBtYXRlcmlhbC5kaWZmdXNlID0gZmxhZ0NvbG9yLnJnYjtcXG4gIHJldHVybiBtYXRlcmlhbDtcXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CircleDiffuseMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CircleFadeMaterial.glsl":
- /*!****************************************************************!*\
- !*** ./modules/material/shader/circle/CircleFadeMaterial.glsl ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n material.diffuse = 1.5 * color.rgb;\\n vec2 st = materialInput.st;\\n float dis = distance(st, vec2(0.5, 0.5));\\n float per = fract(czm_frameNumber * speed / 1000.0);\\n if(dis > per * 0.5){\\n material.alpha = color.a;\\n }else {\\n discard;\\n }\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlRmFkZU1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlRmFkZU1hdGVyaWFsLmdsc2w/NTIxMSJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSB2ZWM0IGNvbG9yO1xcbnVuaWZvcm0gZmxvYXQgc3BlZWQ7XFxuXFxuY3ptX21hdGVyaWFsIGN6bV9nZXRNYXRlcmlhbChjem1fbWF0ZXJpYWxJbnB1dCBtYXRlcmlhbElucHV0KXtcXG4gIGN6bV9tYXRlcmlhbCBtYXRlcmlhbCA9IGN6bV9nZXREZWZhdWx0TWF0ZXJpYWwobWF0ZXJpYWxJbnB1dCk7XFxuICBtYXRlcmlhbC5kaWZmdXNlID0gMS41ICogY29sb3IucmdiO1xcbiAgdmVjMiBzdCA9IG1hdGVyaWFsSW5wdXQuc3Q7XFxuICBmbG9hdCBkaXMgPSBkaXN0YW5jZShzdCwgdmVjMigwLjUsIDAuNSkpO1xcbiAgZmxvYXQgcGVyID0gZnJhY3QoY3ptX2ZyYW1lTnVtYmVyICogc3BlZWQgLyAxMDAwLjApO1xcbiAgaWYoZGlzID4gcGVyICogMC41KXtcXG4gICAgbWF0ZXJpYWwuYWxwaGEgPSBjb2xvci5hO1xcbiAgfWVsc2Uge1xcbiAgICBkaXNjYXJkO1xcbiAgfVxcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CircleFadeMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CirclePulseMaterial.glsl":
- /*!*****************************************************************!*\
- !*** ./modules/material/shader/circle/CirclePulseMaterial.glsl ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st * 2.0 - 1.0;\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n float r = length(st) * 1.2;\\n float a = pow(r, 2.0);\\n float b = sin(r * 0.8 - 1.6);\\n float c = sin(r - 0.010);\\n float s = sin(a - time * 2.0 + b) * c;\\n float d = abs(1.0 / (s * 10.8)) - 0.01;\\n material.alpha = pow(d,10.0) ;\\n material.diffuse = color.rgb * d;\\n return material;\\n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NvbG9yLnJnYiAqIGQ7XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CirclePulseMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CircleScanMaterial.glsl":
- /*!****************************************************************!*\
- !*** ./modules/material/shader/circle/CircleScanMaterial.glsl ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\nfloat circle(vec2 uv, float r, float blur) {\\n float d = length(uv) * 2.0;\\n float c = smoothstep(r+blur, r, d);\\n return c;\\n}\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput)\\n{\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st - .5;\\n material.diffuse = color.rgb;\\n material.emission = vec3(0);\\n float t =fract(czm_frameNumber * speed / 1000.0);\\n float s = 0.3;\\n float radius1 = smoothstep(.0, s, t) * 0.5;\\n float alpha1 = circle(st, radius1, 0.01) * circle(st, radius1, -0.01);\\n float alpha2 = circle(st, radius1, 0.01 - radius1) * circle(st, radius1, 0.01);\\n float radius2 = 0.5 + smoothstep(s, 1.0, t) * 0.5;\\n float alpha3 = circle(st, radius1, radius2 + 0.01 - radius1) * circle(st, radius1, -0.01);\\n material.alpha = smoothstep(1.0, s, t) * (alpha1 + alpha2*0.1 + alpha3*0.1);\\n material.alpha *= color.a;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlU2Nhbk1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoY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ZGl1czIgPSAwLjUgKyBzbW9vdGhzdGVwKHMsIDEuMCwgdCkgKiAwLjU7XFxuICBmbG9hdCBhbHBoYTMgPSBjaXJjbGUoc3QsIHJhZGl1czEsIHJhZGl1czIgKyAwLjAxIC0gcmFkaXVzMSkgKiBjaXJjbGUoc3QsIHJhZGl1czEsIC0wLjAxKTtcXG4gIG1hdGVyaWFsLmFscGhhID0gc21vb3Roc3RlcCgxLjAsIHMsIHQpICogKGFscGhhMSArIGFscGhhMiowLjEgKyBhbHBoYTMqMC4xKTtcXG4gIG1hdGVyaWFsLmFscGhhICo9IGNvbG9yLmE7XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CircleScanMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CircleScanShader.glsl":
- /*!**************************************************************!*\
- !*** ./modules/material/shader/circle/CircleScanShader.glsl ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D colorTexture;\\nuniform sampler2D depthTexture;\\nvarying vec2 v_textureCoordinates;\\nuniform vec3 centerWC;\\nuniform vec3 normalWC;\\nuniform float radius;\\nuniform vec4 color;\\nuniform float speed;\\n\\nfloat getDepth(){\\n float z_window = czm_unpackDepth(texture2D(depthTexture, v_textureCoordinates));\\n z_window = czm_reverseLogDepth(z_window);\\n float n_range = czm_depthRange.near;\\n float f_range = czm_depthRange.far;\\n return (2.0 * z_window - n_range - f_range) / (f_range - n_range);\\n}\\n\\nvec4 toEye(in vec2 uv, in float depth){\\n vec2 xy = vec2((uv.x * 2.0 - 1.0),(uv.y * 2.0 - 1.0));\\n vec4 posInCamera =czm_inverseProjection * vec4(xy, depth, 1.0);\\n posInCamera = posInCamera / posInCamera.w;\\n return posInCamera;\\n}\\n\\nvec3 pointProjectOnPlane(in vec3 planeNormal, in vec3 planeOrigin, in vec3 point){\\n vec3 v01 = point - planeOrigin;\\n float d = dot(planeNormal, v01) ;\\n return (point - planeNormal * d);\\n}\\n\\nvoid main() {\\n gl_FragColor = texture2D(colorTexture, v_textureCoordinates);\\n float depth = getDepth();\\n vec4 viewPos = toEye(v_textureCoordinates, depth);\\n vec4 center = czm_view * vec4(centerWC,1);\\n vec4 planeNormal = czm_view * vec4(normalWC,0);\\n vec3 prjOnPlane = pointProjectOnPlane(planeNormal.xyz, center.xyz, viewPos.xyz);\\n float dis = length(prjOnPlane.xyz - center.xyz);\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n float temp = radius * time;\\n if(dis < temp) {\\n float f = 1.0 - abs(temp - dis) / temp;\\n f = pow(f, 4.0);\\n gl_FragColor = mix(gl_FragColor, color, f);\\n }\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlU2NhblNoYWRlci5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvY2lyY2xlL0NpcmNsZVNjYW5TaGFkZXIuZ2xzbD9lODMwIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHNhbXBsZXIyRCBjb2xvclRleHR1cmU7XFxudW5pZm9ybSBzYW1wbGVyMkQgZGVwdGhUZXh0dXJlO1xcbnZhcnlpbmcgdmVjMiB2X3RleHR1cmVDb29yZGluYXRlcztcXG51bmlmb3JtIHZlYzMgY2VudGVyV0M7XFxudW5pZm9ybSB2ZWMzIG5vcm1hbFdDO1xcbnVuaWZvcm0gZmxvYXQgcmFkaXVzO1xcbnVuaWZvcm0gdmVjNCBjb2xvcjtcXG51bmlmb3JtIGZsb2F0IHNwZWVkO1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b2xvciA9IHRleHR1cmUyRChjb2xvclRleHR1cmUsIHZfdGV4dHVyZUNvb3JkaW5hdGVzKTtcXG4gIGZsb2F0IGRlcHRoID0gZ2V0RGVwdGgoKTtcXG4gIHZlYzQgdmlld1BvcyA9IHRvRXllKHZfdGV4dHVyZUNvb3JkaW5hdGVzLCBkZXB0aCk7XFxuICB2ZWM0IGNlbnRlciA9IGN6bV92aWV3ICogdmVjNChjZW50ZXJXQywxKTtcXG4gIHZlYzQgcGxhbmVOb3JtYWwgPSBjem1fdmlldyAqIHZlYzQobm9ybWFsV0MsMCk7XFxuICB2ZWMzIHByak9uUGxhbmUgPSBwb2ludFByb2plY3RPblBsYW5lKHBsYW5lTm9ybWFsLnh5eiwgY2VudGVyLnh5eiwgdmlld1Bvcy54eXopO1xcbiAgZmxvYXQgZGlzID0gbGVuZ3RoKHByak9uUGxhbmUueHl6IC0gY2VudGVyLnh5eik7XFxuICBmbG9hdCB0aW1lID0gZnJhY3QoY3ptX2ZyYW1lTnVtYmVyICogc3BlZWQgLyAxMDAwLjApO1xcbiAgZmxvYXQgdGVtcCA9IHJhZGl1cyAqIHRpbWU7XFxuICBpZihkaXMgPCB0ZW1wKSAge1xcbiAgICBmbG9hdCBmID0gMS4wIC0gYWJzKHRlbXAgLSBkaXMpIC8gdGVtcDtcXG4gICAgZiA9IHBvdyhmLCA0LjApO1xcbiAgICBnbF9GcmFnQ29sb3IgPSBtaXgoZ2xfRnJhZ0NvbG9yLCBjb2xvciwgZik7XFxuICB9XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CircleScanShader.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CircleSpiralMaterial.glsl":
- /*!******************************************************************!*\
- !*** ./modules/material/shader/circle/CircleSpiralMaterial.glsl ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\n#define PI 3.14159265359\\n\\nvec2 rotate2D (vec2 _st, float _angle) {\\n _st = mat2(cos(_angle),-sin(_angle), sin(_angle),cos(_angle)) * _st;\\n return _st;\\n}\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st * 2.0 - 1.0;\\n st *= 1.6;\\n float time = czm_frameNumber * speed / 1000.0;\\n float r = length(st);\\n float w = .3;\\n st = rotate2D(st,(r*PI*6.-time*2.));\\n float a = smoothstep(-w,.2,st.x) * smoothstep(w,.2,st.x);\\n float b = abs(1./(sin(pow(r,2.)*2.-time*1.3)*6.))*.4;\\n material.alpha = a * b ;\\n material.diffuse = color.rgb * a * b * 3.0;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlU3BpcmFsTWF0ZXJpYWwuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL2NpcmNsZS9DaXJjbGVTcGlyYWxNYXRlcmlhbC5nbHNsP2YyNTIiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gdmVjNCBjb2xvcjtcXG51bmlmb3JtIGZsb2F0IHNwZWVkO1xcblxcbiNkZWZpbmUgUEkgMy4xNDE1OTI2NTM1OVxcblxcbnZlYzIgcm90YXRlMkQgKHZlYzIgX3N0LCBmbG9hdCBfYW5nbGUpIHtcXG4gIF9zdCA9ICBtYXQyKGNvcyhfYW5nbGUpLC1zaW4oX2FuZ2xlKSwgIHNpbihfYW5nbGUpLGNvcyhfYW5nbGUpKSAqIF9zdDtcXG4gIHJldHVybiBfc3Q7XFxufVxcblxcbmN6bV9tYXRlcmlhbCBjem1fZ2V0TWF0ZXJpYWwoY3ptX21hdGVyaWFsSW5wdXQgbWF0ZXJpYWxJbnB1dCl7XFxuICBjem1fbWF0ZXJpYWwgbWF0ZXJpYWwgPSBjem1fZ2V0RGVmYXVsdE1hdGVyaWFsKG1hdGVyaWFsSW5wdXQpO1xcbiAgdmVjMiBzdCA9IG1hdGVyaWFsSW5wdXQuc3QgKiAyLjAgLSAxLjA7XFxuICBzdCAqPSAxLjY7XFxuICBmbG9hdCB0aW1lID0gY3ptX2ZyYW1lTnVtYmVyICogc3BlZWQgLyAxMDAwLjA7XFxuICBmbG9hdCByID0gbGVuZ3RoKHN0KTtcXG4gIGZsb2F0IHcgPSAuMztcXG4gIHN0ID0gcm90YXRlMkQoc3QsKHIqUEkqNi4tdGltZSoyLikpO1xcbiAgZmxvYXQgYSA9IHNtb290aHN0ZXAoLXcsLjIsc3QueCkgKiBzbW9vdGhzdGVwKHcsLjIsc3QueCk7XFxuICBmbG9hdCBiID0gYWJzKDEuLyhzaW4ocG93KHIsMi4pKjIuLXRpbWUqMS4zKSo2LikpKi40O1xcbiAgbWF0ZXJpYWwuYWxwaGEgPSBhICogYiA7XFxuICBtYXRlcmlhbC5kaWZmdXNlID0gY29sb3IucmdiICogYSAqIGIgICogMy4wO1xcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CircleSpiralMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CircleVaryMaterial.glsl":
- /*!****************************************************************!*\
- !*** ./modules/material/shader/circle/CircleVaryMaterial.glsl ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st * 2.0 - 1.0;\\n float time =czm_frameNumber * speed / 1000.0;\\n float radius = length(st);\\n float angle = atan(st.y/st.x);\\n float radius1 = sin(time * 2.0) + sin(40.0*angle+time)*0.01;\\n float radius2 = cos(time * 3.0);\\n vec3 fragColor = 0.2 + 0.5 * cos( time + color.rgb + vec3(0,2,4));\\n float inten1 = 1.0 - sqrt(abs(radius1 - radius));\\n float inten2 = 1.0 - sqrt(abs(radius2 - radius));\\n material.alpha = pow(inten1 + inten2 , 5.0) ;\\n material.diffuse = fragColor * (inten1 + inten2);\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlVmFyeU1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlVmFyeU1hdGVyaWFsLmdsc2w/NTQyOCJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSB2ZWM0IGNvbG9yO1xcbnVuaWZvcm0gZmxvYXQgc3BlZWQ7XFxuXFxuY3ptX21hdGVyaWFsIGN6bV9nZXRNYXRlcmlhbChjem1fbWF0ZXJpYWxJbnB1dCBtYXRlcmlhbElucHV0KXtcXG4gIGN6bV9tYXRlcmlhbCBtYXRlcmlhbCA9IGN6bV9nZXREZWZhdWx0TWF0ZXJpYWwobWF0ZXJpYWxJbnB1dCk7XFxuICB2ZWMyIHN0ID0gbWF0ZXJpYWxJbnB1dC5zdCAgKiAyLjAgLSAxLjA7XFxuICBmbG9hdCB0aW1lID1jem1fZnJhbWVOdW1iZXIgKiBzcGVlZCAvIDEwMDAuMDtcXG4gIGZsb2F0IHJhZGl1cyA9IGxlbmd0aChzdCk7XFxuICBmbG9hdCBhbmdsZSA9IGF0YW4oc3QueS9zdC54KTtcXG4gIGZsb2F0IHJhZGl1czEgPSBzaW4odGltZSAqIDIuMCkgKyBzaW4oNDAuMCphbmdsZSt0aW1lKSowLjAxO1xcbiAgZmxvYXQgcmFkaXVzMiA9IGNvcyh0aW1lICogMy4wKTtcXG4gIHZlYzMgZnJhZ0NvbG9yID0gMC4yICsgMC41ICogY29zKCB0aW1lICsgY29sb3IucmdiICsgdmVjMygwLDIsNCkpO1xcbiAgZmxvYXQgaW50ZW4xID0gMS4wIC0gc3FydChhYnMocmFkaXVzMSAtIHJhZGl1cykpO1xcbiAgZmxvYXQgaW50ZW4yID0gMS4wIC0gc3FydChhYnMocmFkaXVzMiAtIHJhZGl1cykpO1xcbiAgbWF0ZXJpYWwuYWxwaGEgPSBwb3coaW50ZW4xICsgaW50ZW4yICwgNS4wKSA7XFxuICBtYXRlcmlhbC5kaWZmdXNlID0gZnJhZ0NvbG9yICogKGludGVuMSArIGludGVuMik7XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CircleVaryMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/circle/CircleWaveMaterial.glsl":
- /*!****************************************************************!*\
- !*** ./modules/material/shader/circle/CircleWaveMaterial.glsl ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\nuniform float count;\\nuniform float gradient;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput)\\n{\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n material.diffuse = 1.5 * color.rgb;\\n vec2 st = materialInput.st;\\n float dis = distance(st, vec2(0.5, 0.5));\\n float per = fract(czm_frameNumber * speed / 1000.0);\\n if(count == 1.0){\\n if(dis > per * 0.5){\\n discard;\\n }else {\\n material.alpha = color.a * dis / per / 2.0;\\n }\\n } else {\\n vec3 str = materialInput.str;\\n if(abs(str.z) > 0.001){\\n discard;\\n }\\n if(dis > 0.5){\\n discard;\\n } else {\\n float perDis = 0.5 / count;\\n float disNum;\\n float bl = 0.0;\\n for(int i = 0; i <= 999; i++){\\n if(float(i) <= count){\\n disNum = perDis * float(i) - dis + per / count;\\n if(disNum > 0.0){\\n if(disNum < perDis){\\n bl = 1.0 - disNum / perDis;\\n }\\n else if(disNum - perDis < perDis){\\n bl = 1.0 - abs(1.0 - disNum / perDis);\\n }\\n material.alpha = pow(bl,(1.0 + 10.0 * (1.0 - gradient)));\\n }\\n }\\n }\\n }\\n }\\n return material;\\n}\\n\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlV2F2ZU1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9jaXJjbGUvQ2lyY2xlV2F2ZU1hdGVyaWFsLmdsc2w/ZTAwMyJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSB2ZWM0IGNvbG9yO1xcbnVuaWZvcm0gZmxvYXQgc3BlZWQ7XFxudW5pZm9ybSBmbG9hdCBjb3VudDtcXG51bmlmb3JtIGZsb2F0IGdyYWRpZW50O1xcblxcbmN6bV9tYXRlcmlhbCBjem1fZ2V0TWF0ZXJpYWwoY3ptX21hdGVyaWFsSW5wdXQgbWF0ZXJpYWxJbnB1dClcXG57XFxuICBjem1fbWF0ZXJpYWwgbWF0ZXJpYWwgPSBjem1fZ2V0RGVmYXVsdE1hdGVyaWFsKG1hdGVyaWFsSW5wdXQpO1xcbiAgbWF0ZXJpYWwuZGlmZnVz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C0gcGVyRGlzIDwgcGVyRGlzKXtcXG4gICAgICAgICAgICAgIGJsID0gMS4wIC0gYWJzKDEuMCAtIGRpc051bSAvIHBlckRpcyk7XFxuICAgICAgICAgICAgfVxcbiAgICAgICAgICAgIG1hdGVyaWFsLmFscGhhID0gcG93KGJsLCgxLjAgKyAxMC4wICogKDEuMCAtIGdyYWRpZW50KSkpO1xcbiAgICAgICAgICB9XFxuICAgICAgICB9XFxuICAgICAgfVxcbiAgICB9XFxuICB9XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/circle/CircleWaveMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/ellipsoid/EllipsoidElectricMaterial.glsl":
- /*!**************************************************************************!*\
- !*** ./modules/material/shader/ellipsoid/EllipsoidElectricMaterial.glsl ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\n#define pi 3.1415926535\\n#define PI2RAD 0.01745329252\\n#define TWO_PI (2. * PI)\\n\\nfloat rands(float p){\\n return fract(sin(p) * 10000.0);\\n}\\n\\nfloat noise(vec2 p){\\n float time = fract( czm_frameNumber * speed / 1000.0);\\n float t = time / 20000.0;\\n if(t > 1.0) t -= floor(t);\\n return rands(p.x * 14. + p.y * sin(t) * 0.5);\\n}\\n\\nvec2 sw(vec2 p){\\n return vec2(floor(p.x), floor(p.y));\\n}\\n\\nvec2 se(vec2 p){\\n return vec2(ceil(p.x), floor(p.y));\\n}\\n\\nvec2 nw(vec2 p){\\n return vec2(floor(p.x), ceil(p.y));\\n}\\n\\nvec2 ne(vec2 p){\\n return vec2(ceil(p.x), ceil(p.y));\\n}\\n\\nfloat smoothNoise(vec2 p){\\n vec2 inter = smoothstep(0.0, 1.0, fract(p));\\n float s = mix(noise(sw(p)), noise(se(p)), inter.x);\\n float n = mix(noise(nw(p)), noise(ne(p)), inter.x);\\n return mix(s, n, inter.y);\\n}\\n\\nfloat fbm(vec2 p){\\n float z = 2.0;\\n float rz = 0.0;\\n vec2 bp = p;\\n for(float i = 1.0; i < 6.0; i++){\\n rz += abs((smoothNoise(p) - 0.5)* 2.0) / z;\\n z *= 2.0;\\n p *= 2.0;\\n }\\n return rz;\\n}\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput)\\n{\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n vec2 st2 = materialInput.st;\\n float time = fract( czm_frameNumber * speed / 1000.0);\\n if (st.t < 0.5) {\\n discard;\\n }\\n st *= 4.;\\n float rz = fbm(st);\\n st /= exp(mod( time * 2.0, pi));\\n rz *= pow(15., 0.9);\\n vec4 temp = vec4(0);\\n temp = mix( color / rz, vec4(color.rgb, 0.1), 0.2);\\n if (st2.s < 0.05) {\\n temp = mix(vec4(color.rgb, 0.1), temp, st2.s / 0.05);\\n }\\n if (st2.s > 0.95){\\n temp = mix(temp, vec4(color.rgb, 0.1), (st2.s - 0.95) / 0.05);\\n }\\n material.diffuse = temp.rgb;\\n material.alpha = temp.a * 2.0;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9lbGxpcHNvaWQvRWxsaXBzb2lkRWxlY3RyaWNNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvZWxsaXBzb2lkL0VsbGlwc29pZEVsZWN0cmljTWF0ZXJpYWwuZ2xzbD84ZWExIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHZlYzQgY29sb3I7XFxudW5pZm9ybSBmb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yLnJnYiwgMC4xKSwgdGVtcCwgc3QyLnMgLyAwLjA1KTtcXG4gIH1cXG4gIGlmIChzdDIucyA+IDAuOTUpe1xcbiAgICB0ZW1wID0gbWl4KHRlbXAsIHZlYzQoY29sb3IucmdiLCAwLjEpLCAoc3QyLnMgLSAwLjk1KSAvIDAuMDUpO1xcbiAgfVxcbiAgbWF0ZXJpYWwuZGlmZnVzZSA9IHRlbXAucmdiO1xcbiAgbWF0ZXJpYWwuYWxwaGEgPSB0ZW1wLmEgKiAyLjA7XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/ellipsoid/EllipsoidElectricMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/ellipsoid/EllipsoidTrailMaterial.glsl":
- /*!***********************************************************************!*\
- !*** ./modules/material/shader/ellipsoid/EllipsoidTrailMaterial.glsl ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n float alpha = abs(smoothstep(0.5,1.,fract( -st.t - time)));\\n alpha += .1;\\n material.alpha = alpha;\\n material.diffuse = color.rgb;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9lbGxpcHNvaWQvRWxsaXBzb2lkVHJhaWxNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvZWxsaXBzb2lkL0VsbGlwc29pZFRyYWlsTWF0ZXJpYWwuZ2xzbD9hYTRkIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHZlYzQgY29sb3I7XFxudW5pZm9ybSBmbG9hdCBzcGVlZDtcXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gIHZlYzIgc3QgPSBtYXRlcmlhbElucHV0LnN0O1xcbiAgZmxvYXQgdGltZSA9IGZyYWN0KGN6bV9mcmFtZU51bWJlciAqIHNwZWVkIC8gMTAwMC4wKTtcXG4gIGZsb2F0IGFscGhhID0gYWJzKHNtb290aHN0ZXAoMC41LDEuLGZyYWN0KCAtc3QudCAtIHRpbWUpKSk7XFxuICBhbHBoYSArPSAuMTtcXG4gIG1hdGVyaWFsLmFscGhhID0gYWxwaGE7XFxuICBtYXRlcmlhbC5kaWZmdXNlID0gY29sb3IucmdiO1xcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/ellipsoid/EllipsoidTrailMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/polyline/PolylineFlickerMaterial.glsl":
- /*!***********************************************************************!*\
- !*** ./modules/material/shader/polyline/PolylineFlickerMaterial.glsl ***!
- \***********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n float time = fract( czm_frameNumber * speed / 1000.0);\\n vec2 st = materialInput.st;\\n float scalar = smoothstep(0.0,1.0,time);\\n material.diffuse = color.rgb * scalar;\\n material.alpha = color.a * scalar ;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9wb2x5bGluZS9Qb2x5bGluZUZsaWNrZXJNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvcG9seWxpbmUvUG9seWxpbmVGbGlja2VyTWF0ZXJpYWwuZ2xzbD81NTEwIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHZlYzQgY29sb3I7XFxudW5pZm9ybSBmbG9hdCBzcGVlZDtcXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gIGZsb2F0IHRpbWUgPSBmcmFjdCggY3ptX2ZyYW1lTnVtYmVyICAqICBzcGVlZCAvIDEwMDAuMCk7XFxuICB2ZWMyIHN0ID0gbWF0ZXJpYWxJbnB1dC5zdDtcXG4gIGZsb2F0IHNjYWxhciA9IHNtb290aHN0ZXAoMC4wLDEuMCx0aW1lKTtcXG4gIG1hdGVyaWFsLmRpZmZ1c2UgPSBjb2xvci5yZ2IgKiBzY2FsYXI7XFxuICBtYXRlcmlhbC5hbHBoYSA9IGNvbG9yLmEgKiBzY2FsYXIgO1xcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/polyline/PolylineFlickerMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/polyline/PolylineFlowMaterial.glsl":
- /*!********************************************************************!*\
- !*** ./modules/material/shader/polyline/PolylineFlowMaterial.glsl ***!
- \********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\nuniform float percent;\\nuniform float gradient;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n float t =fract(czm_frameNumber * speed / 1000.0);\\n t *= (1.0 + percent);\\n float alpha = smoothstep(t- percent, t, st.s) * step(-t, -st.s);\\n alpha += gradient;\\n material.diffuse = color.rgb;\\n material.alpha = alpha;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9wb2x5bGluZS9Qb2x5bGluZUZsb3dNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvcG9seWxpbmUvUG9seWxpbmVGbG93TWF0ZXJpYWwuZ2xzbD8wZTA5Il0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHZlYzQgY29sb3I7XFxudW5pZm9ybSBmbG9hdCBzcGVlZDtcXG51bmlmb3JtIGZsb2F0IHBlcmNlbnQ7XFxudW5pZm9ybSBmbG9hdCBncmFkaWVudDtcXG5cXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gIHZlYzIgc3QgPSBtYXRlcmlhbElucHV0LnN0O1xcbiAgZmxvYXQgdCA9ZnJhY3QoY3ptX2ZyYW1lTnVtYmVyICogc3BlZWQgLyAxMDAwLjApO1xcbiAgdCAqPSAoMS4wICsgcGVyY2VudCk7XFxuICBmbG9hdCBhbHBoYSA9IHNtb290aHN0ZXAodC0gcGVyY2VudCwgdCwgc3QucykgKiBzdGVwKC10LCAtc3Qucyk7XFxuICBhbHBoYSArPSBncmFkaWVudDtcXG4gIG1hdGVyaWFsLmRpZmZ1c2UgPSBjb2xvci5yZ2I7XFxuICBtYXRlcmlhbC5hbHBoYSA9IGFscGhhO1xcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/polyline/PolylineFlowMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/polyline/PolylineImageTrailMaterial.glsl":
- /*!**************************************************************************!*\
- !*** ./modules/material/shader/polyline/PolylineImageTrailMaterial.glsl ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D image;\\nuniform float speed;\\nuniform vec4 color;\\nuniform vec2 repeat;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = repeat * materialInput.st;\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n vec4 colorImage = texture2D(image, vec2(fract(st.s - time), st.t));\\n if(color.a == 0.0){\\n if(colorImage.rgb == vec3(1.0) || colorImage.rgb == vec3(0.0)){\\n discard;\\n }\\n material.alpha = colorImage.a;\\n material.diffuse = colorImage.rgb;\\n }else{\\n material.alpha = colorImage.a * color.a;\\n material.diffuse = max(color.rgb * material.alpha * 3.0, color.rgb);\\n }\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;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E7XFxuICAgIG1hdGVyaWFsLmRpZmZ1c2UgPSBjb2xvckltYWdlLnJnYjtcXG4gICB9ZWxzZXtcXG4gICAgbWF0ZXJpYWwuYWxwaGEgPSBjb2xvckltYWdlLmEgKiBjb2xvci5hO1xcbiAgICBtYXRlcmlhbC5kaWZmdXNlID0gbWF4KGNvbG9yLnJnYiAqIG1hdGVyaWFsLmFscGhhICogMy4wLCBjb2xvci5yZ2IpO1xcbiAgIH1cXG4gICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/polyline/PolylineImageTrailMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/polyline/PolylineLightingMaterial.glsl":
- /*!************************************************************************!*\
- !*** ./modules/material/shader/polyline/PolylineLightingMaterial.glsl ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D image;\\nuniform vec4 color;\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n vec4 colorImage = texture2D(image,st);\\n vec3 fragColor = color.rgb;\\n material.alpha = colorImage.a * color.a * 3.;\\n material.diffuse = max(fragColor.rgb + colorImage.rgb , fragColor.rgb);\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9wb2x5bGluZS9Qb2x5bGluZUxpZ2h0aW5nTWF0ZXJpYWwuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3BvbHlsaW5lL1BvbHlsaW5lTGlnaHRpbmdNYXRlcmlhbC5nbHNsP2U1NDciXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gc2FtcGxlcjJEIGltYWdlO1xcbnVuaWZvcm0gdmVjNCBjb2xvcjtcXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gIHZlYzIgc3QgPSBtYXRlcmlhbElucHV0LnN0O1xcbiAgdmVjNCBjb2xvckltYWdlID0gdGV4dHVyZTJEKGltYWdlLHN0KTtcXG4gIHZlYzMgZnJhZ0NvbG9yID0gY29sb3IucmdiO1xcbiAgbWF0ZXJpYWwuYWxwaGEgPSBjb2xvckltYWdlLmEgKiBjb2xvci5hICogMy47XFxuICBtYXRlcmlhbC5kaWZmdXNlID0gbWF4KGZyYWdDb2xvci5yZ2IgICsgIGNvbG9ySW1hZ2UucmdiICwgZnJhZ0NvbG9yLnJnYik7XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/polyline/PolylineLightingMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/polyline/PolylineLightingTrailMaterial.glsl":
- /*!*****************************************************************************!*\
- !*** ./modules/material/shader/polyline/PolylineLightingTrailMaterial.glsl ***!
- \*****************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D image;\\nuniform vec4 color;\\nuniform float speed;\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n vec4 colorImage = texture2D(image,st);\\n vec3 fragColor = color.rgb;\\n if(st.t > 0.45 && st.t < 0.55 ) {\\n fragColor = vec3(1.0);\\n }\\n if(color.a == 0.0){\\n material.alpha = colorImage.a * 1.5 * fract(st.s - time);\\n material.diffuse = colorImage.rgb;\\n }else{\\n material.alpha = colorImage.a * color.a * 1.5 * smoothstep(.0,1., fract(st.s - time));\\n material.diffuse = max(fragColor.rgb * material.alpha , fragColor.rgb);\\n }\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9wb2x5bGluZS9Qb2x5bGluZUxpZ2h0aW5nVHJhaWxNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvcG9seWxpbmUvUG9seWxpbmVMaWdodGluZ1RyYWlsTWF0ZXJpYWwuZ2xzbD82YjdlIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHNhbXBsZXIyRCBpbWFnZTtcXG51bmlmb3JtIHZlYzQgY29sb3I7XFxudW5pZm9ybSBmbG9hdCBzcGVlZDtcXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gIHZlYzIgc3QgPSBtYXRlcmlhbElucHV0LnN0O1xcbiAgZmxvYXQgdGltZSA9IGZyYWN0KGN6bV9mcmFtZU51bWJlciAqIHNwZWVkIC8gMTAwMC4wKTtcXG4gIHZlYzQgY29sb3JJbWFnZSA9IHRleHR1cmUyRChpbWFnZSxzdCk7XFxuICB2ZWMzIGZyYWdDb2xvciA9IGNvbG9yLnJnYjtcXG4gIGlmKHN0LnQgPiAwLjQ1ICYmIHN0LnQgPCAwLjU1ICkge1xcbiAgICBmcmFnQ29sb3IgPSB2ZWMzKDEuMCk7XFxuICB9XFxuICBpZihjb2xvci5hID09IDAuMCl7XFxuICAgIG1hdGVyaWFsLmFscGhhID0gY29sb3JJbWFnZS5hICogMS41ICogZnJhY3Qoc3QucyAtIHRpbWUpO1xcbiAgICBtYXRlcmlhbC5kaWZmdXNlID0gY29sb3JJbWFnZS5yZ2I7XFxuICB9ZWxzZXtcXG4gICAgbWF0ZXJpYWwuYWxwaGEgPSBjb2xvckltYWdlLmEgKiBjb2xvci5hICogMS41ICogc21vb3Roc3RlcCguMCwxLiwgZnJhY3Qoc3QucyAtIHRpbWUpKTtcXG4gICAgbWF0ZXJpYWwuZGlmZnVzZSA9IG1heChmcmFnQ29sb3IucmdiICogbWF0ZXJpYWwuYWxwaGEgLCBmcmFnQ29sb3IucmdiKTtcXG4gIH1cXG4gIHJldHVybiBtYXRlcmlhbDtcXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/polyline/PolylineLightingTrailMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/polyline/PolylineTrailMaterial.glsl":
- /*!*********************************************************************!*\
- !*** ./modules/material/shader/polyline/PolylineTrailMaterial.glsl ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n material.diffuse = color.rgb;\\n material.alpha = color.a * fract(st.s-time);\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9wb2x5bGluZS9Qb2x5bGluZVRyYWlsTWF0ZXJpYWwuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3BvbHlsaW5lL1BvbHlsaW5lVHJhaWxNYXRlcmlhbC5nbHNsP2E3MWQiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gdmVjNCBjb2xvcjtcXG51bmlmb3JtIGZsb2F0IHNwZWVkO1xcblxcbmN6bV9tYXRlcmlhbCBjem1fZ2V0TWF0ZXJpYWwoY3ptX21hdGVyaWFsSW5wdXQgbWF0ZXJpYWxJbnB1dCl7XFxuICAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gICB2ZWMyIHN0ID0gbWF0ZXJpYWxJbnB1dC5zdDtcXG4gICBmbG9hdCB0aW1lID0gZnJhY3QoY3ptX2ZyYW1lTnVtYmVyICogc3BlZWQgLyAxMDAwLjApO1xcbiAgIG1hdGVyaWFsLmRpZmZ1c2UgPSBjb2xvci5yZ2I7XFxuICAgbWF0ZXJpYWwuYWxwaGEgPSBjb2xvci5hICogZnJhY3Qoc3Qucy10aW1lKTtcXG4gICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/polyline/PolylineTrailMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/radar/RadarLineMaterial.glsl":
- /*!**************************************************************!*\
- !*** ./modules/material/shader/radar/RadarLineMaterial.glsl ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st * 2.0 - 1.0;\\n float t = czm_frameNumber * speed / 1000.0 ;\\n vec3 col = vec3(0.0);\\n vec2 p = vec2(sin(t), cos(t));\\n float d = length(st - dot(p, st) * p);\\n if (dot(st, p) < 0.) {\\n d = length(st);\\n }\\n\\n col = .006 / d * color.rgb;\\n\\n if(distance(st,vec2(0)) > 0.99 ){\\n col =color.rgb;\\n }\\n\\n material.alpha = pow(length(col),2.0);\\n material.diffuse = col * 3.0 ;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9yYWRhci9SYWRhckxpbmVNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvcmFkYXIvUmFkYXJMaW5lTWF0ZXJpYWwuZ2xzbD8zNWJhIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHZlYzQgY29sb3I7XFxudW5pZm9ybSBmbG9hdCBzcGVlZDtcXG5cXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gIHZlYzIgc3QgPSBtYXRlcmlhbElucHV0LnN0ICogMi4wIC0gMS4wO1xcbiAgZmxvYXQgdCA9IGN6bV9mcmFtZU51bWJlciAqIHNwZWVkIC8gMTAwMC4wIDtcXG4gIHZlYzMgY29sID0gdmVjMygwLjApO1xcbiAgdmVjMiBwID0gdmVjMihzaW4odCksIGNvcyh0KSk7XFxuICBmbG9hdCBkID0gbGVuZ3RoKHN0IC0gZG90KHAsIHN0KSAqIHApO1xcbiAgaWYgKGRvdChzdCwgcCkgPCAwLikge1xcbiAgICBkID0gbGVuZ3RoKHN0KTtcXG4gIH1cXG5cXG4gIGNvbCA9IC4wMDYgLyBkICogY29sb3IucmdiO1xcblxcbiAgaWYoZGlzdGFuY2Uoc3QsdmVjMigwKSkgPiAgMC45OSApe1xcbiAgICBjb2wgPWNvbG9yLnJnYjtcXG4gIH1cXG5cXG4gIG1hdGVyaWFsLmFscGhhICA9IHBvdyhsZW5ndGgoY29sKSwyLjApO1xcbiAgbWF0ZXJpYWwuZGlmZnVzZSA9IGNvbCAqIDMuMCA7XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/radar/RadarLineMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/radar/RadarScanShader.glsl":
- /*!************************************************************!*\
- !*** ./modules/material/shader/radar/RadarScanShader.glsl ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D colorTexture;\\nuniform sampler2D depthTexture;\\nvarying vec2 v_textureCoordinates;\\nuniform vec3 centerWC;\\nuniform vec3 planeNormalWC;\\nuniform vec3 lineNormalWC;\\nuniform float radius;\\nuniform vec4 color;\\n\\nfloat getDepth(){\\n float z_window = czm_unpackDepth(texture2D(depthTexture, v_textureCoordinates));\\n z_window = czm_reverseLogDepth(z_window);\\n float n_range = czm_depthRange.near;\\n float f_range = czm_depthRange.far;\\n return (2.0 * z_window - n_range - f_range) / (f_range - n_range);\\n}\\n\\nvec4 toEye(in vec2 uv, in float depth){\\n vec2 xy = vec2((uv.x * 2.0 - 1.0),(uv.y * 2.0 - 1.0));\\n vec4 posInCamera =czm_inverseProjection * vec4(xy, depth, 1.0);\\n posInCamera = posInCamera / posInCamera.w;\\n return posInCamera;\\n}\\n\\nbool isPointOnLineRight(in vec3 ptOnLine, in vec3 lineNormal, in vec3 testPt)\\n{\\n vec3 v01 = testPt - ptOnLine;\\n normalize(v01);\\n vec3 temp = cross(v01, lineNormal);\\n vec4 planeNormalEC = czm_view * vec4(planeNormalWC,0);\\n float d = dot(temp, planeNormalEC.xyz);\\n return d > 0.5;\\n}\\n\\nvec3 pointProjectOnPlane(in vec3 planeNormal, in vec3 planeOrigin, in vec3 point)\\n{\\n vec3 v01 = point -planeOrigin;\\n float d = dot(planeNormal, v01) ;\\n return (point - planeNormal * d);\\n}\\n\\nfloat distancePointToLine(in vec3 ptOnLine, in vec3 lineNormal, in vec3 testPt)\\n{\\n vec3 tempPt = pointProjectOnPlane(lineNormal, ptOnLine, testPt);\\n return length(tempPt - ptOnLine);\\n}\\n\\nvoid main() {\\n gl_FragColor = texture2D(colorTexture, v_textureCoordinates);\\n float depth = getDepth();\\n vec4 viewPos = toEye(v_textureCoordinates, depth);\\n vec4 centerEC = czm_view * vec4(centerWC,1);\\n vec4 planeNormalEC = czm_view * vec4(planeNormalWC,0);\\n vec4 lineNormalEC = czm_view * vec4(lineNormalWC,0);\\n vec3 prjOnPlane = pointProjectOnPlane(planeNormalEC.xyz, centerEC.xyz, viewPos.xyz);\\n float dis = length(prjOnPlane.xyz - centerEC.xyz);\\n float diameter = radius * 2.0;\\n if(dis < radius){\\n float f0 = 1.0 -abs(radius - dis) / radius;\\n f0 = pow(f0, 64.0);\\n vec3 lineEndPt = vec3(centerEC.xyz) + vec3(lineNormalEC.xyz) * radius;\\n float f = 0.0;\\n if(isPointOnLineRight(centerEC.xyz, lineNormalEC.xyz, prjOnPlane.xyz)) {\\n float dis1= length(prjOnPlane.xyz - lineEndPt);\\n f = abs(diameter - dis1) / diameter;\\n f = pow(f, 3.0);\\n }\\n gl_FragColor = mix(gl_FragColor, color, f + f0);\\n }\\n}\\n\"//# sourceURL=[module]\n//# sourceM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ogcmFkaXVzO1xcbiAgICBmbG9hdCBmID0gMC4wO1xcbiAgICBpZihpc1BvaW50T25MaW5lUmlnaHQoY2VudGVyRUMueHl6LCBsaW5lTm9ybWFsRUMueHl6LCBwcmpPblBsYW5lLnh5eikpIHtcXG4gICAgICBmbG9hdCBkaXMxPSBsZW5ndGgocHJqT25QbGFuZS54eXogLSBsaW5lRW5kUHQpO1xcbiAgICAgIGYgPSBhYnMoZGlhbWV0ZXIgLSBkaXMxKSAvIGRpYW1ldGVyO1xcbiAgICAgIGYgPSBwb3coZiwgMy4wKTtcXG4gICAgfVxcbiAgICBnbF9GcmFnQ29sb3IgPSBtaXgoZ2xfRnJhZ0NvbG9yLCBjb2xvciwgZiArIGYwKTtcXG4gIH1cXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/radar/RadarScanShader.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/radar/RadarSweepMaterial.glsl":
- /*!***************************************************************!*\
- !*** ./modules/material/shader/radar/RadarSweepMaterial.glsl ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\n#define PI 3.14159265359\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n vec2 scrPt = st * 2.0 - 1.0;\\n float time = czm_frameNumber * speed / 1000.0 ;\\n vec3 col = vec3(0.0);\\n mat2 rot;\\n float theta = -time * 1.0 * PI - 2.2;\\n float cosTheta, sinTheta;\\n cosTheta = cos(theta);\\n sinTheta = sin(theta);\\n rot[0][0] = cosTheta;\\n rot[0][1] = -sinTheta;\\n rot[1][0] = sinTheta;\\n rot[1][1] = cosTheta;\\n vec2 scrPtRot = rot * scrPt;\\n float angle = 1.0 - (atan(scrPtRot.y, scrPtRot.x) / 6.2831 + 0.5);\\n float falloff = 1.0 - length(scrPtRot);\\n float ringSpacing = 0.23;\\n if(mod(length(scrPtRot), ringSpacing) < 0.015 && length(scrPtRot) / ringSpacing < 5.0) {\\n col += vec3(0, 0.5, 0);\\n }\\n col += vec3(0, 0.8, 0) * step(mod(length(scrPtRot), ringSpacing), 0.01) * step(length(scrPtRot), 1.0);\\n material.alpha =pow(length(col + vec3(.5)),5.0);\\n material.diffuse = (0.5 + pow(angle, 2.0) * falloff ) * color.rgb ;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9yYWRhci9SYWRhclN3ZWVwTWF0ZXJpYWwuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3JhZGFyL1JhZGFyU3dlZXBNYXRlcmlhbC5nbHNsP2EwN2YiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gdmVjNCBjb2xvcjtcXG51bmlmb3JtIGZsb2F0IHNwZWVkO1xcblxcbiNkZWZpbmUgUEkgMy4xNDE1OTI2NTM1OVxcblxcbmN6bV9tYXRlcmlhbCBjem1fZ2V0TWF0ZXJpYWwoY3ptX21hdGVyaWFsSW5wdXQgbWF0ZXJpYWxJbnB1dCl7XFxuICBjem1fbWF0ZXJpYWwgbWF0ZXJpYWwgPSBjem1fZ2V0RGVmYXVsdE1hdGVyaWFsKG1hdGVyaWFsSW5wdXQpO1xcbiAgdmVjMiBzdCA9IG1hdGVyaWFsSW5wdXQuc3Q7XFxuICB2ZWMyIHNjclB0ID0gc3QgKiAyLjAgLSAxLjA7XFxuICBmbG9hdCB0aW1lID0gY3ptX2ZyYW1lTnVtYmVyICogc3BlZWQgLyAxMDAwLjAgO1xcbiAgdmVjMyBjb2wgPSB2ZW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ldHVybiBtYXRlcmlhbDtcXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/radar/RadarSweepMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/radar/RadarWaveMaterial.glsl":
- /*!**************************************************************!*\
- !*** ./modules/material/shader/radar/RadarWaveMaterial.glsl ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float speed;\\n\\n#define PI 3.14159265359\\n\\nfloat rand(vec2 co){\\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\\n}\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n vec2 pos = st - vec2(0.5);\\n float time = czm_frameNumber * speed / 1000.0 ;\\n float r = length(pos);\\n float t = atan(pos.y, pos.x) - time * 2.5;\\n float a = (atan(sin(t), cos(t)) + PI)/(2.0*PI);\\n float ta = 0.5;\\n float v = smoothstep(ta-0.05,ta+0.05,a) * smoothstep(ta+0.05,ta-0.05,a);\\n vec3 flagColor = color.rgb * v;\\n float blink = pow(sin(time*1.5)*0.5+0.5, 0.8);\\n flagColor = color.rgb * pow(a, 8.0*(.2+blink))*(sin(r*500.0)*.5+.5) ;\\n flagColor = flagColor * pow(r, 0.4);\\n material.alpha = length(flagColor) * 1.3;\\n material.diffuse = flagColor * 3.0;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci9yYWRhci9SYWRhcldhdmVNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvcmFkYXIv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gMC44KTtcXG4gIGZsYWdDb2xvciA9IGNvbG9yLnJnYiAqICBwb3coYSwgOC4wKiguMitibGluaykpKihzaW4ocio1MDAuMCkqLjUrLjUpIDtcXG4gIGZsYWdDb2xvciA9IGZsYWdDb2xvciAqIHBvdyhyLCAwLjQpO1xcbiAgbWF0ZXJpYWwuYWxwaGEgPSBsZW5ndGgoZmxhZ0NvbG9yKSAqIDEuMztcXG4gIG1hdGVyaWFsLmRpZmZ1c2UgPSBmbGFnQ29sb3IgKiAzLjA7XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/radar/RadarWaveMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/AsphaltMaterial.glsl":
- /*!****************************************************************!*\
- !*** ./modules/material/shader/thirdpart/AsphaltMaterial.glsl ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 asphaltColor;\\nuniform float bumpSize;\\nuniform float roughness;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n // From Stefan Gustavson's Procedural Textures in GLSL in OpenGL Insights\\n //Main cellular pattern\\n vec4 color = asphaltColor;\\n vec2 st = materialInput.st;\\n vec2 F = czm_cellular(st / bumpSize);\\n color.rgb -= (F.x / F.y) * 0.1;\\n\\n //Extra bumps for roughness\\n float noise = czm_snoise(st / bumpSize);\\n noise = pow(noise, 5.0) * roughness;\\n color.rgb += noise;\\n\\n material.diffuse = color.rgb;\\n material.alpha = color.a;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvQXNwaGFsdE1hdGV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ucmdiO1xcbiAgbWF0ZXJpYWwuYWxwaGEgPSBjb2xvci5hO1xcblxcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/AsphaltMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/BlobMaterial.glsl":
- /*!*************************************************************!*\
- !*** ./modules/material/shader/thirdpart/BlobMaterial.glsl ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 lightColor;\\nuniform vec4 darkColor;\\nuniform float frequency;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n // From Stefan Gustavson's Procedural Textures in GLSL in OpenGL Insights\\n vec2 F = czm_cellular(materialInput.st * frequency);\\n float t = 1.0 - F.x * F.x;\\n\\n vec4 color = mix(lightColor, darkColor, t);\\n material.diffuse = color.rgb;\\n material.alpha = color.a;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvQmxvYk1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvQmxvYk1hdGVyaWFsLmdsc2w/YWJkYiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSB2ZWM0IGxpZ2h0Q29sb3I7XFxudW5pZm9ybSB2ZWM0IGRhcmtDb2xvcjtcXG51bmlmb3JtIGZsb2F0IGZyZXF1ZW5jeTtcXG5cXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG5cXG4gIC8vIEZyb20gU3RlZmFuIEd1c3RhdnNvbidzIFByb2NlZHVyYWwgVGV4dHVyZXMgaW4gR0xTTCBpbiBPcGVuR0wgSW5zaWdodHNcXG4gIHZlYzIgRiA9IGN6bV9jZWxsdWxhcihtYXRlcmlhbElucHV0LnN0ICogZnJlcXVlbmN5KTtcXG4gIGZsb2F0IHQgPSAxLjAgLSBGLnggKiBGLng7XFxuXFxuICB2ZWM0IGNvbG9yID0gbWl4KGxpZ2h0Q29sb3IsIGRhcmtDb2xvciwgdCk7XFxuICBtYXRlcmlhbC5kaWZmdXNlID0gY29sb3IucmdiO1xcbiAgbWF0ZXJpYWwuYWxwaGEgPSBjb2xvci5hO1xcblxcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/BlobMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/CementMaterial.glsl":
- /*!***************************************************************!*\
- !*** ./modules/material/shader/thirdpart/CementMaterial.glsl ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 cementColor;\\nuniform float grainScale;\\nuniform float roughness;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n float noise = czm_snoise(materialInput.st / grainScale);\\n noise = pow(noise, 5.0) * roughness;\\n\\n vec4 color = cementColor;\\n color.rgb += noise;\\n\\n material.diffuse = color.rgb;\\n material.alpha = color.a;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvQ2VtZW50TWF0ZXJpYWwuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3RoaXJkcGFydC9DZW1lbnRNYXRlcmlhbC5nbHNsP2EzMTYiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gdmVjNCBjZW1lbnRDb2xvcjtcXG51bmlmb3JtIGZsb2F0IGdyYWluU2NhbGU7XFxudW5pZm9ybSBmbG9hdCByb3VnaG5lc3M7XFxuXFxuY3ptX21hdGVyaWFsIGN6bV9nZXRNYXRlcmlhbChjem1fbWF0ZXJpYWxJbnB1dCBtYXRlcmlhbElucHV0KXtcXG4gIGN6bV9tYXRlcmlhbCBtYXRlcmlhbCA9IGN6bV9nZXREZWZhdWx0TWF0ZXJpYWwobWF0ZXJpYWxJbnB1dCk7XFxuXFxuICBmbG9hdCBub2lzZSA9IGN6bV9zbm9pc2UobWF0ZXJpYWxJbnB1dC5zdCAvIGdyYWluU2NhbGUpO1xcbiAgbm9pc2UgPSBwb3cobm9pc2UsIDUuMCkgKiByb3VnaG5lc3M7XFxuXFxuICB2ZWM0IGNvbG9yID0gY2VtZW50Q29sb3I7XFxuICBjb2xvci5yZ2IgKz0gbm9pc2U7XFxuXFxuICBtYXRlcmlhbC5kaWZmdXNlID0gY29sb3IucmdiO1xcbiAgbWF0ZXJpYWwuYWxwaGEgPSBjb2xvci5hO1xcblxcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/CementMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/ErosionMaterial.glsl":
- /*!****************************************************************!*\
- !*** ./modules/material/shader/thirdpart/ErosionMaterial.glsl ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nuniform float time;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n float alpha = 1.0;\\n if (time != 1.0)\\n {\\n float t = 0.5 + (0.5 * czm_snoise(materialInput.str / (1.0 / 10.0))); // Scale [-1, 1] to [0, 1]\\n\\n if (t > time)\\n {\\n alpha = 0.0;\\n }\\n }\\n\\n material.diffuse = color.rgb;\\n material.alpha = color.a * alpha;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvRXJvc2lvbk1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvRXJvc2lvbk1hdGVyaWFsLmdsc2w/NGM0NiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSB2ZWM0IGNvbG9yO1xcbnVuaWZvcm0gZmxvYXQgdGltZTtcXG5cXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gIGZsb2F0IGFscGhhID0gMS4wO1xcbiAgaWYgKHRpbWUgIT0gMS4wKVxcbiAge1xcbiAgICAgIGZsb2F0IHQgPSAwLjUgKyAoMC41ICogY3ptX3Nub2lzZShtYXRlcmlhbElucHV0LnN0ciAvICgxLjAgLyAxMC4wKSkpOyAgIC8vIFNjYWxlIFstMSwgMV0gdG8gWzAsIDFdXFxuXFxuICAgICAgaWYgKHQgPiB0aW1lKVxcbiAgICAgIHtcXG4gICAgICAgICAgYWxwaGEgPSAwLjA7XFxuICAgICAgfVxcbiAgfVxcblxcbiAgbWF0ZXJpYWwuZGlmZnVzZSA9IGNvbG9yLnJnYjtcXG4gIG1hdGVyaWFsLmFscGhhID0gY29sb3IuYSAqIGFscGhhO1xcblxcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/ErosionMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/FacetMaterial.glsl":
- /*!**************************************************************!*\
- !*** ./modules/material/shader/thirdpart/FacetMaterial.glsl ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 lightColor;\\nuniform vec4 darkColor;\\nuniform float frequency;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n // From Stefan Gustavson's Procedural Textures in GLSL in OpenGL Insights\\n vec2 F = czm_cellular(materialInput.st * frequency);\\n float t = 0.1 + (F.y - F.x);\\n\\n vec4 color = mix(lightColor, darkColor, t);\\n material.diffuse = color.rgb;\\n material.alpha = color.a;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvRmFjZXRNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvdGhpcmRwYXJ0L0ZhY2V0TWF0ZXJpYWwuZ2xzbD8xZjA1Il0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHZlYzQgbGlnaHRDb2xvcjtcXG51bmlmb3JtIHZlYzQgZGFya0NvbG9yO1xcbnVuaWZvcm0gZmxvYXQgZnJlcXVlbmN5O1xcblxcbmN6bV9tYXRlcmlhbCBjem1fZ2V0TWF0ZXJpYWwoY3ptX21hdGVyaWFsSW5wdXQgbWF0ZXJpYWxJbnB1dCl7XFxuICBjem1fbWF0ZXJpYWwgbWF0ZXJpYWwgPSBjem1fZ2V0RGVmYXVsdE1hdGVyaWFsKG1hdGVyaWFsSW5wdXQpO1xcblxcbiAgLy8gRnJvbSBTdGVmYW4gR3VzdGF2c29uJ3MgUHJvY2VkdXJhbCBUZXh0dXJlcyBpbiBHTFNMIGluIE9wZW5HTCBJbnNpZ2h0c1xcbiAgdmVjMiBGID0gY3ptX2NlbGx1bGFyKG1hdGVyaWFsSW5wdXQuc3QgKiBmcmVxdWVuY3kpO1xcbiAgZmxvYXQgdCA9IDAuMSArIChGLnkgLSBGLngpO1xcblxcbiAgdmVjNCBjb2xvciA9IG1peChsaWdodENvbG9yLCBkYXJrQ29sb3IsIHQpO1xcbiAgbWF0ZXJpYWwuZGlmZnVzZSA9IGNvbG9yLnJnYjtcXG4gIG1hdGVyaWFsLmFscGhhID0gY29sb3IuYTtcXG5cXG4gIHJldHVybiBtYXRlcmlhbDtcXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/FacetMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/FresnelMaterial.glsl":
- /*!****************************************************************!*\
- !*** ./modules/material/shader/thirdpart/FresnelMaterial.glsl ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"czm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n vec3 normalWC = normalize(czm_inverseViewRotation * material.normal);\\n vec3 positionWC = normalize(czm_inverseViewRotation * materialInput.positionToEyeEC);\\n float cosAngIncidence = max(dot(normalWC, positionWC), 0.0);\\n\\n material.diffuse = mix(reflection.diffuse, refraction.diffuse, cosAngIncidence);\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvRnJlc25lbE1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvRnJlc25lbE1hdGVyaWFsLmdsc2w/ZGQ5ZiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwiY3ptX21hdGVyaWFsIGN6bV9nZXRNYXRlcmlhbChjem1fbWF0ZXJpYWxJbnB1dCBtYXRlcmlhbElucHV0KXtcXG4gIGN6bV9tYXRlcmlhbCBtYXRlcmlhbCA9IGN6bV9nZXREZWZhdWx0TWF0ZXJpYWwobWF0ZXJpYWxJbnB1dCk7XFxuXFxuICB2ZWMzIG5vcm1hbFdDID0gbm9ybWFsaXplKGN6bV9pbnZlcnNlVmlld1JvdGF0aW9uICogbWF0ZXJpYWwubm9ybWFsKTtcXG4gIHZlYzMgcG9zaXRpb25XQyA9IG5vcm1hbGl6ZShjem1faW52ZXJzZVZpZXdSb3RhdGlvbiAqIG1hdGVyaWFsSW5wdXQucG9zaXRpb25Ub0V5ZUVDKTtcXG4gIGZsb2F0IGNvc0FuZ0luY2lkZW5jZSA9IG1heChkb3Qobm9ybWFsV0MsIHBvc2l0aW9uV0MpLCAwLjApO1xcblxcbiAgbWF0ZXJpYWwuZGlmZnVzZSA9IG1peChyZWZsZWN0aW9uLmRpZmZ1c2UsIHJlZnJhY3Rpb24uZGlmZnVzZSwgY29zQW5nSW5jaWRlbmNlKTtcXG5cXG4gIHJldHVybiBtYXRlcmlhbDtcXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/FresnelMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/GrassMaterial.glsl":
- /*!**************************************************************!*\
- !*** ./modules/material/shader/thirdpart/GrassMaterial.glsl ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 grassColor;\\nuniform vec4 dirtColor;\\nuniform float patchiness;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n vec2 st = materialInput.st;\\n float noise1 = (czm_snoise(st * patchiness * 1.0)) * 1.0;\\n float noise2 = (czm_snoise(st * patchiness * 2.0)) * 0.5;\\n float noise3 = (czm_snoise(st * patchiness * 4.0)) * 0.25;\\n float noise = sin(noise1 + noise2 + noise3) * 0.1;\\n\\n vec4 color = mix(grassColor, dirtColor, noise);\\n\\n //Make thatch patterns\\n float verticalNoise = czm_snoise(vec2(st.x * 100.0, st.y * 20.0)) * 0.02;\\n float horizontalNoise = czm_snoise(vec2(st.x * 20.0, st.y * 100.0)) * 0.02;\\n float stripeNoise = min(verticalNoise, horizontalNoise);\\n\\n color.rgb += stripeNoise;\\n\\n material.diffuse = color.rgb;\\n material.alpha = color.a;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvR3Jhc3NNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI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aXNlID0gY3ptX3Nub2lzZSh2ZWMyKHN0LnggKiAyMC4wLCBzdC55ICogMTAwLjApKSAqIDAuMDI7XFxuICBmbG9hdCBzdHJpcGVOb2lzZSA9IG1pbih2ZXJ0aWNhbE5vaXNlLCBob3Jpem9udGFsTm9pc2UpO1xcblxcbiAgY29sb3IucmdiICs9IHN0cmlwZU5vaXNlO1xcblxcbiAgbWF0ZXJpYWwuZGlmZnVzZSA9IGNvbG9yLnJnYjtcXG4gIG1hdGVyaWFsLmFscGhhID0gY29sb3IuYTtcXG5cXG4gIHJldHVybiBtYXRlcmlhbDtcXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/GrassMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/ReflectionMaterial.glsl":
- /*!*******************************************************************!*\
- !*** ./modules/material/shader/thirdpart/ReflectionMaterial.glsl ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform samplerCube cubeMap;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n vec3 normalWC = normalize(czm_inverseViewRotation * material.normal);\\n vec3 positionWC = normalize(czm_inverseViewRotation * materialInput.positionToEyeEC);\\n vec3 reflectedWC = reflect(positionWC, normalWC);\\n material.diffuse = textureCube(cubeMap, reflectedWC).channels;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvUmVmbGVjdGlvbk1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvUmVmbGVjdGlvbk1hdGVyaWFsLmdsc2w/YmRiMyJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSBzYW1wbGVyQ3ViZSBjdWJlTWFwO1xcblxcbmN6bV9tYXRlcmlhbCBjem1fZ2V0TWF0ZXJpYWwoY3ptX21hdGVyaWFsSW5wdXQgbWF0ZXJpYWxJbnB1dCl7XFxuICBjem1fbWF0ZXJpYWwgbWF0ZXJpYWwgPSBjem1fZ2V0RGVmYXVsdE1hdGVyaWFsKG1hdGVyaWFsSW5wdXQpO1xcblxcbiAgdmVjMyBub3JtYWxXQyA9IG5vcm1hbGl6ZShjem1faW52ZXJzZVZpZXdSb3RhdGlvbiAqIG1hdGVyaWFsLm5vcm1hbCk7XFxuICB2ZWMzIHBvc2l0aW9uV0MgPSBub3JtYWxpemUoY3ptX2ludmVyc2VWaWV3Um90YXRpb24gKiBtYXRlcmlhbElucHV0LnBvc2l0aW9uVG9FeWVFQyk7XFxuICB2ZWMzIHJlZmxlY3RlZFdDID0gcmVmbGVjdChwb3NpdGlvbldDLCBub3JtYWxXQyk7XFxuICBtYXRlcmlhbC5kaWZmdXNlID0gdGV4dHVyZUN1YmUoY3ViZU1hcCwgcmVmbGVjdGVkV0MpLmNoYW5uZWxzO1xcblxcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/ReflectionMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/RefractionMaterial.glsl":
- /*!*******************************************************************!*\
- !*** ./modules/material/shader/thirdpart/RefractionMaterial.glsl ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform samplerCube cubeMap;\\nuniform float indexOfRefractionRatio;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n vec3 normalWC = normalize(czm_inverseViewRotation * material.normal);\\n vec3 positionWC = normalize(czm_inverseViewRotation * materialInput.positionToEyeEC);\\n vec3 refractedWC = refract(positionWC, -normalWC, indexOfRefractionRatio);\\n material.diffuse = textureCube(cubeMap, refractedWC).channels;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvUmVmcmFjdGlvbk1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvUmVmcmFjdGlvbk1hdGVyaWFsLmdsc2w/N2RlNiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSBzYW1wbGVyQ3ViZSBjdWJlTWFwO1xcbnVuaWZvcm0gZmxvYXQgaW5kZXhPZlJlZnJhY3Rpb25SYXRpbztcXG5cXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG5cXG4gIHZlYzMgbm9ybWFsV0MgPSBub3JtYWxpemUoY3ptX2ludmVyc2VWaWV3Um90YXRpb24gKiBtYXRlcmlhbC5ub3JtYWwpO1xcbiAgdmVjMyBwb3NpdGlvbldDID0gbm9ybWFsaXplKGN6bV9pbnZlcnNlVmlld1JvdGF0aW9uICogbWF0ZXJpYWxJbnB1dC5wb3NpdGlvblRvRXllRUMpO1xcbiAgdmVjMyByZWZyYWN0ZWRXQyA9IHJlZnJhY3QocG9zaXRpb25XQywgLW5vcm1hbFdDLCBpbmRleE9mUmVmcmFjdGlvblJhdGlvKTtcXG4gIG1hdGVyaWFsLmRpZmZ1c2UgPSB0ZXh0dXJlQ3ViZShjdWJlTWFwLCByZWZyYWN0ZWRXQykuY2hhbm5lbHM7XFxuXFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/RefractionMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/TieDyeMaterial.glsl":
- /*!***************************************************************!*\
- !*** ./modules/material/shader/thirdpart/TieDyeMaterial.glsl ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 lightColor;\\nuniform vec4 darkColor;\\nuniform float frequency;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n vec3 scaled = materialInput.str * frequency;\\n float t = abs(czm_snoise(scaled));\\n\\n vec4 color = mix(lightColor, darkColor, t);\\n material.diffuse = color.rgb;\\n material.alpha = color.a;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvVGllRHllTWF0ZXJpYWwuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3RoaXJkcGFydC9UaWVEeWVNYXRlcmlhbC5nbHNsPzQ3YmUiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gdmVjNCBsaWdodENvbG9yO1xcbnVuaWZvcm0gdmVjNCBkYXJrQ29sb3I7XFxudW5pZm9ybSBmbG9hdCBmcmVxdWVuY3k7XFxuXFxuY3ptX21hdGVyaWFsIGN6bV9nZXRNYXRlcmlhbChjem1fbWF0ZXJpYWxJbnB1dCBtYXRlcmlhbElucHV0KXtcXG4gIGN6bV9tYXRlcmlhbCBtYXRlcmlhbCA9IGN6bV9nZXREZWZhdWx0TWF0ZXJpYWwobWF0ZXJpYWxJbnB1dCk7XFxuXFxuICB2ZWMzIHNjYWxlZCA9IG1hdGVyaWFsSW5wdXQuc3RyICogZnJlcXVlbmN5O1xcbiAgZmxvYXQgdCA9IGFicyhjem1fc25vaXNlKHNjYWxlZCkpO1xcblxcbiAgdmVjNCBjb2xvciA9IG1peChsaWdodENvbG9yLCBkYXJrQ29sb3IsIHQpO1xcbiAgbWF0ZXJpYWwuZGlmZnVzZSA9IGNvbG9yLnJnYjtcXG4gIG1hdGVyaWFsLmFscGhhID0gY29sb3IuYTtcXG5cXG4gIHJldHVybiBtYXRlcmlhbDtcXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/TieDyeMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/WoodMaterial.glsl":
- /*!*************************************************************!*\
- !*** ./modules/material/shader/thirdpart/WoodMaterial.glsl ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 lightWoodColor;\\nuniform vec4 darkWoodColor;\\nuniform float ringFrequency;\\nuniform vec2 noiseScale;\\nuniform float grainFrequency;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n\\n //Based on wood shader from OpenGL Shading Language (3rd edition) pg. 455\\n vec2 st = materialInput.st;\\n\\n vec2 noisevec;\\n noisevec.x = czm_snoise(st * noiseScale.x);\\n noisevec.y = czm_snoise(st * noiseScale.y);\\n\\n vec2 location = st + noisevec;\\n float dist = sqrt(location.x * location.x + location.y * location.y);\\n dist *= ringFrequency;\\n\\n float r = fract(dist + noisevec[0] + noisevec[1]) * 2.0;\\n if(r > 1.0)\\n r = 2.0 - r;\\n\\n vec4 color = mix(lightWoodColor, darkWoodColor, r);\\n\\n //streaks\\n r = abs(czm_snoise(vec2(st.x * grainFrequency, st.y * grainFrequency * 0.02))) * 0.2;\\n color.rgb += lightWoodColor.rgb * r;\\n\\n material.diffuse = color.rgb;\\n material.alpha = color.a;\\n\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvV29vZE1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvV29vZE1hdGVyaWFsLmdsc2w/ZThmMiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwidW5pZm9ybSB2ZWM0IGxpZ2h0V29vZENvbG9yO1xcbnVuaWZvcm0gdmVjNCBkYXJrV29vZENvbG9yO1xcbnVuaWZvcm0gZmxvYXQgcmluZ0ZyZXF1ZW5jeTtcXG51bmlmb3JtIHZlYzIgbm9pc2VTY2FsZTtcXG51bmlmb3JtIGZsb2F0IGdyYWluRnJlcXVlbmN5O1xcblxcbmN6bV9tYXRlcmlhbCBjem1fZ2V0TWF0ZXJpYWwoY3ptX21hdGVyaWFsSW5wdXQgbWF0ZXJpYWxJbnB1dCl7XFxuICBjem1fbWF0ZXJpYWwgbWF0ZXJpYWwgPSBjem1fZ2V0RGVmYXVsdE1hdGVyaWFsKG1hdGVyaWFsSW5wdXQpO1xcblxcbiAgLy9CYXNlZCBvbiB3b29kIHNoYWRlciBmcm9tIE9wZW5HTCBTaGFkaW5nIExhbmd1YWdlICgzc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"./modules/material/shader/thirdpart/cellular.glsl":
- /*!*********************************************************!*\
- !*** ./modules/material/shader/thirdpart/cellular.glsl ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"/**\\n * @license\\n * Cellular noise (\\\"Worley noise\\\") in 2D in GLSL.\\n * Copyright (c) Stefan Gustavson 2011-04-19. All rights reserved.\\n * This code is released under the conditions of the MIT license.\\n * See LICENSE file for details.\\n */\\n\\n//#ifdef GL_OES_standard_derivatives\\n// #extension GL_OES_standard_derivatives : enable\\n//#endif\\n//\\n//float aastep (float threshold , float value)\\n//{\\n// float afwidth = 0.7 * length ( vec2 ( dFdx ( value ), dFdy ( value )));\\n// return smoothstep ( threshold - afwidth , threshold + afwidth , value );\\n//}\\n\\n// Permutation polynomial: (34x^2 + x) mod 289\\nvec3 _czm_permute289(vec3 x)\\n{\\n return mod((34.0 * x + 1.0) * x, 289.0);\\n}\\n\\n/**\\n * DOC_TBA\\n *\\n * Implemented by Stefan Gustavson, and distributed under the MIT License. {@link http://openglinsights.git.sourceforge.net/git/gitweb.cgi?p=openglinsights/openglinsights;a=tree;f=proceduraltextures}\\n *\\n * @name czm_cellular\\n * @glslFunction\\n *\\n * @see Stefan Gustavson's chapter, <i>Procedural Textures in GLSL</i>, in <a href=\\\"http://www.openglinsights.com/\\\">OpenGL Insights</a>.\\n */\\nvec2 czm_cellular(vec2 P)\\n// Cellular noise, returning F1 and F2 in a vec2.\\n// Standard 3x3 search window for good F1 and F2 values\\n{\\n#define K 0.142857142857 // 1/7\\n#define Ko 0.428571428571 // 3/7\\n#define jitter 1.0 // Less gives more regular pattern\\n vec2 Pi = mod(floor(P), 289.0);\\n vec2 Pf = fract(P);\\n vec3 oi = vec3(-1.0, 0.0, 1.0);\\n vec3 of = vec3(-0.5, 0.5, 1.5);\\n vec3 px = _czm_permute289(Pi.x + oi);\\n vec3 p = _czm_permute289(px.x + Pi.y + oi); // p11, p12, p13\\n vec3 ox = fract(p*K) - Ko;\\n vec3 oy = mod(floor(p*K),7.0)*K - Ko;\\n vec3 dx = Pf.x + 0.5 + jitter*ox;\\n vec3 dy = Pf.y - of + jitter*oy;\\n vec3 d1 = dx * dx + dy * dy; // d11, d12 and d13, squared\\n p = _czm_permute289(px.y + Pi.y + oi); // p21, p22, p23\\n ox = fract(p*K) - Ko;\\n oy = mod(floor(p*K),7.0)*K - Ko;\\n dx = Pf.x - 0.5 + jitter*ox;\\n dy = Pf.y - of + jitter*oy;\\n vec3 d2 = dx * dx + dy * dy; // d21, d22 and d23, squared\\n p = _czm_permute289(px.z + Pi.y + oi); // p31, p32, p33\\n ox = fract(p*K) - Ko;\\n oy = mod(floor(p*K),7.0)*K - Ko;\\n dx = Pf.x - 1.5 + jitter*ox;\\n dy = Pf.y - of + jitter*oy;\\n vec3 d3 = dx * dx + dy * dy; // d31, d32 and d33, squared\\n // Sort out the two smallest distances (F1, F2)\\n vec3 d1a = min(d1, d2);\\n d2 = max(d1, d2); // Swap to keep candidates for F2\\n d2 = min(d2, d3); // neither F1 nor F2 are now in d3\\n d1 = min(d1a, d2); // F1 is now in d1\\n d2 = max(d1a, d2); // Swap to keep candidates for F2\\n d1.xy = (d1.x < d1.y) ? d1.xy : d1.yx; // Swap if smaller\\n d1.xz = (d1.x < d1.z) ? d1.xz : d1.zx; // F1 is in d1.x\\n d1.yz = min(d1.yz, d2.yz); // F2 is now not in d2.yz\\n d1.y = min(d1.y, d1.z); // nor in d1.z\\n d1.y = min(d1.y, d2.x); // F2 is in d1.y, we're done.\\n return sqrt(d1.xy);\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvY2VsbHVsYXIuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3RoaXJkc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cipveTtcXG4gICAgdmVjMyBkMyA9IGR4ICogZHggKyBkeSAqIGR5OyAvLyBkMzEsIGQzMiBhbmQgZDMzLCBzcXVhcmVkXFxuICAgIC8vIFNvcnQgb3V0IHRoZSB0d28gc21hbGxlc3QgZGlzdGFuY2VzIChGMSwgRjIpXFxuICAgIHZlYzMgZDFhID0gbWluKGQxLCBkMik7XFxuICAgIGQyID0gbWF4KGQxLCBkMik7IC8vIFN3YXAgdG8ga2VlcCBjYW5kaWRhdGVzIGZvciBGMlxcbiAgICBkMiA9IG1pbihkMiwgZDMpOyAvLyBuZWl0aGVyIEYxIG5vciBGMiBhcmUgbm93IGluIGQzXFxuICAgIGQxID0gbWluKGQxYSwgZDIpOyAvLyBGMSBpcyBub3cgaW4gZDFcXG4gICAgZDIgPSBtYXgoZDFhLCBkMik7IC8vIFN3YXAgdG8ga2VlcCBjYW5kaWRhdGVzIGZvciBGMlxcbiAgICBkMS54eSA9IChkMS54IDwgZDEueSkgPyBkMS54eSA6IGQxLnl4OyAvLyBTd2FwIGlmIHNtYWxsZXJcXG4gICAgZDEueHogPSAoZDEueCA8IGQxLnopID8gZDEueHogOiBkMS56eDsgLy8gRjEgaXMgaW4gZDEueFxcbiAgICBkMS55eiA9IG1pbihkMS55eiwgZDIueXopOyAvLyBGMiBpcyBub3cgbm90IGluIGQyLnl6XFxuICAgIGQxLnkgPSBtaW4oZDEueSwgZDEueik7IC8vIG5vciBpbiAgZDEuelxcbiAgICBkMS55ID0gbWluKGQxLnksIGQyLngpOyAvLyBGMiBpcyBpbiBkMS55LCB3ZSdyZSBkb25lLlxcbiAgICByZXR1cm4gc3FydChkMS54eSk7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/cellular.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/thirdpart/snoise.glsl":
- /*!*******************************************************!*\
- !*** ./modules/material/shader/thirdpart/snoise.glsl ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"/**\\n * @license\\n * Description : Array and textureless GLSL 2D/3D/4D simplex\\n * noise functions.\\n * Author : Ian McEwan, Ashima Arts.\\n * Maintainer : ijm\\n * Lastmod : 20110822 (ijm)\\n * License : Copyright (C) 2011 Ashima Arts. All rights reserved.\\n * Distributed under the MIT License. See LICENSE file.\\n * https://github.com/ashima/webgl-noise\\n */\\n\\nvec4 _czm_mod289(vec4 x)\\n{\\n return x - floor(x * (1.0 / 289.0)) * 289.0;\\n}\\n\\nvec3 _czm_mod289(vec3 x)\\n{\\n return x - floor(x * (1.0 / 289.0)) * 289.0;\\n}\\n\\nvec2 _czm_mod289(vec2 x)\\n{\\n return x - floor(x * (1.0 / 289.0)) * 289.0;\\n}\\n\\nfloat _czm_mod289(float x)\\n{\\n return x - floor(x * (1.0 / 289.0)) * 289.0;\\n}\\n\\nvec4 _czm_permute(vec4 x)\\n{\\n return _czm_mod289(((x*34.0)+1.0)*x);\\n}\\n\\nvec3 _czm_permute(vec3 x)\\n{\\n return _czm_mod289(((x*34.0)+1.0)*x);\\n}\\n\\nfloat _czm_permute(float x)\\n{\\n return _czm_mod289(((x*34.0)+1.0)*x);\\n}\\n\\nvec4 _czm_taylorInvSqrt(vec4 r)\\n{\\n return 1.79284291400159 - 0.85373472095314 * r;\\n}\\n\\nfloat _czm_taylorInvSqrt(float r)\\n{\\n return 1.79284291400159 - 0.85373472095314 * r;\\n}\\n\\nvec4 _czm_grad4(float j, vec4 ip)\\n{\\n const vec4 ones = vec4(1.0, 1.0, 1.0, -1.0);\\n vec4 p,s;\\n\\n p.xyz = floor( fract (vec3(j) * ip.xyz) * 7.0) * ip.z - 1.0;\\n p.w = 1.5 - dot(abs(p.xyz), ones.xyz);\\n s = vec4(lessThan(p, vec4(0.0)));\\n p.xyz = p.xyz + (s.xyz*2.0 - 1.0) * s.www;\\n\\n return p;\\n}\\n\\n/**\\n * DOC_TBA\\n *\\n * Implemented by Ian McEwan, Ashima Arts, and distributed under the MIT License. {@link https://github.com/ashima/webgl-noise}\\n *\\n * @name czm_snoise\\n * @glslFunction\\n *\\n * @see <a href=\\\"https://github.com/ashima/webgl-noise\\\">https://github.com/ashima/webgl-noise</a>\\n * @see Stefan Gustavson's paper <a href=\\\"http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf\\\">Simplex noise demystified</a>\\n */\\nfloat czm_snoise(vec2 v)\\n{\\n const vec4 C = vec4(0.211324865405187, // (3.0-sqrt(3.0))/6.0\\n 0.366025403784439, // 0.5*(sqrt(3.0)-1.0)\\n -0.577350269189626, // -1.0 + 2.0 * C.x\\n 0.024390243902439); // 1.0 / 41.0\\n // First corner\\n vec2 i = floor(v + dot(v, C.yy) );\\n vec2 x0 = v - i + dot(i, C.xx);\\n\\n // Other corners\\n vec2 i1;\\n //i1.x = step( x0.y, x0.x ); // x0.x > x0.y ? 1.0 : 0.0\\n //i1.y = 1.0 - i1.x;\\n i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\\n // x0 = x0 - 0.0 + 0.0 * C.xx ;\\n // x1 = x0 - i1 + 1.0 * C.xx ;\\n // x2 = x0 - 1.0 + 2.0 * C.xx ;\\n vec4 x12 = x0.xyxy + C.xxzz;\\n x12.xy -= i1;\\n\\n // Permutations\\n i = _czm_mod289(i); // Avoid truncation effect in permutation\\n vec3 p = _czm_permute( _czm_permute( i.y + vec3(0.0, i1.y, 1.0 )) + i.x + vec3(0.0, i1.x, 1.0 ));\\n\\n vec3 m = max(0.5 - vec3(dot(x0,x0), dot(x12.xy,x12.xy), dot(x12.zw,x12.zw)), 0.0);\\n m = m*m ;\\n m = m*m ;\\n\\n // Gradients: 41 points uniformly over a line, mapped onto a diamond.\\n // The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287)\\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\\n vec3 h = abs(x) - 0.5;\\n vec3 ox = floor(x + 0.5);\\n vec3 a0 = x - ox;\\n\\n // Normalise gradients implicitly by scaling m\\n // Approximation of: m *= inversesqrt( a0*a0 + h*h );\\n m *= 1.79284291400159 - 0.85373472095314 * ( a0*a0 + h*h );\\n\\n // Compute final noise value at P\\n vec3 g;\\n g.x = a0.x * x0.x + h.x * x0.y;\\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\\n return 130.0 * dot(m, g);\\n}\\n\\nfloat czm_snoise(vec3 v)\\n{\\n const vec2 C = vec2(1.0/6.0, 1.0/3.0) ;\\n const vec4 D = vec4(0.0, 0.5, 1.0, 2.0);\\n\\n // First corner\\n vec3 i = floor(v + dot(v, C.yyy) );\\n vec3 x0 = v - i + dot(i, C.xxx) ;\\n\\n // Other corners\\n vec3 g = step(x0.yzx, x0.xyz);\\n vec3 l = 1.0 - g;\\n vec3 i1 = min( g.xyz, l.zxy );\\n vec3 i2 = max( g.xyz, l.zxy );\\n\\n // x0 = x0 - 0.0 + 0.0 * C.xxx;\\n // x1 = x0 - i1 + 1.0 * C.xxx;\\n // x2 = x0 - i2 + 2.0 * C.xxx;\\n // x3 = x0 - 1.0 + 3.0 * C.xxx;\\n vec3 x1 = x0 - i1 + C.xxx;\\n vec3 x2 = x0 - i2 + C.yyy; // 2.0*C.x = 1/3 = C.y\\n vec3 x3 = x0 - D.yyy; // -1.0+3.0*C.x = -0.5 = -D.y\\n\\n // Permutations\\n i = _czm_mod289(i);\\n vec4 p = _czm_permute( _czm_permute( _czm_permute(\\n i.z + vec4(0.0, i1.z, i2.z, 1.0 ))\\n + i.y + vec4(0.0, i1.y, i2.y, 1.0 ))\\n + i.x + vec4(0.0, i1.x, i2.x, 1.0 ));\\n\\n // Gradients: 7x7 points over a square, mapped onto an octahedron.\\n // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294)\\n float n_ = 0.142857142857; // 1.0/7.0\\n vec3 ns = n_ * D.wyz - D.xzx;\\n\\n vec4 j = p - 49.0 * floor(p * ns.z * ns.z); // mod(p,7*7)\\n\\n vec4 x_ = floor(j * ns.z);\\n vec4 y_ = floor(j - 7.0 * x_ ); // mod(j,N)\\n\\n vec4 x = x_ *ns.x + ns.yyyy;\\n vec4 y = y_ *ns.x + ns.yyyy;\\n vec4 h = 1.0 - abs(x) - abs(y);\\n\\n vec4 b0 = vec4( x.xy, y.xy );\\n vec4 b1 = vec4( x.zw, y.zw );\\n\\n //vec4 s0 = vec4(lessThan(b0,0.0))*2.0 - 1.0;\\n //vec4 s1 = vec4(lessThan(b1,0.0))*2.0 - 1.0;\\n vec4 s0 = floor(b0)*2.0 + 1.0;\\n vec4 s1 = floor(b1)*2.0 + 1.0;\\n vec4 sh = -step(h, vec4(0.0));\\n\\n vec4 a0 = b0.xzyw + s0.xzyw*sh.xxyy ;\\n vec4 a1 = b1.xzyw + s1.xzyw*sh.zzww ;\\n\\n vec3 p0 = vec3(a0.xy,h.x);\\n vec3 p1 = vec3(a0.zw,h.y);\\n vec3 p2 = vec3(a1.xy,h.z);\\n vec3 p3 = vec3(a1.zw,h.w);\\n\\n //Normalise gradients\\n vec4 norm = _czm_taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\\n p0 *= norm.x;\\n p1 *= norm.y;\\n p2 *= norm.z;\\n p3 *= norm.w;\\n\\n // Mix final noise value\\n vec4 m = max(0.6 - vec4(dot(x0,x0), dot(x1,x1), dot(x2,x2), dot(x3,x3)), 0.0);\\n m = m * m;\\n return 42.0 * dot( m*m, vec4( dot(p0,x0), dot(p1,x1),\\n dot(p2,x2), dot(p3,x3) ) );\\n}\\n\\nfloat czm_snoise(vec4 v)\\n{\\n const vec4 C = vec4( 0.138196601125011, // (5 - sqrt(5))/20 G4\\n 0.276393202250021, // 2 * G4\\n 0.414589803375032, // 3 * G4\\n -0.447213595499958); // -1 + 4 * G4\\n\\n // (sqrt(5) - 1)/4 = F4, used once below\\n #define F4 0.309016994374947451\\n\\n // First corner\\n vec4 i = floor(v + dot(v, vec4(F4)) );\\n vec4 x0 = v - i + dot(i, C.xxxx);\\n\\n // Other corners\\n\\n // Rank sorting originally contributed by Bill Licea-Kane, AMD (formerly ATI)\\n vec4 i0;\\n vec3 isX = step( x0.yzw, x0.xxx );\\n vec3 isYZ = step( x0.zww, x0.yyz );\\n // i0.x = dot( isX, vec3( 1.0 ) );\\n i0.x = isX.x + isX.y + isX.z;\\n i0.yzw = 1.0 - isX;\\n // i0.y += dot( isYZ.xy, vec2( 1.0 ) );\\n i0.y += isYZ.x + isYZ.y;\\n i0.zw += 1.0 - isYZ.xy;\\n i0.z += isYZ.z;\\n i0.w += 1.0 - isYZ.z;\\n\\n // i0 now contains the unique values 0,1,2,3 in each channel\\n vec4 i3 = clamp( i0, 0.0, 1.0 );\\n vec4 i2 = clamp( i0-1.0, 0.0, 1.0 );\\n vec4 i1 = clamp( i0-2.0, 0.0, 1.0 );\\n\\n // x0 = x0 - 0.0 + 0.0 * C.xxxx\\n // x1 = x0 - i1 + 1.0 * C.xxxx\\n // x2 = x0 - i2 + 2.0 * C.xxxx\\n // x3 = x0 - i3 + 3.0 * C.xxxx\\n // x4 = x0 - 1.0 + 4.0 * C.xxxx\\n vec4 x1 = x0 - i1 + C.xxxx;\\n vec4 x2 = x0 - i2 + C.yyyy;\\n vec4 x3 = x0 - i3 + C.zzzz;\\n vec4 x4 = x0 + C.wwww;\\n\\n // Permutations\\n i = _czm_mod289(i);\\n float j0 = _czm_permute( _czm_permute( _czm_permute( _czm_permute(i.w) + i.z) + i.y) + i.x);\\n vec4 j1 = _czm_permute( _czm_permute( _czm_permute( _czm_permute (\\n i.w + vec4(i1.w, i2.w, i3.w, 1.0 ))\\n + i.z + vec4(i1.z, i2.z, i3.z, 1.0 ))\\n + i.y + vec4(i1.y, i2.y, i3.y, 1.0 ))\\n + i.x + vec4(i1.x, i2.x, i3.x, 1.0 ));\\n\\n // Gradients: 7x7x6 points over a cube, mapped onto a 4-cross polytope\\n // 7*7*6 = 294, which is close to the ring size 17*17 = 289.\\n vec4 ip = vec4(1.0/294.0, 1.0/49.0, 1.0/7.0, 0.0) ;\\n\\n vec4 p0 = _czm_grad4(j0, ip);\\n vec4 p1 = _czm_grad4(j1.x, ip);\\n vec4 p2 = _czm_grad4(j1.y, ip);\\n vec4 p3 = _czm_grad4(j1.z, ip);\\n vec4 p4 = _czm_grad4(j1.w, ip);\\n\\n // Normalise gradients\\n vec4 norm = _czm_taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\\n p0 *= norm.x;\\n p1 *= norm.y;\\n p2 *= norm.z;\\n p3 *= norm.w;\\n p4 *= _czm_taylorInvSqrt(dot(p4,p4));\\n\\n // Mix contributions from the five corners\\n vec3 m0 = max(0.6 - vec3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.0);\\n vec2 m1 = max(0.6 - vec2(dot(x3,x3), dot(x4,x4) ), 0.0);\\n m0 = m0 * m0;\\n m1 = m1 * m1;\\n return 49.0 * ( dot(m0*m0, vec3( dot( p0, x0 ), dot( p1, x1 ), dot( p2, x2 )))\\n + dot(m1*m1, vec2( dot( p3, x3 ), dot( p4, x4 ) ) ) ) ;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvc25vaXNlLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci90aGlyZHBhcnQvc25vaXNlLmdsc2w/MTAxMiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IFwiLyoqXFxuICogQGxpY2Vuc2VcXG4gKiBEZXNjcmlwdGlvbiA6IEFycmF5IGFuZCB0ZXh0dXJlbGVzcyBHTFNMIDJELzNELzREIHNpbXBsZXhcXG4gKiAgICAgICAgICAgICAgI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n1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/thirdpart/snoise.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/wall/WallDiffuseMaterial.glsl":
- /*!***************************************************************!*\
- !*** ./modules/material/shader/wall/WallDiffuseMaterial.glsl ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform vec4 color;\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n material.diffuse = color.rgb * 2.0;\\n material.alpha = color.a * (1.0-fract(st.t)) * 0.8;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci93YWxsL1dhbGxEaWZmdXNlTWF0ZXJpYWwuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3dhbGwvV2FsbERpZmZ1c2VNYXRlcmlhbC5nbHNsP2ZlNWYiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gdmVjNCBjb2xvcjtcXG5jem1fbWF0ZXJpYWwgY3ptX2dldE1hdGVyaWFsKGN6bV9tYXRlcmlhbElucHV0IG1hdGVyaWFsSW5wdXQpe1xcbiAgY3ptX21hdGVyaWFsIG1hdGVyaWFsID0gY3ptX2dldERlZmF1bHRNYXRlcmlhbChtYXRlcmlhbElucHV0KTtcXG4gIHZlYzIgc3QgPSBtYXRlcmlhbElucHV0LnN0O1xcbiAgbWF0ZXJpYWwuZGlmZnVzZSA9IGNvbG9yLnJnYiAqIDIuMDtcXG4gIG1hdGVyaWFsLmFscGhhID0gY29sb3IuYSAqICgxLjAtZnJhY3Qoc3QudCkpICogMC44O1xcbiAgcmV0dXJuIG1hdGVyaWFsO1xcbn1cXG5cIiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/shader/wall/WallDiffuseMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/wall/WallImageTrailMaterial.glsl":
- /*!******************************************************************!*\
- !*** ./modules/material/shader/wall/WallImageTrailMaterial.glsl ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D image;\\nuniform vec4 color;\\nuniform float speed;\\nuniform vec2 repeat;\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st * repeat;\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n vec4 colorImage = texture2D(image, vec2(fract(st.s - time), st.t));\\n material.alpha = colorImage.a * color.a ;\\n material.diffuse = colorImage.rgb * color.rgb * 3.0 ;\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci93YWxsL1dhbGxJbWFnZVRyYWlsTWF0ZXJpYWwuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3dhbGwvV2FsbEltYWdlVHJhaWxNYXRlcmlhbC5nbHNsPzcwNzMiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gc2FtcGxlcjJEIGltYWdlO1xcbnVuaWZvcm0gdmVjNCBjb2xvcjtcXG51bmlmb3JtIGZsb2F0IHNwZWVkO1xcbnVuaWZvcm0gdmVjMiByZXBlYXQ7XFxuY3ptX21hdGVyaWFsIGN6bV9nZXRNYXRlcmlhbChjem1fbWF0ZXJpYWxJbnB1dCBtYXRlcmlhbElucHV0KXtcXG4gIGN6bV9tYXRlcmlhbCBtYXRlcmlhbCA9IGN6bV9nZXREZWZhdWx0TWF0ZXJpYWwobWF0ZXJpYWxJbnB1dCk7XFxuICB2ZWMyIHN0ID0gbWF0ZXJpYWxJbnB1dC5zdCAqIHJlcGVhdDtcXG4gIGZsb2F0IHRpbWUgPSBmcmFjdChjem1fZnJhbWVOdW1iZXIgKiBzcGVlZCAvIDEwMDAuMCk7XFxuICB2ZWM0IGNvbG9ySW1hZ2UgPSB0ZXh0dXJlMkQoaW1hZ2UsIHZlYzIoZnJhY3Qoc3QucyAtIHRpbWUpLCBzdC50KSk7XFxuICBtYXRlcmlhbC5hbHBoYSA9ICBjb2xvckltYWdlLmEgKiBjb2xvci5hIDtcXG4gIG1hdGVyaWFsLmRpZmZ1c2UgPSBjb2xvckltYWdlLnJnYiAqIGNvbG9yLnJnYiAqIDMuMCA7XFxuICByZXR1cm4gbWF0ZXJpYWw7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/wall/WallImageTrailMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/wall/WallLineTrailMaterial.glsl":
- /*!*****************************************************************!*\
- !*** ./modules/material/shader/wall/WallLineTrailMaterial.glsl ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D image;\\nuniform float speed;\\nuniform vec4 color;\\nuniform vec2 repeat;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n float perDis = 1.0 / repeat.y / 3.0 ;\\n vec2 st = materialInput.st * repeat;\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n vec4 colorImage = texture2D(image, vec2(st.s, fract(st.t - time)));\\n material.alpha = colorImage.a * smoothstep(.2 ,1. ,distance(st.t * perDis ,1. + perDis ));\\n material.diffuse = max(color.rgb * material.alpha * 1.5, color.rgb);\\n material.emission = max(color.rgb * material.alpha * 1.5, color.rgb);\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci93YWxsL1dhbGxMaW5lVHJhaWxNYXRlcmlhbC5nbHNsLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC9zaGFkZXIvd2FsbC9XYWxsTGluZVRyYWlsTWF0ZXJpYWwuZ2xzbD9lMzIxIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gXCJ1bmlmb3JtIHNhbXBsZXIyRCBpbWFnZTtcXG51bmlmb3JtIGZsb2F0IHNwZWVkO1xcbnVuaWZvcm0gdmVjNCBjb2xvcjtcXG51bmlmb3JtIHZlYzIgcmVwZWF0O1xcblxcbmN6bV9tYXRlcmlhbCBjem1fZ2V0TWF0ZXJpYWwoY3ptX21hdGVyaWFsSW5wdXQgbWF0ZXJpYWxJbnB1dCl7XFxuICBjem1fbWF0ZXJpYWwgbWF0ZXJpYWwgPSBjem1fZ2V0RGVmYXVsdE1hdGVyaWFsKG1hdGVyaWFsSW5wdXQpO1xcbiAgZmxvYXQgcGVyRGlzID0gMS4wIC8gcmVwZWF0LnkgLyAzLjAgIDtcXG4gIHZlYzIgc3QgPSBtYXRlcmlhbElucHV0LnN0ICogcmVwZWF0O1xcbiAgZmxvYXQgdGltZSA9IGZyYWN0KGN6bV9mcmFtZU51bWJlciAqIHNwZWVkIC8gMTAwMC4wKTtcXG4gIHZlYzQgY29sb3JJbWFnZSA9IHRleHR1cmUyRChpbWFnZSwgdmVjMihzdC5zLCBmcmFjdChzdC50IC0gdGltZSkpKTtcXG4gIG1hdGVyaWFsLmFscGhhID0gIGNvbG9ySW1hZ2UuYSAqIHNtb290aHN0ZXAoLjIgLDEuICxkaXN0YW5jZShzdC50ICogcGVyRGlzICwxLiArIHBlckRpcyApKTtcXG4gIG1hdGVyaWFsLmRpZmZ1c2UgPSBtYXgoY29sb3IucmdiICogbWF0ZXJpYWwuYWxwaGEgKiAxLjUsIGNvbG9yLnJnYik7XFxuICBtYXRlcmlhbC5lbWlzc2lvbiA9IG1heChjb2xvci5yZ2IgKiBtYXRlcmlhbC5hbHBoYSAqIDEuNSwgY29sb3IucmdiKTtcXG4gIHJldHVybiBtYXRlcmlhbDtcXG59XFxuXCIiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/shader/wall/WallLineTrailMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/wall/WallTrailMaterial.glsl":
- /*!*************************************************************!*\
- !*** ./modules/material/shader/wall/WallTrailMaterial.glsl ***!
- \*************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \" uniform sampler2D image;\\n uniform float speed;\\n uniform vec4 color;\\n\\nczm_material czm_getMaterial(czm_materialInput materialInput){\\n czm_material material = czm_getDefaultMaterial(materialInput);\\n vec2 st = materialInput.st;\\n float time = fract(czm_frameNumber * speed / 1000.0);\\n vec4 colorImage = texture2D(image, vec2(fract(st.t - time), st.t));\\n if(color.a == 0.0){\\n material.alpha = colorImage.a;\\n material.diffuse = colorImage.rgb;\\n }else{\\n material.alpha = colorImage.a * color.a;\\n material.diffuse = max(color.rgb * material.alpha * 3.0, color.rgb);\\n }\\n return material;\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci93YWxsL1dhbGxUcmFpbE1hdGVyaWFsLmdsc2wuanMiLCJzb3VyY2VzIjpbIndlYnBh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Q==\n//# sourceURL=webpack-internal:///./modules/material/shader/wall/WallTrailMaterial.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/weather/FogShader.glsl":
- /*!********************************************************!*\
- !*** ./modules/material/shader/weather/FogShader.glsl ***!
- \********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D colorTexture;\\nuniform sampler2D depthTexture;\\nuniform vec4 fogByDistance;\\nuniform vec4 fogColor;\\nvarying vec2 v_textureCoordinates;\\n\\nfloat getDistance(sampler2D depthTexture, vec2 texCoords){\\n float depth = czm_unpackDepth(texture2D(depthTexture, texCoords));\\n if (depth == 0.0) {\\n return czm_infinity;\\n }\\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, depth);\\n return -eyeCoordinate.z / eyeCoordinate.w;\\n}\\n\\n\\nfloat interpolateByDistance(vec4 nearFarScalar, float distance){\\n float startDistance = nearFarScalar.x;\\n float startValue = nearFarScalar.y;\\n float endDistance = nearFarScalar.z;\\n float endValue = nearFarScalar.w;\\n float t = clamp((distance - startDistance) / (endDistance - startDistance), 0.0, 1.0);\\n return mix(startValue, endValue, t);\\n}\\n\\nvec4 alphaBlend(vec4 sourceColor, vec4 destinationColor){\\n return sourceColor * vec4(sourceColor.aaa, 1.0) + destinationColor * (1.0 - sourceColor.a);\\n}\\n\\nvoid main(void){\\n float distance = getDistance(depthTexture, v_textureCoordinates);\\n vec4 sceneColor = texture2D(colorTexture, v_textureCoordinates);\\n float blendAmount = interpolateByDistance(fogByDistance, distance);\\n vec4 finalFogColor = vec4(fogColor.rgb, fogColor.a * blendAmount);\\n gl_FragColor = alphaBlend(finalFogColor, sceneColor);\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci93ZWF0aGVyL0ZvZ1NoYWRlci5nbHNsLmpzIiwic291cmNlc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/material/shader/weather/RainShader.glsl":
- /*!*********************************************************!*\
- !*** ./modules/material/shader/weather/RainShader.glsl ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D colorTexture;\\nvarying vec2 v_textureCoordinates;\\nuniform float speed;\\n\\nfloat hash(float x){\\n return fract(sin(x*23.3)*13.13);\\n}\\n\\nvoid main(){\\n float time = czm_frameNumber * speed / 1000.0;\\n vec2 resolution = czm_viewport.zw;\\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\\n vec3 c=vec3(.1,.2,.3);\\n float a=-.3;\\n float si=sin(a),co=cos(a);\\n uv*=mat2(co,-si,si,co);\\n uv*=length(uv+vec2(0,4.9))*.3+1.;\\n float v=1.-sin(hash(floor(uv.x*100.))*2.);\\n float b=clamp(abs(sin(20.*time*v+uv.y*(5./(2.+v))))-.95,0.,1.)*10.;\\n c*=v*b;\\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c,1), 0.5);\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci93ZWF0aGVyL1JhaW5TaGFkZXIuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3dlYXRoZXIvUmFpblNoYWRlci5nbHNsPzE0YWUiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gc2FtcGxlcjJEIGNvbG9yVGV4dHVyZTtcXG52YXJ5aW5nIHZlYzIgdl90ZXh0dXJlQ29vcmRpbmF0ZXM7XFxudW5pZm9ybSBmbG9hdCBzcGVlZDtcXG5cXG5mbG9hdCBoYXNoKGZsb2F0IHgpe1xcbiAgcmV0dXJuIGZyYWN0KHNpbih4KjIzLjMpKjEzLjEzKTtcXG59XFxuXFxudm9pZCBtYWluKCl7XFxuICBmbG9hdCB0aW1lID0gY3ptX2ZyYW1lTnVtYmVyICogc3BlZWQgLyAxMDAwLjA7XFxuICB2ZWMyIHJlc29sdXRpb24gPSBjem1fdmlld3BvcnQuenc7XFxuICB2ZWMyIHV2PShnbF9GcmFnQ29vcmQueHkqMi4tcmVzb2x1dGlvbi54eSkvbWluKHJlc29sdXRpb24ueCxyZXNvbHV0aW9uLnkpO1xcbiAgdmVjMyBjPXZlYzMoLjEsLjIsLjMpO1xcbiAgZmxvYXQgYT0tLjM7XFxuICBmbG9hdCBzaT1zaW4oYSksY289Y29zKGEpO1xcbiAgdXYqPW1hdDIoY28sLXNpLHNpLGNvKTtcXG4gIHV2Kj1sZW5ndGgodXYrdmVjMigwLDQuOSkpKi4zKzEuO1xcbiAgZmxvYXQgdj0xLi1zaW4oaGFzaChmbG9vcih1di54KjEwMC4pKSoyLik7XFxuICBmbG9hdCBiPWNsYW1wKGFicyhzaW4oMjAuKnRpbWUqdit1di55Kig1Li8oMi4rdikpKSktLjk1LDAuLDEuKSoxMC47XFxuICBjKj12KmI7XFxuICBnbF9GcmFnQ29sb3IgPSBtaXgodGV4dHVyZTJEKGNvbG9yVGV4dHVyZSwgdl90ZXh0dXJlQ29vcmRpbmF0ZXMpLCB2ZWM0KGMsMSksIDAuNSk7XFxufVxcblwiIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/weather/RainShader.glsl\n");
- /***/ }),
- /***/ "./modules/material/shader/weather/SnowShader.glsl":
- /*!*********************************************************!*\
- !*** ./modules/material/shader/weather/SnowShader.glsl ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("module.exports = \"uniform sampler2D colorTexture;\\nvarying vec2 v_textureCoordinates;\\nuniform float speed;\\n\\nfloat snow(vec2 uv,float scale){\\n float time = czm_frameNumber * speed / 1000.0 ;\\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));\\n if(w<.1)return 0.;\\n uv+=time/scale;\\n uv.y+=time*2./scale;\\n uv.x+=sin(uv.y+time*.5)/scale;\\n uv*=scale;\\n vec2 s=floor(uv),f=fract(uv),p;\\n float k=3.,d;\\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;\\n d=length(p);\\n k=min(d,k);\\n k=smoothstep(0.,k,sin(f.x+f.y)*0.01);\\n return k*w;\\n}\\n\\nvoid main(){\\n vec2 resolution = czm_viewport.zw;\\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\\n vec3 finalColor=vec3(0);\\n float c = 0.0;\\n c+=snow(uv,10.);\\n c+=snow(uv,8.);\\n c+=snow(uv,6.);\\n c+=snow(uv,5.);\\n finalColor=(vec3(c));\\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.3);\\n}\\n\"//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3NoYWRlci93ZWF0aGVyL1Nub3dTaGFkZXIuZ2xzbC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3dlYXRoZXIvU25vd1NoYWRlci5nbHNsPzIwODkiXSwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBcInVuaWZvcm0gc2FtcGxlcjJEIGNvbG9yVGV4dHVyZTtcXG52YXJ5aW5nIHZlYzIgdl90ZXh0dXJlQ29vcmRpbmF0ZXM7XFxudW5pZm9ybSBmbG9hdCBzcGVlZDtcXG5cXG5mbG9hdCBzbm93KHZlYzIgdXYsZmxvYXQgc2NhbGUpe1xcbiAgZmxvYXQgdGltZSA9IGN6bV9mcmFtZU51bWJl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UFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/shader/weather/SnowShader.glsl\n");
- /***/ }),
- /***/ "./modules/material/type/circle.js":
- /*!*****************************************!*\
- !*** ./modules/material/type/circle.js ***!
- \*****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/**\n * @Author: Caven\n * @Date: 2021-02-27 22:49:41\n */\n\n\nvar CircleBlurMaterial = __webpack_require__(/*! ../shader/circle/CircleBlurMaterial.glsl */ \"./modules/material/shader/circle/CircleBlurMaterial.glsl\");\n\nvar CircleDiffuseMaterial = __webpack_require__(/*! ../shader/circle/CircleDiffuseMaterial.glsl */ \"./modules/material/shader/circle/CircleDiffuseMaterial.glsl\");\n\nvar CircleFadeMaterial = __webpack_require__(/*! ../shader/circle/CircleFadeMaterial.glsl */ \"./modules/material/shader/circle/CircleFadeMaterial.glsl\");\n\nvar CirclePulseMaterial = __webpack_require__(/*! ../shader/circle/CirclePulseMaterial.glsl */ \"./modules/material/shader/circle/CirclePulseMaterial.glsl\");\n\nvar CircleScanMaterial = __webpack_require__(/*! ../shader/circle/CircleScanMaterial.glsl */ \"./modules/material/shader/circle/CircleScanMaterial.glsl\");\n\nvar CircleSpiralMaterial = __webpack_require__(/*! ../shader/circle/CircleSpiralMaterial.glsl */ \"./modules/material/shader/circle/CircleSpiralMaterial.glsl\");\n\nvar CircleVaryMaterial = __webpack_require__(/*! ../shader/circle/CircleVaryMaterial.glsl */ \"./modules/material/shader/circle/CircleVaryMaterial.glsl\");\n\nvar CircleWaveMaterial = __webpack_require__(/*! ../shader/circle/CircleWaveMaterial.glsl */ \"./modules/material/shader/circle/CircleWaveMaterial.glsl\");\n/**\n * CircleBlur\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleBlurType = 'CircleBlur';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleBlurType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleBlurType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: CircleBlurMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * CircleDiffuse\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleDiffuseType = 'CircleDiffuse';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleDiffuseType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleDiffuseType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: CircleDiffuseMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * CircleFade\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleFadeType = 'CircleFade';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleFadeType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleFadeType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: CircleFadeMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * CirclePulse\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CirclePulseType = 'CirclePulse';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CirclePulseType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CirclePulseType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 12.0\n },\n source: CirclePulseMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * CircleScan\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleScanType = 'CircleScan';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleScanType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleScanType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 1\n },\n source: CircleScanMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * CircleSpiral\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleSpiralType = 'CircleSpiral';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleSpiralType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleSpiralType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: CircleSpiralMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * CircleVary\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleVaryType = 'CircleVary';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleVaryType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleVaryType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: CircleVaryMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * CircleWave\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleWaveType = 'CircleWave';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleWaveType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CircleWaveType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0,\n count: 1,\n gradient: 0.1\n },\n source: CircleWaveMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3R5cGUvY2lyY2xlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC90eXBlL2NpcmNsZS5qcz8xOGU0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTAyLTI3IDIyOjQ5OjQxXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuXG5jb25zdCBDaXJjbGVCbHVyTWF0ZXJpYWwgPSByZXF1aXJlKCcuLi9zaGFkZXIvY2lyY2xlL0NpcmNsZUJsdXJNYXRlcmlhbC5nbHNsJylcbmNvbnN0IENpcmNsZURpZmZ1c2VNYXRlcmlhbCA9IHJlcXVpcmUoJy4uL3NoYWRlci9jaXJjbGUvQ2lyY2xlRGlmZnVzZU1hdGVyaWFsLmdsc2wnKVxuY29uc3QgQ2lyY2xlRmFkZU1hdGVyaWFsID0gcmVxdWlyZSgnLi4vc2hhZGVyL2NpcmNsZS9DaXJjbGVGYWRlTWF0ZXJpYWwuZ2xzbCcpXG5jb25zdCBDaXJjbGVQdWxzZU1hdGVyaWFsID0gcmVxdWlyZSgnLi4vc2hhZGVyL2NpcmNsZS9DaXJjbGVQdWxzZU1hdGVyaWFsLmdsc2wnKVxuY29uc3QgQ2lyY2xlU2Nhbk1hdGVyaWFsID0gcmVxdWlyZSgnLi4vc2hhZGVyL2NpcmNsZS9DaXJj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0FBQ0E7QUFDQTtBQWJBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/type/circle.js\n");
- /***/ }),
- /***/ "./modules/material/type/ellipsoid.js":
- /*!********************************************!*\
- !*** ./modules/material/type/ellipsoid.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:20:11\n */\n\n\nvar EllipsoidElectricMaterial = __webpack_require__(/*! ../shader/ellipsoid/EllipsoidElectricMaterial.glsl */ \"./modules/material/shader/ellipsoid/EllipsoidElectricMaterial.glsl\");\n\nvar EllipsoidTrailMaterial = __webpack_require__(/*! ../shader/ellipsoid/EllipsoidTrailMaterial.glsl */ \"./modules/material/shader/ellipsoid/EllipsoidTrailMaterial.glsl\");\n/**\n * EllipsoidElectric\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.EllipsoidElectricType = 'EllipsoidElectric';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.EllipsoidElectricType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.EllipsoidElectricType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 1\n },\n source: EllipsoidElectricMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * EllipsoidTrail\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.EllipsoidTrailType = 'EllipsoidTrail';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.EllipsoidTrailType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.EllipsoidTrailType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: EllipsoidTrailMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3R5cGUvZWxsaXBzb2lkLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC90eXBlL2VsbGlwc29pZC5qcz8yY2EwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTAyLTI3IDIzOjIwOjExXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuXG5jb25zdCBFbGxpcHNvaWRFbGVjdHJpY01hdGVyaWFsID0gcmVxdWlyZSgnLi4vc2hhZGVyL2VsbGlwc29pZC9FbGxpcHNvaWRFbGVjdHJpY01hdGVyaWFsLmdsc2wnKVxuY29uc3QgRWxsaXBzb2lkVHJhaWxNYXRlcmlhbCA9IHJlcXVpcmUoJy4uL3NoYWRlci9lbGxpcHNvaWQvRWxsaXBzb2lkVHJhaWxNYXRlcmlhbC5nbHNsJylcblxuLyoqXG4gKiBFbGxpcHNvaWRFbGVjdHJpY1xu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uICAgIH0sXG4gICAgc291cmNlOiBFbGxpcHNvaWRUcmFpbE1hdGVyaWFsXG4gIH0sXG4gIHRyYW5zbHVjZW50OiBmdW5jdGlvbihtYXRlcmlhbCkge1xuICAgIHJldHVybiB0cnVlXG4gIH1cbn0pXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQU5BO0FBUUE7QUFDQTtBQUNBO0FBWEE7QUFlQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQU5BO0FBUUE7QUFDQTtBQUNBO0FBWEEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/type/ellipsoid.js\n");
- /***/ }),
- /***/ "./modules/material/type/polyline.js":
- /*!*******************************************!*\
- !*** ./modules/material/type/polyline.js ***!
- \*******************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:23:12\n */\n\n\nvar LineFlickerMaterial = __webpack_require__(/*! ../shader/polyline/PolylineFlickerMaterial.glsl */ \"./modules/material/shader/polyline/PolylineFlickerMaterial.glsl\");\n\nvar LineFlowMaterial = __webpack_require__(/*! ../shader/polyline/PolylineFlowMaterial.glsl */ \"./modules/material/shader/polyline/PolylineFlowMaterial.glsl\");\n\nvar LineImageTrailMaterial = __webpack_require__(/*! ../shader/polyline/PolylineImageTrailMaterial.glsl */ \"./modules/material/shader/polyline/PolylineImageTrailMaterial.glsl\");\n\nvar LineLightingMaterial = __webpack_require__(/*! ../shader/polyline/PolylineLightingMaterial.glsl */ \"./modules/material/shader/polyline/PolylineLightingMaterial.glsl\");\n\nvar LineLightingTrailMaterial = __webpack_require__(/*! ../shader/polyline/PolylineLightingTrailMaterial.glsl */ \"./modules/material/shader/polyline/PolylineLightingTrailMaterial.glsl\");\n\nvar LineTrailMaterial = __webpack_require__(/*! ../shader/polyline/PolylineTrailMaterial.glsl */ \"./modules/material/shader/polyline/PolylineTrailMaterial.glsl\");\n/**\n * PolylineFlicker\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineFlickerType = 'PolylineFlicker';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineFlickerType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineFlickerType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 1\n },\n source: LineFlickerMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * PolylineFlow\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineFlowType = 'PolylineFlow';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineFlowType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineFlowType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 1,\n percent: 0.03,\n gradient: 0.1\n },\n source: LineFlowMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * PolylineImageTrail\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineImageTrailType = 'PolylineImageTrail';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineImageTrailType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineImageTrailType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultImageId,\n speed: 1,\n repeat: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian2(1, 1)\n },\n source: LineImageTrailMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * PolylineLighting\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineLightingType = 'PolylineLighting';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineLightingType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineLightingType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultImageId\n },\n source: LineLightingMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * PolylineLightingTrail\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineLightingTrailType = 'PolylineLightingTrail';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineLightingTrailType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineLightingTrailType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultImageId,\n speed: 3.0\n },\n source: LineLightingTrailMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * PolylineTrail\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineTrailType = 'PolylineTrail';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineTrailType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.PolylineTrailType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultImageId,\n speed: 1,\n repeat: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian2(1, 1)\n },\n source: LineTrailMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3R5cGUvcG9seWxpbmUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3R5cGUvcG9seWxpbmUuanM/N2ZhMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMi0yNyAyMzoyMzoxMlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcblxuY29uc3QgTGluZUZsaWNrZXJNYXRlcmlhbCA9IHJlcXVpcmUoJy4uL3NoYWRlci9wb2x5bGluZS9Qb2x5bGluZUZsaWNrZXJNYXRlcmlhbC5nbHNsJylcbmNvbnN0IExpbmVGbG93TWF0ZXJpYWwgPSByZXF1aXJlKCcuLi9zaGFkZXIvcG9seWxpbmUvUG9seWxpbmVGbG93TWF0ZXJpYWwuZ2xzbCcpXG5jb25zdCBMaW5lSW1hZ2VUcmFpbE1hdGVyaWFsID0gcmVxdWlyZSgnLi4vc2hhZGVyL3BvbHlsaW5lL1BvbHlsaW5lSW1hZ2VUcmFpbE1hdGVyaWFsLmdsc2wnKVxuY29uc3QgTGluZUxpZ2h0aW5nTWF0ZXJpYWwgPSByZXF1aXJlKCcuLi9zaGFkZXIvcG9seWxpbmUvUG9seWxpbmVMaWdodGluZ01hdGVyaWFsLmdsc2wnKVxuY29uc3QgTGluZUxpZ2h0aW5nVHJhaWxNYXRlcmlhbCA9IHJlcXVpcmUoJy4uL3NoYWRlci9wb2x5bGluZS9Qb2x5bGluZ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BQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFNQTtBQVJBO0FBVUE7QUFDQTtBQUNBO0FBYkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/type/polyline.js\n");
- /***/ }),
- /***/ "./modules/material/type/radar.js":
- /*!****************************************!*\
- !*** ./modules/material/type/radar.js ***!
- \****************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:22:38\n */\n\n\nvar RadarLineMaterial = __webpack_require__(/*! ../shader/radar/RadarLineMaterial.glsl */ \"./modules/material/shader/radar/RadarLineMaterial.glsl\");\n\nvar RadarSweepMaterial = __webpack_require__(/*! ../shader/radar/RadarSweepMaterial.glsl */ \"./modules/material/shader/radar/RadarSweepMaterial.glsl\");\n\nvar RadarWaveMaterial = __webpack_require__(/*! ../shader/radar/RadarWaveMaterial.glsl */ \"./modules/material/shader/radar/RadarWaveMaterial.glsl\");\n/**\n * RadarLine\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarLineType = 'RadarLine';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarLineType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarLineType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: RadarLineMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * RadarSweep\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarSweepType = 'RadarSweep';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarSweepType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarSweepType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: RadarSweepMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * RadarWave\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarWaveType = 'RadarWave';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarWaveType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RadarWaveType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0\n },\n source: RadarWaveMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3R5cGUvcmFkYXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGVyaWFsL3R5cGUvcmFkYXIu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mdW5jdGlvbihtYXRlcmlhbCkge1xuICAgIHJldHVybiB0cnVlXG4gIH1cbn0pXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFOQTtBQVFBO0FBQ0E7QUFDQTtBQVhBO0FBY0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFOQTtBQVFBO0FBQ0E7QUFDQTtBQVhBO0FBY0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFOQTtBQVFBO0FBQ0E7QUFDQTtBQVhBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/material/type/radar.js\n");
- /***/ }),
- /***/ "./modules/material/type/thirdpart.js":
- /*!********************************************!*\
- !*** ./modules/material/type/thirdpart.js ***!
- \********************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/**\n * @Author: Caven\n * @Date: 2021-02-27 22:52:23\n */\n\n\nvar czm_cellular = __webpack_require__(/*! ../shader/thirdpart/cellular.glsl */ \"./modules/material/shader/thirdpart/cellular.glsl\");\n\nvar czm_snoise = __webpack_require__(/*! ../shader/thirdpart/snoise.glsl */ \"./modules/material/shader/thirdpart/snoise.glsl\");\n\nvar AsphaltMaterial = __webpack_require__(/*! ../shader/thirdpart/AsphaltMaterial.glsl */ \"./modules/material/shader/thirdpart/AsphaltMaterial.glsl\");\n\nvar BlobMaterial = __webpack_require__(/*! ../shader/thirdpart/BlobMaterial.glsl */ \"./modules/material/shader/thirdpart/BlobMaterial.glsl\");\n\nvar BrickMaterial = __webpack_require__(/*! ../shader/thirdpart/BlobMaterial.glsl */ \"./modules/material/shader/thirdpart/BlobMaterial.glsl\");\n\nvar CementMaterial = __webpack_require__(/*! ../shader/thirdpart/CementMaterial.glsl */ \"./modules/material/shader/thirdpart/CementMaterial.glsl\");\n\nvar ErosionMaterial = __webpack_require__(/*! ../shader/thirdpart/ErosionMaterial.glsl */ \"./modules/material/shader/thirdpart/ErosionMaterial.glsl\");\n\nvar FacetMaterial = __webpack_require__(/*! ../shader/thirdpart/FacetMaterial.glsl */ \"./modules/material/shader/thirdpart/FacetMaterial.glsl\");\n\nvar FresnelMaterial = __webpack_require__(/*! ../shader/thirdpart/FresnelMaterial.glsl */ \"./modules/material/shader/thirdpart/FresnelMaterial.glsl\");\n\nvar GrassMaterial = __webpack_require__(/*! ../shader/thirdpart/GrassMaterial.glsl */ \"./modules/material/shader/thirdpart/GrassMaterial.glsl\");\n\nvar ReflectionMaterial = __webpack_require__(/*! ../shader/thirdpart/ReflectionMaterial.glsl */ \"./modules/material/shader/thirdpart/ReflectionMaterial.glsl\");\n\nvar RefractionMaterial = __webpack_require__(/*! ../shader/thirdpart/RefractionMaterial.glsl */ \"./modules/material/shader/thirdpart/RefractionMaterial.glsl\");\n\nvar TieDyeMaterial = __webpack_require__(/*! ../shader/thirdpart/TieDyeMaterial.glsl */ \"./modules/material/shader/thirdpart/TieDyeMaterial.glsl\");\n\nvar WoodMaterial = __webpack_require__(/*! ../shader/thirdpart/WoodMaterial.glsl */ \"./modules/material/shader/thirdpart/WoodMaterial.glsl\");\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].ShaderSource._czmBuiltinsAndUniforms.czm_cellular = czm_cellular;\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].ShaderSource._czmBuiltinsAndUniforms.czm_snoise = czm_snoise;\n/**\n * Asphalt\n * @type {string}\n */\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.AsphaltType = 'Asphalt';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.AsphaltType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.AsphaltType,\n uniforms: {\n asphaltColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.15, 0.15, 0.15, 1.0),\n bumpSize: 0.02,\n roughness: 0.2\n },\n source: AsphaltMaterial\n },\n translucent: function translucent(material) {\n return material.uniforms.asphaltColor.alpha < 1.0;\n }\n});\n/**\n * Blob\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.BlobType = 'Blob';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.BlobType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.BlobType,\n uniforms: {\n lightColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 1.0, 1.0, 0.5),\n darkColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.0, 0.0, 1.0, 0.5),\n frequency: 10.0\n },\n source: BlobMaterial\n },\n translucent: function translucent(material) {\n var uniforms = material.uniforms;\n return uniforms.lightColor.alpha < 1.0 || uniforms.darkColor.alpha < 0.0;\n }\n});\n/**\n * Brick\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.BrickType = 'Brick';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.BrickType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.BrickType,\n uniforms: {\n brickColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.6, 0.3, 0.1, 1.0),\n mortarColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.8, 0.8, 0.7, 1.0),\n brickSize: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian2(0.3, 0.15),\n brickPct: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian2(0.9, 0.85),\n brickRoughness: 0.2,\n mortarRoughness: 0.1\n },\n source: BrickMaterial\n },\n translucent: function translucent(material) {\n var uniforms = material.uniforms;\n return uniforms.brickColor.alpha < 1.0 || uniforms.mortarColor.alpha < 1.0;\n }\n});\n/**\n * Cement\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CementType = 'Cement';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CementType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.CementType,\n uniforms: {\n cementColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.95, 0.95, 0.85, 1.0),\n grainScale: 0.01,\n roughness: 0.3\n },\n source: CementMaterial\n },\n translucent: function translucent(material) {\n return material.uniforms.cementColor.alpha < 1.0;\n }\n});\n/**\n * Erosion\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.ErosionType = 'Erosion';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.ErosionType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.ErosionType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.5),\n time: 1.0\n },\n source: ErosionMaterial\n },\n translucent: function translucent(material) {\n return material.uniforms.color.alpha < 1.0;\n }\n});\n/**\n * Facet\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.FacetType = 'Facet';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.FacetType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.FacetType,\n uniforms: {\n lightColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.25, 0.25, 0.25, 0.75),\n darkColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.75, 0.75, 0.75, 0.75),\n frequency: 10.0\n },\n source: FacetMaterial\n },\n translucent: function translucent(material) {\n var uniforms = material.uniforms;\n return uniforms.lightColor.alpha < 1.0 || uniforms.darkColor.alpha < 0.0;\n }\n});\n/**\n * Fresnel\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.FresnelType = 'Fresnel';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.FresnelType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.FresnelType,\n materials: {\n reflection: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.ReflectionType\n },\n refraction: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RefractionType\n }\n },\n source: FresnelMaterial\n },\n translucent: false\n});\n/**\n * Grass\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.GrassType = 'Grass';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.GrassType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.GrassType,\n uniforms: {\n grassColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.25, 0.4, 0.1, 1.0),\n dirtColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.1, 0.1, 0.1, 1.0),\n patchiness: 1.5\n },\n source: GrassMaterial\n },\n translucent: function translucent(material) {\n var uniforms = material.uniforms;\n return uniforms.grassColor.alpha < 1.0 || uniforms.dirtColor.alpha < 1.0;\n }\n});\n/**\n * Reflection\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.ReflectionType = 'Reflection';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.ReflectionType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.ReflectionType,\n uniforms: {\n cubeMap: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultCubeMapId,\n channels: 'rgb'\n },\n source: ReflectionMaterial\n },\n translucent: false\n});\n/**\n * Refraction\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RefractionType = 'Refraction';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RefractionType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.RefractionType,\n uniforms: {\n cubeMap: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultCubeMapId,\n channels: 'rgb',\n indexOfRefractionRatio: 0.9\n },\n source: RefractionMaterial\n },\n translucent: false\n});\n/**\n * TieDye\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.TyeDyeType = 'TieDye';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.TyeDyeType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.TyeDyeType,\n uniforms: {\n lightColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 1.0, 0.0, 0.75),\n darkColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.75),\n frequency: 5.0\n },\n source: TieDyeMaterial\n },\n translucent: function translucent(material) {\n var uniforms = material.uniforms;\n return uniforms.lightColor.alpha < 1.0 || uniforms.darkColor.alpha < 0.0;\n }\n});\n/**\n * Wood\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WoodType = 'Wood';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WoodType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WoodType,\n uniforms: {\n lightWoodColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.6, 0.3, 0.1, 1.0),\n darkWoodColor: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(0.4, 0.2, 0.07, 1.0),\n ringFrequency: 3.0,\n noiseScale: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian2(0.7, 0.5),\n grainFrequency: 27.0\n },\n source: WoodMaterial\n },\n translucent: function translucent(material) {\n var uniforms = material.uniforms;\n return uniforms.lightWoodColor.alpha < 1.0 || uniforms.darkWoodColor.alpha < 1.0;\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3R5cGUvdGhpcmRwYXJ0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRlcmlhbC90eXBlL3RoaXJkcGFydC5qcz9iYjZmIl0sInNvdXJjZXNDb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TtBQWdCQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQU5BO0FBUUE7QUFUQTtBQVlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUhBO0FBS0E7QUFQQTtBQVNBO0FBVkE7QUFhQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFIQTtBQUtBO0FBUEE7QUFTQTtBQUNBO0FBQ0E7QUFDQTtBQWJBO0FBZ0JBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFMQTtBQU9BO0FBVEE7QUFXQTtBQUNBO0FBQ0E7QUFHQTtBQWpCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/material/type/thirdpart.js\n");
- /***/ }),
- /***/ "./modules/material/type/wall.js":
- /*!***************************************!*\
- !*** ./modules/material/type/wall.js ***!
- \***************************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/**\n * @Author: Caven\n * @Date: 2021-02-27 23:30:43\n */\n\n\nvar WallDiffuseMaterial = __webpack_require__(/*! ../shader/wall/WallDiffuseMaterial.glsl */ \"./modules/material/shader/wall/WallDiffuseMaterial.glsl\");\n\nvar WallImageTrailMaterial = __webpack_require__(/*! ../shader/wall/WallImageTrailMaterial.glsl */ \"./modules/material/shader/wall/WallImageTrailMaterial.glsl\");\n\nvar WallLineTrailMaterial = __webpack_require__(/*! ../shader/wall/WallLineTrailMaterial.glsl */ \"./modules/material/shader/wall/WallLineTrailMaterial.glsl\");\n\nvar WallTrailMaterial = __webpack_require__(/*! ../shader/wall/WallTrailMaterial.glsl */ \"./modules/material/shader/wall/WallTrailMaterial.glsl\");\n/**\n * WallDiffuse\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallDiffuseType = 'WallDiffuse';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallDiffuseType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallDiffuseType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7)\n },\n source: WallDiffuseMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * WallImageTrail\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallImageTrailType = 'WallImageTrail';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallImageTrailType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallImageTrailType,\n uniforms: {\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultImageId,\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: 3.0,\n repeat: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian2(1, 1)\n },\n source: WallImageTrailMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * WallLineTrail\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallLineTrailType = 'WallLineTrail';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallLineTrailType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallLineTrailType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultImageId,\n repeat: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian2(1, 1),\n speed: 3.0\n },\n source: WallLineTrailMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});\n/**\n * WallTrail\n * @type {string}\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallTrailType = 'WallTrail';\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material._materialCache.addMaterial(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallTrailType, {\n fabric: {\n type: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.WallTrailType,\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n image: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material.DefaultImageId,\n speed: 1\n },\n source: WallTrailMaterial\n },\n translucent: function translucent(material) {\n return true;\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGVyaWFsL3R5cGUvd2FsbC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0ZXJpYWwvdHlwZS93YWxsLmpzPzA2NzMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDItMjcgMjM6MzA6NDNcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5cbmNvbnN0IFdhbGxEaWZmdXNlTWF0ZXJpYWwgPSByZXF1aXJlKCcuLi9zaGFkZXIvd2FsbC9XYWxsRGlmZnVzZU1hdGVyaWFsLmdsc2wnKVxuY29uc3QgV2FsbEltYWdlVHJhaWxNYXRlcmlhbCA9IHJlcXVpcmUoJy4uL3NoYWRlci93YWxsL1dhbGxJbWFnZVRyYWlsTWF0ZXJpYWwuZ2xzbCcpXG5jb25zdCBXYWxsTGluZVRyYWlsTWF0ZXJpYWwgPSByZXF1aXJlKCcuLi9zaGFkZXIvd2FsbC9XYWxsTGluZVRyYWlsTWF0ZXJpYWwuZ2xzbCcpXG5jb25zdCBXYWxsVHJhaWxNYXRlcmlhbCA9IHJlcXVpcmUoJy4uL3NoYWRlci93YWxsL1dhbGxUcmFpbE1hdGVyaWFsLmdsc2wnKVxuXG4vKipcbiAqIFdhbGxEaWZmdXNlXG4gKiBAdHlwZSB7c3RyaW5nfVxuICovXG5DZXNpdW0uTWF0ZXJpYWwuV2FsbERpZmZ1c2VUeXBlID0gJ1dhbGxEaWZmdXNlJ1xuQ2VzaXVtLk1h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FBWkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/material/type/wall.js\n");
- /***/ }),
- /***/ "./modules/math/area.js":
- /*!******************************!*\
- !*** ./modules/math/area.js ***!
- \******************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return area; });\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/**\n * @Author: Caven\n * @Date: 2020-04-24 14:49:37\n */\n\n\n/**\n *\n * @param p0\n * @param p1\n * @param p2\n * @returns {number}\n * @private\n */\n\nfunction triangleArea(p0, p1, p2) {\n var v0 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.subtract(p0, p1, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3());\n var v1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.subtract(p2, p1, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3());\n var cross = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.cross(v0, v1, v0);\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.magnitude(cross) * 0.5;\n}\n\nfunction area(positions) {\n var result = 0;\n\n if (!Array.isArray(positions)) {\n return result;\n }\n\n if (!(positions[0] instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3)) {\n positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformWGS84ArrayToCartesianArray(positions);\n }\n\n var geometry = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].CoplanarPolygonGeometry.createGeometry(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].CoplanarPolygonGeometry.fromPositions({\n positions: positions,\n vertexFormat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].VertexFormat.POSITION_ONLY\n }));\n\n if (!geometry) {\n return result;\n }\n\n var flatPositions = geometry.attributes.position.values;\n var indices = geometry.indices;\n\n for (var i = 0; i < indices.length; i += 3) {\n var p0 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.unpack(flatPositions, indices[i] * 3, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3());\n var p1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.unpack(flatPositions, indices[i + 1] * 3, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3());\n var p2 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.unpack(flatPositions, indices[i + 2] * 3, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3());\n result += triangleArea(p0, p1, p2);\n }\n\n return result;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvYXJlYS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0aC9hcmVhLmpzPzMzMGUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDQtMjQgMTQ6NDk6MzdcbiAqL1xuX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UE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUVBO0FBQ0E7QUFGQTtBQUNBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBS0E7QUFLQTtBQUtBO0FBQ0E7QUFDQTtBQUFBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/math/area.js\n");
- /***/ }),
- /***/ "./modules/math/bounds.js":
- /*!********************************!*\
- !*** ./modules/math/bounds.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return bounds; });\n/**\n * @Author: Caven\n * @Date: 2020-04-23 09:29:56\n */\nfunction bounds() {\n var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var expand = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var minLng = 180;\n var minLat = 90;\n var maxLng = -180;\n var maxLat = -90;\n positions.forEach(function (item) {\n minLng = Math.min(minLng, item.lng || item.x);\n minLat = Math.min(minLat, item.lat || item.y);\n maxLng = Math.max(maxLng, item.lng || item.x);\n maxLat = Math.max(maxLat, item.lat || item.y);\n });\n\n if (expand > 0) {\n var diffLng = Math.abs(maxLng - maxLng);\n var diffLat = Math.abs(maxLat - minLat);\n minLng -= diffLng * expand;\n minLat -= diffLat * expand;\n maxLng += diffLng * expand;\n maxLat += diffLat * expand;\n }\n\n return {\n west: minLng,\n south: minLat,\n east: maxLng,\n north: maxLat\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvYm91bmRzLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRoL2JvdW5kcy5qcz81NDBiIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA0LTIzIDA5OjI5OjU2XG4gKi9cblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gYm91bmRzKHBvc2l0aW9ucyA9IFtdLCBleHBhbmQgPSAwKSB7XG4gIGxldCBtaW5MbmcgPSAxODBcbiAgbGV0IG1pbkxhdCA9IDkwXG4gIGxldCBtYXhMbmcgPSAtMTgwXG4gIGxldCBtYXhMYXQgPSAtOTBcbiAgcG9zaXRpb25zLmZvckVhY2goaXRlbSA9PiB7XG4gICAgbWluTG5nID0gTWF0aC5taW4obWluTG5nLCBpdGVtLmxuZyB8fCBpdGVtLngpXG4gICAgbWluTGF0ID0gTWF0aC5taW4obWluTGF0LCBpdGVtLmxhdCB8fCBpdGVtLnkpXG4gICAgbWF4TG5nID0gTWF0aC5tYXgobWF4TG5nLCBpdGVtLmxuZyB8fCBpdGVtLngpXG4gICAgbWF4TGF0ID0gTWF0aC5tYXgobWF4TGF0LCBpdGVtLmxhdCB8fCBpdGVtLnkpXG4gIH0pXG5cbiAgaWYgKGV4cGFuZCA+IDApIHtcbiAgICBsZXQgZGlmZkxuZyA9IE1hdGguYWJzKG1heExuZyAtIG1heExuZylcbiAgICBsZXQgZGlmZkxhdCA9IE1hdGguYWJzKG1heExhdCAtIG1pbkxhdClcbiAgICBtaW5MbmcgLT0gZGlmZkxuZyAqIGV4cGFuZFxuICAgIG1pbkxhdCAtPSBkaWZmTGF0ICogZXhwYW5kXG4gICAgbWF4TG5nICs9IGRpZmZMbmcgKiBleHBhbmRcbiAgICBtYXhMYXQgKz0gZGlmZkxhdCAqIGV4cGFuZFxuICB9XG4gIHJldHVybiB7XG4gICAgd2VzdDogbWluTG5nLFxuICAgIHNvdXRoOiBtaW5MYXQsXG4gICAgZWFzdDogbWF4TG5nLFxuICAgIG5vcnRoOiBtYXhMYXRcbiAgfVxufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUpBO0FBTUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/math/bounds.js\n");
- /***/ }),
- /***/ "./modules/math/center.js":
- /*!********************************!*\
- !*** ./modules/math/center.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return center; });\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/position/Position */ \"./modules/position/Position.js\");\n/**\n * @Author: Caven\n * @Date: 2020-04-24 14:43:39\n */\n\n\n\nfunction center(positions) {\n if (positions && Array.isArray(positions)) {\n var boundingSphere = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].BoundingSphere.fromPoints(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformWGS84ArrayToCartesianArray(positions));\n return _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformCartesianToWGS84(boundingSphere.center);\n }\n\n return new _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvY2VudGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRoL2NlbnRlci5qcz9kMGU1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA0LTI0IDE0OjQzOjM5XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IFBvc2l0aW9uIGZyb20gJ0BnZC1tb2R1bGVzL3Bvc2l0aW9uL1Bvc2l0aW9uJ1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBjZW50ZXIocG9zaXRpb25zKSB7XG4gIGlmIChwb3NpdGlvbnMgJiYgQXJyYXkuaXNBcnJheShwb3NpdGlvbnMpKSB7XG4gICAgbGV0IGJvdW5kaW5nU3BoZXJlID0gQ2VzaXVtLkJvdW5kaW5nU3BoZXJlLmZyb21Qb2ludHMoXG4gICAgICBUcmFuc2Zvcm0udHJhbnNmb3JtV0dTODRBcnJheVRvQ2FydGVzaWFuQXJyYXkocG9zaXRpb25zKVxuICAgIClcbiAgICByZXR1cm4gVHJhbnNmb3JtLnRyYW5zZm9ybUNhcnRlc2lhblRvV0dTODQoYm91bmRpbmdTcGhlcmUuY2VudGVyKVxuICB9XG5cbiAgcmV0dXJuIG5ldyBQb3NpdGlvbigpXG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/math/center.js\n");
- /***/ }),
- /***/ "./modules/math/curve.js":
- /*!*******************************!*\
- !*** ./modules/math/curve.js ***!
- \*******************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return curve; });\n/**\n * @Author: Caven\n * @Date: 2020-08-16 11:14:23\n */\n\n/**\n * Some of the code borrows from MAPV\n * https://github.com/huiyan-fe/mapv/blob/3292c7c25dbbf29af3cf7b3acb48108d60b3eed8/src/utils/curve.js\n */\nfunction curve(points, options) {\n options = options || {};\n var curvePoints = [];\n\n for (var i = 0; i < points.length - 1; i++) {\n var p = getCurveByTwoPoints(points[i], points[i + 1], options.count);\n\n if (p && p.length > 0) {\n curvePoints = curvePoints.concat(p);\n }\n }\n\n return curvePoints;\n}\n/**\n * Get a curvilinear coordinate set of points based on two points\n * @param obj1\n * @param obj2\n * @param count\n * @returns {null|[]}\n */\n\nfunction getCurveByTwoPoints(obj1, obj2, count) {\n if (!obj1 || !obj2) {\n return null;\n }\n\n var curveCoordinates = [];\n count = count || 40; // 曲线是由一些小的线段组成的,这个表示这个曲线所有到的折线的个数\n\n var B1 = function B1(x) {\n return 1 - 2 * x + x * x;\n };\n\n var B2 = function B2(x) {\n return 2 * x - 2 * x * x;\n };\n\n var B3 = function B3(x) {\n return x * x;\n };\n\n var t, h, h2, lat3, lng3, t2;\n var inc = 0;\n var lat1 = parseFloat(obj1.lat);\n var lat2 = parseFloat(obj2.lat);\n var lng1 = parseFloat(obj1.lng);\n var lng2 = parseFloat(obj2.lng); // 计算曲线角度的方法\n\n if (lng2 > lng1) {\n if (lng2 - lng1 > 180) {\n if (lng1 < 0) {\n lng1 = 180 + 180 + lng1;\n lng2 = 180 + 180 + lng2;\n }\n }\n } // 此时纠正了 lng1 lng2\n\n\n t2 = 0; // 纬度相同\n\n if (lat2 === lat1) {\n t = 0;\n h = lng1 - lng2; // 经度相同\n } else if (lng2 === lng1) {\n t = Math.PI / 2;\n h = lat1 - lat2;\n } else {\n t = Math.atan((lat2 - lat1) / (lng2 - lng1));\n h = (lat2 - lat1) / Math.sin(t);\n }\n\n if (t2 === 0) {\n t2 = t + Math.PI / 5;\n }\n\n h2 = h / 2;\n lng3 = h2 * Math.cos(t2) + lng1;\n lat3 = h2 * Math.sin(t2) + lat1;\n\n for (var i = 0; i < count + 1; i++) {\n var x = lng1 * B1(inc) + lng3 * B2(inc) + lng2 * B3(inc);\n var y = lat1 * B1(inc) + lat3 * B2(inc) + lat2 * B3(inc);\n var lng1_src = obj1.lng;\n var lng2_src = obj2.lng;\n curveCoordinates.push([lng1_src < 0 && lng2_src > 0 ? x - 360 : x, y]);\n inc = inc + 1 / count;\n }\n\n return curveCoordinates;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvY3VydmUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGgvY3VydmUuanM/ZTE2YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0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DQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/math/curve.js\n");
- /***/ }),
- /***/ "./modules/math/distance.js":
- /*!**********************************!*\
- !*** ./modules/math/distance.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return distance; });\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/**\n * @Author: Caven\n * @Date: 2020-03-31 20:58:06\n */\n\n\nfunction distance(positions) {\n var distance = 0;\n\n if (positions && Array.isArray(positions)) {\n for (var i = 0; i < positions.length - 1; i++) {\n var c1 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformWGS84ToCartographic(positions[i]);\n var c2 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformWGS84ToCartographic(positions[i + 1]);\n var geodesic = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].EllipsoidGeodesic();\n geodesic.setEndPoints(c1, c2);\n var s = geodesic.surfaceDistance;\n s = Math.sqrt(Math.pow(s, 2) + Math.pow(c2.height - c1.height, 2));\n distance += s;\n }\n }\n\n return distance.toFixed(3);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvZGlzdGFuY2UuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGgvZGlzdGFuY2UuanM/NjgyNiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMy0zMSAyMDo1ODowNlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gZGlzdGFuY2UocG9zaXRpb25zKSB7XG4gIGxldCBkaXN0YW5jZSA9IDBcbiAgaWYgKHBvc2l0aW9ucyAmJiBBcnJheS5pc0FycmF5KHBvc2l0aW9ucykpIHtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IHBvc2l0aW9ucy5sZW5ndGggLSAxOyBpKyspIHtcbiAgICAgIGxldCBjMSA9IFRyYW5zZm9ybS50cmFuc2Zvcm1XR1M4NFRvQ2FydG9ncmFwaGljKHBvc2l0aW9uc1tpXSlcbiAgICAgIGxldCBjMiA9IFRyYW5zZm9ybS50cmFuc2Zvcm1XR1M4NFRvQ2FydG9ncmFwaGljKHBvc2l0aW9uc1tpICsgMV0pXG4gICAgICBsZXQgZ2VvZGVzaWMgPSBuZXcgQ2VzaXVtLkVsbGlwc29pZEdlb2Rlc2ljKClcbiAgICAgIGdlb2Rlc2ljLnNldEVuZFBvaW50cyhjMSwgYzIpXG4gICAgICBsZXQgcyA9IGdlb2Rlc2ljLnN1cmZhY2VEaXN0YW5jZVxuICAgICAgcyA9IE1hdGguc3FydChNYXRoLnBvdyhzLCAyKSArIE1hdGgucG93KGMyLmhlaWdodCAtIGMxLmhlaWdodCwgMikpXG4gICAgICBkaXN0YW5jZSArPSBzXG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGRpc3RhbmNlLnRvRml4ZWQoMylcbn1cbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/math/distance.js\n");
- /***/ }),
- /***/ "./modules/math/heading.js":
- /*!*********************************!*\
- !*** ./modules/math/heading.js ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return heading; });\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/**\n * @Author: Caven\n * @Date: 2020-04-11 00:41:47\n */\n\n\n\nfunction heading(start, end) {\n var startPosition = start;\n var endPosition = end;\n\n if (!(start instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3)) {\n startPosition = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_2__[\"default\"].parsePosition(start);\n startPosition = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformWGS84ToCartesian(startPosition);\n }\n\n if (!(end instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3)) {\n endPosition = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_2__[\"default\"].parsePosition(end);\n endPosition = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformWGS84ToCartesian(endPosition);\n }\n\n var ff = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(startPosition);\n var v = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.subtract(endPosition, startPosition, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3());\n var vector = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Matrix4.multiplyByPointAsVector(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Matrix4.inverse(ff, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Matrix4()), v, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3());\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3.normalize(vector, vector);\n var heading = Math.atan2(vector.y, vector.x) - _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Math.PI_OVER_TWO;\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Math.TWO_PI - _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Math.zeroToTwoPi(heading);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvaGVhZGluZy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbWF0aC9oZWFkaW5nLmpzPzJkYjMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDQtMTEgMDA6NDE6NDdcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGhlYWRpbmcoc3RhcnQsIGVuZCkge1xuICBsZXQgc3RhcnRQb3NpdGlvbiA9IHN0YXJ0XG4gIGxldCBlbmRQb3NpdGlvbiA9IGVuZFxuICBpZiAoIShzdGFydCBpbnN0YW5jZW9mIENlc2l1bS5DYXJ0ZXNpYW4zKSkge1xuICAgIHN0YXJ0UG9zaXRpb24gPSBQYXJzZS5wYXJzZVBvc2l0aW9uKHN0YXJ0KVxuICAgIHN0YXJ0UG9zaXRpb24gPSBUcmFuc2Zvcm0udHJhbnNmb3JtV0dTODRUb0NhcnRlc2lhbihzdGFydFBvc2l0aW9uKVxuICB9XG5cbiAgaWYgKCEoZW5kIGluc3R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QTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUtBO0FBS0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/math/heading.js\n");
- /***/ }),
- /***/ "./modules/math/index.js":
- /*!*******************************!*\
- !*** ./modules/math/index.js ***!
- \*******************************/
- /*! exports provided: area, bounds, center, curve, distance, heading, isBetween, midCartesian, midPosition, parabola, isInPolygon */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./area */ \"./modules/math/area.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"area\", function() { return _area__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _bounds__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bounds */ \"./modules/math/bounds.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"bounds\", function() { return _bounds__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _center__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./center */ \"./modules/math/center.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"center\", function() { return _center__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _curve__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./curve */ \"./modules/math/curve.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"curve\", function() { return _curve__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _distance__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./distance */ \"./modules/math/distance.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"distance\", function() { return _distance__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _heading__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./heading */ \"./modules/math/heading.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"heading\", function() { return _heading__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _isBetween__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isBetween */ \"./modules/math/isBetween.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isBetween\", function() { return _isBetween__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _midCartesian__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./midCartesian */ \"./modules/math/midCartesian.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"midCartesian\", function() { return _midCartesian__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _midPosition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./midPosition */ \"./modules/math/midPosition.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"midPosition\", function() { return _midPosition__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _parabola__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./parabola */ \"./modules/math/parabola.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"parabola\", function() { return _parabola__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _isInPolygon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./isInPolygon */ \"./modules/math/isInPolygon.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isInPolygon\", function() { return _isInPolygon__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/**\n * @Author 刘策\n * @Date: 2022-05-18 16:57:21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m1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/math/index.js\n");
- /***/ }),
- /***/ "./modules/math/isBetween.js":
- /*!***********************************!*\
- !*** ./modules/math/isBetween.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return isBetween; });\n/**\n * @Author: Caven\n * @Date: 2020-03-31 20:58:06\n */\nfunction isBetween(value, min, max) {\n value = parseFloat(value) || 0.0;\n return value >= parseFloat(min) && value <= parseFloat(max);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvaXNCZXR3ZWVuLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRoL2lzQmV0d2Vlbi5qcz8xNTM4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAzLTMxIDIwOjU4OjA2XG4gKi9cblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gaXNCZXR3ZWVuKHZhbHVlLCBtaW4sIG1heCkge1xuICB2YWx1ZSA9IHBhcnNlRmxvYXQodmFsdWUpIHx8IDAuMFxuICByZXR1cm4gdmFsdWUgPj0gcGFyc2VGbG9hdChtaW4pICYmIHZhbHVlIDw9IHBhcnNlRmxvYXQobWF4KVxufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/math/isBetween.js\n");
- /***/ }),
- /***/ "./modules/math/isInPolygon.js":
- /*!*************************************!*\
- !*** ./modules/math/isInPolygon.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return isInPolygon; });\n/**\n * @Author 刘策\n * @Date 2022-05-30 9:32\n * @Description 判断点是否在多边形内部\n */\nfunction isInPolygon(point, polygon) {\n var _ref = [point[0], point[1]],\n x = _ref[0],\n y = _ref[1];\n var inside = false;\n\n for (var i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n var _ref2 = [polygon[i][0], polygon[i][1]],\n xi = _ref2[0],\n yi = _ref2[1];\n var _ref3 = [polygon[j][0], polygon[j][1]],\n xj = _ref3[0],\n yj = _ref3[1];\n var intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n\n return inside;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvaXNJblBvbHlnb24uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGgvaXNJblBvbHlnb24uanM/MGFiNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3Ig5YiY562WXG4gKiBARGF0ZSAyMDIyLTA1LTMwIDk6MzJcbiAqIEBEZXNjcmlwdGlvbiDliKTmlq3ngrnmmK/lkKblnKjlpJrovrnlvaLlhoXpg6hcbiAqL1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBpc0luUG9seWdvbihwb2ludCwgcG9seWdvbikge1xuICBsZXQgW3gsIHldID0gW3BvaW50WzBdLCBwb2ludFsxXV1cbiAgbGV0IGluc2lkZSA9IGZhbHNlXG4gIGZvciAobGV0IGkgPSAwLCBqID0gcG9seWdvbi5sZW5ndGggLSAxOyBpIDwgcG9seWdvbi5sZW5ndGg7IGogPSBpKyspIHtcbiAgICBsZXQgW3hpLCB5aV0gPSBbcG9seWdvbltpXVswXSwgcG9seWdvbltpXVsxXV1cbiAgICBsZXQgW3hqLCB5al0gPSBbcG9seWdvbltqXVswXSwgcG9seWdvbltqXVsxXV1cbiAgICBsZXQgaW50ZXJzZWN0ID0gKCh5aSA+IHkpICE9PSAoeWogPiB5KSkgJiYgKHggPCAoeGogLSB4aSkgKiAoeSAtIHlpKSAvICh5aiAtIHlpKSArIHhpKVxuICAgIGlmIChpbnRlcnNlY3QpIGluc2lkZSA9ICFpbnNpZGVcbiAgfVxuICByZXR1cm4gaW5zaWRlXG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/math/isInPolygon.js\n");
- /***/ }),
- /***/ "./modules/math/mathCalculation.js":
- /*!*****************************************!*\
- !*** ./modules/math/mathCalculation.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-04-21 9:21\n */\n\n\n\n\nvar MathCalculation = /*#__PURE__*/function () {\n function MathCalculation() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MathCalculation);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MathCalculation, null, [{\n key: \"getLengthValue\",\n value:\n /**\n * 获取两点坐标长度\n * @param firstPoint\n * @param secondPoint\n * @returns {Number} 两点长度,单位米\n */\n function getLengthValue(firstPoint, secondPoint) {\n var length = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.distance(firstPoint, secondPoint);\n return length;\n }\n /**\n * 修改长度单位\n * @param length\n * @returns {String} 两点长度,单位米或公里\n */\n\n }, {\n key: \"changeLengthValue\",\n value: function changeLengthValue(length) {\n if (length > 1000) {\n length = (length / 1000).toFixed(2) + ' 公里';\n } else {\n length = length.toFixed(2) + ' 米';\n }\n\n return length;\n }\n /**\n * 计算多边形数组内部的一个点\n * @param cartesianArray\n * @returns {Number} 两点长度,单位米\n */\n\n }, {\n key: \"getCenterOfGravityPoint\",\n value: function getCenterOfGravityPoint(cartesianArray) {\n var centerPoint = cartesianArray[0];\n\n for (var i = 1; i < cartesianArray.length; i++) {\n centerPoint = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.midpoint(centerPoint, cartesianArray[i], new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n }\n\n return centerPoint;\n }\n /**\n * 计算面积\n * @param cartesianArray\n * @returns {String} 面积值\n */\n\n }, {\n key: \"getArea\",\n value: function getArea(cartesianArray) {\n var result = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_3__[\"area\"])(cartesianArray);\n\n if (Math.abs(result) < 1000000) {\n result = Math.abs(result).toFixed(4) + ' 平方米';\n } else {\n result = Math.abs((result / 1000000.0).toFixed(4)) + ' 平方公里';\n }\n\n return result;\n }\n /**\n * 笛卡尔坐标添加高度偏移,选点位于地下时会默认以高度0添加偏移\n * @param cartesian 笛卡尔坐标\n * @param heightOffset 高度偏移量,单位米\n * @returns {object} 笛卡尔坐标\n */\n\n }, {\n key: \"pickPositionHeightCorrection\",\n value: function pickPositionHeightCorrection(cartesian, heightOffset) {\n var wgs84 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformCartesianToWGS84(cartesian);\n\n if (wgs84._alt <= 0) {\n cartesian = this.cartesianChangeHeight(cartesian, null, heightOffset); // 高度位于地下时返回地面上的偏移高度\n } else {\n cartesian = this.cartesianChangeHeight(cartesian, heightOffset); // 在原有坐标上添加偏移,避免点被模型遮挡\n }\n\n return cartesian;\n }\n /**\n * 高度偏移计算,有自定义高度返回优先自定义高度偏移结果\n * @param cartesian 笛卡尔坐标\n * @param offsetHeight 高度偏移量,单位米\n * @param customHeight 自定义高度,单位米\n * @returns {object} 笛卡尔坐标\n */\n\n }, {\n key: \"cartesianChangeHeight\",\n value: function cartesianChangeHeight(cartesian) {\n var offsetHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var customHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var wgs84 = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformCartesianToWGS84(cartesian); // 返回自定义高度\n\n if (customHeight) {\n wgs84._alt = customHeight;\n return _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformWGS84ToCartesian({\n lng: wgs84.lng,\n lat: wgs84.lat,\n alt: wgs84.alt\n });\n } // 返回固定偏移高度\n\n\n wgs84._alt += offsetHeight;\n return _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformWGS84ToCartesian({\n lng: wgs84.lng,\n lat: wgs84.lat,\n alt: wgs84.alt\n });\n }\n }]);\n\n return MathCalculation;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (MathCalculation);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvbWF0aENhbGN1bGF0aW9uLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRoL21hdGhDYWxjdWxhdGlvbi5qcz85ZGU2Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ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***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return midCartesian; });\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/**\n * @Author: Caven\n * @Date: 2020-08-21 18:16:52\n */\n\nfunction midCartesian(start, end) {\n var c1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(start);\n var c2 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(end);\n var cm = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].EllipsoidGeodesic(c1, c2).interpolateUsingFraction(0.5);\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Ellipsoid.WGS84.cartographicToCartesian(cm);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvbWlkQ2FydGVzaWFuLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9tYXRoL21pZENhcnRlc2lhbi5qcz82YWVlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA4LTIxIDE4OjE2OjUyXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBtaWRDYXJ0ZXNpYW4oc3RhcnQsIGVuZCkge1xuICBsZXQgYzEgPSBDZXNpdW0uRWxsaXBzb2lkLldHUzg0LmNhcnRlc2lhblRvQ2FydG9ncmFwaGljKHN0YXJ0KVxuICBsZXQgYzIgPSBDZXNpdW0uRWxsaXBzb2lkLldHUzg0LmNhcnRlc2lhblRvQ2FydG9ncmFwaGljKGVuZClcbiAgbGV0IGNtID0gbmV3IENlc2l1bS5FbGxpcHNvaWRHZW9kZXNpYyhjMSwgYzIpLmludGVycG9sYXRlVXNpbmdGcmFjdGlvbigwLjUpXG4gIHJldHVybiBDZXNpdW0uRWxsaXBzb2lkLldHUzg0LmNhcnRvZ3JhcGhpY1RvQ2FydGVzaWFuKGNtKVxufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/math/midCartesian.js\n");
- /***/ }),
- /***/ "./modules/math/midPosition.js":
- /*!*************************************!*\
- !*** ./modules/math/midPosition.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return midPosition; });\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/position/Position */ \"./modules/position/Position.js\");\n/**\n * @Author: Caven\n * @Date: 2020-08-21 18:16:52\n */\n\n\n\n\nfunction midPosition(start, end) {\n var startPosition = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_2__[\"default\"].parsePosition(start);\n var endPosition = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_2__[\"default\"].parsePosition(end);\n startPosition = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformWGS84ToCartographic(startPosition);\n endPosition = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_1__[\"Transform\"].transformWGS84ToCartographic(endPosition);\n var mc = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].EllipsoidGeodesic(startPosition, endPosition).interpolateUsingFraction(0.5);\n return new _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_3__[\"default\"](_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Math.toDegrees(mc.longitude), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Math.toDegrees(mc.latitude), mc.height);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21hdGgvbWlkUG9zaXRpb24uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21hdGgvbWlkUG9zaXRpb24uanM/MWE0OCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0yMSAxODoxNjo1MlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCBQYXJzZSBmcm9tICdAZ2Qtb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/ "./modules/math/parabola.js":
- /*!**********************************!*\
- !*** ./modules/math/parabola.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return parabola; });\n/**\n * @Author: Caven\n * @Date: 2020-05-28 10:24:38\n */\nfunction parabola(startPosition, endPosition) {\n var height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var count = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 50;\n //方程 y=-(4h/L^2)*x^2+h h:顶点高度 L:横纵间距较大者\n var result = [];\n height = Math.max(+height, 100);\n count = Math.max(+count, 50);\n var diffLng = Math.abs(startPosition.lng - endPosition.lng);\n var diffLat = Math.abs(startPosition.lat - endPosition.lat);\n var L = Math.max(diffLng, diffLat);\n var dlt = L / count;\n\n if (diffLng > diffLat) {\n //base on lng\n var delLat = (endPosition.lat - startPosition.lat) / count;\n\n if (startPosition.lng - endPosition.lng > 0) {\n dlt = -dlt;\n }\n\n for (var i = 0; i < count; i++) {\n var h = height - Math.pow(-0.5 * L + Math.abs(dlt) * i, 2) * 4 * height / Math.pow(L, 2);\n var lng = startPosition.lng + dlt * i;\n var lat = startPosition.lat + delLat * i;\n result.push([lng, lat, h]);\n }\n } else {\n //base on lat\n var delLng = (endPosition.lng - startPosition.lng) / count;\n\n if (startPosition.lat - endPosition.lat > 0) {\n dlt = -dlt;\n }\n\n for (var _i = 0; _i < count; _i++) {\n var _h = height - Math.pow(-0.5 * L + Math.abs(dlt) * _i, 2) * 4 * height / Math.pow(L, 2);\n\n var _lng = startPosition.lng + delLng * _i;\n\n var _lat = startPosition.lat + dlt * _i;\n\n result.push([_lng, _lat, _h]);\n }\n }\n\n return result;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGV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NBO0FBRUE7QUFLQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/math/parabola.js\n");
- /***/ }),
- /***/ "./modules/measure/index.js":
- /*!**********************************!*\
- !*** ./modules/measure/index.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_domComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/domComponent */ \"./modules/domComponent/index.js\");\n/* harmony import */ var _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/draw/drawGraphics */ \"./modules/draw/drawGraphics.js\");\n/* harmony import */ var _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/math/mathCalculation */ \"./modules/math/mathCalculation.js\");\n\n\n\n/**\n * @Author: Liuce\n * @Date: 2022-04-21 9:11\n */\n\n\n\n\n\nvar Measure = /*#__PURE__*/function () {\n function Measure(viewer) {\n var _this = this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Measure);\n\n this._viewer = viewer;\n this._layer = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CustomDataSource('measure-layer');\n\n this._viewer.dataSources.add(this._layer);\n\n this._handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventHandler(this._viewer.canvas);\n this._mouseTip = new _gd_modules_domComponent__WEBPACK_IMPORTED_MODULE_3__[\"MouseTip\"](this._viewer);\n\n window.onmousemove = function (e) {\n var position = {\n x: e.clientX + 10,\n y: e.clientY - 10\n };\n\n _this._mouseTip.showAt(position);\n };\n }\n /**\n * 空间距离测量\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Measure, [{\n key: \"distance\",\n value: function distance() {\n var _this2 = this;\n\n var viewer = this._viewer;\n var positions = []; // 选点坐标组\n\n var offsetHeight = 0.2; // 选点高度偏移,避免被地面和建筑顶层平面遮挡\n\n var allDistance = 0; // 总长度\n // 标签实体,拖拽线,拖拽线时移动的标签\n\n var labelEntity, towLine, moveLabel;\n var pixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, -25);\n var lastPoint = null;\n var str = '<span>左键选点,右键结束</span>';\n\n this._mouseTip.setVisible(true);\n\n this._mouseTip.setMouseTip(str); // viewer.scene.globe.depthTestAgainstTerrain = true;\n\n\n this._handler.setInputAction(function (clickEvent) {\n var cartesian = viewer.scene.pickPosition(clickEvent.position); // 坐标\n\n if (!cartesian) {\n return;\n }\n\n cartesian = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].pickPositionHeightCorrection(cartesian, offsetHeight);\n\n _this2._layer.entities.add(_gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].point(cartesian)); // 存储第一个点\n\n\n if (positions.length === 0) {\n // 创建初始点\n positions.push(cartesian.clone(), cartesian.clone()); // 存两位数,后一位用作拖拽坐标占位\n\n towLine = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].dynamicLine(positions); // 添加直线\n\n _this2._layer.entities.add(towLine); // 创建一个不显示的label,等开始拖拽时显示\n\n\n var lengthText = '距离:0米';\n moveLabel = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(cartesian, lengthText, pixelOffset);\n\n _this2._layer.entities.add(moveLabel);\n } else {\n // 存储后续坐标点\n positions.push(cartesian.clone()); // 计算中点\n\n var centerPoint = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.midpoint(positions[positions.length - 2], positions[positions.length - 3], new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n var distanceValue = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getLengthValue(positions[positions.length - 2], positions[positions.length - 3]);\n var lineDistance = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].changeLengthValue(distanceValue); // 计算距离\n\n var _lengthText = '距离:' + lineDistance; // 总长度累加\n\n\n allDistance += distanceValue;\n lastPoint = cartesian;\n labelEntity = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(centerPoint, _lengthText, pixelOffset);\n\n _this2._layer.entities.add(labelEntity);\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n this._handler.setInputAction(function (movement) {\n var mousePosition = movement.endPosition;\n var cartesian = viewer.scene.pickPosition(mousePosition);\n\n if (!cartesian) {\n return;\n }\n\n cartesian = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].pickPositionHeightCorrection(cartesian, offsetHeight);\n\n if (towLine && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(cartesian)) {\n // 在鼠标移动时,,修改当前线段的最后一位坐标\n positions[positions.length - 1] = cartesian; // 修改移动label信息\n // 计算中点\n\n var centerPoint = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.midpoint(positions[positions.length - 1], positions[positions.length - 2], new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3()); // 计算距离\n\n var distanceValue = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getLengthValue(positions[positions.length - 1], positions[positions.length - 2]);\n var lineDistance = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].changeLengthValue(distanceValue); // 计算距离\n\n var lengthText = '距离:' + lineDistance;\n moveLabel.position = centerPoint;\n moveLabel.label.text = lengthText;\n } // 加一个总长度\n\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n\n this._handler.setInputAction(function (clickEvent) {\n // 右键坐标加入计算结果\n // let cartesian = viewer.scene.pickPosition(clickEvent.position)\n // if (!cartesian) {\n // return\n // }\n // cartesian = MathCalculation.pickPositionHeightCorrection(cartesian, offsetHeight)\n // let distanceValue = MathCalculation.getLengthValue(\n // positions[positions.length - 1],\n // positions[positions.length - 2]\n // )\n // allDistance += distanceValue\n // lastPoint = cartesian\n // this._layer.entities.add(DrawGraphics.point(cartesian))\n positions.pop();\n var lengthText = '总长度:' + _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].changeLengthValue(allDistance);\n labelEntity = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(lastPoint, lengthText, pixelOffset);\n\n _this2._layer.entities.add(labelEntity);\n\n _this2._layer.entities.remove(moveLabel); // 移除移动标注\n // viewer.scene.globe.depthTestAgainstTerrain = false;\n\n\n _this2._mouseTip.setVisible(false);\n\n _this2._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n _this2._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n\n _this2._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }\n /**\n * 面积测量\n */\n\n }, {\n key: \"area\",\n value: function area() {\n var _this3 = this;\n\n var viewer = this._viewer;\n var positions = []; // 选点坐标组\n\n var offsetHeight = 0.2; // 选点高度偏移,避免被地面和建筑顶层平面遮挡\n\n var labelPixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, -30); // 标签像素偏移量\n\n var labelEntity, towArea, areaOutline; // 面积标签图元,拖拽面图元,轮廓线图元\n\n var text, centerPoint; // 面积文本,分析面中心点坐标\n\n var str = '<span>左键选点绘制区域,右键结束</span>';\n\n this._mouseTip.setVisible(true);\n\n this._mouseTip.setMouseTip(str); // viewer.scene.globe.depthTestAgainstTerrain = true;\n\n\n this._handler.setInputAction(function (clickEvent) {\n var cartesian = viewer.scene.pickPosition(clickEvent.position); // 坐标\n\n if (!cartesian) {\n return;\n }\n\n cartesian = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].pickPositionHeightCorrection(cartesian, offsetHeight);\n\n _this3._layer.entities.add(_gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].point(cartesian));\n\n if (positions.length === 0) {\n positions.push(cartesian.clone(), cartesian.clone()); // 存两位数,后一位用作拖拽坐标占位\n\n areaOutline = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].polyGonOutline(positions); // 添加直线\n\n _this3._layer.entities.add(areaOutline);\n } else if (positions.length === 2) {\n positions.push(cartesian.clone());\n } else if (positions.length >= 3) {\n positions.push(cartesian.clone());\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK); // 鼠标移动\n\n\n this._handler.setInputAction(function (movement) {\n var mousePosition = movement.endPosition; // 屏幕坐标\n\n var cartesian = viewer.scene.pickPosition(mousePosition); // 世界坐标\n\n var pickObj = viewer.scene.pick(mousePosition);\n\n if (pickObj !== null && pickObj !== void 0 && pickObj.id && (pickObj === null || pickObj === void 0 ? void 0 : pickObj.id) === labelEntity) {\n labelPixelOffset.y = labelPixelOffset.y < 0 ? 10 : -30;\n }\n\n if (!cartesian) {\n return;\n }\n\n cartesian = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].pickPositionHeightCorrection(cartesian, offsetHeight); // console.log(cartesian)\n // let ray = viewer.camera.getPickRay(mousePosition);\n // let cartesian2 = viewer.scene.globe.pick(ray, viewer.scene);\n // console.log(cartesian2)\n // let cartesian3 = viewer.scene.camera.pickEllipsoid(mousePosition);\n // console.log(cartesian3)\n\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(cartesian)) {\n if (positions.length === 2) {\n positions[positions.length - 1] = cartesian;\n }\n\n if (positions.length >= 3) {\n if (towArea) {\n positions[positions.length - 1] = cartesian;\n labelEntity.label.text = '面积:' + _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getArea(positions);\n labelEntity.position = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getCenterOfGravityPoint(positions);\n } else {\n positions[positions.length - 1] = cartesian;\n towArea = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].polyGon(positions); // 创建拖拽面\n\n _this3._layer.entities.add(towArea);\n\n text = '面积:' + _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getArea(positions);\n centerPoint = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getCenterOfGravityPoint(positions);\n labelEntity = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(centerPoint, text, labelPixelOffset);\n\n _this3._layer.entities.add(labelEntity);\n }\n }\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE); // 右击结束\n\n\n this._handler.setInputAction(function (clickEvent) {\n _this3._mouseTip.setVisible(false); // 右键坐标加入计算结果\n // let cartesian = viewer.scene.pickPosition(clickEvent.position)\n // if (!cartesian) {\n // return\n // }\n // clickPosition = MathCalculation.pickPositionHeightCorrection(cartesian, offsetHeight)\n // this._layer.entities.add(DrawGraphics.point(cartesian))\n\n\n positions.pop();\n labelEntity.label.text = '面积:' + _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getArea(positions);\n labelEntity.position = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getCenterOfGravityPoint(positions);\n labelPixelOffset.y = -30; // viewer.scene.globe.depthTestAgainstTerrain = false;\n\n _this3._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n _this3._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n\n _this3._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }\n /**\n * 三角测量\n */\n\n }, {\n key: \"triangleHeight\",\n value: function triangleHeight() {\n var _this4 = this;\n\n var viewer = this._viewer;\n var positions = [];\n var labelEntity_1, labelEntity_2, labelEntity_3; // 标签实体\n\n var heightLabelPixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, -30); // 标签像素偏移量\n\n var straightLabelPixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, -30);\n var horizontalLabelPixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, -30);\n var str = '<span>左键选择两个点</span>';\n\n this._mouseTip.setVisible(true);\n\n this._mouseTip.setMouseTip(str); // viewer.scene.globe.depthTestAgainstTerrain = true;\n // 注册鼠标左击事件\n\n\n this._handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventHandler(viewer.canvas);\n\n this._handler.setInputAction(function (clickEvent) {\n var cartesian = viewer.scene.pickPosition(clickEvent.position); // 坐标\n\n if (!cartesian) {\n return;\n } // 存储第一个点\n\n\n if (positions.length === 0) {\n // 当前坐标没有模型时,取地球表面坐标\n positions.push(cartesian.clone());\n\n _this4._layer.entities.add(_gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].point(cartesian)); // 注册鼠标移动事件\n\n\n _this4._handler.setInputAction(function (moveEvent) {\n var _pickObj$primitive, _pickObj$primitive2;\n\n var movePosition = viewer.scene.pickPosition(moveEvent.endPosition); // 鼠标移动的点\n\n var pickObj = viewer.scene.pick(moveEvent.endPosition);\n\n if (pickObj !== null && pickObj !== void 0 && (_pickObj$primitive = pickObj.primitive) !== null && _pickObj$primitive !== void 0 && _pickObj$primitive.text && (pickObj === null || pickObj === void 0 ? void 0 : (_pickObj$primitive2 = pickObj.primitive) === null || _pickObj$primitive2 === void 0 ? void 0 : _pickObj$primitive2.text.indexOf('距离')) !== -1) {\n //拾取到标签修改标签的像素偏移\n if (pickObj.primitive.text.indexOf('垂直') !== -1) {\n heightLabelPixelOffset.y = heightLabelPixelOffset.y < 0 ? 10 : -30;\n } else if (pickObj.primitive.text.indexOf('直线') !== -1) {\n straightLabelPixelOffset.y = straightLabelPixelOffset.y < 0 ? 10 : -30;\n } else if (pickObj.primitive.text.indexOf('水平') !== -1) {\n horizontalLabelPixelOffset.y = horizontalLabelPixelOffset.y < 0 ? 10 : -30;\n }\n }\n\n if (!movePosition) {\n return;\n }\n\n if (positions.length >= 2) {\n positions.pop();\n positions.pop();\n positions.pop();\n var cartographic = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromCartesian(movePosition);\n var height = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromCartesian(positions[0]).height;\n var verticalPoint = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromDegrees(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(cartographic.longitude), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(cartographic.latitude), height);\n positions.push(verticalPoint);\n positions.push(movePosition);\n positions.push(positions[0]); // 计算中点\n\n var centerPoint_1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.midpoint(positions[0], positions[1], new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n centerPoint_1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.midpoint(positions[1], centerPoint_1, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n var distanceValue = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getLengthValue(positions[0], positions[1]);\n var lineDistance = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].changeLengthValue(distanceValue); // 计算距离\n\n var lengthText_1 = '水平距离:' + lineDistance;\n var centerPoint_2 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.midpoint(positions[1], positions[2], new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n var distanceValue2 = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getLengthValue(positions[1], positions[2]);\n var lineDistance2 = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].changeLengthValue(distanceValue2); // 计算距离\n\n var lengthText_2 = '垂直距离:' + lineDistance2; // 计算中点\n\n var centerPoint_3 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.midpoint(positions[2], positions[3], new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n centerPoint_3 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.midpoint(positions[3], centerPoint_3, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n var distanceValue3 = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].getLengthValue(positions[2], positions[3]);\n var lineDistance3 = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].changeLengthValue(distanceValue3); // 计算距离\n\n var lengthText_3 = '直线距离:' + lineDistance3; // 绘制label标签和修改信息\n\n if (!labelEntity_1) {\n labelEntity_1 = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(centerPoint_1, lengthText_1, horizontalLabelPixelOffset);\n\n _this4._layer.entities.add(labelEntity_1);\n\n labelEntity_2 = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(centerPoint_2, lengthText_2, heightLabelPixelOffset);\n\n _this4._layer.entities.add(labelEntity_2);\n\n labelEntity_3 = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(centerPoint_3, lengthText_3, straightLabelPixelOffset);\n\n _this4._layer.entities.add(labelEntity_3);\n } else {\n labelEntity_1.position = centerPoint_1;\n labelEntity_1.label.text = lengthText_1;\n labelEntity_2.position = centerPoint_2;\n labelEntity_2.label.text = lengthText_2;\n labelEntity_3.position = centerPoint_3;\n labelEntity_3.label.text = lengthText_3;\n }\n } else {\n if (movePosition && movePosition.x) {\n var _verticalPoint = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(movePosition.x, movePosition.y, positions[0].z);\n\n positions.push(_verticalPoint);\n positions.push(movePosition);\n positions.push(positions[0]); // 绘制线\n\n _this4._layer.entities.add(_gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].dynamicLine(positions));\n }\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n } else {\n // 存储第二个点\n positions.pop();\n positions.pop();\n positions.pop();\n var cartographic = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromCartesian(cartesian);\n var height = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromCartesian(positions[0]).height;\n var verticalPoint = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromDegrees(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(cartographic.longitude), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(cartographic.latitude), height);\n positions.push(verticalPoint);\n positions.push(cartesian);\n positions.push(positions[0]);\n\n _this4._layer.entities.add(_gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].point(cartesian));\n\n _this4._layer.entities.add(_gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].staticLine(positions));\n\n _this4._mouseTip.setVisible(false);\n\n heightLabelPixelOffset.y = -30;\n straightLabelPixelOffset.y = -30;\n horizontalLabelPixelOffset.y = -30; // viewer.scene.globe.depthTestAgainstTerrain = false;\n\n _this4._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n _this4._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n\n _this4._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n }\n /**\n * 角度测量\n */\n\n }, {\n key: \"angleBetween\",\n value: function angleBetween() {\n var _this5 = this;\n\n var viewer = this._viewer;\n var positions = []; // 选点坐标组\n\n var offsetHeight = 0.2; // 选点高度偏移,避免被地面和建筑顶层平面遮挡\n\n var angle = 0; // 角度\n\n var labelEntity, towLine; // 标签实体,拖拽线\n\n var pixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, -25);\n var str = '<span>左键选择两个点</span>';\n\n this._mouseTip.setVisible(true);\n\n this._mouseTip.setMouseTip(str); // viewer.scene.globe.depthTestAgainstTerrain = true;\n\n\n this._handler.setInputAction(function (clickEvent) {\n var cartesian = viewer.scene.pickPosition(clickEvent.position); // 坐标\n\n if (!cartesian) {\n return;\n }\n\n cartesian = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].pickPositionHeightCorrection(cartesian, offsetHeight);\n\n _this5._layer.entities.add(_gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].point(cartesian)); // 存储第一个点\n\n\n if (positions.length === 0) {\n // 创建初始点\n positions.push(cartesian.clone(), cartesian.clone()); // 存两位数,后一位用作拖拽坐标占位\n\n towLine = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].dynamicLine(positions); // 添加直线\n\n _this5._layer.entities.add(towLine);\n } else if (positions.length === 2) {\n positions.push(cartesian.clone());\n var angleText = '角度:0°';\n labelEntity = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(cartesian, angleText, pixelOffset);\n\n _this5._layer.entities.add(labelEntity);\n } else {\n // viewer.scene.globe.depthTestAgainstTerrain = false;\n _this5._mouseTip.setVisible(false);\n\n _this5._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n _this5._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n }\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n this._handler.setInputAction(function (movement) {\n var mousePosition = movement.endPosition;\n var cartesian = viewer.scene.pickPosition(mousePosition);\n\n if (!cartesian) {\n return;\n }\n\n cartesian = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].pickPositionHeightCorrection(cartesian, offsetHeight);\n\n if (towLine && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(cartesian)) {\n // 在鼠标移动时,,修改当前线段的最后一位坐标\n positions[positions.length - 1] = cartesian;\n }\n\n if (labelEntity && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].defined(cartesian)) {\n var vector1 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.subtract(positions[1], positions[0], new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n var vector2 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.subtract(positions[1], positions[2], new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n var rad = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.angleBetween(vector1, vector2);\n angle = rad / (2 * Math.PI / 360);\n angle = angle.toFixed(2); // 修改角度label信息\n\n labelEntity.label.text = '角度:' + angle + '°';\n } // 加一个总长度\n\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n }\n /**\n * 标高测量\n */\n\n }, {\n key: \"elevation\",\n value: function elevation() {\n var _this6 = this;\n\n var viewer = this._viewer;\n var offsetHeight = 0.2;\n var pixelOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian2(0, -25);\n var str = '<span>左键选点,右键结束</span>';\n\n this._mouseTip.setVisible(true);\n\n this._mouseTip.setMouseTip(str); // viewer.scene.globe.depthTestAgainstTerrain = true;\n\n\n this._handler.setInputAction(function (clickEvent) {\n var cartesian = viewer.scene.pickPosition(clickEvent.position); // 坐标\n\n if (!cartesian) {\n return;\n }\n\n cartesian = _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_5__[\"default\"].pickPositionHeightCorrection(cartesian, offsetHeight);\n var cartographic = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromCartesian(cartesian);\n var height = cartographic.height.toFixed(2);\n\n _this6._layer.entities.add(_gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].point(cartesian));\n\n var heightText = '标高:' + height + '米';\n var label = _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_4__[\"default\"].label(cartesian, heightText, pixelOffset);\n\n _this6._layer.entities.add(label);\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n this._handler.setInputAction(function () {\n // viewer.scene.globe.depthTestAgainstTerrain = false;\n _this6._mouseTip.setVisible(false);\n\n _this6._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n\n _this6._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n }\n /**\n * 清除图元\n */\n\n }, {\n key: \"clearLayer\",\n value: function clearLayer() {\n this._layer.entities.removeAll();\n }\n /**\n * 功能实例销毁释放\n */\n\n }, {\n key: \"deactivate\",\n value: function deactivate() {\n this._mouseTip && this._mouseTip.removeTip();\n this._mouseTip = null;\n this._handler = this._handler && this._handler.destroy();\n\n this._viewer.dataSources.remove(this._layer);\n\n this._viewer = null;\n this._layer = null;\n window.onmousemove = null;\n }\n }]);\n\n return Measure;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Measure);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL21lYXN1cmUvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL21lYXN1cmUvaW5kZXguanM/MDA1MCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IExpdWNlXG4gKiBARGF0ZTogMjAyMi0wNC0yMSA5OjExXG4gKi9cblxuaW1wb3J0IHtDZXNpdW19IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7TW91c2VUaXB9IGZyb20gJ0BnZC1tb2R1bGVzL2RvbUNvbXBvbmVudCdcbmltcG9ydCBEcmF3R3JhcGhpY3MgZnJvbSAnQGdkLW1vZHVsZXMvZHJhdy9kcmF3R3JhcGhpY3MnXG5pbXBvcnQgTWF0aENhbGN1bGF0aW9uIGZyb20gJ0BnZC1tb2R1bGVzL21hdGgvbWF0aENhbGN1bGF0aW9uJ1xuXG5jbGFzcyBNZWFzdXJlIHtcbiAgY29uc3RydWN0b3Iodmlld2VyKSB7XG4gICAgdGhpcy5fdmlld2VyID0gdmlld2VyXG4gICAgdGhpcy5fbGF5ZXIgPSBuZXcgQ2VzaXVtLkN1c3RvbURhdGFTb3VyY2UoJ21lYXN1cmUtbGF5ZXInKVxuICAgIHRoaXMuX3ZpZXdlci5kYXRhU291cmNlcy5hZGQodGhpcy5fbGF5ZXIpXG4gICAgdGhpcy5faGFuZGxlciA9IG5ldyBDZXNpdW0uU2NyZWVuU3BhY2VFdmVudEhhbmRsZXIodGhpcy5fdmlld2VyLmNhbnZhcylcbiAgICB0aGlzLl9tb3VzZVRpcCA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TGFiZWxQaXhlbE9mZnNldC55ID0gaG9yaXpvbnRhbExhYmVsUGl4ZWxPZmZzZXQueSA8IDAgPyAxMCA6IC0zMFxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAoIW1vdmVQb3NpdGlvbikge1xuICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgICAgfVxuICAgICAgICAgIGlmIChwb3NpdGlvbnMubGVuZ3RoID49IDIpIHtcbiAgICAgICAgICAgIHBvc2l0aW9ucy5wb3AoKVxuICAgICAgICAgICAgcG9zaXRpb25zLnBvcCgpXG4gICAgICAgICAgICBwb3NpdGlvbnMucG9wKClcblxuICAgICAgICAgICAgbGV0IGNhcnRvZ3JhcGhpYyA9IENlc2l1bS5DYXJ0b2dyYXBoaWMuZnJvbUNhcnRlc2lhbihtb3ZlUG9zaXRpb24pXG4gICAgICAgICAgICBsZXQgaGVpZ2h0ID0gQ2VzaXVtLkNhcnRvZ3JhcGhpYy5mcm9tQ2FydGVzaWFuKFxuICAgICAgICAgICAgICBwb3NpdGlvbnNbMF1cbiAgICAgICAgICAgICkuaGVpZ2h0XG4gICAgICAgICAgICBsZXQgdmVydGljYWxQb2ludCA9IENlc2l1bS5DYXJ0ZXNpYW4zLmZyb21EZWdyZWVzKFxuICAgICAgICAgICAgICBDZXNpdW0uTWF0aC50b0RlZ3JlZXMoY2FydG9ncmFwaGljLmxvbmdpdHVkZSksXG4gICAgICAgICAgICAgIENlc2l1bS5NYXRoLnRvRGVncmVlcyhjYXJ0b2dyYXBoaWMubGF0aXR1ZGUpLFxuICAgICAgICAgICAgICBoZWlnaHRcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIHBvc2l0aW9ucy5wdXNoKHZlcnRpY2FsUG9pbnQpXG4gICAgICAgICAgICBwb3NpdGlvbnMucHVzaChtb3ZlUG9zaXRpb24pXG4gICAgICAgICAgICBwb3NpdGlvbnMucHVzaChwb3NpdGlvbnNbMF0pXG5cbiAgICAgICAgICAgIC8vIOiuoeeul+S4reeCuVxuICAgICAgICAgICAgbGV0IGNlbnRlclBvaW50XzEgPSBDZXNpdW0uQ2FydGVzaWFuMy5taWRwb2ludChcbiAgICAgICAgICAgICAgcG9zaXRpb25zWzBdLFxuICAgICAgICAgICAgICBwb3NpdGlvbnNbMV0sXG4gICAgICAgICAgICAgIG5ldyBDZXNpdW0uQ2FydGVzaWFuMygpXG4gICAgICAgICAgICApXG4gICAgICAgICAgICBjZW50ZXJQb2ludF8xID0gQ2VzaXVtLkNhcnRlc2lhbjMubWlkcG9pbnQoXG4gICAgICAgICAgICAgIHBvc2l0aW9uc1sxXSxcbiAgICAgICAgICAgICAgY2VudGVyUG9pbnRfMSxcbiAgICAgICAgICAgICAgbmV3IENlc2l1bS5DYXJ0ZXNpYW4zKClcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIGxldCBkaXN0YW5jZVZhbHVlID0gTWF0aENhbGN1bGF0aW9uLmdldExlbmd0aFZhbHVlKHBvc2l0aW9uc1swXSwgcG9zaXRpb25zWzFdKVxuICAgICAgICAgICAgbGV0IGxpbmVEaXN0YW5jZSA9IE1hdGhDYWxjdWxhdGlvbi5jaGFuZ2VMZW5ndGhWYWx1ZShkaXN0YW5jZVZhbHVlKVxuICAgICAgICAgICAgLy8g6K6h566X6Led56a7XG4gICAgICAgICAgICBsZXQgbGVuZ3RoVGV4dF8xID1cbiAgICAgICAgICAgICAgJ+awtOW5s+i3neemu++8micgKyBsaW5lRGlzdGFuY2VcblxuICAgICAgICAgICAgbGV0IGNlbnRlclBvaW50XzIgPSBDZXNpdW0uQ2FydGVzaWFuMy5taWRwb2ludChcbiAgICAgICAgICAgICAgcG9zaXRpb25zWzFdLFxuICAgICAgICAgICAgICBwb3NpdGlvbnNbMl0sXG4gICAgICAgICAgICAgIG5ldyBDZXNpdW0uQ2FydGVzaWFuMygpXG4gICAgICAgICAgICApXG4gICAgICAgICAgICBsZXQgZGlzdGFuY2VWYWx1ZTIgPSBNYXRoQ2FsY3VsYXRpb24uZ2V0TGVuZ3RoVmFsdWUocG9zaXRpb25zWzFdLCBwb3NpdGlvbnNbMl0pXG4gICAgICAgICAgICBsZXQgbGluZURpc3RhbmNlMiA9IE1hdGhDYWxjdWxhdGlvbi5jaGFuZ2VMZW5ndGhWYWx1ZShkaXN0YW5jZVZhbHVlMilcbiAgICAgICAgICAgIC8vIOiuoeeul+i3neemu1xuICAgICAgICAgICAgbGV0IGxlbmd0aFRleHRfMiA9XG4gICAgICAgICAgICAgICflnoLnm7Tot53nprvvvJonICsgbGluZURpc3RhbmNlMlxuXG4gICAgICAgICAgICAvLyDorqHnrpfkuK3ngrlcbiAgICAgICAgICAgIGxldCBjZW50ZXJQb2ludF8zID0gQ2VzaXVtLkNhcnRlc2lhbjMubWlkcG9pbnQoXG4gICAgICAgICAgICAgIHBvc2l0aW9uc1syXSxcbiAgICAgICAgICAgICAgcG9zaXRpb25zWzNdLFxuICAgICAgICAgICAgICBuZXcgQ2VzaXVtLkNhcnRlc2lhbjMoKVxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgY2VudGVyUG9pbnRfMyA9IENlc2l1bS5DYXJ0ZXNpYW4zLm1pZHBvaW50KFxuICAgICAgICAgICAgICBwb3NpdGlvbnNbM10sXG4gICAgICAgICAgICAgIGNlbnRlclBvaW50XzMsXG4gICAgICAgICAgICAgIG5ldyBDZXNpdW0uQ2FydGVzaWFuMygpXG4gICAgICAgICAgICApXG5cbiAgICAgICAgICAgIGxldCBkaXN0YW5jZVZhbHVlMyA9IE1hdGhDYWxjdWxhdGlvbi5nZXRMZW5ndGhWYWx1ZShwb3NpdGlvbnNbMl0sIHBvc2l0aW9uc1szXSlcbiAgICAgICAgICAgIGxldCBsaW5lRGlzdGFuY2UzID0gTWF0aENhbGN1bGF0aW9uLmNoYW5nZUxlbmd0aFZhbHVlKGRpc3RhbmNlVmFsdWUzKVxuICAgICAgICAgICAgLy8g6K6h566X6Led56a7XG4gICAgICAgICAgICBsZXQgbGVuZ3RoVGV4dF8zID1cbiAgICAgICAgICAgICAgJ+ebtOe6v+i3neemu++8micgKyBsaW5lRGlzdGFuY2UzXG5cbiAgICAgICAgICAgIC8vIOe7mOWItmxhYmVs5qCH562+5ZKM5L+u5pS55L+h5oGvXG4gICAgICAgICAgICBpZiAoIWxhYmVsRW50aXR5XzEpIHtcbiAgICAgICAgICAgICAgbGFiZWxFbnRpdHlfMSA9IERyYXdHcmFwaGljcy5sYWJlbChjZW50ZXJQb2ludF8xLCBsZW5ndGhUZXh0XzEsIGhvcml6b250YWxMYWJlbFBpeGVsT2Zmc2V0KVxuICAgICAgICAgICAgICB0aGlzLl9sYXllci5lbnRpdGllcy5hZGQobGFiZWxFbnRpdHlfMSlcbiAgICAgICAgICAgICAgbGFiZWxFbnRpdHlfMiA9IERyYXdHcmFwaGljcy5sYWJlbChjZW50ZXJQb2ludF8yLCBsZW5ndGhUZXh0XzIsIGhlaWdodExhYmVsUGl4ZWxPZmZzZXQpXG4gICAgICAgICAgICAgIHRoaXMuX2xheWVyLmVudGl0aWVzLmFkZChsYWJlbEVudGl0eV8yKVxuICAgICAgICAgICAgICBsYWJlbEVudGl0eV8zID0gRHJhd0dyYXBoaWNzLmxhYmVsKGNlbnRlclBvaW50XzMsIGxlbmd0aFRleHRfMywgc3RyYWlnaHRMYWJlbFBpeGVsT2Zmc2V0KVxuICAgICAgICAgICAgICB0aGlzLl9sYXllci5lbnRpdGllcy5hZGQobGFiZWxFbnRpdHlfMylcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGxhYmVsRW50aXR5XzEucG9zaXRpb24gPSBjZW50ZXJQb2ludF8xXG4gICAgICAgICAgICAgIGxhYmVsRW50aXR5XzEubGFiZWwudGV4dCA9IGxlbmd0aFRleHRfMVxuICAgICAgICAgICAgICBsYWJlbEVudGl0eV8yLnBvc2l0aW9uID0gY2VudGVyUG9pbnRfMlxuICAgICAgICAgICAgICBsYWJlbEVudGl0eV8yLmxhYmVsLnRleHQgPSBsZW5ndGhUZXh0XzJcbiAgICAgICAgICAgICAgbGFiZWxFbnRpdHlfMy5wb3NpdGlvbiA9IGNlbnRlclBvaW50XzNcbiAgICAgICAgICAgICAgbGFiZWxFbnRpdHlfMy5sYWJlbC50ZXh0ID0gbGVuZ3RoVGV4dF8zXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGlmIChtb3ZlUG9zaXRpb24gJiYgbW92ZVBvc2l0aW9uLngpIHtcbiAgICAgICAgICAgICAgbGV0IHZlcnRpY2FsUG9pbnQgPSBuZXcgQ2VzaXVtLkNhcnRlc2lhbjMoXG4gICAgICAgICAgICAgICAgbW92ZVBvc2l0aW9uLngsXG4gICAgICAgICAgICAgICAgbW92ZVBvc2l0aW9uLnksXG4gICAgICAgICAgICAgICAgcG9zaXRpb25zWzBdLnpcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICBwb3NpdGlvbnMucHVzaCh2ZXJ0aWNhbFBvaW50KVxuICAgICAgICAgICAgICBwb3NpdGlvbnMucHVzaChtb3ZlUG9zaXRpb24pXG4gICAgICAgICAgICAgIHBvc2l0aW9ucy5wdXNoKHBvc2l0aW9uc1swXSlcbiAgICAgICAgICAgICAgLy8g57uY5Yi257q/XG4gICAgICAgICAgICAgIHRoaXMuX2xheWVyLmVudGl0aWVzLmFkZChEcmF3R3JhcGhpY3MuZHluYW1pY0xpbmUocG9zaXRpb25zKSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sIENlc2l1bS5TY3JlZW5TcGFjZUV2ZW50VHlwZS5NT1VTRV9NT1ZFKVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgLy8g5a2Y5YKo56ys5LqM5Liq54K5XG4gICAgICAgIHBvc2l0aW9ucy5wb3AoKVxuICAgICAgICBwb3NpdGlvbnMucG9wKClcbiAgICAgICAgcG9zaXRpb25zLnBvcCgpXG4gICAgICAgIGxldCBjYXJ0b2dyYXBoaWMgP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FFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/measure/index.js\n");
- /***/ }),
- /***/ "./modules/namespace/index.js":
- /*!************************************!*\
- !*** ./modules/namespace/index.js ***!
- \************************************/
- /*! exports provided: Cesium */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Cesium\", function() { return Cesium; });\n/**\n * @Author: Liuce\n * @Date: 2022-04-13 11:34:42\n */\nvar getCesium = function getCesium() {\n var _GD$Namespace;\n\n return (_GD$Namespace = GD.Namespace) === null || _GD$Namespace === void 0 ? void 0 : _GD$Namespace.Cesium;\n};\n\nvar Cesium = getCesium();//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL25hbWVzcGFjZS9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvbmFtZXNwYWNlL2luZGV4LmpzPzA0MWUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBMaXVjZVxuICogQERhdGU6IDIwMjItMDQtMTMgMTE6MzQ6NDJcbiAqL1xuXG5jb25zdCBnZXRDZXNpdW0gPSAoKSA9PiB7XG4gIHJldHVybiBHRC5OYW1lc3BhY2U/LkNlc2l1bVxufVxuXG5leHBvcnQgY29uc3QgQ2VzaXVtID0gZ2V0Q2VzaXVtKClcblxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/namespace/index.js\n");
- /***/ }),
- /***/ "./modules/option/CameraOption.js":
- /*!****************************************!*\
- !*** ./modules/option/CameraOption.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _MouseMode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MouseMode */ \"./modules/option/MouseMode.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-21 15:33:52\n */\n\n\n\nvar CameraOption = /*#__PURE__*/function () {\n function CameraOption(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CameraOption);\n\n this._viewer = viewer;\n this._mouseMode = 0;\n }\n /**\n * @param min\n * @param max\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CameraOption, [{\n key: \"setPitchRange\",\n value: function setPitchRange(min, max) {\n var _this = this;\n\n var handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventHandler(this._viewer.scene.canvas);\n\n if (this._viewer.scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SceneMode.SCENE3D) {\n handler.setInputAction(function (movement) {\n handler.setInputAction(function (movement) {\n var enableTilt = true;\n var isUp = movement.endPosition.y < movement.startPosition.y;\n\n if (isUp && _this._viewer.camera.pitch > _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(max)) {\n enableTilt = false;\n } else if (!isUp && _this._viewer.camera.pitch < _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(min)) {\n enableTilt = false;\n } else {\n enableTilt = true;\n }\n\n _this._viewer.scene.screenSpaceCameraController.enableTilt = enableTilt;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n }, this._mouseMode === _MouseMode__WEBPACK_IMPORTED_MODULE_3__[\"default\"].LEFT_MIDDLE ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MIDDLE_DOWN : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_DOWN);\n handler.setInputAction(function (movement) {\n _this._viewer.scene.screenSpaceCameraController.enableTilt = true;\n handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n }, this._mouseMode === _MouseMode__WEBPACK_IMPORTED_MODULE_3__[\"default\"].LEFT_MIDDLE ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.MIDDLE_UP : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ScreenSpaceEventType.RIGHT_UP);\n }\n }\n /**\n *\n */\n\n }, {\n key: \"limitCameraToGround\",\n value: function limitCameraToGround() {\n var _this2 = this;\n\n this._viewer.camera.changed.addEventListener(function (frameState) {\n if (_this2._viewer.camera._suspendTerrainAdjustment && _this2._viewer.scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SceneMode.SCENE3D) {\n _this2._viewer.camera._suspendTerrainAdjustment = false;\n\n _this2._viewer.camera._adjustOrthographicFrustum(true);\n }\n });\n }\n /**\n * @param west\n * @param south\n * @param east\n * @param north\n */\n\n }, {\n key: \"setBounds\",\n value: function setBounds(west, south, east, north) {}\n /**\n *\n * @param mouseMode\n */\n\n }, {\n key: \"changeMouseMode\",\n value: function changeMouseMode(mouseMode) {\n this._mouseMode = mouseMode || _MouseMode__WEBPACK_IMPORTED_MODULE_3__[\"default\"].LEFT_MIDDLE;\n\n if (mouseMode === _MouseMode__WEBPACK_IMPORTED_MODULE_3__[\"default\"].LEFT_MIDDLE) {\n this._viewer.scene.screenSpaceCameraController.tiltEventTypes = [_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.MIDDLE_DRAG, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.PINCH, {\n eventType: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.LEFT_DRAG,\n modifier: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].KeyboardEventModifier.CTRL\n }, {\n eventType: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.RIGHT_DRAG,\n modifier: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].KeyboardEventModifier.CTRL\n }];\n this._viewer.scene.screenSpaceCameraController.zoomEventTypes = [_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.RIGHT_DRAG, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.WHEEL, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.PINCH];\n } else if (mouseMode === _MouseMode__WEBPACK_IMPORTED_MODULE_3__[\"default\"].LEFT_RIGHT) {\n this._viewer.scene.screenSpaceCameraController.tiltEventTypes = [_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.RIGHT_DRAG, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.PINCH, {\n eventType: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.LEFT_DRAG,\n modifier: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].KeyboardEventModifier.CTRL\n }, {\n eventType: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.RIGHT_DRAG,\n modifier: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].KeyboardEventModifier.CTRL\n }];\n this._viewer.scene.screenSpaceCameraController.zoomEventTypes = [_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.WHEEL, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CameraEventType.PINCH];\n }\n }\n }]);\n\n return CameraOption;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CameraOption);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL29wdGlvbi9DYW1lcmFPcHRpb24uanMuanMiLCJzb3V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QUFDQTtBQUFBO0FBSUE7QUFDQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFLQTtBQUVBO0FBQ0E7QUFDQTtBQUtBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUlBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFJQTtBQUNBO0FBRkE7QUFLQTtBQUNBO0FBRkE7QUFLQTtBQUtBO0FBQ0E7QUFJQTtBQUNBO0FBRkE7QUFLQTtBQUNBO0FBRkE7QUFLQTtBQUlBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/option/CameraOption.js\n");
- /***/ }),
- /***/ "./modules/option/MouseMode.js":
- /*!*************************************!*\
- !*** ./modules/option/MouseMode.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-10-29 20:10:10\n */\nvar MouseMode = {\n LEFT_MIDDLE: 0,\n LEFT_RIGHT: 1\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (MouseMode);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL29wdGlvbi9Nb3VzZU1vZGUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL29wdGlvbi9Nb3VzZU1vZGUuanM/Y2Q0ZiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0xMC0yOSAyMDoxMDoxMFxuICovXG5cbmxldCBNb3VzZU1vZGUgPSB7XG4gIExFRlRfTUlERExFOiAwLFxuICBMRUZUX1JJR0hUOiAxXG59XG5cbmV4cG9ydCBkZWZhdWx0IE1vdXNlTW9kZVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRkE7QUFLQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/option/MouseMode.js\n");
- /***/ }),
- /***/ "./modules/option/ViewerOption.js":
- /*!****************************************!*\
- !*** ./modules/option/ViewerOption.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Caven\n * @Date: 2019-12-30 09:24:37\n */\n\n\n\nvar ViewerOption = /*#__PURE__*/function () {\n function ViewerOption(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ViewerOption);\n\n this._viewer = viewer;\n this._options = {};\n\n this._init();\n }\n /**\n * Init viewer\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ViewerOption, [{\n key: \"_init\",\n value: function _init() {\n this._viewer.delegate.cesiumWidget.creditContainer.style.display = 'none';\n\n this._viewer.delegate.cesiumWidget.screenSpaceEventHandler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOUBLE_CLICK);\n\n this._viewer.scene.screenSpaceCameraController.maximumZoomDistance = 40489014.0;\n this._viewer.scene.backgroundColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.TRANSPARENT;\n\n this._viewer.delegate.imageryLayers.removeAll();\n }\n /**\n * Sets viewer option\n * @returns {ViewerOption}\n * @private\n */\n\n }, {\n key: \"_setViewerOption\",\n value: function _setViewerOption() {\n var _this$_options$shadow, _this$_options, _this$_options2;\n\n this._viewer.delegate.shadows = (_this$_options$shadow = (_this$_options = this._options) === null || _this$_options === void 0 ? void 0 : _this$_options.shadows) !== null && _this$_options$shadow !== void 0 ? _this$_options$shadow : false;\n this._viewer.delegate.resolutionScale = ((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.resolutionScale) || 1.0;\n return this;\n }\n /**\n * sets canvas option\n * @returns {ViewerOption}\n * @private\n */\n\n }, {\n key: \"_setCanvasOption\",\n value: function _setCanvasOption() {\n this._options.tabIndex && this._viewer.scene.canvas.setAttribute('tabIndex', this._options.tabIndex);\n return this;\n }\n /**\n * Sets scene option\n * @returns {ViewerOption}\n * @private\n */\n\n }, {\n key: \"_setSceneOption\",\n value: function _setSceneOption() {\n var _this$_options$showAt, _this$_options$showSu, _this$_options$showMo, _this$_options$enable;\n\n var scene = this._viewer.scene;\n scene.skyAtmosphere.show = (_this$_options$showAt = this._options.showAtmosphere) !== null && _this$_options$showAt !== void 0 ? _this$_options$showAt : true;\n scene.sun.show = (_this$_options$showSu = this._options.showSun) !== null && _this$_options$showSu !== void 0 ? _this$_options$showSu : true;\n scene.moon.show = (_this$_options$showMo = this._options.showMoon) !== null && _this$_options$showMo !== void 0 ? _this$_options$showMo : true;\n scene.postProcessStages.fxaa.enabled = (_this$_options$enable = this._options.enableFxaa) !== null && _this$_options$enable !== void 0 ? _this$_options$enable : false;\n\n if (scene.msaaSupported) {\n scene.msaaSamples = +this._options.msaaSamples || 1;\n }\n\n return this;\n }\n /**\n *\n * @returns {ViewerOption}\n * @private\n */\n\n }, {\n key: \"_setSkyBoxOption\",\n value: function _setSkyBoxOption() {\n if (!this._options.skyBox) {\n return this;\n }\n\n var skyBoxOption = this._options.skyBox;\n\n if (skyBoxOption instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].SkyBox) {\n this._viewer.scene.skyBox = skyBoxOption;\n } else {\n var _skyBoxOption$show;\n\n var skyBox = this._viewer.scene.skyBox;\n skyBox.show = (_skyBoxOption$show = skyBoxOption.show) !== null && _skyBoxOption$show !== void 0 ? _skyBoxOption$show : true;\n\n if (skyBoxOption.offsetAngle) {\n skyBox.offsetAngle = skyBoxOption.offsetAngle;\n }\n\n if (skyBoxOption !== null && skyBoxOption !== void 0 && skyBoxOption.sources) {\n skyBox.sources = skyBoxOption.sources;\n }\n }\n\n return this;\n }\n /**\n * Sets globe option\n * @returns {ViewerOption}\n * @private\n */\n\n }, {\n key: \"_setGlobeOption\",\n value: function _setGlobeOption() {\n var _globeOption$show, _globeOption$showGrou, _globeOption$enableLi, _globeOption$depthTes, _globeOption$enableLi2, _globeOption$transluc, _globeOption$transluc2, _globeOption$transluc3, _globeOption$transluc4, _globeOption$transluc5, _globeOption$transluc6;\n\n if (!this._options.globe) {\n return this;\n }\n\n var globe = this._viewer.scene.globe;\n var globeOption = this._options.globe;\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"Util\"].merge(globe, {\n show: (_globeOption$show = globeOption === null || globeOption === void 0 ? void 0 : globeOption.show) !== null && _globeOption$show !== void 0 ? _globeOption$show : true,\n showGroundAtmosphere: (_globeOption$showGrou = globeOption === null || globeOption === void 0 ? void 0 : globeOption.showGroundAtmosphere) !== null && _globeOption$showGrou !== void 0 ? _globeOption$showGrou : true,\n enableLighting: (_globeOption$enableLi = globeOption === null || globeOption === void 0 ? void 0 : globeOption.enableLighting) !== null && _globeOption$enableLi !== void 0 ? _globeOption$enableLi : false,\n depthTestAgainstTerrain: (_globeOption$depthTes = globeOption === null || globeOption === void 0 ? void 0 : globeOption.depthTestAgainstTerrain) !== null && _globeOption$depthTes !== void 0 ? _globeOption$depthTes : false,\n tileCacheSize: +(globeOption === null || globeOption === void 0 ? void 0 : globeOption.tileCacheSize) || 100,\n preloadSiblings: (_globeOption$enableLi2 = globeOption === null || globeOption === void 0 ? void 0 : globeOption.enableLighting) !== null && _globeOption$enableLi2 !== void 0 ? _globeOption$enableLi2 : false,\n baseColor: (globeOption === null || globeOption === void 0 ? void 0 : globeOption.baseColor) || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color(0, 0, 0.5, 1),\n terrainExaggeration: (globeOption === null || globeOption === void 0 ? void 0 : globeOption.terrainExaggeration) || 1,\n terrainExaggerationRelativeHeight: (globeOption === null || globeOption === void 0 ? void 0 : globeOption.terrainExaggerationRelativeHeight) || 0\n });\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"Util\"].merge(globe.translucency, {\n enabled: (_globeOption$transluc = globeOption === null || globeOption === void 0 ? void 0 : (_globeOption$transluc2 = globeOption.translucency) === null || _globeOption$transluc2 === void 0 ? void 0 : _globeOption$transluc2.enabled) !== null && _globeOption$transluc !== void 0 ? _globeOption$transluc : false,\n backFaceAlpha: +(globeOption === null || globeOption === void 0 ? void 0 : (_globeOption$transluc3 = globeOption.translucency) === null || _globeOption$transluc3 === void 0 ? void 0 : _globeOption$transluc3.backFaceAlpha) || 1,\n backFaceAlphaByDistance: globeOption === null || globeOption === void 0 ? void 0 : (_globeOption$transluc4 = globeOption.translucency) === null || _globeOption$transluc4 === void 0 ? void 0 : _globeOption$transluc4.backFaceAlphaByDistance,\n frontFaceAlpha: +(globeOption === null || globeOption === void 0 ? void 0 : (_globeOption$transluc5 = globeOption.translucency) === null || _globeOption$transluc5 === void 0 ? void 0 : _globeOption$transluc5.frontFaceAlpha) || 1,\n frontFaceAlphaByDistance: globeOption === null || globeOption === void 0 ? void 0 : (_globeOption$transluc6 = globeOption.translucency) === null || _globeOption$transluc6 === void 0 ? void 0 : _globeOption$transluc6.frontFaceAlphaByDistance\n });\n\n if (globeOption !== null && globeOption !== void 0 && globeOption.filterColor) {\n var filterColor = globeOption === null || globeOption === void 0 ? void 0 : globeOption.filterColor;\n var globeFS = globe._surfaceShaderSet.baseFragmentShaderSource;\n var oriShder = globeFS.sources[globeFS.sources.length - 1];\n globeFS.sources[globeFS.sources.length - 1] = oriShder.replace('gl_FragColor = finalColor;', \"gl_FragColor = finalColor * vec4(\".concat(filterColor.red.toFixed(2), \",\").concat(filterColor.green.toFixed(2), \",\").concat(filterColor.blue.toFixed(2), \",\").concat(filterColor.alpha.toFixed(2), \");\"));\n }\n\n return this;\n }\n /**\n *\n * @returns {ViewerOption}\n * @private\n */\n\n }, {\n key: \"_setCameraController\",\n value: function _setCameraController() {\n var _this$_options3, _cameraController$ena, _cameraController$ena2, _cameraController$ena3, _cameraController$ena4, _cameraController$ena5, _cameraController$ena6;\n\n if (!((_this$_options3 = this._options) !== null && _this$_options3 !== void 0 && _this$_options3.cameraController)) {\n return this;\n }\n\n var sscc = this._viewer.scene.screenSpaceCameraController;\n var cameraController = this._options.cameraController;\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"Util\"].merge(sscc, {\n enableInputs: (_cameraController$ena = cameraController === null || cameraController === void 0 ? void 0 : cameraController.enableInputs) !== null && _cameraController$ena !== void 0 ? _cameraController$ena : true,\n enableRotate: (_cameraController$ena2 = cameraController === null || cameraController === void 0 ? void 0 : cameraController.enableRotate) !== null && _cameraController$ena2 !== void 0 ? _cameraController$ena2 : true,\n enableTilt: (_cameraController$ena3 = cameraController === null || cameraController === void 0 ? void 0 : cameraController.enableTilt) !== null && _cameraController$ena3 !== void 0 ? _cameraController$ena3 : true,\n enableTranslate: (_cameraController$ena4 = cameraController === null || cameraController === void 0 ? void 0 : cameraController.enableTranslate) !== null && _cameraController$ena4 !== void 0 ? _cameraController$ena4 : true,\n enableZoom: (_cameraController$ena5 = cameraController === null || cameraController === void 0 ? void 0 : cameraController.enableZoom) !== null && _cameraController$ena5 !== void 0 ? _cameraController$ena5 : true,\n enableCollisionDetection: (_cameraController$ena6 = cameraController === null || cameraController === void 0 ? void 0 : cameraController.enableCollisionDetection) !== null && _cameraController$ena6 !== void 0 ? _cameraController$ena6 : true,\n minimumZoomDistance: +(cameraController === null || cameraController === void 0 ? void 0 : cameraController.minimumZoomDistance) || 1.0,\n maximumZoomDistance: +(cameraController === null || cameraController === void 0 ? void 0 : cameraController.maximumZoomDistance) || 40489014.0\n });\n return this;\n }\n /**\n * Sets options\n * @param options\n * @returns {ViewerOption}\n */\n\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n if (Object.keys(options).length === 0) {\n return this;\n }\n\n this._options = _objectSpread(_objectSpread({}, this._options), options);\n\n this._setViewerOption()._setCanvasOption()._setSceneOption()._setSkyBoxOption()._setGlobeOption()._setCameraController();\n\n return this;\n }\n }]);\n\n return ViewerOption;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ViewerOption);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL29wdGlvbi9WaWV3ZXJPcHRpb24uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL29wdGlvbi9WaWV3ZXJPcHRpb24uanM/MWUxOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAxOS0xMi0zMCAwOToyNDozN1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFV0aWwgfSBmcm9tICdAZ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UNBO0FBQ0E7OztBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQVRBO0FBV0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFJQTtBQUNBO0FBS0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/option/ViewerOption.js\n");
- /***/ }),
- /***/ "./modules/option/index.js":
- /*!*********************************!*\
- !*** ./modules/option/index.js ***!
- \*********************************/
- /*! exports provided: MouseMode, ViewerOption, CameraOption */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _MouseMode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MouseMode */ \"./modules/option/MouseMode.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"MouseMode\", function() { return _MouseMode__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _ViewerOption__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ViewerOption */ \"./modules/option/ViewerOption.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ViewerOption\", function() { return _ViewerOption__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _CameraOption__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CameraOption */ \"./modules/option/CameraOption.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CameraOption\", function() { return _CameraOption__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2020-03-05 22:00:17\n */\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL29wdGlvbi9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3B0aW9uL2luZGV4LmpzPzg2NWEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDMtMDUgMjI6MDA6MTdcbiAqL1xuXG5leHBvcnQgeyBkZWZhdWx0IGFzIE1vdXNlTW9kZSB9IGZyb20gJy4vTW91c2VNb2RlJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBWaWV3ZXJPcHRpb24gfSBmcm9tICcuL1ZpZXdlck9wdGlvbidcbmV4cG9ydCB7IGRlZmF1bHQgYXMgQ2FtZXJhT3B0aW9uIH0gZnJvbSAnLi9DYW1lcmFPcHRpb24nXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/option/index.js\n");
- /***/ }),
- /***/ "./modules/overlay/Overlay.js":
- /*!************************************!*\
- !*** ./modules/overlay/Overlay.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _OverlayType__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./OverlayType */ \"./modules/overlay/OverlayType.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-03 12:18:17\n */\n\n\n\n\n\n\nvar Overlay = /*#__PURE__*/function () {\n function Overlay() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Overlay);\n\n this._id = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"Util\"].uuid();\n this._bid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"Util\"].uuid(); // Business id\n\n this._delegate = undefined;\n this._layer = undefined;\n this._state = undefined;\n this._show = true;\n this._style = {};\n this._attr = {};\n this._allowDrillPicking = false;\n this._contextMenu = [];\n this._overlayEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"OverlayEvent\"]();\n\n this._overlayEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"OverlayEventType\"].ADD, this._onAdd, this);\n\n this._overlayEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"OverlayEventType\"].REMOVE, this._onRemove, this);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Overlay, [{\n key: \"overlayId\",\n get: function get() {\n return this._id;\n }\n }, {\n key: \"type\",\n get: function get() {\n return '';\n }\n }, {\n key: \"id\",\n get: function get() {\n return this._bid;\n },\n set: function set(id) {\n this._bid = id;\n return this;\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n },\n set: function set(show) {\n this._show = show;\n this._delegate && (this._delegate.show = this._show);\n return this;\n }\n }, {\n key: \"attr\",\n get: function get() {\n return this._attr;\n },\n set: function set(attr) {\n this._attr = attr;\n return this;\n }\n }, {\n key: \"allowDrillPicking\",\n get: function get() {\n return this._allowDrillPicking;\n },\n set: function set(allowDrillPicking) {\n this._allowDrillPicking = allowDrillPicking;\n return this;\n }\n }, {\n key: \"overlayEvent\",\n get: function get() {\n return this._overlayEvent;\n }\n }, {\n key: \"delegate\",\n get: function get() {\n return this._delegate;\n }\n }, {\n key: \"state\",\n get: function get() {\n return this._state;\n }\n }, {\n key: \"contextMenu\",\n get: function get() {\n return this._contextMenu;\n }\n /**\n * The hook for mount layer\n * Subclasses need to be overridden\n * @private\n */\n ,\n set: function set(menus) {\n this._contextMenu = menus;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {}\n /**\n * The hook for added\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_addedHook\",\n value: function _addedHook() {\n var _this$_layer;\n\n if (!this._delegate) {\n return false;\n }\n\n this._delegate.layerId = (_this$_layer = this._layer) === null || _this$_layer === void 0 ? void 0 : _this$_layer.layerId;\n this._delegate.overlayId = this._id;\n }\n /**\n * The hook for removed\n * Subclasses need to be overridden\n * @private\n */\n\n }, {\n key: \"_removedHook\",\n value: function _removedHook() {}\n /**\n * Add handler\n * @param layer\n * @private\n */\n\n }, {\n key: \"_onAdd\",\n value: function _onAdd(layer) {\n var _this$_layer2, _this$_layer2$delegat, _this$_layer3, _this$_layer3$delegat;\n\n if (!layer) {\n return;\n }\n\n this._layer = layer;\n this._mountedHook && this._mountedHook(); // for Entity\n\n if ((_this$_layer2 = this._layer) !== null && _this$_layer2 !== void 0 && (_this$_layer2$delegat = _this$_layer2.delegate) !== null && _this$_layer2$delegat !== void 0 && _this$_layer2$delegat.entities && this._delegate) {\n this._layer.delegate.entities.add(this._delegate);\n } // for Primitive\n else if ((_this$_layer3 = this._layer) !== null && _this$_layer3 !== void 0 && (_this$_layer3$delegat = _this$_layer3.delegate) !== null && _this$_layer3$delegat !== void 0 && _this$_layer3$delegat.add && this._delegate) {\n var collection = {\n point_primitive: this._layer.points,\n billboard_primitive: this._layer.billboards,\n bounce_billboard_primitive: this._layer.billboards,\n label_primitive: this._layer.labels,\n bounce_label_primitive: this._layer.labels,\n polyline_primitive: this._layer.polylines,\n cloud_primitive: this._layer.clouds\n };\n\n if (this.type && collection[this.type]) {\n this._delegate = collection[this.type].add(this._delegate);\n } else {\n this._layer.delegate.add(this._delegate);\n }\n }\n\n this._addedHook && this._addedHook();\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_4__[\"default\"].ADDED;\n }\n /**\n * Remove handler\n * @private\n */\n\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n var _this$_layer4, _this$_layer4$delegat, _this$_layer5, _this$_layer5$delegat;\n\n if (!this._layer || !this._delegate) {\n return;\n } // for Entity\n\n\n if ((_this$_layer4 = this._layer) !== null && _this$_layer4 !== void 0 && (_this$_layer4$delegat = _this$_layer4.delegate) !== null && _this$_layer4$delegat !== void 0 && _this$_layer4$delegat.entities) {\n this._layer.delegate.entities.remove(this._delegate);\n } // for Primitive\n else if ((_this$_layer5 = this._layer) !== null && _this$_layer5 !== void 0 && (_this$_layer5$delegat = _this$_layer5.delegate) !== null && _this$_layer5$delegat !== void 0 && _this$_layer5$delegat.remove) {\n var collection = {\n point_primitive: this._layer.points,\n billboard_primitive: this._layer.billboards,\n bounce_billboard_primitive: this._layer.billboards,\n label_primitive: this._layer.labels,\n bounce_label_primitive: this._layer.labels,\n polyline_primitive: this._layer.polylines,\n cloud_primitive: this._layer.clouds\n };\n\n if (this.type && collection[this.type]) {\n collection[this.type].remove(this._delegate);\n } else {\n this._layer.delegate.remove(this._delegate);\n }\n }\n\n this._removedHook && this._removedHook();\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_4__[\"default\"].REMOVED;\n }\n /**\n * Sets Text with Style\n * @param text\n * @param textStyle\n * @returns {Overlay}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n if (!this._delegate) {\n return this;\n }\n\n if (this._delegate instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Entity) {\n this._delegate.label = _objectSpread(_objectSpread({}, textStyle), {}, {\n text: text\n });\n }\n\n return this;\n }\n /**\n * Sets style\n * @param style\n * @returns {Overlay}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n return this;\n }\n /**\n * Removes from layer\n * @returns {Overlay}\n */\n\n }, {\n key: \"remove\",\n value: function remove() {\n if (this._layer) {\n this._layer.removeOverlay(this);\n }\n\n return this;\n }\n /**\n * adds to layer\n * @param layer\n * @returns {Overlay}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(layer) {\n if (layer && layer.addOverlay) {\n layer.addOverlay(this);\n }\n\n return this;\n }\n /**\n * Subscribe event\n * @param type\n * @param callback\n * @param context\n * @returns {Overlay}\n */\n\n }, {\n key: \"on\",\n value: function on(type, callback, context) {\n this._overlayEvent.on(type, callback, context || this);\n\n return this;\n }\n /**\n * Unsubscribe event\n * @param type\n * @param callback\n * @param context\n * @returns {Overlay}\n */\n\n }, {\n key: \"off\",\n value: function off(type, callback, context) {\n this._overlayEvent.off(type, callback, context || this);\n\n return this;\n }\n /**\n * Trigger subscription event\n * @param type\n * @param params\n * @returns {Overlay}\n */\n\n }, {\n key: \"fire\",\n value: function fire(type, params) {\n this._overlayEvent.fire(type, params);\n\n return this;\n }\n /**\n *\n * @param type\n */\n\n }], [{\n key: \"registerType\",\n value: function registerType(type) {\n if (type) {\n _OverlayType__WEBPACK_IMPORTED_MODULE_7__[\"default\"][type.toLocaleUpperCase()] = type.toLocaleLowerCase();\n }\n }\n /**\n *\n * @param type\n * @returns {*|undefined}\n */\n\n }, {\n key: \"getOverlayType\",\n value: function getOverlayType(type) {\n return _OverlayType__WEBPACK_IMPORTED_MODULE_7__[\"default\"][type.toLocaleUpperCase()] || undefined;\n }\n }]);\n\n return Overlay;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Overlay);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvT3ZlcmxheS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS9PdmVybGF5LmpzP2YyZDYiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDEtMDMgMTI6MTg6MTdcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgeyBVdGlsIH0gZnJvbSAnQGdkLW1vZHVsZXMvdXRpbHMnXG5pbXBvcnQgeyBPdmVybGF5RXZlbnRUeXBlLCBPdmVybGF5RXZlbnQgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCBPdmVybGF5VHlwZSBmcm9tICcuL092ZXJsYXlUeXBlJ1xuXG5jbGFzcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgdGhpcy5faWQgPSBVdGlsLnV1aWQoKVxuICAgIHRoaXMuX2JpZCA9IFV0aWwudXVpZCgpIC8vIEJ1c2luZXNzIGlkXG4gICAgdGhpcy5fZGVsZWdhdGUgPSB1bmRlZmluZWRcbiAgICB0aGlzLl9sYXllciA9IHVuZGVmaW5lZFxuICAgIHRoaXMuX3N0YXRlID0gdW5kZWZpbmVkXG4gICAgdGhpcy5fc2hvdyA9IHRydWVcbiAgICB0aGlzLl9zdHlsZSA9IHt9XG4gICAgdGhpcy5fYXR0ciA9IHt9XG4g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QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/Overlay.js\n");
- /***/ }),
- /***/ "./modules/overlay/OverlayType.js":
- /*!****************************************!*\
- !*** ./modules/overlay/OverlayType.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-08-15 11:57:02\n */\nvar OverlayType = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (OverlayType);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvT3ZlcmxheVR5cGUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL292ZXJsYXkvT3ZlcmxheVR5cGUuanM/MGY4MCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0xNSAxMTo1NzowMlxuICovXG5cbmxldCBPdmVybGF5VHlwZSA9IHt9XG5cbmV4cG9ydCBkZWZhdWx0IE92ZXJsYXlUeXBlXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/OverlayType.js\n");
- /***/ }),
- /***/ "./modules/overlay/custom/CustomBillboard.js":
- /*!***************************************************!*\
- !*** ./modules/overlay/custom/CustomBillboard.js ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-12 21:44:24\n */\n\n\n\n\n\n\n\nvar CustomBillboard = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CustomBillboard, _Overlay);\n\n var _super = _createSuper(CustomBillboard);\n\n function CustomBillboard(position, icon) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CustomBillboard);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n billboard: {}\n });\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n _this._icon = icon;\n _this._size = [32, 32];\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(CustomBillboard, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('custom_billboard');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"icon\",\n get: function get() {\n return this._icon;\n },\n set: function set(icon) {\n this._icon = icon;\n this._delegate.billboard.image = this._icon;\n return this;\n }\n }, {\n key: \"size\",\n get: function get() {\n return this._size;\n },\n set: function set(size) {\n if (!Array.isArray(size)) {\n throw new Error('CustomBillboard: the size invalid');\n }\n\n this._size = size;\n this._delegate.billboard.width = this._size[0] || 32;\n this._delegate.billboard.height = this._size[1] || 32;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.icon = this._icon;\n this.size = this._size;\n }\n /**\n * Sets label\n * @param text\n * @param textStyle\n * @returns {CustomBillboard}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n this._delegate.label = _objectSpread(_objectSpread({}, textStyle), {}, {\n text: text\n });\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {CustomBillboard}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['image'] && delete style['width'] && delete style['height'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.billboard, style);\n return this;\n }\n /**\n * Sets VLine style\n * @param style\n * @returns {CustomBillboard}\n */\n\n }, {\n key: \"setVLine\",\n value: function setVLine() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (this._position.alt > 0 && !this._delegate.polyline) {\n var position = this._position.copy();\n\n position.alt = style.height || 0;\n this._delegate.polyline = _objectSpread(_objectSpread({}, style), {}, {\n positions: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ArrayToCartesianArray([position, this._position])\n });\n }\n\n return this;\n }\n /**\n * @param {*} radius\n * @param {*} style\n * @param {*} rotateAmount\n */\n\n }, {\n key: \"setBottomCircle\",\n value: function setBottomCircle(radius) {\n var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var rotateAmount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var stRotation = 0;\n var amount = rotateAmount;\n this._delegate.ellipse = _objectSpread(_objectSpread({}, style), {}, {\n semiMajorAxis: radius,\n semiMinorAxis: radius,\n stRotation: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n stRotation += amount;\n\n if (stRotation >= 360 || stRotation <= -360) {\n stRotation = 0;\n }\n\n return stRotation;\n })\n });\n return this;\n }\n }]);\n\n return CustomBillboard;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('custom_billboard');\n/* harmony default export */ __webpack_exports__[\"default\"] = (CustomBillboard);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvY3VzdG9tL0N1c3RvbUJpbGxib2FyZC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFj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BQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFGQTtBQU9BO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBVkE7QUFZQTtBQUNBOzs7O0FBcElBO0FBQ0E7QUFzSUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/custom/CustomBillboard.js\n");
- /***/ }),
- /***/ "./modules/overlay/custom/CustomLabel.js":
- /*!***********************************************!*\
- !*** ./modules/overlay/custom/CustomLabel.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-07-28 18:37:59\n */\n\n\n\n\n\n\n\nvar CustomLabel = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(CustomLabel, _Overlay);\n\n var _super = _createSuper(CustomLabel);\n\n function CustomLabel(position, text) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, CustomLabel);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n label: {}\n });\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n _this._text = text;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(CustomLabel, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('custom_label');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"text\",\n get: function get() {\n return this._text;\n },\n set: function set(text) {\n this._text = text;\n this._delegate.label.text = this._text;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.text = this._text;\n }\n /**\n *\n * @param {*} style\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['text'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.label, style);\n return this;\n }\n /**\n * Sets VLine style\n * @param style\n * @returns {CustomLabel}\n */\n\n }, {\n key: \"setVLine\",\n value: function setVLine() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (this._position.alt > 0 && !this._delegate.polyline) {\n var position = this._position.copy();\n\n position.alt = style.height || 0;\n this._delegate.polyline = _objectSpread(_objectSpread({}, style), {}, {\n positions: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ArrayToCartesianArray([position, this._position])\n });\n }\n\n return this;\n }\n /**\n * Sets bottom circle\n * @param radius\n * @param style\n * @param rotateAmount\n * @returns {CustomLabel}\n */\n\n }, {\n key: \"setBottomCircle\",\n value: function setBottomCircle(radius) {\n var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var rotateAmount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var stRotation = 0;\n var amount = rotateAmount;\n this._delegate.ellipse = _objectSpread(_objectSpread({}, style), {}, {\n semiMajorAxis: radius,\n semiMinorAxis: radius,\n stRotation: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n stRotation += amount;\n\n if (stRotation >= 360 || stRotation <= -360) {\n stRotation = 0;\n }\n\n return stRotation;\n })\n });\n return this;\n }\n }]);\n\n return CustomLabel;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('custom_label');\n/* harmony default export */ __webpack_exports__[\"default\"] = (CustomLabel);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvY3VzdG9tL0N1c3RvbUxhYmVsLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L2N1c3RvbS9DdXN0b21MYWJlbC5qcz83ZDA5Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA3LTI4IDE4OjM3OjU5XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IE92ZXJsYXkgZnJvbSAnLi4vT3ZlcmxheSdcblxuY2xhc3MgQ3VzdG9tTGFiZWwgZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IocG9zaXRpb24sIHRleHQpIHtcbiAgICBzdXBlcigpXG4gICAgdGhpcy5fZGVsZWdhdGUgPSBuZXcgQ2VzaXVtLkVudGl0eSh7IGxhYmVsOiB7fSB9KVxuICAgIHRoaXMuX3Bvc2l0aW9uID0gUGFyc2UucGFyc2VQ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Ts7O0FBWUE7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFGQTtBQU9BO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQVZBO0FBWUE7QUFDQTs7OztBQXZHQTtBQUNBO0FBeUdBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/custom/CustomLabel.js\n");
- /***/ }),
- /***/ "./modules/overlay/dynamic/DynamicBillboard.js":
- /*!*****************************************************!*\
- !*** ./modules/overlay/dynamic/DynamicBillboard.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n/* harmony import */ var _DynamicOverlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DynamicOverlay */ \"./modules/overlay/dynamic/DynamicOverlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-05-05 09:16:35\n */\n\n\n\n\n\n\n\n\nvar DynamicBillboard = /*#__PURE__*/function (_DynamicOverlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(DynamicBillboard, _DynamicOverlay);\n\n var _super = _createSuper(DynamicBillboard);\n\n function DynamicBillboard(position, icon) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DynamicBillboard);\n\n _this = _super.call(this);\n _this._posistion = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._icon = icon;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n billboard: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DynamicBillboard, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('dynamic_billboard');\n }\n }, {\n key: \"icon\",\n get: function get() {\n return this._icon;\n },\n set: function set(icon) {\n this._icon = icon;\n this._delegate.billboard.image = this._icon;\n return this;\n }\n }, {\n key: \"size\",\n get: function get() {\n return this._size;\n },\n set: function set(size) {\n if (!Array.isArray(size)) {\n throw new Error('DynamicBillboard: the size invalid');\n }\n\n this._size = size;\n this._delegate.billboard.width = this._size[0] || 32;\n this._delegate.billboard.height = this._size[1] || 32;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this._sampledPosition.forwardExtrapolationType = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ExtrapolationType.HOLD;\n this._startTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now();\n\n this._sampledPosition.addSample(this._startTime, _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._posistion));\n\n this._delegate.position = this._sampledPosition;\n\n this._cache.push(this._startTime);\n /**\n * initialize the Overlay parameter\n */\n\n\n this.icon = this._icon;\n this.size = this._size;\n }\n /**\n *\n * @param style\n * @returns {DynamicBillboard}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['image'] && delete style['width'] && delete style['height'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.billboard, style);\n return this;\n }\n }]);\n\n return DynamicBillboard;\n}(_DynamicOverlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('dynamic_billboard');\n/* harmony default export */ __webpack_exports__[\"default\"] = (DynamicBillboard);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvZHluYW1pYy9EeW5hbWljQmlsbGJvYXJkLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L2R5bmFtaWMvRHluYW1pY0JpbGxib2FyZC5qcz80ODE3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA1LTA1IDA5OjE2OjM1XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ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O0FBREE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXRFQTtBQUNBO0FBd0VBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/dynamic/DynamicBillboard.js\n");
- /***/ }),
- /***/ "./modules/overlay/dynamic/DynamicModel.js":
- /*!*************************************************!*\
- !*** ./modules/overlay/dynamic/DynamicModel.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n/* harmony import */ var _DynamicOverlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DynamicOverlay */ \"./modules/overlay/dynamic/DynamicOverlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-05-05 09:16:35\n */\n\n\n\n\n\n\n\n\nvar DynamicModel = /*#__PURE__*/function (_DynamicOverlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(DynamicModel, _DynamicOverlay);\n\n var _super = _createSuper(DynamicModel);\n\n function DynamicModel(position, modelUrl) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DynamicModel);\n\n _this = _super.call(this);\n _this._posistion = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._modelUrl = modelUrl;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n model: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DynamicModel, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('dynamic_model');\n }\n }, {\n key: \"modelUrl\",\n get: function get() {\n return this._modelUrl;\n },\n set: function set(modelUrl) {\n this._modelUrl = modelUrl;\n this._delegate.model.uri = this._modelUrl;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this._sampledPosition.forwardExtrapolationType = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ExtrapolationType.HOLD;\n this._startTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now();\n\n this._sampledPosition.addSample(this._startTime, _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._posistion));\n\n this._delegate.position = this._sampledPosition;\n this._delegate.orientation = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].VelocityOrientationProperty(this._sampledPosition);\n\n this._cache.push(this._startTime);\n /**\n * initialize the Overlay parameter\n */\n\n\n this.modelUrl = this._modelUrl;\n }\n /**\n * Sets style\n * @param style\n * @returns {DynamicModel}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['uri'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.model, style);\n return this;\n }\n }]);\n\n return DynamicModel;\n}(_DynamicOverlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('dynamic_model');\n/* harmony default export */ __webpack_exports__[\"default\"] = (DynamicModel);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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E7QUFDQTtBQUNBO0FBREE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUExREE7QUFDQTtBQTREQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/dynamic/DynamicModel.js\n");
- /***/ }),
- /***/ "./modules/overlay/dynamic/DynamicOverlay.js":
- /*!***************************************************!*\
- !*** ./modules/overlay/dynamic/DynamicOverlay.js ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-05-05 09:16:35\n */\n\n\n\n\n\n\nvar DynamicOverlay = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(DynamicOverlay, _Overlay);\n\n var _super = _createSuper(DynamicOverlay);\n\n function DynamicOverlay() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DynamicOverlay);\n\n _this = _super.call(this);\n _this._startTime = undefined;\n _this._lastTime = undefined;\n _this._sampledPosition = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SampledPositionProperty();\n _this._cache = [];\n _this._maxCacheSize = 10;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DynamicOverlay, [{\n key: \"maxCacheSize\",\n get: function get() {\n return this._maxCacheSize;\n },\n set: function set(maxCacheSize) {\n this._maxCacheSize = maxCacheSize;\n return this;\n }\n }, {\n key: \"position\",\n get: function get() {\n return _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianToWGS84(this._sampledPosition.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now()));\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_removePosition\",\n value: function _removePosition() {\n if (this._cache.length > this._maxCacheSize) {\n var start = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.addSeconds(this._cache[0], -0.2, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate());\n var stop = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.addSeconds(this._cache[this._cache.length - this._maxCacheSize], -0.2, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate());\n\n this._sampledPosition.removeSamples(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].TimeInterval({\n start: start,\n stop: stop\n }));\n\n this._cache.splice(0, this._cache.length - this._maxCacheSize);\n }\n }\n /**\n *\n * @param position\n * @param interval\n * @returns {DynamicOverlay}\n */\n\n }, {\n key: \"addPosition\",\n value: function addPosition(position, interval) {\n this._removePosition();\n\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now();\n var time = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.addSeconds(now, interval, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate());\n\n this._sampledPosition.addSample(time, _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ToCartesian(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position)));\n\n this._lastTime = time;\n\n this._cache.push(this._lastTime);\n\n return this;\n }\n /**\n *\n * @param content\n * @returns {DynamicOverlay}\n */\n\n }, {\n key: \"bindDom\",\n value: function bindDom(content) {\n return this;\n }\n }]);\n\n return DynamicOverlay;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DynamicOverlay);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvZHluYW1pYy9EeW5hbWljT3ZlcmxheS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS9keW5hbWljL0R5bmFtaWNPdmVybGF5LmpzP2E5MzAiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDUtMDUgMDk6MTY6MzVcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgT3ZlcmxheSBmcm9tICcuLi9PdmVybGF5J1xuXG5jbGFzcyBEeW5hbWljT3ZlcmxheSBleHRlbmRzIE92ZXJsYXkge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpXG4gICAgdGhpcy5fc3RhcnRUaW1lID0gdW5kZWZpbmVkXG4gICAgdGhpcy5fbGFzdFRpbWUgPSB1bmRlZmluZWRcbiAgICB0aGlzLl9zYW1wbGVkUG9zaXRpb24gPSBuZXcgQ2VzaXVtLlNhbXBsZWRQb3NpdGlvblByb3BlcnR5KClcbiAgICB0aGlzLl9jYWNoZSA9IFtdXG4gICAgdGhpcy5fbWF4Q2FjaGVTaXplID0gMTBcbiAgICB0aGlzLl9zdGF0ZSA9IFN0YXRlLklO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taWNPdmVybGF5XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFQQTtBQVFBO0FBQ0E7OztBQU1BO0FBQ0E7QUFDQTtBQVBBO0FBQ0E7QUFDQTtBQUNBOzs7QUFNQTtBQUNBO0FBR0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFLQTtBQUNBO0FBSUE7QUFFQTtBQUNBO0FBRkE7QUFDQTtBQUlBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFJQTtBQUNBO0FBR0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7Ozs7QUFsRkE7QUFDQTtBQW9GQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/dynamic/DynamicOverlay.js\n");
- /***/ }),
- /***/ "./modules/overlay/html/DivIcon.js":
- /*!*****************************************!*\
- !*** ./modules/overlay/html/DivIcon.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-12 21:46:22\n */\n\n\n\n\n\n\n\n\n\nvar DivIcon = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DivIcon, _Overlay);\n\n var _super = _createSuper(DivIcon);\n\n function DivIcon(position, content) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DivIcon);\n\n _this = _super.call(this);\n _this._delegate = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"DomUtil\"].create('div', 'div-icon');\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n\n _this._delegate.setAttribute('id', _this._id);\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(_this._delegate.style, {\n position: 'absolute',\n top: '0',\n left: '0'\n });\n _this.content = content;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DivIcon, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_13__[\"default\"].getOverlayType('div_icon');\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n },\n set: function set(show) {\n this._show = show;\n this._delegate.style.visibility = this._show ? 'visible' : 'hidden';\n return this;\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n return this;\n }\n }, {\n key: \"content\",\n get: function get() {\n return this._delegate.childNodes || [];\n }\n /**\n * Updates style\n * @param windowCoord\n * @param distance\n * @param isFront\n * @private\n */\n ,\n set: function set(content) {\n if (content && typeof content === 'string') {\n this._delegate.innerHTML = content;\n } else if (content && content instanceof Element) {\n while (this._delegate.hasChildNodes()) {\n this._delegate.removeChild(this._delegate.firstChild);\n }\n\n this._delegate.appendChild(content);\n }\n\n return this;\n }\n }, {\n key: \"_updateStyle\",\n value: function _updateStyle(windowCoord, distance, isFront) {\n if (!this._show || !windowCoord) {\n return;\n } // set translate\n\n\n var x = windowCoord.x - this._delegate.offsetWidth / 2;\n var y = windowCoord.y - this._delegate.offsetHeight / 2;\n\n if (this._style.position === 'topleft') {\n x = windowCoord.x - this._delegate.offsetWidth;\n y = windowCoord.y - this._delegate.offsetHeight;\n } else if (this._style.position === 'topright') {\n x = windowCoord.x;\n y = windowCoord.y - this._delegate.offsetHeight;\n } else if (this._style.position === 'bottomleft') {\n x = windowCoord.x - this._delegate.offsetWidth;\n y = windowCoord.y;\n } else if (this._style.position === 'bottomright') {\n x = windowCoord.x;\n y = windowCoord.y;\n }\n\n var translate3d = \"translate3d(\".concat(Math.round(x), \"px,\").concat(Math.round(y), \"px, 0)\"); // set scale\n\n var scale3d = 'scale3d(1,1,1)';\n var scaleByDistance = this._style.scaleByDistance;\n\n if (distance && scaleByDistance) {\n var near = scaleByDistance.near || 0.0;\n var nearValue = scaleByDistance.nearValue || 1.0;\n var far = scaleByDistance.far || Number.MAX_VALUE;\n var farValue = scaleByDistance.farValue || 0.0;\n var f = distance / far;\n\n if (distance < near) {\n scale3d = \"scale3d(\".concat(nearValue, \",\").concat(nearValue, \",1)\");\n } else if (distance > far) {\n scale3d = \"scale3d(\".concat(farValue, \",\").concat(farValue, \",1)\");\n } else {\n var scale = farValue + f * (nearValue - farValue);\n scale3d = \"scale3d(\".concat(scale, \",\").concat(scale, \",1)\");\n }\n } // set condition\n\n\n var isDisplay = true;\n var distanceDisplayCondition = this._style.distanceDisplayCondition;\n\n if (distance && distanceDisplayCondition) {\n isDisplay = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_11__[\"isBetween\"])(distance, distanceDisplayCondition.near || 0.0, distanceDisplayCondition.far || Number.MAX_VALUE);\n } // update style\n\n\n this._delegate.style.transform = \"\".concat(translate3d, \" \").concat(scale3d);\n this._delegate.style.visibility = isDisplay && isFront ? 'visible' : 'hidden';\n }\n /**\n *\n * @param layer\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onAdd\",\n value: function _onAdd(layer) {\n var _this2 = this;\n\n this._layer = layer;\n\n this._layer.delegate.appendChild(this._delegate);\n\n var params = {\n layer: layer,\n overlay: this,\n position: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_12__[\"Transform\"].transformWGS84ToCartesian(this._position)\n };\n\n this._delegate.addEventListener('click', function () {\n _this2._overlayEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_10__[\"MouseEventType\"].CLICK, params);\n });\n\n this._delegate.addEventListener('mouseover', function () {\n _this2._overlayEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_10__[\"MouseEventType\"].MOUSE_OVER, params);\n });\n\n this._delegate.addEventListener('mouseout', function () {\n _this2._overlayEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_10__[\"MouseEventType\"].MOUSE_OUT, params);\n });\n\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].ADDED;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n if (this._layer) {\n this._layer.delegate.removeChild(this._delegate);\n\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].REMOVED;\n }\n }\n /**\n * Sets text\n * @param text\n * @param textStyle\n * @returns {DivIcon}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets style\n * @param style\n * @returns {DivIcon}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n this._style.className && _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"DomUtil\"].addClass(this._delegate, this._style.className);\n return this;\n }\n /**\n * Parse from entity\n * @param entity\n * @param content\n * @returns {DivIcon}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity, content) {\n var divIcon;\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_12__[\"Transform\"].transformCartesianToWGS84(entity.position.getValue(now));\n divIcon = new DivIcon(position, content);\n\n if (entity.billboard) {\n var _entity$properties;\n\n divIcon.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n }\n\n return divIcon;\n }\n }]);\n\n return DivIcon;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_13__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_13__[\"default\"].registerType('div_icon');\n/* harmony default export */ __webpack_exports__[\"default\"] = (DivIcon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvaHRtbC9EaXZJY29uLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L2h0bWwvRGl2SWNvbi5qcz83YTE4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAyLTEyIDIxOjQ2OjIyXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgRG9tVXRpbCwgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgTW91c2VFdmVudFR5cGUgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCB7IGlzQmV0d2VlbiB9IGZyb20gJ0BnZC1tb2R1bGVzL21hdGgnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgT3ZlcmxheSBmcm9tICcuLi9PdmVybGF5J1xuXG5jbGFzcyBEaXZJY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tBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFHQTtBQUNBO0FBQUE7QUFDQTs7OztBQTlNQTtBQUNBO0FBZ05BO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/html/DivIcon.js\n");
- /***/ }),
- /***/ "./modules/overlay/index.js":
- /*!**********************************!*\
- !*** ./modules/overlay/index.js ***!
- \**********************************/
- /*! exports provided: OverlayType, Overlay, CustomBillboard, CustomLabel, DynamicBillboard, DynamicModel, DivIcon, Model, Tileset, AttackArrow, DoubleArrow, FineArrow, GatheringPlace, TailedAttackArrow, BillboardPrimitive, BounceBillboardPrimitive, BounceLabelPrimitive, CloudPrimitive, DiffuseWallPrimitive, ElecEllipsoidPrimitive, FlowLinePrimitive, LabelPrimitive, ModelCollectionPrimitive, ModelPrimitive, PointPrimitive, PolylinePrimitive, ScanCirclePrimitive, TrailLinePrimitive, VideoPrimitive, WaterPrimitive, Billboard, Box, Circle, Corridor, Cylinder, Ellipse, Ellipsoid, Label, Plane, Point, Polygon, Polyline, PolylineVolume, Rectangle, Wall */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _OverlayType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OverlayType */ \"./modules/overlay/OverlayType.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"OverlayType\", function() { return _OverlayType__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Overlay */ \"./modules/overlay/Overlay.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Overlay\", function() { return _Overlay__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _custom_CustomBillboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./custom/CustomBillboard */ \"./modules/overlay/custom/CustomBillboard.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CustomBillboard\", function() { return _custom_CustomBillboard__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _custom_CustomLabel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./custom/CustomLabel */ \"./modules/overlay/custom/CustomLabel.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CustomLabel\", function() { return _custom_CustomLabel__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _dynamic_DynamicBillboard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dynamic/DynamicBillboard */ \"./modules/overlay/dynamic/DynamicBillboard.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DynamicBillboard\", function() { return _dynamic_DynamicBillboard__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n/* harmony import */ var _dynamic_DynamicModel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dynamic/DynamicModel */ \"./modules/overlay/dynamic/DynamicModel.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DynamicModel\", function() { return _dynamic_DynamicModel__WEBPACK_IMPORTED_MODULE_5__[\"default\"]; });\n\n/* harmony import */ var _html_DivIcon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./html/DivIcon */ \"./modules/overlay/html/DivIcon.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DivIcon\", function() { return _html_DivIcon__WEBPACK_IMPORTED_MODULE_6__[\"default\"]; });\n\n/* harmony import */ var _model_Model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./model/Model */ \"./modules/overlay/model/Model.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Model\", function() { return _model_Model__WEBPACK_IMPORTED_MODULE_7__[\"default\"]; });\n\n/* harmony import */ var _model_Tileset__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./model/Tileset */ \"./modules/overlay/model/Tileset.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Tileset\", function() { return _model_Tileset__WEBPACK_IMPORTED_MODULE_8__[\"default\"]; });\n\n/* harmony import */ var _plot_AttackArrow__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./plot/AttackArrow */ \"./modules/overlay/plot/AttackArrow.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"AttackArrow\", function() { return _plot_AttackArrow__WEBPACK_IMPORTED_MODULE_9__[\"default\"]; });\n\n/* harmony import */ var _plot_DoubleArrow__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./plot/DoubleArrow */ \"./modules/overlay/plot/DoubleArrow.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DoubleArrow\", function() { return _plot_DoubleArrow__WEBPACK_IMPORTED_MODULE_10__[\"default\"]; });\n\n/* harmony import */ var _plot_FineArrow__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./plot/FineArrow */ \"./modules/overlay/plot/FineArrow.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"FineArrow\", function() { return _plot_FineArrow__WEBPACK_IMPORTED_MODULE_11__[\"default\"]; });\n\n/* harmony import */ var _plot_GatheringPlace__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./plot/GatheringPlace */ \"./modules/overlay/plot/GatheringPlace.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"GatheringPlace\", function() { return _plot_GatheringPlace__WEBPACK_IMPORTED_MODULE_12__[\"default\"]; });\n\n/* harmony import */ var _plot_TailedAttackArrow__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./plot/TailedAttackArrow */ \"./modules/overlay/plot/TailedAttackArrow.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TailedAttackArrow\", function() { return _plot_TailedAttackArrow__WEBPACK_IMPORTED_MODULE_13__[\"default\"]; });\n\n/* harmony import */ var _primitive_BillboardPrimitive_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./primitive/BillboardPrimitive.js */ \"./modules/overlay/primitive/BillboardPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"BillboardPrimitive\", function() { return _primitive_BillboardPrimitive_js__WEBPACK_IMPORTED_MODULE_14__[\"default\"]; });\n\n/* harmony import */ var _primitive_BounceBillboardPrimitive__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./primitive/BounceBillboardPrimitive */ \"./modules/overlay/primitive/BounceBillboardPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"BounceBillboardPrimitive\", function() { return _primitive_BounceBillboardPrimitive__WEBPACK_IMPORTED_MODULE_15__[\"default\"]; });\n\n/* harmony import */ var _primitive_BounceLabelPrimitive__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./primitive/BounceLabelPrimitive */ \"./modules/overlay/primitive/BounceLabelPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"BounceLabelPrimitive\", function() { return _primitive_BounceLabelPrimitive__WEBPACK_IMPORTED_MODULE_16__[\"default\"]; });\n\n/* harmony import */ var _primitive_CloudPrimitive__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./primitive/CloudPrimitive */ \"./modules/overlay/primitive/CloudPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CloudPrimitive\", function() { return _primitive_CloudPrimitive__WEBPACK_IMPORTED_MODULE_17__[\"default\"]; });\n\n/* harmony import */ var _primitive_DiffuseWallPrimitive_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./primitive/DiffuseWallPrimitive.js */ \"./modules/overlay/primitive/DiffuseWallPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DiffuseWallPrimitive\", function() { return _primitive_DiffuseWallPrimitive_js__WEBPACK_IMPORTED_MODULE_18__[\"default\"]; });\n\n/* harmony import */ var _primitive_ElecEllipsoidPrimitive__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./primitive/ElecEllipsoidPrimitive */ \"./modules/overlay/primitive/ElecEllipsoidPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ElecEllipsoidPrimitive\", function() { return _primitive_ElecEllipsoidPrimitive__WEBPACK_IMPORTED_MODULE_19__[\"default\"]; });\n\n/* harmony import */ var _primitive_FlowLinePrimitive__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./primitive/FlowLinePrimitive */ \"./modules/overlay/primitive/FlowLinePrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"FlowLinePrimitive\", function() { return _primitive_FlowLinePrimitive__WEBPACK_IMPORTED_MODULE_20__[\"default\"]; });\n\n/* harmony import */ var _primitive_LabelPrimitive__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./primitive/LabelPrimitive */ \"./modules/overlay/primitive/LabelPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LabelPrimitive\", function() { return _primitive_LabelPrimitive__WEBPACK_IMPORTED_MODULE_21__[\"default\"]; });\n\n/* harmony import */ var _primitive_ModelCollectionPrimitive__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./primitive/ModelCollectionPrimitive */ \"./modules/overlay/primitive/ModelCollectionPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ModelCollectionPrimitive\", function() { return _primitive_ModelCollectionPrimitive__WEBPACK_IMPORTED_MODULE_22__[\"default\"]; });\n\n/* harmony import */ var _primitive_ModelPrimitive__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./primitive/ModelPrimitive */ \"./modules/overlay/primitive/ModelPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ModelPrimitive\", function() { return _primitive_ModelPrimitive__WEBPACK_IMPORTED_MODULE_23__[\"default\"]; });\n\n/* harmony import */ var _primitive_PointPrimitive_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./primitive/PointPrimitive.js */ \"./modules/overlay/primitive/PointPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PointPrimitive\", function() { return _primitive_PointPrimitive_js__WEBPACK_IMPORTED_MODULE_24__[\"default\"]; });\n\n/* harmony import */ var _primitive_PolylinePrimitive_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./primitive/PolylinePrimitive.js */ \"./modules/overlay/primitive/PolylinePrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PolylinePrimitive\", function() { return _primitive_PolylinePrimitive_js__WEBPACK_IMPORTED_MODULE_25__[\"default\"]; });\n\n/* harmony import */ var _primitive_ScanCirclePrimitive__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./primitive/ScanCirclePrimitive */ \"./modules/overlay/primitive/ScanCirclePrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ScanCirclePrimitive\", function() { return _primitive_ScanCirclePrimitive__WEBPACK_IMPORTED_MODULE_26__[\"default\"]; });\n\n/* harmony import */ var _primitive_TrailLinePrimitive__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./primitive/TrailLinePrimitive */ \"./modules/overlay/primitive/TrailLinePrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TrailLinePrimitive\", function() { return _primitive_TrailLinePrimitive__WEBPACK_IMPORTED_MODULE_27__[\"default\"]; });\n\n/* harmony import */ var _primitive_VideoPrimitive__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./primitive/VideoPrimitive */ \"./modules/overlay/primitive/VideoPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"VideoPrimitive\", function() { return _primitive_VideoPrimitive__WEBPACK_IMPORTED_MODULE_28__[\"default\"]; });\n\n/* harmony import */ var _primitive_WaterPrimitive__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./primitive/WaterPrimitive */ \"./modules/overlay/primitive/WaterPrimitive.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"WaterPrimitive\", function() { return _primitive_WaterPrimitive__WEBPACK_IMPORTED_MODULE_29__[\"default\"]; });\n\n/* harmony import */ var _vector_Billboard__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./vector/Billboard */ \"./modules/overlay/vector/Billboard.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Billboard\", function() { return _vector_Billboard__WEBPACK_IMPORTED_MODULE_30__[\"default\"]; });\n\n/* harmony import */ var _vector_Box__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./vector/Box */ \"./modules/overlay/vector/Box.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Box\", function() { return _vector_Box__WEBPACK_IMPORTED_MODULE_31__[\"default\"]; });\n\n/* harmony import */ var _vector_Circle__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./vector/Circle */ \"./modules/overlay/vector/Circle.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Circle\", function() { return _vector_Circle__WEBPACK_IMPORTED_MODULE_32__[\"default\"]; });\n\n/* harmony import */ var _vector_Corridor__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./vector/Corridor */ \"./modules/overlay/vector/Corridor.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Corridor\", function() { return _vector_Corridor__WEBPACK_IMPORTED_MODULE_33__[\"default\"]; });\n\n/* harmony import */ var _vector_Cylinder__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./vector/Cylinder */ \"./modules/overlay/vector/Cylinder.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Cylinder\", function() { return _vector_Cylinder__WEBPACK_IMPORTED_MODULE_34__[\"default\"]; });\n\n/* harmony import */ var _vector_Ellipse__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./vector/Ellipse */ \"./modules/overlay/vector/Ellipse.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Ellipse\", function() { return _vector_Ellipse__WEBPACK_IMPORTED_MODULE_35__[\"default\"]; });\n\n/* harmony import */ var _vector_Ellipsoid__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./vector/Ellipsoid */ \"./modules/overlay/vector/Ellipsoid.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Ellipsoid\", function() { return _vector_Ellipsoid__WEBPACK_IMPORTED_MODULE_36__[\"default\"]; });\n\n/* harmony import */ var _vector_Label__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./vector/Label */ \"./modules/overlay/vector/Label.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Label\", function() { return _vector_Label__WEBPACK_IMPORTED_MODULE_37__[\"default\"]; });\n\n/* harmony import */ var _vector_Plane__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./vector/Plane */ \"./modules/overlay/vector/Plane.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Plane\", function() { return _vector_Plane__WEBPACK_IMPORTED_MODULE_38__[\"default\"]; });\n\n/* harmony import */ var _vector_Point__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./vector/Point */ \"./modules/overlay/vector/Point.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Point\", function() { return _vector_Point__WEBPACK_IMPORTED_MODULE_39__[\"default\"]; });\n\n/* harmony import */ var _vector_Polygon__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./vector/Polygon */ \"./modules/overlay/vector/Polygon.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Polygon\", function() { return _vector_Polygon__WEBPACK_IMPORTED_MODULE_40__[\"default\"]; });\n\n/* harmony import */ var _vector_Polyline__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./vector/Polyline */ \"./modules/overlay/vector/Polyline.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Polyline\", function() { return _vector_Polyline__WEBPACK_IMPORTED_MODULE_41__[\"default\"]; });\n\n/* harmony import */ var _vector_PolylineVolume__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./vector/PolylineVolume */ \"./modules/overlay/vector/PolylineVolume.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PolylineVolume\", function() { return _vector_PolylineVolume__WEBPACK_IMPORTED_MODULE_42__[\"default\"]; });\n\n/* harmony import */ var _vector_Rectangle__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./vector/Rectangle */ \"./modules/overlay/vector/Rectangle.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Rectangle\", function() { return _vector_Rectangle__WEBPACK_IMPORTED_MODULE_43__[\"default\"]; });\n\n/* harmony import */ var _vector_Wall__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./vector/Wall */ \"./modules/overlay/vector/Wall.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Wall\", function() { return _vector_Wall__WEBPACK_IMPORTED_MODULE_44__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2020-04-15 20:57:22\n */\n\n\n/**\n * custom\n */\n\n\n\n/**\n * dynamic\n */\n\n\n\n/**\n * html\n */\n\n\n/**\n * model\n */\n\n\n\n/**\n * plot\n */\n\n\n\n\n\n\n/**\n * primitive\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * vector\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL292ZXJsYXkvaW5kZXguanM/N2I0OCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wNC0xNSAyMDo1NzoyMlxuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgT3ZlcmxheVR5cGUgfSBmcm9tICcuL092ZXJsYXlUeXBlJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBPdmVybGF5IH0gZnJvbSAnLi9PdmVybGF5J1xuXG4vKipcbiAqIGN1c3RvbVxuICovXG5leHBvcnQgeyBkZWZhdWx0IGFzIEN1c3RvbUJpbGxib2FyZCB9IGZyb20gJy4vY3VzdG9tL0N1c3RvbUJpbGxib2FyZCdcbmV4cG9ydCB7IGRlZmF1bHQgYXMgQ3VzdG9tTGFiZWwgfSBmcm9tICcuL2N1c3RvbS9DdXN0b21MYWJlbCdcblxuLyoqXG4gKiBkeW5hbWljXG4gKi9cbmV4c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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/index.js\n");
- /***/ }),
- /***/ "./modules/overlay/model/Model.js":
- /*!****************************************!*\
- !*** ./modules/overlay/model/Model.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-06 20:03:25\n */\n\n\n\n\n\n\n\nvar Model = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Model, _Overlay);\n\n var _super = _createSuper(Model);\n\n function Model(position, modelUrl) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Model);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n model: {}\n });\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n _this._modelUrl = modelUrl;\n _this._rotateAmount = 0;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Model, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('model');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._position);\n\n if (this._rotateAmount === 0) {\n this._delegate.orientation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Transforms.headingPitchRollQuaternion(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._position), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(this._position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(this._position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(this._position.roll)));\n }\n\n return this;\n }\n }, {\n key: \"modelUrl\",\n get: function get() {\n return this._modelUrl;\n },\n set: function set(modelUrl) {\n this._modelUrl = modelUrl;\n this._delegate.model.uri = this._modelUrl;\n return this;\n }\n }, {\n key: \"rotateAmount\",\n get: function get() {\n return this._rotateAmount;\n },\n set: function set(amount) {\n var _this2 = this;\n\n this._rotateAmount = +amount;\n this._delegate.orientation = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n _this2._position.heading += _this2._rotateAmount;\n\n if (_this2._position.heading >= 360 || _this2._position.heading <= -360) {\n _this2._position.heading = 0;\n }\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Transforms.headingPitchRollQuaternion(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(_this2._position), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(_this2._position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(_this2._position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(_this2._position.roll)));\n });\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.modelUrl = this._modelUrl;\n }\n /**\n * Sets style\n * @param style\n * @returns {Model}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['uri'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.model, style);\n return this;\n }\n /**\n * Parse from entity\n * @param entity\n * @param modelUrl\n * @returns {Model}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity, modelUrl) {\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformCartesianToWGS84(entity.position.getValue(now));\n var model = new Model(position, modelUrl);\n model.attr = _objectSpread({}, entity.properties.getValue(now));\n return model;\n }\n }]);\n\n return Model;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('model');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Model);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvbW9kZWwvTW9kZWwuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL292ZXJsYXkvbW9kZWwvTW9kZWwuanM/Yzk2NyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMS0wNiAyMDowMzoyNVxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBQYXJzZSBmcm9tICdAZ2QtbW9kdWxlcy9wYXJzZS9QYXJzZSdcbmltcG9ydCB7IFV0aWwgfSBmcm9tICdAZ2QtbW9kdWxlcy91dGlscydcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCBPdmVybGF5IGZyb20gJy4uL092ZXJsYXknXG5cbmNsYXNzIE1vZGVsIGV4dGVuZHMgT3ZlcmxheSB7XG4gIGNvbnN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tBQUNBO0FBQ0E7OztBQXlCQTtBQUNBO0FBQ0E7QUFyQkE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBUUE7QUFDQTtBQUNBOzs7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBR0E7QUFDQTs7OztBQS9HQTtBQUNBO0FBaUhBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/model/Model.js\n");
- /***/ }),
- /***/ "./modules/overlay/model/Tileset.js":
- /*!******************************************!*\
- !*** ./modules/overlay/model/Tileset.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-07 20:51:56\n */\n\n\n\n\n\nvar Tileset = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Tileset, _Overlay);\n\n var _super = _createSuper(Tileset);\n\n function Tileset(url) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Tileset);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cesium3DTileset(_objectSpread(_objectSpread({}, options), {}, {\n url: url\n }));\n _this._tileVisibleCallback = undefined;\n _this._properties = undefined;\n _this._fragmentShader = undefined;\n _this._replaceFS = false;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Tileset, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getOverlayType('tileset');\n }\n }, {\n key: \"readyPromise\",\n get: function get() {\n return this._delegate.readyPromise;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindVisibleEvent\",\n value: function _bindVisibleEvent() {\n this._tileVisibleCallback && this._tileVisibleCallback();\n this._tileVisibleCallback = this._delegate.tileVisible.addEventListener(this._updateTile, this);\n }\n /**\n * Updates tile\n * @param tile\n * @private\n */\n\n }, {\n key: \"_updateTile\",\n value: function _updateTile(tile) {\n var _this2 = this;\n\n var content = tile.content;\n var model = content._model; // sets properties\n\n var _loop = function _loop(i) {\n var feature = content.getFeature(i);\n\n if (_this2._properties && _this2._properties.length) {\n _this2._properties.forEach(function (property) {\n if (feature.hasProperty(property['key']) && feature.getProperty(property['key']) === property['keyValue']) {\n feature.setProperty(property['propertyName'], property['propertyValue']);\n }\n });\n }\n };\n\n for (var i = 0; i < content.featuresLength; i++) {\n _loop(i);\n } // sets fragmentShader\n\n\n if (this._fragmentShader && model && model._sourcePrograms && model._rendererResources) {\n Object.keys(model._sourcePrograms).forEach(function (key) {\n var program = model._sourcePrograms[key];\n var sourceShaders = model._rendererResources.sourceShaders;\n\n if (_this2._replaceFS) {\n sourceShaders[program.fragmentShader] = _this2._fragmentShader;\n } else {\n var oldFS = sourceShaders[program.fragmentShader];\n sourceShaders[program.fragmentShader] = oldFS.replace('gl_FragColor = vec4(color, 1.0);\\n}', \"gl_FragColor = vec4(color, 1.0);\\n \".concat(_this2._fragmentShader, \"\\n}\\n \"));\n }\n });\n model._shouldRegenerateShaders = true;\n }\n }\n /**\n * Sets position\n * @param position\n * @returns {Tileset}\n */\n\n }, {\n key: \"setPosition\",\n value: function setPosition(position) {\n position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n this.readyPromise.then(function (tileset) {\n var modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.fromDegrees(position.lng, position.lat, position.alt));\n var rotation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.fromRotationTranslation(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix3.fromHeadingPitchRoll(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(position.roll))));\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.multiply(modelMatrix, rotation, modelMatrix);\n tileset.root.transform = modelMatrix;\n });\n return this;\n }\n /**\n *\n * @param heading\n * @param pitch\n * @param roll\n * @returns {Tileset}\n */\n\n }, {\n key: \"setHeadingPitchRoll\",\n value: function setHeadingPitchRoll(heading, pitch, roll) {\n this.readyPromise.then(function (tileset) {\n var modelMatrix = tileset.root.transform;\n var rotation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.fromRotationTranslation(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix3.fromHeadingPitchRoll(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(heading || 0), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(pitch || 0), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(roll || 0))));\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.multiply(modelMatrix, rotation, modelMatrix);\n tileset.root.transform = modelMatrix;\n });\n return this;\n }\n /**\n *\n * @param {*} text\n * @param {*} textStyle\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Clamps To Ground\n * @returns {Tileset}\n */\n\n }, {\n key: \"clampToGround\",\n value: function clampToGround() {\n this.readyPromise.then(function (tileset) {\n var center = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartographic.fromCartesian(tileset.boundingSphere.center);\n var surface = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.fromRadians(center.longitude, center.latitude, center.height);\n var offset = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.fromRadians(center.longitude, center.latitude, 0);\n var translation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.subtract(offset, surface, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3());\n tileset.modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.fromTranslation(translation);\n });\n return this;\n }\n /**\n * Sets height\n * @param height\n * @param isAbsolute\n * @returns {Tileset}\n */\n\n }, {\n key: \"setHeight\",\n value: function setHeight(height) {\n var isAbsolute = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n this.readyPromise.then(function (tileset) {\n var center = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartographic.fromCartesian(tileset.boundingSphere.center);\n var surface = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.fromRadians(center.longitude, center.latitude, center.height);\n var offset = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.fromRadians(center.longitude, center.latitude, isAbsolute ? height : center.height + height);\n var translation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.subtract(offset, surface, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3());\n tileset.modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.fromTranslation(translation);\n });\n return this;\n }\n /**\n * Sets scale\n * @param scale\n * @returns {Tileset}\n */\n\n }, {\n key: \"setScale\",\n value: function setScale(scale) {\n this.readyPromise.then(function (tileset) {\n var modelMatrix = tileset.root.transform;\n\n if (scale > 0 && scale !== 1) {\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.multiplyByUniformScale(modelMatrix, scale, modelMatrix);\n }\n\n tileset.root.transform = modelMatrix;\n });\n return this;\n }\n /**\n * Sets feature property\n * @param properties\n * @returns {Tileset}\n */\n\n }, {\n key: \"setProperties\",\n value: function setProperties(properties) {\n this._properties = properties;\n\n this._bindVisibleEvent();\n\n return this;\n }\n /**\n * Sets feature FS\n * @param fragmentShader\n * @returns {Tileset}\n */\n\n }, {\n key: \"setCustomShader\",\n value: function setCustomShader(fragmentShader) {\n this._replaceFS = true;\n this._fragmentShader = fragmentShader;\n\n this._bindVisibleEvent();\n\n return this;\n }\n /**\n *\n * @param fragmentShader\n * @return {Tileset}\n */\n\n }, {\n key: \"replaceFS\",\n value: function replaceFS(fragmentShader) {\n this._replaceFS = true;\n this._fragmentShader = fragmentShader;\n\n this._bindVisibleEvent();\n\n return this;\n }\n /**\n *\n * @param fragmentShader\n * @return {Tileset}\n */\n\n }, {\n key: \"appendFS\",\n value: function appendFS(fragmentShader) {\n this._replaceFS = false;\n this._fragmentShader = fragmentShader;\n\n this._bindVisibleEvent();\n\n return this;\n }\n /**\n * Sets style\n * @param style\n * @returns {Tileset}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (style && style instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cesium3DTileStyle) {\n this._style = style;\n this._delegate.style = this._style;\n }\n\n return this;\n }\n }]);\n\n return Tileset;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('tileset');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Tileset);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvbW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/plot/AttackArrow.js":
- /*!*********************************************!*\
- !*** ./modules/overlay/plot/AttackArrow.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 21:45:14\n */\n\n\n\n\n\n\nvar HALF_PI = Math.PI / 2;\n\nvar AttackArrow = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(AttackArrow, _Overlay);\n\n var _super = _createSuper(AttackArrow);\n\n function AttackArrow(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AttackArrow);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n polygon: {}\n });\n _this.headHeightFactor = 0.18;\n _this.headWidthFactor = 0.3;\n _this.neckHeightFactor = 0.85;\n _this.neckWidthFactor = 0.15;\n _this.headTailFactor = 0.8;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AttackArrow, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('attack_arrow');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.polygon.hierarchy = this._getHierarchy();\n return this;\n }\n }, {\n key: \"_getArrowHeadPoints\",\n value: function _getArrowHeadPoints(points, tailLeft, tailRight) {\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(points);\n var headHeight = len * this.headHeightFactor;\n var headPnt = points[points.length - 1];\n len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(headPnt, points[points.length - 2]);\n var tailWidth = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(tailLeft, tailRight);\n\n if (headHeight > tailWidth * this.headTailFactor) {\n headHeight = tailWidth * this.headTailFactor;\n }\n\n var headWidth = headHeight * this.headWidthFactor;\n var neckWidth = headHeight * this.neckWidthFactor;\n headHeight = headHeight > len ? len : headHeight;\n var neckHeight = headHeight * this.neckHeightFactor;\n var headEndPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(points[points.length - 2], headPnt, 0, headHeight, true);\n var neckEndPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(points[points.length - 2], headPnt, 0, neckHeight, true);\n var headLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(headPnt, headEndPnt, HALF_PI, headWidth, false);\n var headRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(headPnt, headEndPnt, HALF_PI, headWidth, true);\n var neckLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(headPnt, neckEndPnt, HALF_PI, neckWidth, false);\n var neckRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(headPnt, neckEndPnt, HALF_PI, neckWidth, true);\n return [neckLeft, headLeft, headPnt, headRight, neckRight];\n }\n }, {\n key: \"_getArrowBodyPoints\",\n value: function _getArrowBodyPoints(points, neckLeft, neckRight, tailWidthFactor) {\n var allLen = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].wholeDistance(points);\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(points);\n var tailWidth = len * tailWidthFactor;\n var neckWidth = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(neckLeft, neckRight);\n var widthDif = (tailWidth - neckWidth) / 2;\n var tempLen = 0;\n var leftBodyPnts = [];\n var rightBodyPnts = [];\n\n for (var i = 1; i < points.length - 1; i++) {\n var angle = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getAngleOfThreePoints(points[i - 1], points[i], points[i + 1]) / 2;\n tempLen += _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(points[i - 1], points[i]);\n var w = (tailWidth / 2 - tempLen / allLen * widthDif) / Math.sin(angle);\n var left = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(points[i - 1], points[i], Math.PI - angle, w, true);\n var right = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(points[i - 1], points[i], angle, w, false);\n leftBodyPnts.push(left);\n rightBodyPnts.push(right);\n }\n\n return leftBodyPnts.concat(rightBodyPnts);\n }\n }, {\n key: \"_getHierarchy\",\n value: function _getHierarchy() {\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePolygonCoordToArray(this._positions)[0];\n var tailLeft = pnts[0];\n var tailRight = pnts[1];\n\n if (_gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].isClockWise(pnts[0], pnts[1], pnts[2])) {\n tailLeft = pnts[1];\n tailRight = pnts[0];\n }\n\n var midTail = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].mid(tailLeft, tailRight);\n var bonePnts = [midTail].concat(pnts.slice(2)); // 计算箭头\n\n var headPnts = this._getArrowHeadPoints(bonePnts, tailLeft, tailRight);\n\n var neckLeft = headPnts[0];\n var neckRight = headPnts[4];\n var tailWidthFactor = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(tailLeft, tailRight) / _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(bonePnts); // 计算箭身\n\n var bodyPnts = this._getArrowBodyPoints(bonePnts, neckLeft, neckRight, tailWidthFactor); // 整合\n\n\n var count = bodyPnts.length;\n var leftPnts = [tailLeft].concat(bodyPnts.slice(0, count / 2));\n leftPnts.push(neckLeft);\n var rightPnts = [tailRight].concat(bodyPnts.slice(count / 2, count));\n rightPnts.push(neckRight);\n leftPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getQBSplinePoints(leftPnts);\n rightPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getQBSplinePoints(rightPnts);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(leftPnts.concat(headPnts, rightPnts.reverse()))));\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.positions = this._positions;\n }\n /**\n *\n * @param text\n * @param textStyle\n * @returns {AttackArrow}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {AttackArrow}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.polygon, style);\n return this;\n }\n }]);\n\n return AttackArrow;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('attack_arrow');\n/* harmony default export */ __webpack_exports__[\"default\"] = (AttackArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcGxvdC9BdHRhY2tBcnJvdy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS9wbG90L0F0dGFja0Fycm93LmpzP2Y4OTAiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDgtMjkgMjE6NDU6MTRcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBVdGlsLCBQbG90VXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IE92ZXJsYXkgZnJvbSAnLi4vT3ZlcmxheSdcblxuY29uc3QgSEFMRl9QSSA9IE1hdGguUEkgLyAyXG5cbmNsYXNzIEF0dGFja0Fycm93IGV4dGVuZHMgT3ZlcmxheSB7XG4gIGNvbnN0cnVjdG9yKHBvc2l0aW9ucykge1xuICAgIHN1cGVyKClcbiAgICB0aGlzLl9wb3NpdGlvbnMgPSBQYXJzZS5wYXJzZVBvc2l0a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TtBQU1BO0FBQ0E7QUFDQTtBQU9BO0FBT0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFLQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUEvTEE7QUFDQTtBQWlNQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/plot/AttackArrow.js\n");
- /***/ }),
- /***/ "./modules/overlay/plot/DoubleArrow.js":
- /*!*********************************************!*\
- !*** ./modules/overlay/plot/DoubleArrow.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 22:15:47\n */\n\n\n\n\n\n\nvar HALF_PI = Math.PI / 2;\n\nvar DoubleArrow = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(DoubleArrow, _Overlay);\n\n var _super = _createSuper(DoubleArrow);\n\n function DoubleArrow(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DoubleArrow);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n polygon: {}\n });\n _this.headHeightFactor = 0.25;\n _this.headWidthFactor = 0.3;\n _this.neckHeightFactor = 0.85;\n _this.neckWidthFactor = 0.15;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DoubleArrow, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('double_arrow');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.polygon.hierarchy = this._getHierarchy();\n return this;\n }\n }, {\n key: \"_getArrowPoints\",\n value: function _getArrowPoints(pnt1, pnt2, pnt3, clockWise) {\n var midPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].mid(pnt1, pnt2);\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(midPnt, pnt3);\n var midPnt1 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnt3, midPnt, 0, len * 0.3, true);\n var midPnt2 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnt3, midPnt, 0, len * 0.5, true);\n midPnt1 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(midPnt, midPnt1, HALF_PI, len / 5, clockWise);\n midPnt2 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(midPnt, midPnt2, HALF_PI, len / 4, clockWise);\n var points = [midPnt, midPnt1, midPnt2, pnt3]; // 计算箭头部分\n\n var arrowPnts = this._getArrowHeadPoints(points);\n\n var neckLeftPoint = arrowPnts[0];\n var neckRightPoint = arrowPnts[4]; // 计算箭身部分\n\n var tailWidthFactor = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(pnt1, pnt2) / _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(points) / 2;\n\n var bodyPnts = this._getArrowBodyPoints(points, neckLeftPoint, neckRightPoint, tailWidthFactor);\n\n var n = bodyPnts.length;\n var lPoints = bodyPnts.slice(0, n / 2);\n var rPoints = bodyPnts.slice(n / 2, n);\n lPoints.push(neckLeftPoint);\n rPoints.push(neckRightPoint);\n lPoints = lPoints.reverse();\n lPoints.push(pnt2);\n rPoints = rPoints.reverse();\n rPoints.push(pnt1);\n return lPoints.reverse().concat(arrowPnts, rPoints);\n }\n }, {\n key: \"_getArrowHeadPoints\",\n value: function _getArrowHeadPoints(points) {\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(points);\n var headHeight = len * this.headHeightFactor;\n var headPnt = points[points.length - 1];\n var headWidth = headHeight * this.headWidthFactor;\n var neckWidth = headHeight * this.neckWidthFactor;\n var neckHeight = headHeight * this.neckHeightFactor;\n var headEndPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(points[points.length - 2], headPnt, 0, headHeight, true);\n var neckEndPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(points[points.length - 2], headPnt, 0, neckHeight, true);\n var headLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(headPnt, headEndPnt, HALF_PI, headWidth, false);\n var headRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(headPnt, headEndPnt, HALF_PI, headWidth, true);\n var neckLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(headPnt, neckEndPnt, HALF_PI, neckWidth, false);\n var neckRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(headPnt, neckEndPnt, HALF_PI, neckWidth, true);\n return [neckLeft, headLeft, headPnt, headRight, neckRight];\n }\n }, {\n key: \"_getArrowBodyPoints\",\n value: function _getArrowBodyPoints(points, neckLeft, neckRight, tailWidthFactor) {\n var allLen = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].wholeDistance(points);\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(points);\n var tailWidth = len * tailWidthFactor;\n var neckWidth = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(neckLeft, neckRight);\n var widthDif = (tailWidth - neckWidth) / 2;\n var tempLen = 0;\n var leftBodyPnts = [];\n var rightBodyPnts = [];\n\n for (var i = 1; i < points.length - 1; i++) {\n var angle = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getAngleOfThreePoints(points[i - 1], points[i], points[i + 1]) / 2;\n tempLen += _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(points[i - 1], points[i]);\n var w = (tailWidth / 2 - tempLen / allLen * widthDif) / Math.sin(angle);\n var left = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(points[i - 1], points[i], Math.PI - angle, w, true);\n var right = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(points[i - 1], points[i], angle, w, false);\n leftBodyPnts.push(left);\n rightBodyPnts.push(right);\n }\n\n return leftBodyPnts.concat(rightBodyPnts);\n }\n }, {\n key: \"_getTempPoint4\",\n value: function _getTempPoint4(linePnt1, linePnt2, point) {\n var midPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].mid(linePnt1, linePnt2);\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(midPnt, point);\n var angle = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getAngleOfThreePoints(linePnt1, midPnt, point);\n var symPnt, distance1, distance2, mid;\n\n if (angle < HALF_PI) {\n distance1 = len * Math.sin(angle);\n distance2 = len * Math.cos(angle);\n mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(linePnt1, midPnt, HALF_PI, distance1, false);\n symPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(midPnt, mid, HALF_PI, distance2, true);\n } else if (angle >= HALF_PI && angle < Math.PI) {\n distance1 = len * Math.sin(Math.PI - angle);\n distance2 = len * Math.cos(Math.PI - angle);\n mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(linePnt1, midPnt, HALF_PI, distance1, false);\n symPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(midPnt, mid, HALF_PI, distance2, false);\n } else if (angle >= Math.PI && angle < Math.PI * 1.5) {\n distance1 = len * Math.sin(angle - Math.PI);\n distance2 = len * Math.cos(angle - Math.PI);\n mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(linePnt1, midPnt, HALF_PI, distance1, true);\n symPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(midPnt, mid, HALF_PI, distance2, true);\n } else {\n distance1 = len * Math.sin(Math.PI * 2 - angle);\n distance2 = len * Math.cos(Math.PI * 2 - angle);\n mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(linePnt1, midPnt, HALF_PI, distance1, true);\n symPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(midPnt, mid, HALF_PI, distance2, false);\n }\n\n return symPnt;\n }\n }, {\n key: \"_getHierarchy\",\n value: function _getHierarchy() {\n var count = this._positions.length;\n var tempPoint4 = undefined;\n var connPoint = undefined;\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePolygonCoordToArray(this._positions)[0];\n var pnt1 = pnts[0];\n var pnt2 = pnts[1];\n var pnt3 = pnts[2];\n if (count === 3) tempPoint4 = this._getTempPoint4(pnt1, pnt2, pnt3);else tempPoint4 = pnts[3];\n if (count === 3 || count === 4) connPoint = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].mid(pnt1, pnt2);else connPoint = pnts[4];\n var leftArrowPnts, rightArrowPnts;\n\n if (_gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].isClockWise(pnt1, pnt2, pnt3)) {\n leftArrowPnts = this._getArrowPoints(pnt1, connPoint, tempPoint4, false);\n rightArrowPnts = this._getArrowPoints(connPoint, pnt2, pnt3, true);\n } else {\n leftArrowPnts = this._getArrowPoints(pnt2, connPoint, pnt3, false);\n rightArrowPnts = this._getArrowPoints(connPoint, pnt1, tempPoint4, true);\n }\n\n var m = leftArrowPnts.length;\n var t = (m - 5) / 2;\n var llBodyPnts = leftArrowPnts.slice(0, t);\n var lArrowPnts = leftArrowPnts.slice(t, t + 5);\n var lrBodyPnts = leftArrowPnts.slice(t + 5, m);\n var rlBodyPnts = rightArrowPnts.slice(0, t);\n var rArrowPnts = rightArrowPnts.slice(t, t + 5);\n var rrBodyPnts = rightArrowPnts.slice(t + 5, m);\n rlBodyPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBezierPoints(rlBodyPnts);\n var bodyPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBezierPoints(rrBodyPnts.concat(llBodyPnts.slice(1)));\n lrBodyPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBezierPoints(lrBodyPnts);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(rlBodyPnts.concat(rArrowPnts, bodyPnts, lArrowPnts, lrBodyPnts))));\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.positions = this._positions;\n }\n /**\n *\n * @param text\n * @param textStyle\n * @returns {DoubleArrow}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {DoubleArrow}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.polygon, style);\n return this;\n }\n }]);\n\n return DoubleArrow;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('double_arrow');\n/* harmony default export */ __webpack_exports__[\"default\"] = (DoubleArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcGxvdC9Eb3VibGVBcnJvdy5qc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A9IGxlZnRBcnJvd1BudHMuc2xpY2UodCwgdCArIDUpXG4gICAgbGV0IGxyQm9keVBudHMgPSBsZWZ0QXJyb3dQbnRzLnNsaWNlKHQgKyA1LCBtKVxuICAgIGxldCBybEJvZHlQbnRzID0gcmlnaHRBcnJvd1BudHMuc2xpY2UoMCwgdClcbiAgICBsZXQgckFycm93UG50cyA9IHJpZ2h0QXJyb3dQbnRzLnNsaWNlKHQsIHQgKyA1KVxuICAgIGxldCByckJvZHlQbnRzID0gcmlnaHRBcnJvd1BudHMuc2xpY2UodCArIDUsIG0pXG4gICAgcmxCb2R5UG50cyA9IFBsb3RVdGlsLmdldEJlemllclBvaW50cyhybEJvZHlQbnRzKVxuICAgIGxldCBib2R5UG50cyA9IFBsb3RVdGlsLmdldEJlemllclBvaW50cyhcbiAgICAgIHJyQm9keVBudHMuY29uY2F0KGxsQm9keVBudHMuc2xpY2UoMSkpXG4gICAgKVxuICAgIGxyQm9keVBudHMgPSBQbG90VXRpbC5nZXRCZXppZXJQb2ludHMobHJCb2R5UG50cylcbiAgICByZXR1cm4gbmV3IENlc2l1bS5Qb2x5Z29uSGllcmFyY2h5KFxuICAgICAgVHJhbnNmb3JtLnRyYW5zZm9ybVdHUzg0QXJyYXlUb0NhcnRlc2lhbkFycmF5KFxuICAgICAgICBQYXJzZS5wYXJzZVBvc2l0aW9ucyhcbiAgICAgICAgICBybEJvZHlQbnRzLmNvbmNhdChyQXJyb3dQbnRzLCBib2R5UG50cywgbEFycm93UG50cywgbHJCb2R5UG50cylcbiAgICAgICAgKVxuICAgICAgKVxuICAgIClcbiAgfVxuXG4gIF9tb3VudGVkSG9vaygpIHtcbiAgICAvKipcbiAgICAgKiAgc2V0IHRoZSBsb2NhdGlvblxuICAgICAqL1xuICAgIHRoaXMucG9zaXRpb25zID0gdGhpcy5fcG9zaXRpb25zXG4gIH1cblxuICAvKipcbiAgICpcbiAgICogQHBhcmFtIHRleHRcbiAgICogQHBhcmFtIHRleHRTdHlsZVxuICA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QUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUF0UUE7QUFDQTtBQXdRQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/plot/DoubleArrow.js\n");
- /***/ }),
- /***/ "./modules/overlay/plot/FineArrow.js":
- /*!*******************************************!*\
- !*** ./modules/overlay/plot/FineArrow.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 22:38:10\n */\n\n\n\n\n\n\nvar HALF_PI = Math.PI / 2;\n\nvar FineArrow = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(FineArrow, _Overlay);\n\n var _super = _createSuper(FineArrow);\n\n function FineArrow(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FineArrow);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n polygon: {}\n });\n _this.tailWidthFactor = 0.15;\n _this.neckWidthFactor = 0.2;\n _this.headWidthFactor = 0.25;\n _this.headAngle = Math.PI / 8.5;\n _this.neckAngle = Math.PI / 13;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FineArrow, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('fine_arrow');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.polygon.hierarchy = this._getHierarchy();\n return this;\n }\n }, {\n key: \"_getHierarchy\",\n value: function _getHierarchy() {\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePolygonCoordToArray(this._positions)[0];\n var pnt1 = pnts[0];\n var pnt2 = pnts[1];\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(pnts);\n var tailWidth = len * this.tailWidthFactor;\n var neckWidth = len * this.neckWidthFactor;\n var headWidth = len * this.headWidthFactor;\n var tailLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnt2, pnt1, HALF_PI, tailWidth, true);\n var tailRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnt2, pnt1, HALF_PI, tailWidth, false);\n var headLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnt1, pnt2, this.headAngle, headWidth, false);\n var headRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnt1, pnt2, this.headAngle, headWidth, true);\n var neckLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnt1, pnt2, this.neckAngle, neckWidth, false);\n var neckRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnt1, pnt2, this.neckAngle, neckWidth, true);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions([tailLeft, neckLeft, headLeft, pnt2, headRight, neckRight, tailRight])));\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.positions = this._positions;\n }\n /**\n *\n * @param text\n * @param textStyle\n * @returns {FineArrow}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {FineArrow}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.polygon, style);\n return this;\n }\n }]);\n\n return FineArrow;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('fine_arrow');\n/* harmony default export */ __webpack_exports__[\"default\"] = (FineArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcGxvdC9GaW5lQXJyb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL292ZXJsYXkvcGxvdC9GaW5lQXJyb3cuanM/MDUwYyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0yOSAyMjozODoxMFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBQYXJzZSBmcm9tICdAZ2QtbW9kdWxlcy9wYXJzZS9QYXJzZSdcbmltcG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GgsXG4gICAgICB0cnVlXG4gICAgKVxuICAgIGxldCBuZWNrTGVmdCA9IFBsb3RVdGlsLmdldFRoaXJkUG9pbnQoXG4gICAgICBwbnQxLFxuICAgICAgcG50MixcbiAgICAgIHRoaXMubmVja0FuZ2xlLFxuICAgICAgbmVja1dpZHRoLFxuICAgICAgZmFsc2VcbiAgICApXG4gICAgbGV0IG5lY2tSaWdodCA9IFBsb3RVdGlsLmdldFRoaXJkUG9pbnQoXG4gICAgICBwbnQxLFxuICAgICAgcG50MixcbiAgICAgIHRoaXMubmVja0FuZ2xlLFxuICAgICAgbmVja1dpZHRoLFxuICAgICAgdHJ1ZVxuICAgIClcbiAgICByZXR1cm4gbmV3IENlc2l1bS5Qb2x5Z29uSGllcmFyY2h5KFxuICAgICAgVHJhbnNmb3JtLnRyYW5zZm9ybVdHUzg0QXJyYXlUb0NhcnRlc2lhbkFycmF5KFxuICAgICAgICBQYXJzZS5wYXJzZVBvc2l0aW9ucyhbXG4gICAgICAgICAgdGFpbExlZnQsXG4gICAgICAgICAgbmVja0xlZnQsXG4gICAgICAgICAgaGVhZExlZnQsXG4gICAgICAgICAgcG50MixcbiAgICAgICAgICBoZWFkUmlnaHQsXG4gICAgICAgICAgbmVja1JpZ2h0LFxuICAgICAgICAgIHRhaWxSaWdodFxuICAgICAgICBdKVxuICAgICAgKVxuICAgIClcbiAgfVxuXG4gIF9tb3VudGVkSG9vaygpIHtcbiAgICAvKipcbiAgICAgKiAgc2V0IHRoZSBsb2NhdGlvblxuICAgICAqL1xuICAgIHRoaXMucG9zaXRpb25zID0gdGhpcy5fcG9zaXRpb25zXG4gIH1cblxuICAvKipcbiAgICpcbiAgICogQHBhcmFtIHRleHRcbiAgICogQHBhcmFtIHRleHRTdHlsZVxuICAgKiBAcmV0dXJucyB7RmluZUFycm93fVxuICAgKi9cbiAgc2V0TGFiZWwodGV4dCwgdGV4dFN0eWxlKSB7XG4gICAgcmV0dXJuIHRoaXNcbiAgfVxuXG4gIC8qKlxu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tBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFwSEE7QUFDQTtBQXNIQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/plot/FineArrow.js\n");
- /***/ }),
- /***/ "./modules/overlay/plot/GatheringPlace.js":
- /*!************************************************!*\
- !*** ./modules/overlay/plot/GatheringPlace.js ***!
- \************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 23:00:27\n */\n\n\n\n\n\n\nvar HALF_PI = Math.PI / 2;\nvar FITTING_COUNT = 100;\n\nvar GatheringPlace = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(GatheringPlace, _Overlay);\n\n var _super = _createSuper(GatheringPlace);\n\n function GatheringPlace(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GatheringPlace);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n polygon: {}\n });\n _this.t = 0.4;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(GatheringPlace, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('gathering_place');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.polygon.hierarchy = this._getHierarchy();\n return this;\n }\n }, {\n key: \"_getHierarchy\",\n value: function _getHierarchy() {\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePolygonCoordToArray(this._positions)[0];\n\n if (this._positions.length === 2) {\n var _mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].mid(pnts[0], pnts[1]);\n\n var d = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(pnts[0], _mid) / 0.9;\n var pnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(pnts[0], _mid, HALF_PI, d, true);\n pnts = [pnts[0], pnt, pnts[1]];\n }\n\n var mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].mid(pnts[0], pnts[2]);\n pnts.push(mid, pnts[0], pnts[1]);\n var normals = [];\n\n for (var i = 0; i < pnts.length - 2; i++) {\n var pnt1 = pnts[i];\n var pnt2 = pnts[i + 1];\n var pnt3 = pnts[i + 2];\n var normalPoints = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBisectorNormals(this.t, pnt1, pnt2, pnt3);\n normals = normals.concat(normalPoints);\n }\n\n var count = normals.length;\n normals = [normals[count - 1]].concat(normals.slice(0, count - 1));\n var pList = [];\n\n for (var _i = 0; _i < pnts.length - 2; _i++) {\n var _pnt = pnts[_i];\n var _pnt2 = pnts[_i + 1];\n pList.push(_pnt);\n\n for (var t = 0; t <= FITTING_COUNT; t++) {\n var _pnt3 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getCubicValue(t / FITTING_COUNT, _pnt, normals[_i * 2], normals[_i * 2 + 1], _pnt2);\n\n pList.push(_pnt3);\n }\n\n pList.push(_pnt2);\n }\n\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(pList)));\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.positions = this._positions;\n }\n /**\n *\n * @param text\n * @param textStyle\n * @returns {GatheringPlace}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {GatheringPlace}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.polygon, style);\n return this;\n }\n }]);\n\n return GatheringPlace;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('gathering_place');\n/* harmony default export */ __webpack_exports__[\"default\"] = (GatheringPlace);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcGxvdC9HYXRoZXJpbmdQbGFjZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS9wbG90L0dhdGhlcmluZ1BsYWNlLmpzPzIyNTIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdG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FBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBTUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFHQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUEvRkE7QUFDQTtBQWlHQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/plot/GatheringPlace.js\n");
- /***/ }),
- /***/ "./modules/overlay/plot/TailedAttackArrow.js":
- /*!***************************************************!*\
- !*** ./modules/overlay/plot/TailedAttackArrow.js ***!
- \***************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n/* harmony import */ var _AttackArrow__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./AttackArrow */ \"./modules/overlay/plot/AttackArrow.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 22:51:36\n */\n\n\n\n\n\n\n\n\nvar TailedAttackArrow = /*#__PURE__*/function (_AttackArrow) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TailedAttackArrow, _AttackArrow);\n\n var _super = _createSuper(TailedAttackArrow);\n\n function TailedAttackArrow(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TailedAttackArrow);\n\n _this = _super.call(this, positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n polygon: {}\n });\n _this.headHeightFactor = 0.18;\n _this.headWidthFactor = 0.3;\n _this.neckHeightFactor = 0.85;\n _this.neckWidthFactor = 0.15;\n _this.tailWidthFactor = 0.1;\n _this.headTailFactor = 0.8;\n _this.swallowTailFactor = 1;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TailedAttackArrow, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('tailed_attack_arrow');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.polygon.hierarchy = this._getHierarchy();\n return this;\n }\n }, {\n key: \"_getHierarchy\",\n value: function _getHierarchy() {\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePolygonCoordToArray(this._positions)[0];\n var tailLeft = pnts[0];\n var tailRight = pnts[1];\n\n if (_gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].isClockWise(pnts[0], pnts[1], pnts[2])) {\n tailLeft = pnts[1];\n tailRight = pnts[0];\n }\n\n var midTail = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].mid(tailLeft, tailRight);\n var bonePnts = [midTail].concat(pnts.slice(2));\n\n var headPnts = this._getArrowHeadPoints(bonePnts, tailLeft, tailRight);\n\n var neckLeft = headPnts[0];\n var neckRight = headPnts[4];\n var tailWidth = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(tailLeft, tailRight);\n var allLen = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(bonePnts);\n var len = allLen * this.tailWidthFactor * this.swallowTailFactor;\n var swallowTailPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(bonePnts[1], bonePnts[0], 0, len, true);\n var factor = tailWidth / allLen;\n\n var bodyPnts = this._getArrowBodyPoints(bonePnts, neckLeft, neckRight, factor);\n\n var count = bodyPnts.length;\n var leftPnts = [tailLeft].concat(bodyPnts.slice(0, count / 2));\n leftPnts.push(neckLeft);\n var rightPnts = [tailRight].concat(bodyPnts.slice(count / 2, count));\n rightPnts.push(neckRight);\n leftPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getQBSplinePoints(leftPnts);\n rightPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getQBSplinePoints(rightPnts);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(leftPnts.concat(headPnts, rightPnts.reverse(), [swallowTailPnt, leftPnts[0]]))));\n }\n }]);\n\n return TailedAttackArrow;\n}(_AttackArrow__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('tailed_attack_arrow');\n/* harmony default export */ __webpack_exports__[\"default\"] = (TailedAttackArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292Z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7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQU9BO0FBQ0E7QUFBQTtBQUNBO0FBS0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVVBOzs7O0FBM0VBO0FBQ0E7QUE2RUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/plot/TailedAttackArrow.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/BillboardPrimitive.js":
- /*!*********************************************************!*\
- !*** ./modules/overlay/primitive/BillboardPrimitive.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-06-03 21:06:17\n */\n\n\n\n\n\n\nvar BillboardPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BillboardPrimitive, _Overlay);\n\n var _super = _createSuper(BillboardPrimitive);\n\n function BillboardPrimitive(position, icon) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BillboardPrimitive);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position);\n _this._icon = icon;\n _this._size = [32, 32];\n _this._delegate = {\n position: undefined,\n image: undefined,\n width: 0,\n height: 0\n };\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BillboardPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getOverlayType('billboard_primitive');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"icon\",\n get: function get() {\n return this._icon;\n },\n set: function set(icon) {\n this._icon = icon;\n this._delegate.image = this._icon;\n return this;\n }\n }, {\n key: \"size\",\n get: function get() {\n return this._size;\n },\n set: function set(size) {\n if (!Array.isArray(size)) {\n throw new Error('Billboard Primitive: the size invalid');\n }\n\n this._size = size;\n this._delegate.width = this._size[0] || 32;\n this._delegate.height = this._size[1] || 32;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.icon = this._icon;\n this.size = this._size;\n }\n /**\n *\n * @param style\n * @returns {BillboardPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['position'] && delete style['image'] && delete style['width'] && delete style['height'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._delegate, style);\n return this;\n }\n }]);\n\n return BillboardPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('billboard_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (BillboardPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL0JpbGxib2FyZFByaW1pdGl2ZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS9wcmltaXRpdmU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O0FBQ0E7QUFDQTtBQUdBO0FBQ0E7OztBQVlBO0FBQ0E7QUFDQTtBQVJBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQWdCQTtBQUNBO0FBQ0E7QUFaQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFJQTtBQUNBO0FBQ0E7QUFDQTs7OztBQW5GQTtBQUNBO0FBcUZBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/BillboardPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/BounceBillboardPrimitive.js":
- /*!***************************************************************!*\
- !*** ./modules/overlay/primitive/BounceBillboardPrimitive.js ***!
- \***************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n/* harmony import */ var _BillboardPrimitive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./BillboardPrimitive */ \"./modules/overlay/primitive/BillboardPrimitive.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-06-03 21:06:17\n */\n\n\n\n\nvar DEF_STYLE = {\n maxOffsetY: 10,\n offsetAmount: 0.1\n};\n\nvar BounceBillboardPrimitive = /*#__PURE__*/function (_BillboardPrimitive) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BounceBillboardPrimitive, _BillboardPrimitive);\n\n var _super = _createSuper(BounceBillboardPrimitive);\n\n function BounceBillboardPrimitive(position, icon) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BounceBillboardPrimitive);\n\n _this = _super.call(this, position, icon);\n _this._currentOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(0, 0);\n _this._isUp = true;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BounceBillboardPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getOverlayType('bounce_billboard_primitive');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_addedHook\",\n value: function _addedHook() {\n var _this$_layer;\n\n if (!this._delegate || !this._layer) {\n return;\n }\n\n this._delegate.layerId = (_this$_layer = this._layer) === null || _this$_layer === void 0 ? void 0 : _this$_layer.layerId;\n this._delegate.overlayId = this._id;\n\n this._layer.delegate.add(this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_removedHook\",\n value: function _removedHook() {\n if (!this._layer) {\n return;\n }\n\n this._layer.delegate.remove(this);\n }\n }, {\n key: \"update\",\n value: function update() {\n var _this$_style, _this$_style2;\n\n if (!this._show) {\n return;\n }\n\n var maxOffsetY = ((_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.maxOffsetY) || DEF_STYLE.maxOffsetY;\n var offsetAmount = ((_this$_style2 = this._style) === null || _this$_style2 === void 0 ? void 0 : _this$_style2.offsetAmount) || DEF_STYLE.offsetAmount;\n\n if (this._currentOffset.y >= 0) {\n this._isUp = true;\n } else if (this._currentOffset.y <= -maxOffsetY) {\n this._isUp = false;\n }\n\n this._currentOffset.y += offsetAmount * (this._isUp ? -1 : 1);\n this._delegate.pixelOffset = this._currentOffset;\n }\n /**\n * @return {*}\n */\n\n }, {\n key: \"destroy\",\n value: function destroy() {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].destroyObject(this);\n }\n }]);\n\n return BounceBillboardPrimitive;\n}(_BillboardPrimitive__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('bounce_billboard_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (BounceBillboardPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uI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0E7QUEwREE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/BounceBillboardPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/BounceLabelPrimitive.js":
- /*!***********************************************************!*\
- !*** ./modules/overlay/primitive/BounceLabelPrimitive.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n/* harmony import */ var _LabelPrimitive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./LabelPrimitive */ \"./modules/overlay/primitive/LabelPrimitive.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-06-03 21:06:17\n */\n\n\n\n\nvar DEF_STYLE = {\n maxOffsetY: 10,\n offsetAmount: 0.1\n};\n\nvar BounceLabelPrimitive = /*#__PURE__*/function (_LabelPrimitive) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(BounceLabelPrimitive, _LabelPrimitive);\n\n var _super = _createSuper(BounceLabelPrimitive);\n\n function BounceLabelPrimitive(position, text) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, BounceLabelPrimitive);\n\n _this = _super.call(this, position, text);\n _this._currentOffset = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(0, 0);\n _this._isUp = true;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(BounceLabelPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getOverlayType('bounce_label_primitive');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_addedHook\",\n value: function _addedHook() {\n var _this$_layer;\n\n if (!this._delegate || !this._layer) {\n return;\n }\n\n this._delegate.layerId = (_this$_layer = this._layer) === null || _this$_layer === void 0 ? void 0 : _this$_layer.layerId;\n this._delegate.overlayId = this._id;\n\n this._layer.delegate.add(this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_removedHook\",\n value: function _removedHook() {\n if (!this._layer) {\n return;\n }\n\n this._layer.delegate.remove(this);\n }\n }, {\n key: \"update\",\n value: function update() {\n var _this$_style, _this$_style2;\n\n if (!this._show) {\n return;\n }\n\n var maxOffsetY = ((_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.maxOffsetY) || DEF_STYLE.maxOffsetY;\n var offsetAmount = ((_this$_style2 = this._style) === null || _this$_style2 === void 0 ? void 0 : _this$_style2.offsetAmount) || DEF_STYLE.offsetAmount;\n\n if (this._currentOffset.y >= 0) {\n this._isUp = true;\n } else if (this._currentOffset.y <= -maxOffsetY) {\n this._isUp = false;\n }\n\n this._currentOffset.y += offsetAmount * (this._isUp ? -1 : 1);\n this._delegate.pixelOffset = this._currentOffset;\n }\n /**\n * @return {*}\n */\n\n }, {\n key: \"destroy\",\n value: function destroy() {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].destroyObject(this);\n }\n }]);\n\n return BounceLabelPrimitive;\n}(_LabelPrimitive__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('bounce_label_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (BounceLabelPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL0JvdW5jZUxhYmVsUHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ByaW1pdGl2ZS9Cb3VuY2VMYWJlbFByaW1pdGl2ZS5qcz80MmI4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA2LTAzIDIxOjA2OjE3XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1b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tBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFGQTtBQUNBO0FBSUE7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFLQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTs7O0FBRUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBOzs7O0FBeERBO0FBQ0E7QUEwREE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/BounceLabelPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/CloudPrimitive.js":
- /*!*****************************************************!*\
- !*** ./modules/overlay/primitive/CloudPrimitive.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-11-08 20:35:42\n */\n\n\n\n\n\n\nvar CloudPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(CloudPrimitive, _Overlay);\n\n var _super = _createSuper(CloudPrimitive);\n\n function CloudPrimitive(position) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CloudPrimitive);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position);\n _this._delegate = {\n position: undefined,\n scale: {\n x: 12,\n y: 8\n }\n };\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CloudPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getOverlayType('cloud_primitive');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n }\n /**\n *\n * @param style\n * @returns {CloudPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['position'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._delegate, style);\n return this;\n }\n }]);\n\n return CloudPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('cloud_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (CloudPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL0Nsb3VkUHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZW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Q0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBRkE7QUFJQTtBQVBBO0FBUUE7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFVQTtBQUNBO0FBQ0E7QUFWQTtBQUNBO0FBQ0E7QUFHQTtBQUNBOzs7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBL0NBO0FBQ0E7QUFpREE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/CloudPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/DiffuseWallPrimitive.js":
- /*!***********************************************************!*\
- !*** ./modules/overlay/primitive/DiffuseWallPrimitive.js ***!
- \***********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-06-04 20:38:39\n */\n\n\n\n\n\n\nvar DEF_STYLE = {\n minRadius: 10,\n minHeight: 30,\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.RED,\n slices: 128,\n speed: 10\n};\n\nvar DiffuseWallPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DiffuseWallPrimitive, _Overlay);\n\n var _super = _createSuper(DiffuseWallPrimitive);\n\n function DiffuseWallPrimitive(center, radius, height) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DiffuseWallPrimitive);\n\n _this = _super.call(this);\n _this._center = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(center);\n _this._delegate = undefined;\n _this._height = height;\n _this._radius = radius;\n _this._currentHeight = height || 0;\n _this._currentRadius = 10;\n _this._style = _objectSpread({}, DEF_STYLE);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DiffuseWallPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('diffuse_wall_primitive');\n }\n }, {\n key: \"center\",\n get: function get() {\n return this._center;\n },\n set: function set(position) {\n this._center = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n return this;\n }\n }, {\n key: \"radius\",\n get: function get() {\n return this._radius;\n },\n set: function set(radius) {\n this._radius = radius;\n return this;\n }\n }, {\n key: \"height\",\n get: function get() {\n return this._height;\n }\n /**\n *\n * @returns {*}\n * @private\n */\n ,\n set: function set(height) {\n this._height = height;\n return this;\n }\n }, {\n key: \"_getPositions\",\n value: function _getPositions() {\n var pnts = [];\n var modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._center));\n\n for (var i = 0; i < this._style.slices; i++) {\n var angle = i / this._style.slices * _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.TWO_PI;\n var x = Math.cos(angle);\n var y = Math.sin(angle);\n var point = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3(x * this._currentRadius, y * this._currentRadius, 0.0);\n pnts.push(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.multiplyByPoint(modelMatrix, point, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3()));\n }\n\n pnts.push(pnts[0]);\n return pnts;\n }\n /**\n *\n * @param length\n * @param hegiht\n * @returns {*[]}\n * @private\n */\n\n }, {\n key: \"_getHeights\",\n value: function _getHeights(length, hegiht) {\n var heights = [];\n\n for (var i = 0; i < length; i++) {\n heights.push(hegiht);\n }\n\n return heights;\n }\n /**\n *\n * @param layer\n * @private\n */\n\n }, {\n key: \"_onAdd\",\n value: function _onAdd(layer) {\n var _this$_layer, _this$_layer$delegate;\n\n if (!layer) {\n return;\n }\n\n this._layer = layer;\n\n if ((_this$_layer = this._layer) !== null && _this$_layer !== void 0 && (_this$_layer$delegate = _this$_layer.delegate) !== null && _this$_layer$delegate !== void 0 && _this$_layer$delegate.add) {\n this._layer.delegate.add(this);\n }\n\n this._addedHook && this._addedHook();\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].ADDED;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n var _this$_layer2, _this$_layer2$delegat;\n\n if (!this._layer) {\n return;\n }\n\n if ((_this$_layer2 = this._layer) !== null && _this$_layer2 !== void 0 && (_this$_layer2$delegat = _this$_layer2.delegate) !== null && _this$_layer2$delegat !== void 0 && _this$_layer2$delegat.remove) {\n this._layer.delegate.remove(this);\n }\n\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].REMOVED;\n }\n /**\n *\n * @param frameState\n * @returns {boolean}\n */\n\n }, {\n key: \"update\",\n value: function update(frameState) {\n var _this$_style;\n\n this._delegate = this._delegate && this._delegate.destroy();\n this._currentRadius += this._radius / this._style.speed / 20;\n this._currentHeight -= this._height / this._style.speed / 20;\n\n if (this._currentRadius > this._radius || this._currentHeight < this._style.minHeight) {\n this._currentRadius = this._style.minRadius;\n this._currentHeight = this._height;\n }\n\n if (!this._style.slices || this._style.slices < 3) {\n return false;\n }\n\n var positions = this._getPositions();\n\n if (!positions || !positions.length) {\n return false;\n }\n\n var geometry = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].WallGeometry({\n positions: positions,\n minimumHeights: this._getHeights(positions.length, 0),\n maximumHeights: this._getHeights(positions.length, this._currentHeight)\n });\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Primitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].GeometryInstance({\n geometry: geometry\n }),\n appearance: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].MaterialAppearance({\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Material.fromType('WallDiffuse', {\n color: (_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.color\n }),\n flat: true\n }),\n asynchronous: false\n });\n\n this._delegate.update(frameState);\n }\n /**\n *\n * @param style\n * @returns {DiffuseWallPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n return this;\n }\n /**\n * @return {*}\n */\n\n }, {\n key: \"destroy\",\n value: function destroy() {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].destroyObject(this);\n }\n }]);\n\n return DiffuseWallPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('diffuse_wall_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (DiffuseWallPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL0RpZmZ1c2VXYWxsUHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ByaW1pdGl2ZS9EaWZmdXNlV2FsbFByaW1pdGl2ZS5qcz9lMzBkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA2LTA0IDIwOjM4OjM5XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb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./modules/overlay/primitive/DiffuseWallPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/ElecEllipsoidPrimitive.js":
- /*!*************************************************************!*\
- !*** ./modules/overlay/primitive/ElecEllipsoidPrimitive.js ***!
- \*************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-09 21:40:36\n */\n\n\n\n\n\n\n\nvar ElecEllipsoidPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ElecEllipsoidPrimitive, _Overlay);\n\n var _super = _createSuper(ElecEllipsoidPrimitive);\n\n function ElecEllipsoidPrimitive(position, radius) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ElecEllipsoidPrimitive);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._radius = radius || {\n x: 10,\n y: 10,\n z: 10\n };\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Primitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeometryInstance({\n geometry: {}\n })\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ElecEllipsoidPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('elec_ellipsoid_primitive');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n this._delegate.geometryInstances.modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position));\n return this;\n }\n }, {\n key: \"radius\",\n get: function get() {\n return this._radius;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(radius) {\n this._radius = radius;\n this._delegate.geometryInstances.geometry = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].EllipsoidGeometry({\n radii: this._radius,\n maximumCone: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.PI_OVER_TWO\n });\n return this;\n }\n }, {\n key: \"_setAppearance\",\n value: function _setAppearance() {\n var _this$_style, _this$_style2;\n\n if (!this._style) {\n return;\n }\n\n this._delegate.appearance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].MaterialAppearance({\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.fromType('EllipsoidElectric', {\n color: ((_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.color) || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color.GREEN,\n speed: ((_this$_style2 = this._style) === null || _this$_style2 === void 0 ? void 0 : _this$_style2.speed) || 5\n })\n });\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the radius\n */\n this.radius = this._radius;\n /**\n * set the position\n */\n\n this.position = this._position;\n /**\n * set the appearance\n */\n\n !this._delegate.appearance && this._setAppearance();\n }\n /**\n *\n * @param text\n * @param textStyle\n * @returns {ElecEllipsoidPrimitive}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {ElecEllipsoidPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n\n this._setAppearance();\n\n return this;\n }\n }]);\n\n return ElecEllipsoidPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('elec_ellipsoid_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (ElecEllipsoidPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL0VsZWNFbGxpcHNvaWRQcmltaXRpdmUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL0VsZWNFbGxpcHNvaWRQcmltaXRpdmUuanM/MmEyYyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMS0wOSAyMTo0MDozNlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBQYXJzZSBmcm9tICdAZ2QtbW9kdWxlcy9wYXJzZS9QYXJzZSdcbmltcG9ydCB7IFV0aWwgfSBmcm9tICdAZ2QtbW9kdWxlcy91dGlscydcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCBPdmVybGF5IGZyb20gJy4uL092ZXJsYXknXG5cbmNsYXNzI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QUFBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFEQTtBQUtBO0FBVEE7QUFVQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQVVBO0FBQ0E7QUFDQTtBQVZBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7OztBQWVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQWhCQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBOzs7QUFVQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFEQTtBQU1BOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBOzs7O0FBakdBO0FBQ0E7QUFtR0E7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/ElecEllipsoidPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/FlowLinePrimitive.js":
- /*!********************************************************!*\
- !*** ./modules/overlay/primitive/FlowLinePrimitive.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-05 20:18:34\n */\n\n\n\n\n\n\n\nvar FlowLinePrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(FlowLinePrimitive, _Overlay);\n\n var _super = _createSuper(FlowLinePrimitive);\n\n function FlowLinePrimitive(positions) {\n var _this;\n\n var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FlowLinePrimitive);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n _this._width = width;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Primitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeometryInstance({\n geometry: {}\n })\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FlowLinePrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('flow_line_primitive');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.geometryInstances.geometry = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolylineGeometry({\n positions: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions),\n width: this._width\n });\n return this;\n }\n }, {\n key: \"_setAppearance\",\n value: function _setAppearance() {\n var _this$_style, _this$_style2, _this$_style3, _this$_style4;\n\n this._delegate.appearance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolylineMaterialAppearance({\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.fromType('PolylineFlow', {\n color: ((_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.color) || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: ((_this$_style2 = this._style) === null || _this$_style2 === void 0 ? void 0 : _this$_style2.speed) || 1,\n percent: ((_this$_style3 = this._style) === null || _this$_style3 === void 0 ? void 0 : _this$_style3.percent) || 0.03,\n gradient: ((_this$_style4 = this._style) === null || _this$_style4 === void 0 ? void 0 : _this$_style4.gradient) || 0.1\n })\n });\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the positions\n */\n this.positions = this._positions;\n /**\n * set the appearance\n */\n\n !this._delegate.appearance && this._setAppearance();\n }\n /**\n *\n * @param text\n * @param textStyle\n * @returns {FlowLinePrimitive}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {FlowLinePrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n style.classificationType && (this._delegate.classificationType = this._style.classificationType);\n\n this._setAppearance();\n\n return this;\n }\n }]);\n\n return FlowLinePrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('flow_line_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (FlowLinePrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2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//# sourceURL=webpack-internal:///./modules/overlay/primitive/FlowLinePrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/LabelPrimitive.js":
- /*!*****************************************************!*\
- !*** ./modules/overlay/primitive/LabelPrimitive.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-06-03 22:28:49\n */\n\n\n\n\n\n\nvar LabelPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LabelPrimitive, _Overlay);\n\n var _super = _createSuper(LabelPrimitive);\n\n function LabelPrimitive(position, text) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LabelPrimitive);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position);\n _this._text = text;\n _this._delegate = {\n position: undefined,\n text: undefined\n };\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LabelPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getOverlayType('label_primitive');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"text\",\n get: function get() {\n return this._text;\n },\n set: function set(text) {\n this._text = text;\n this._delegate.text = this._text;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.text = this._text;\n }\n /**\n *\n * @param {*} text\n * @param {*} textStyle\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {LabelPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['position'] && delete style['text'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._delegate, style);\n return this;\n }\n }]);\n\n return LabelPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('label_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (LabelPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL0xhYmVsUHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ByaW1pdGl2ZS9MYWJlbFByaW1pdGl2ZS5qcz9kNjBjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA2LTAzIDIyOjI4OjQ5XG4gKi9cblxuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbn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RUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFSQTtBQVNBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBVUE7QUFDQTtBQUNBO0FBVkE7QUFDQTtBQUNBO0FBR0E7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXhFQTtBQUNBO0FBMEVBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/LabelPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/ModelCollectionPrimitive.js":
- /*!***************************************************************!*\
- !*** ./modules/overlay/primitive/ModelCollectionPrimitive.js ***!
- \***************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-08-02 20:12:04\n */\n\n\n\n\n\n\n\nvar ModelCollectionPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(ModelCollectionPrimitive, _Overlay);\n\n var _super = _createSuper(ModelCollectionPrimitive);\n\n function ModelCollectionPrimitive(positions, modelUrl) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, ModelCollectionPrimitive);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n _this._modelUrl = modelUrl;\n _this._attrs = [];\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ModelCollectionPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('model_collection_primitive');\n }\n }, {\n key: \"readyPromise\",\n get: function get() {\n return this._delegate.readyPromise;\n }\n }, {\n key: \"attrs\",\n get: function get() {\n return this._attrs;\n },\n set: function set(attrs) {\n this._attrs = attrs;\n return this;\n }\n }, {\n key: \"positions\",\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n\n if (this._layer) {\n this._resetDelegate();\n\n this._layer.delegate.add(this._delegate);\n }\n\n return this;\n }\n }, {\n key: \"modelUrl\",\n get: function get() {\n return this._modelUrl;\n },\n set: function set(modelUrl) {\n this._modelUrl = modelUrl;\n\n if (this._layer) {\n this._resetDelegate();\n\n this._layer.delegate.add(this._delegate);\n }\n\n return this;\n }\n }, {\n key: \"_resetDelegate\",\n value: function _resetDelegate() {\n var _this2 = this,\n _this$_layer;\n\n this._delegate = this._delegate && this._delegate.destroy();\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ModelInstanceCollection(_objectSpread({\n url: this._modelUrl,\n instances: this._positions.map(function (item) {\n var _this2$_style, _this2$_style2;\n\n var origin = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(item);\n var modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Transforms.headingPitchRollToFixedFrame(origin, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(item.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(item.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(item.roll)));\n ((_this2$_style = _this2._style) === null || _this2$_style === void 0 ? void 0 : _this2$_style.scale) && _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Matrix4.multiplyByUniformScale(modelMatrix, (_this2$_style2 = _this2._style) === null || _this2$_style2 === void 0 ? void 0 : _this2$_style2.scale, modelMatrix);\n return {\n modelMatrix: modelMatrix\n };\n })\n }, this._style));\n this._delegate.layerId = (_this$_layer = this._layer) === null || _this$_layer === void 0 ? void 0 : _this$_layer.layerId;\n this._delegate.overlayId = this._id;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n this._resetDelegate();\n }\n /**\n *\n * @param instanceId\n * @returns {undefined}\n */\n\n }, {\n key: \"getModelInstance\",\n value: function getModelInstance(instanceId) {\n return this._delegate._instances[instanceId] || undefined;\n }\n /**\n *\n * @param instanceId\n * @returns {*|{}}\n */\n\n }, {\n key: \"getAttrByInstanceId\",\n value: function getAttrByInstanceId(instanceId) {\n return this._attrs[instanceId] || {};\n }\n /**\n *\n * @param style\n * @returns {ModelCollectionPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['instances'] && delete style['url'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n\n if (this._layer) {\n this._resetDelegate();\n\n this._layer.delegate.add(this._delegate);\n }\n\n return this;\n }\n }]);\n\n return ModelCollectionPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('model_collection_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (ModelCollectionPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL01vZGVsQ29sbGVjdGlvblByaW1pdGl2ZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS9wcmltaXRpdmUvTW9kZWx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rimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/ModelPrimitive.js":
- /*!*****************************************************!*\
- !*** ./modules/overlay/primitive/ModelPrimitive.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-05-14 00:33:27\n */\n\n\n\n\n\n\n\nvar ModelPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ModelPrimitive, _Overlay);\n\n var _super = _createSuper(ModelPrimitive);\n\n function ModelPrimitive(position, modelUrl) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ModelPrimitive);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._modelUrl = modelUrl;\n _this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Model.fromGltf({\n url: modelUrl\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ModelPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('model_primitive');\n }\n }, {\n key: \"readyPromise\",\n get: function get() {\n return this._delegate.readyPromise;\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n var origin = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position);\n this._delegate.modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.headingPitchRollToFixedFrame(origin, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.roll)));\n return this;\n }\n }, {\n key: \"modelUrl\",\n get: function get() {\n return this._modelUrl;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(modelUrl) {\n this._modelUrl = modelUrl;\n this._delegate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Model.fromGltf({\n url: modelUrl\n });\n this.position = this._position;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n }\n /**\n *\n * @param name\n */\n\n }, {\n key: \"getMaterial\",\n value: function getMaterial(name) {\n return this._delegate.getMaterial(name);\n }\n /**\n *\n * @param name\n */\n\n }, {\n key: \"getMesh\",\n value: function getMesh(name) {\n return this._delegate.getMesh(name);\n }\n /**\n *\n * @param name\n * @returns {*}\n */\n\n }, {\n key: \"getNode\",\n value: function getNode(name) {\n return this._delegate.getNode(name);\n }\n /**\n *\n * @returns {*}\n */\n\n }, {\n key: \"getNodes\",\n value: function getNodes() {\n return this._delegate._runtime.nodes;\n }\n /**\n * Sets style\n * @param style\n * @returns {ModelPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate, style);\n return this;\n }\n }]);\n\n return ModelPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('model_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (ModelPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL01vZGVsUHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ByaW1pdGl2ZS9Nb2RlbFByaW1pdGl2ZS5qcz9jM2RlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA1LTE0IDAwOjMzOjI3XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IE92ZXJsYXkgZnJvbSAnLi4vT3ZlcmxheSdcblxuY2xhc3MgTW9kZWxQcmltaXRpdmUgZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IocG9zaXRpb24sIG1vZGVsVXJsKSB7XG4gICAgc3VwZXIoKVxuICAgIHRoaXMuX3Bvc2l0aW9uID0gUGFyc2UucGFyc2VQb3NpdGlvbihwb3NpdGlvbilcbiAgICB0aGlz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FBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBdEdBO0FBQ0E7QUF3R0E7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/ModelPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/PointPrimitive.js":
- /*!*****************************************************!*\
- !*** ./modules/overlay/primitive/PointPrimitive.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-06-03 20:51:25\n */\n\n\n\n\n\n\nvar DEF_STYLE = {\n pixelSize: 8,\n outlineColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color.BLUE,\n outlineWidth: 2\n};\n\nvar PointPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PointPrimitive, _Overlay);\n\n var _super = _createSuper(PointPrimitive);\n\n function PointPrimitive(position) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PointPrimitive);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._delegate = {\n position: undefined\n };\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PointPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('point_primitive');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate, DEF_STYLE, this._style);\n }\n /**\n * Set style\n * @param style\n * @returns {PointPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['position'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate, DEF_STYLE, this._style);\n return this;\n }\n }]);\n\n return PointPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('point_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (PointPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL1BvaW50UHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8v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xuICAgIHJldHVybiB0aGlzXG4gIH1cbn1cbk92ZXJsYXkucmVnaXN0ZXJUeXBlKCdwb2ludF9wcmltaXRpdmUnKVxuXG5leHBvcnQgZGVmYXVsdCBQb2ludFByaW1pdGl2ZVxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFDQTtBQUtBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQURBO0FBR0E7QUFQQTtBQVFBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBVUE7QUFDQTtBQUNBO0FBVkE7QUFDQTtBQUNBO0FBR0E7QUFDQTs7O0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFwREE7QUFDQTtBQXFEQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/PointPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/PolylinePrimitive.js":
- /*!********************************************************!*\
- !*** ./modules/overlay/primitive/PolylinePrimitive.js ***!
- \********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-06-03 21:16:27\n */\n\n\n\n\n\n\n\nvar PolylinePrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(PolylinePrimitive, _Overlay);\n\n var _super = _createSuper(PolylinePrimitive);\n\n function PolylinePrimitive(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PolylinePrimitive);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePositions(positions);\n _this._delegate = {\n positions: []\n };\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PolylinePrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('polyline_primitive');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePositions(positions);\n this._delegate.positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions);\n return this;\n }\n }, {\n key: \"center\",\n get: function get() {\n return Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_9__[\"center\"])(this._positions);\n }\n }, {\n key: \"distance\",\n get: function get() {\n return Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_9__[\"distance\"])(this._positions);\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * initialize the Overlay parameter\n */\n this.positions = this._positions;\n }\n /**\n * Sets style\n * @param style\n * @returns {PolylinePrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].merge(this._delegate, style);\n return this;\n }\n }]);\n\n return PolylinePrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('polyline_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (PolylinePrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL1BvbHlsaW5lUHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ByaW1pdGl2ZS9Qb2x5bGluZVByaW1pdGl2ZS5qcz9iNTRkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA2LTAzIDIxOjE2OjI3XG4gKi9cblxuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IHsgY2VudGVyLCBkaXN0YW5jZSB9IGZyb20gJ0BnZC1tb2R1bGVzL21hdGgnXG5pbXBvcnQgT3ZlcmxheSBmcm9tICcuLi9PdmVybGF5J1xuXG5jbGFzcyBQb2x5bGluZVByaW1pdGl2ZSBleHRlbmRzIE92ZXJsYXkge1xuICBjb25zdHJ1Y3Rvcihwb3NpdGlvbnMpIHtcbiAgICBzdXBlcig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ack-internal:///./modules/overlay/primitive/PolylinePrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/ScanCirclePrimitive.js":
- /*!**********************************************************!*\
- !*** ./modules/overlay/primitive/ScanCirclePrimitive.js ***!
- \**********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-12-31 11:05:32\n */\n\n\n\n\n\n\n\nvar ScanCirclePrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ScanCirclePrimitive, _Overlay);\n\n var _super = _createSuper(ScanCirclePrimitive);\n\n function ScanCirclePrimitive(position, radius) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ScanCirclePrimitive);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._radius = radius;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GroundPrimitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeometryInstance({\n geometry: {}\n })\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ScanCirclePrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('scan_circle_primitive');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n this._delegate.geometryInstances.geometry = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].EllipseGeometry({\n center: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position),\n semiMajorAxis: this._radius,\n semiMinorAxis: this._radius\n });\n return this;\n }\n }, {\n key: \"radius\",\n get: function get() {\n return this._radius;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(radius) {\n this._radius = radius;\n this._delegate.geometryInstances.geometry.semiMajorAxis = this._radius;\n this._delegate.geometryInstances.geometry.semiMinorAxis = this._radius;\n return this;\n }\n }, {\n key: \"_setAppearance\",\n value: function _setAppearance() {\n var _this$_style, _this$_style2;\n\n if (!this._style) {\n return;\n }\n\n this._delegate.appearance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].MaterialAppearance({\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.fromType('CircleScan', {\n color: ((_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.color) || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color.WHITE,\n speed: ((_this$_style2 = this._style) === null || _this$_style2 === void 0 ? void 0 : _this$_style2.speed) || 10\n })\n });\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the position\n */\n this.position = this._position;\n /**\n * set the appearance\n */\n\n !this._delegate.appearance && this._setAppearance();\n }\n /**\n * Sets Style\n * @param style\n * @returns {ScanCirclePrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n style.classificationType && (this._delegate.classificationType = this._style.classificationType);\n\n this._setAppearance();\n\n return this;\n }\n }]);\n\n return ScanCirclePrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('scan_circle_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (ScanCirclePrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL1NjYW5DaXJjbGVQcmltaXRpdmUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL1NjYW5DaXJjbGVQcmltaXRpdmUuanM/YzI3ZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0xMi0zMSAxMTowNTozMlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBQYXJzZSBmcm9tICdAZ2QtbW9kdWxlcy9wYXJzZS9QYXJzZSdcbmltcG9ydCB7IFV0aWwgfSBmcm9tICdAZ2QtbW9kdWxlcy91dGlscydcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCBPdmVybGF5IGZyb20gJy4uL092ZXJsYXknXG5cbmNsYXNzIFNjYW5DaXJjbGVQcmltaXRpdmUgZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IocG9zaXRpb24sIHJhZGl1cykge1xuICAgIHN1cGVyKClcbiAgICB0aGlzLl9wb3NpdGlvbiA9IFBhcnNlLnBhcnNlUG9zaXRpb24ocG9zaXRpb24pXG4gICAgdGhpcy5fcmFkaXVzID0gcmFkaXVzXG4gICAgdGhpcy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QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBOzs7O0FBcEZBO0FBQ0E7QUFzRkE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/ScanCirclePrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/TrailLinePrimitive.js":
- /*!*********************************************************!*\
- !*** ./modules/overlay/primitive/TrailLinePrimitive.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-09 21:33:59\n */\n\n\n\n\n\n\n\nvar TrailLinePrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TrailLinePrimitive, _Overlay);\n\n var _super = _createSuper(TrailLinePrimitive);\n\n function TrailLinePrimitive(positions) {\n var _this;\n\n var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TrailLinePrimitive);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n _this._width = width;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Primitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeometryInstance({\n geometry: {}\n })\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TrailLinePrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('trail_line_primitive');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.geometryInstances.geometry = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolylineGeometry({\n positions: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions),\n width: this._width\n });\n return this;\n }\n }, {\n key: \"_setAppearance\",\n value: function _setAppearance() {\n var _this$_style, _this$_style2;\n\n this._delegate.appearance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolylineMaterialAppearance({\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.fromType('PolylineTrail', {\n color: ((_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.color) || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color(1.0, 0.0, 0.0, 0.7),\n speed: ((_this$_style2 = this._style) === null || _this$_style2 === void 0 ? void 0 : _this$_style2.speed) || 5\n })\n });\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the positions\n */\n this.positions = this._positions;\n /**\n * set the appearance\n */\n\n !this._delegate.appearance && this._setAppearance();\n }\n /**\n * Sets Style\n * @param style\n * @returns {TrailLinePrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n style.classificationType && (this._delegate.classificationType = this._style.classificationType);\n\n this._setAppearance();\n\n return this;\n }\n }]);\n\n return TrailLinePrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('trail_line_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (TrailLinePrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL1RyYWlsTGluZVByaW1pdGl2ZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS9wcmltaXRpdmUvVHJhaWxMaW5lUHJpbWl0aXZlLmpzPzEzZWQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDEtMDkgMjE6MzM6NTlcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBVdGlsIH0gZnJvbSAnQGdkLW1vZHVsZXMvdXRpbHMnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgT3ZlcmxheSBmcm9tICcuLi9PdmVybGF5J1xuXG5jbGFzcyBUcmFpbExpbmVQcmltaXRpdmUgZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3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- /*!*****************************************************!*\
- !*** ./modules/overlay/primitive/VideoPrimitive.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-11-09 20:04:30\n */\n\n\n\n\n\n\n\nvar VideoPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(VideoPrimitive, _Overlay);\n\n var _super = _createSuper(VideoPrimitive);\n\n function VideoPrimitive(positions, video) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, VideoPrimitive);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GroundPrimitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeometryInstance({\n geometry: {}\n })\n });\n _this._video = video;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(VideoPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('video_primitive');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n var _this$_style, _this$_style2, _this$_style3, _this$_style4;\n\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.geometryInstances.geometry = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonGeometry.fromPositions({\n positions: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions),\n height: (_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.height,\n extrudedHeight: (_this$_style2 = this._style) === null || _this$_style2 === void 0 ? void 0 : _this$_style2.extrudedHeight,\n closeTop: (_this$_style3 = this._style) === null || _this$_style3 === void 0 ? void 0 : _this$_style3.closeTop,\n closeBottom: (_this$_style4 = this._style) === null || _this$_style4 === void 0 ? void 0 : _this$_style4.closeBottom,\n vertexFormat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].EllipsoidSurfaceAppearance.VERTEX_FORMAT\n });\n return this;\n }\n }, {\n key: \"video\",\n get: function get() {\n return this._video;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(video) {\n this._video = video;\n\n this._setAppearance();\n\n return this;\n }\n }, {\n key: \"_setAppearance\",\n value: function _setAppearance() {\n this._delegate.appearance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].EllipsoidSurfaceAppearance({\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.fromType('Image', {\n image: this._video\n })\n });\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the positions\n */\n this.positions = this._positions;\n /**\n * initialize the Overlay parameter\n */\n\n this.video = this._video;\n }\n /**\n * Sets Style\n * @param style\n * @returns {VideoPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n var _this$_style5;\n\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n\n if ((_this$_style5 = this._style) !== null && _this$_style5 !== void 0 && _this$_style5.classificationType) {\n this._delegate.classificationType = this._style.classificationType;\n }\n\n return this;\n }\n }]);\n\n return VideoPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('video_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (VideoPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL1ZpZGVvUHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ByaW1pdGl2ZS9WaWRlb1ByaW1pdGl2ZS5qcz82OWVmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTExLTA5IDIwOjA0OjMwXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IE92ZXJsYXkgZnJvbSAnLi4vT3ZlcmxheSdcblxuY2xhc3MgVmlkZW9QcmltaXRpdmUgZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IocG9zaXRpb25zLCB2aWRlbykge1xuICAgIHN1cGVyKClcbiAgICB0aGlzLl9wb3NpdGlvbnMgPSBQYXJzZS5wYXJzZVBvc2l0aW9ucyhwb3NpdGlvbnMpXG4gICAgdGhpcy5fZGVsZWdhdGUgPSBuZXcgQ2VzaXVtLkdyb3VuZFByaW1pdGl2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DQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7Ozs7QUF0RkE7QUFDQTtBQXdGQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/VideoPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/primitive/WaterPrimitive.js":
- /*!*****************************************************!*\
- !*** ./modules/overlay/primitive/WaterPrimitive.js ***!
- \*****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-10-11 18:24:37\n */\n\n\n\n\n\n\n\nvar WaterPrimitive = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(WaterPrimitive, _Overlay);\n\n var _super = _createSuper(WaterPrimitive);\n\n function WaterPrimitive(positions) {\n var _this;\n\n var holes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, WaterPrimitive);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n _this._holes = holes.map(function (item) {\n return _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(item);\n });\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GroundPrimitive({\n geometryInstances: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].GeometryInstance({\n geometry: {}\n }),\n asynchronous: true\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WaterPrimitive, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('water_primitive');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(positions) {\n var _this$_style, _this$_style2, _this$_style3, _this$_style4;\n\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePositions(positions);\n this._delegate.geometryInstances.geometry = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonGeometry({\n polygonHierarchy: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions), this._holes.map(function (item) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ArrayToCartesianArray(item));\n })),\n height: (_this$_style = this._style) === null || _this$_style === void 0 ? void 0 : _this$_style.height,\n extrudedHeight: (_this$_style2 = this._style) === null || _this$_style2 === void 0 ? void 0 : _this$_style2.extrudedHeight,\n closeTop: (_this$_style3 = this._style) === null || _this$_style3 === void 0 ? void 0 : _this$_style3.closeTop,\n closeBottom: (_this$_style4 = this._style) === null || _this$_style4 === void 0 ? void 0 : _this$_style4.closeBottom,\n vertexFormat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].EllipsoidSurfaceAppearance.VERTEX_FORMAT\n });\n return this;\n }\n }, {\n key: \"_setAppearance\",\n value: function _setAppearance() {\n var _this$_style5, _this$_style6, _this$_style7, _this$_style8, _this$_style9, _this$_style10, _this$_style11, _this$_style12;\n\n if (!this._style) {\n return;\n }\n\n this._delegate.appearance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].EllipsoidSurfaceAppearance({\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.fromType('Water', {\n baseWaterColor: ((_this$_style5 = this._style) === null || _this$_style5 === void 0 ? void 0 : _this$_style5.baseWaterColor) || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color(0.2, 0.3, 0.6, 1.0),\n blendColor: ((_this$_style6 = this._style) === null || _this$_style6 === void 0 ? void 0 : _this$_style6.blendColor) || new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Color(0.0, 1.0, 0.699, 1.0),\n specularMap: ((_this$_style7 = this._style) === null || _this$_style7 === void 0 ? void 0 : _this$_style7.specularMap) || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.DefaultImageId,\n normalMap: ((_this$_style8 = this._style) === null || _this$_style8 === void 0 ? void 0 : _this$_style8.normalMap) || _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Material.DefaultImageId,\n frequency: ((_this$_style9 = this._style) === null || _this$_style9 === void 0 ? void 0 : _this$_style9.frequency) || 1000.0,\n animationSpeed: ((_this$_style10 = this._style) === null || _this$_style10 === void 0 ? void 0 : _this$_style10.animationSpeed) || 0.01,\n amplitude: ((_this$_style11 = this._style) === null || _this$_style11 === void 0 ? void 0 : _this$_style11.amplitude) || 10,\n specularIntensity: ((_this$_style12 = this._style) === null || _this$_style12 === void 0 ? void 0 : _this$_style12.specularIntensity) || 0.5\n })\n });\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the positions\n */\n this.positions = this._positions;\n /**\n * set the appearance\n */\n\n !this._delegate.appearance && this._setAppearance();\n }\n /**\n * Sets Style\n * @param style\n * @returns {WaterPrimitive}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n var _this$_style13;\n\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n\n if ((_this$_style13 = this._style) !== null && _this$_style13 !== void 0 && _this$_style13.classificationType) {\n this._delegate.classificationType = this._style.classificationType;\n }\n\n this._setAppearance();\n\n return this;\n }\n }]);\n\n return WaterPrimitive;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('water_primitive');\n/* harmony default export */ __webpack_exports__[\"default\"] = (WaterPrimitive);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvcHJpbWl0aXZlL1dhdGVyUHJpbWl0aXZlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ByaW1pdGl2ZS9XYXRlclByaW1pdGl2ZS5qcz9iOTI0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTEwLTExIDE4OjI0OjM3XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IE92ZXJsYXkgZnJvbSAn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Ts7O0FBVUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVZBO0FBREE7QUFjQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTs7OztBQTdGQTtBQUNBO0FBK0ZBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/primitive/WaterPrimitive.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Billboard.js":
- /*!*********************************************!*\
- !*** ./modules/overlay/vector/Billboard.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-19 10:18:23\n */\n\n\n\n\n\n\n\nvar Billboard = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Billboard, _Overlay);\n\n var _super = _createSuper(Billboard);\n\n function Billboard(position, icon) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Billboard);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n billboard: {}\n });\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n _this._icon = icon;\n _this._size = [32, 32];\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Billboard, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('billboard');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"icon\",\n get: function get() {\n return this._icon;\n },\n set: function set(icon) {\n this._icon = icon;\n this._delegate.billboard.image = this._icon;\n return this;\n }\n }, {\n key: \"size\",\n get: function get() {\n return this._size;\n },\n set: function set(size) {\n if (!Array.isArray(size)) {\n throw new Error('Billboard: the size invalid');\n }\n\n this._size = size;\n this._delegate.billboard.width = this._size[0] || 32;\n this._delegate.billboard.height = this._size[1] || 32;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.icon = this._icon;\n this.size = this._size;\n }\n /**\n *\n * @param style\n * @returns {Billboard}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['image'] && delete style['width'] && delete style['height'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.billboard, style);\n return this;\n }\n /**\n * Parse from entity\n * @param entity\n * @returns {any}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity) {\n var billboard = undefined;\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformCartesianToWGS84(entity.position.getValue(now));\n\n if (entity.billboard) {\n var _entity$properties;\n\n billboard = new Billboard(position, entity.billboard.image.getValue(now));\n billboard.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n }\n\n return billboard;\n }\n }]);\n\n return Billboard;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('billboard');\n/* harmony default export */ __webpack_exports__[\"default\"] = (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Q0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFHQTtBQUNBO0FBQUE7QUFDQTs7OztBQS9GQTtBQUNBO0FBaUdBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Billboard.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Box.js":
- /*!***************************************!*\
- !*** ./modules/overlay/vector/Box.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-25 18:28:36\n */\n\n\n\n\n\n\n\nvar Box = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Box, _Overlay);\n\n var _super = _createSuper(Box);\n\n function Box(position, length, width, height) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Box);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._length = length;\n _this._width = width;\n _this._height = height;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n box: {\n dimensions: {\n x: +_this._length,\n y: +_this._width,\n z: +_this._height\n }\n }\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Box, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('box');\n }\n /**\n *\n * @param position\n * @returns {Box}\n */\n\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position);\n this._delegate.orientation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.headingPitchRollQuaternion(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.roll)));\n return this;\n }\n }, {\n key: \"length\",\n get: function get() {\n return this._length;\n },\n set: function set(length) {\n this._length = length || 0;\n this._delegate.box.dimensions.x = +this._length;\n return this;\n }\n }, {\n key: \"width\",\n get: function get() {\n return this._width;\n },\n set: function set(width) {\n this._width = width || 0;\n this._delegate.box.dimensions.y = +this._width;\n return this;\n }\n }, {\n key: \"height\",\n get: function get() {\n return this._height;\n },\n set: function set(height) {\n this._height = height || 0;\n this._delegate.box.dimensions.z = +this._height;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Box}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['length'] && delete style['width'] && delete style['height'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.box, style);\n return this;\n }\n }]);\n\n return Box;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('box');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Box);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL0JveC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS92ZWN0b3IvQm94LmpzP2UwMjkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDItMjUgMTg6Mjg6MzZcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBVdGlsIH0gZnJvbSAnQGdkLW1vZHVsZXMvdXRpbHMnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgT3ZlcmxheSBmcm9tICcuLi9PdmVybGF5J1xuXG5jbGFzcyBCb3ggZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IocG9zaXRpb24sIGxlbmd0aCwgd2lkdGgsIGhlaWdodCkge1xuICAgIHN1cGV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QTs7O0FBZ0JBO0FBQ0E7QUFDQTtBQWxCQTtBQUNBO0FBQ0E7QUFHQTtBQVFBO0FBQ0E7OztBQVlBO0FBQ0E7QUFDQTtBQVJBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQVlBO0FBQ0E7QUFDQTtBQVJBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQVlBO0FBQ0E7QUFDQTtBQVJBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQU1BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFsR0E7QUFDQTtBQW9HQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Box.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Circle.js":
- /*!******************************************!*\
- !*** ./modules/overlay/vector/Circle.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-31 18:57:02\n */\n\n\n\n\n\n\n\nvar Circle = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Circle, _Overlay);\n\n var _super = _createSuper(Circle);\n\n function Circle(center, radius) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Circle);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polygon: {}\n });\n _this._center = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(center);\n _this._radius = +radius || 0;\n _this._rotateAmount = 0;\n _this._stRotation = 0;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Circle, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('circle');\n }\n }, {\n key: \"center\",\n get: function get() {\n return this._center;\n },\n set: function set(center) {\n this._center = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(center);\n this._delegate.polygon.hierarchy = this._computeHierarchy();\n return this;\n }\n }, {\n key: \"radius\",\n get: function get() {\n return this._radius;\n },\n set: function set(radius) {\n this._radius = +radius;\n this._delegate.polygon.hierarchy = this._computeHierarchy();\n return this;\n }\n }, {\n key: \"rotateAmount\",\n get: function get() {\n return this._rotateAmount;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(amount) {\n var _this2 = this;\n\n this._rotateAmount = +amount;\n this._delegate.polygon.stRotation = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n _this2._stRotation += _this2._rotateAmount;\n\n if (_this2._stRotation >= 360 || _this2._stRotation <= -360) {\n _this2._stRotation = 0;\n }\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toRadians(_this2._stRotation);\n });\n return this;\n }\n }, {\n key: \"_computeHierarchy\",\n value: function _computeHierarchy() {\n var result = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].PolygonHierarchy();\n var cep = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].EllipseGeometryLibrary.computeEllipsePositions({\n center: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._center),\n semiMajorAxis: this._radius,\n semiMinorAxis: this._radius,\n rotation: 0,\n granularity: 0.005\n }, false, true);\n var pnts = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.unpackArray(cep.outerPositions);\n pnts.push(pnts[0]);\n result.positions = pnts;\n return result;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.center = this._center;\n }\n /**\n * Sets Text with Style\n * @param text\n * @param textStyle\n * @returns {Circle}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._center);\n this._delegate.label = _objectSpread(_objectSpread({}, textStyle), {}, {\n text: text\n });\n return this;\n }\n /**\n *\n * @param style\n * @returns {Circle}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.polygon, style);\n return this;\n }\n }]);\n\n return Circle;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('circle');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Circle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL0NpcmNsZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS92ZWN0b3IvQ2lyY2xlLmpzP2Y1NjAiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDEtMzEgMTg6NTc6MDJcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBVdGlsIH0gZnJvbSAnQGdkLW1vZHVsZXMvdXRpbHMnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgT3ZlcmxheSBmcm9tICcuLi9PdmVybGF5J1xuXG5jbGFzcyBDaXJjbG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Q0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUE3R0E7QUFDQTtBQStHQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Circle.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Corridor.js":
- /*!********************************************!*\
- !*** ./modules/overlay/vector/Corridor.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-04-11 18:58:17\n */\n\n\n\n\n\n\n\nvar Corridor = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Corridor, _Overlay);\n\n var _super = _createSuper(Corridor);\n\n function Corridor(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Corridor);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n corridor: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Corridor, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('corridor');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n this._delegate.corridor.positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions);\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.positions = this._positions;\n }\n /**\n *\n * @param {*} text\n * @param {*} textStyle\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Corridor}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.corridor, style);\n return this;\n }\n /**\n * Parses from entity\n * @param entity\n * @returns {Corridor|any}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity) {\n var corridor = undefined;\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n\n if (entity.polyline) {\n var _entity$properties;\n\n var positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformCartesianArrayToWGS84Array(entity.polyline.positions.getValue(now));\n corridor = new Corridor(positions);\n corridor.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n }\n\n return corridor;\n }\n }]);\n\n return Corridor;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('corridor');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Corridor);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL0NvcnJpZG9yLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ZlY3Rvci9Db3JyaWRvci5qcz9lMjdjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA0LTExIDE4OjU4OjE3XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bG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***/ "./modules/overlay/vector/Cylinder.js":
- /*!********************************************!*\
- !*** ./modules/overlay/vector/Cylinder.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-04-14 18:10:00\n */\n\n\n\n\n\n\n\nvar Cylinder = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Cylinder, _Overlay);\n\n var _super = _createSuper(Cylinder);\n\n function Cylinder(position, length, topRadius, bottomRadius) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Cylinder);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._length = +length || 0;\n _this._topRadius = +topRadius || 0;\n _this._bottomRadius = +bottomRadius || 0;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n cylinder: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Cylinder, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('cylinder');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position);\n this._delegate.orientation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.headingPitchRollQuaternion(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.roll)));\n return this;\n }\n }, {\n key: \"length\",\n get: function get() {\n return this._length;\n },\n set: function set(length) {\n this._length = +length || 0;\n this._delegate.cylinder.length = this._length;\n return this;\n }\n }, {\n key: \"topRadius\",\n get: function get() {\n return this._topRadius;\n },\n set: function set(topRadius) {\n this._topRadius = +topRadius || 0;\n this._delegate.cylinder.topRadius = this._topRadius;\n return this;\n }\n }, {\n key: \"bottomRadius\",\n get: function get() {\n return this._bottomRadius;\n },\n set: function set(bottomRadius) {\n this._bottomRadius = +bottomRadius || 0;\n this._delegate.cylinder.bottomRadius = this._bottomRadius;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.length = this._length;\n this.topRadius = this._topRadius;\n this.bottomRadius = this._bottomRadius;\n }\n /**\n *\n * @param {*} text\n * @param {*} textStyle\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Cylinder}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['length'] && delete style['topRadius'] && delete style['bottomRadius'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.cylinder, style);\n return this;\n }\n }]);\n\n return Cylinder;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('cylinder');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Cylinder);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL0N5bGluZGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ZlY3Rvci9DeWxpbmRlci5qcz83NzUyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA0LTE0IDE4OjEwOjAwXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IE92ZXJsYXkgZnJvbSAnLi4vT3ZlcmxheSdcblxuY2xhc3MgQ3lsaW5kZXIgZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IocG9zaXRpb24sIGxlbmd0aCwgdG9wUmFkaXVzLCBib3R0b21SYWRpdXMpIHtcbiAgICBzdXBlcigpXG4gICAgdGhpcy5fcG9zaXRpb24gPSBQYXJzZS5wYXJzZVBvc2l0aW9uKHBvc2l0aW9uKVxu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RUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBUEE7QUFRQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQWtCQTtBQUNBO0FBQ0E7QUFsQkE7QUFDQTtBQUNBO0FBR0E7QUFRQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFJQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXhHQTtBQUNBO0FBMEdBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Cylinder.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Ellipse.js":
- /*!*******************************************!*\
- !*** ./modules/overlay/vector/Ellipse.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-04-14 18:30:45\n */\n\n\n\n\n\n\n\nvar Ellipse = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Ellipse, _Overlay);\n\n var _super = _createSuper(Ellipse);\n\n function Ellipse(position, semiMajorAxis, semiMinorAxis) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Ellipse);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._semiMajorAxis = +semiMajorAxis || 0;\n _this._semiMinorAxis = +semiMinorAxis || 0;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n ellipse: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Ellipse, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('ellipse');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position);\n this._delegate.orientation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.headingPitchRollQuaternion(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.roll)));\n return this;\n }\n }, {\n key: \"semiMajorAxis\",\n get: function get() {\n return this._semiMajorAxis;\n },\n set: function set(semiMajorAxis) {\n this._semiMajorAxis = +semiMajorAxis || 0;\n this._delegate.ellipse.semiMajorAxis = this._semiMajorAxis;\n return this;\n }\n }, {\n key: \"semiMinorAxis\",\n get: function get() {\n return this._semiMinorAxis;\n },\n set: function set(semiMinorAxis) {\n this._semiMinorAxis = +semiMinorAxis || 0;\n this._delegate.ellipse.semiMinorAxis = this._semiMinorAxis;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.semiMajorAxis = this._semiMajorAxis;\n this.semiMinorAxis = this._semiMinorAxis;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Ellipse}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['semiMajorAxis'] && delete style['semiMinorAxis'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.ellipse, style);\n return this;\n }\n }]);\n\n return Ellipse;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('ellipse');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Ellipse);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL0VsbGlwc2UuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL292ZXJsYXkv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WxsaXBzZSwgc3R5bGUpXG4gICAgcmV0dXJuIHRoaXNcbiAgfVxufVxuXG5PdmVybGF5LnJlZ2lzdGVyVHlwZSgnZWxsaXBzZScpXG5cbmV4cG9ydCBkZWZhdWx0IEVsbGlwc2VcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBTkE7QUFPQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQWtCQTtBQUNBO0FBQ0E7QUFsQkE7QUFDQTtBQUNBO0FBR0E7QUFRQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFZQTtBQUNBO0FBQ0E7QUFSQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBL0VBO0FBQ0E7QUFpRkE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Ellipse.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Ellipsoid.js":
- /*!*********************************************!*\
- !*** ./modules/overlay/vector/Ellipsoid.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-04-14 18:20:23\n */\n\n\n\n\n\n\n\nvar Ellipsoid = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Ellipsoid, _Overlay);\n\n var _super = _createSuper(Ellipsoid);\n\n function Ellipsoid(position, radius) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Ellipsoid);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._radius = radius || {\n x: 10,\n y: 10,\n z: 10\n };\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n ellipsoid: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Ellipsoid, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('ellipsoid');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position);\n this._delegate.orientation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.headingPitchRollQuaternion(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.roll)));\n return this;\n }\n }, {\n key: \"radius\",\n get: function get() {\n return this._radius;\n },\n set: function set(radius) {\n this._radius = radius || {\n x: 10,\n y: 10,\n z: 10\n };\n this._delegate.ellipsoid.radii = this._radius;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.radius = this._radius;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Ellipsoid}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['radius'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.ellipsoid, style);\n return this;\n }\n }]);\n\n return Ellipsoid;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('ellipsoid');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Ellipsoid);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL0VsbGlwc29pZC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS92ZWN0b3IvRWxsaXBzb2lkLmpzPzUwOWUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDQtMTQgMTg6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0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXBFQTtBQUNBO0FBc0VBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Ellipsoid.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Label.js":
- /*!*****************************************!*\
- !*** ./modules/overlay/vector/Label.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-01 11:59:28\n */\n\n\n\n\n\n\n\nvar Label = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Label, _Overlay);\n\n var _super = _createSuper(Label);\n\n function Label(position, text) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Label);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n label: {}\n });\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n _this._text = text;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Label, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('label');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"text\",\n get: function get() {\n return this._text;\n },\n set: function set(text) {\n this._text = text;\n this._delegate.label.text = this._text;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.text = this._text;\n }\n /**\n *\n * @param {*} text\n * @param {*} textStyle\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Label}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['text'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.label, style);\n return this;\n }\n /**\n * Parse from entity\n * @param entity\n * @returns {any}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity) {\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformCartesianToWGS84(entity.position.getValue(now));\n var label = undefined;\n\n if (entity.billboard) {\n var _entity$properties;\n\n label = new Label(position, entity.name);\n label.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n }\n\n return label;\n }\n }]);\n\n return Label;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('label');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Label);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL0xhYmVsLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ZlY3Rvci9MYWJlbC5qcz84ZGIwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAyLTAxIDExOjU5OjI4XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1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BQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFHQTtBQUNBO0FBQUE7QUFDQTs7OztBQXpGQTtBQUNBO0FBMkZBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Label.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Plane.js":
- /*!*****************************************!*\
- !*** ./modules/overlay/vector/Plane.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-18 19:08:26\n */\n\n\n\n\n\n\n\nvar Plane = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Plane, _Overlay);\n\n var _super = _createSuper(Plane);\n\n function Plane(position, width, height) {\n var _this;\n\n var plane = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Plane);\n\n _this = _super.call(this);\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n _this._width = +width || 0;\n _this._height = +height || 0;\n\n if (plane.normal && typeof plane.normal === 'string') {\n var n = String(plane.normal).toLocaleUpperCase();\n plane.normal = n === 'X' ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.UNIT_X : n === 'Y' ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.UNIT_Y : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.UNIT_Z;\n } else {\n plane.normal = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.UNIT_Z;\n }\n\n _this._normal = plane.normal;\n _this._distance = plane.distance || 0;\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Entity({\n plane: {\n dimensions: {\n x: _this._width,\n y: _this._height\n },\n plane: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Plane(_this._normal, _this._distance)\n }\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Plane, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getOverlayType('plane');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_7__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position);\n this._delegate.orientation = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.headingPitchRollQuaternion(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_9__[\"Transform\"].transformWGS84ToCartesian(this._position), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.heading), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.pitch), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toRadians(this._position.roll)));\n return this;\n }\n }, {\n key: \"width\",\n get: function get() {\n return this._width;\n },\n set: function set(width) {\n this._width = +width || 0;\n this._delegate.plan.dimensions.x = this._width;\n return this;\n }\n }, {\n key: \"height\",\n get: function get() {\n return this._height;\n },\n set: function set(height) {\n this._height = +height || 0;\n this._delegate.plan.dimensions.y = this._height;\n return this;\n }\n }, {\n key: \"distance\",\n get: function get() {\n return this._distance;\n },\n set: function set(distance) {\n this._distance = distance;\n this._delegate.plane.plane.distance = distance;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n this.distance = this._distance;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Plane}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['dimensions'] && delete ['plane'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(this._delegate.plane, style);\n return this;\n }\n }]);\n\n return Plane;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('plane');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Plane);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL1BsYW5lLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ZlY3Rvci9QbGFuZS5qcz85MDg5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REE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFMQTtBQURBO0FBU0E7QUEzQkE7QUE0QkE7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFrQkE7QUFDQTtBQUNBO0FBbEJBO0FBQ0E7QUFDQTtBQUdBO0FBUUE7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QUE3R0E7QUFDQTtBQStHQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Plane.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Point.js":
- /*!*****************************************!*\
- !*** ./modules/overlay/vector/Point.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-06 15:03:25\n */\n\n\n\n\n\n\nvar DEF_STYLE = {\n pixelSize: 8,\n outlineColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.BLUE,\n outlineWidth: 2\n};\n\nvar Point = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Point, _Overlay);\n\n var _super = _createSuper(Point);\n\n function Point(position) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Point);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n point: {}\n });\n _this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Point, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('point');\n }\n }, {\n key: \"position\",\n get: function get() {\n return this._position;\n },\n set: function set(position) {\n this._position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePosition(position);\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this._position);\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.position = this._position;\n /**\n * initialize the Overlay parameter\n */\n\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.point, DEF_STYLE, this._style);\n }\n /**\n * Set style\n * @param style\n * @returns {Point}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['position'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.point, DEF_STYLE, this._style);\n return this;\n }\n /**\n * Parse from entity\n * @param entity\n * @returns {any}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity) {\n var _entity$properties;\n\n var point = undefined;\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformCartesianToWGS84(entity.position.getValue(now));\n point = new Point(position);\n point.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n return point;\n }\n }]);\n\n return Point;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('point');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Point);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL1BvaW50LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ZlY3Rvci9Qb2ludC5qcz80OTI5Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTA2IDE1OjAzOjI1XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IE92ZXJsYXkgZnJvbSAnLi4vT3ZlcmxheSdcblxuY29uc3QgREVGX1NUWUxFID0ge1xuICBwaXhlbFNpemU6IDgsXG4gIG91dGxpbmVDb2xvcjogQ2VzaXVtLkNvbG9yLkJMVUUsXG4gIG91dGxpbmVXaWR0aDogMlxufVxuXG5jbGFzcyBQb2ludCBleHRlbmRzIE92ZXJsYXkge1xuICBjb25zdHJ1Y3Rvcihwb3NpdGlvbikge1xuICAgIHN1cGVyKClcbiAgICB0aGlzLl9kZWxlZ2F0ZSA9IG5ldyBDZXNpdW0uRW50aXR5K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0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFKQTtBQUtBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBVUE7QUFDQTtBQUNBO0FBVkE7QUFDQTtBQUNBO0FBR0E7QUFDQTs7O0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFHQTtBQUNBOzs7O0FBbkVBO0FBQ0E7QUFxRUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Point.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Polygon.js":
- /*!*******************************************!*\
- !*** ./modules/overlay/vector/Polygon.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-09 09:10:37\n */\n\n\n\n\n\n\n\n\nvar Polygon = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(Polygon, _Overlay);\n\n var _super = _createSuper(Polygon);\n\n function Polygon(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, Polygon);\n\n _this = _super.call(this);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].Entity({\n polygon: {}\n });\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_9__[\"default\"].parsePositions(positions);\n _this._holes = [];\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_8__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Polygon, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_13__[\"default\"].getOverlayType('polygon');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_9__[\"default\"].parsePositions(positions);\n this._delegate.polygon.hierarchy = this._computeHierarchy();\n return this;\n }\n }, {\n key: \"holes\",\n get: function get() {\n return this._holes;\n },\n set: function set(holes) {\n if (holes && holes.length) {\n this._holes = holes.map(function (item) {\n return _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_9__[\"default\"].parsePositions(item);\n });\n this._delegate.polygon.hierarchy = this._computeHierarchy();\n }\n\n return this;\n }\n }, {\n key: \"center\",\n get: function get() {\n return Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_12__[\"center\"])([].concat(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(this._positions), [this._positions[0]]));\n }\n }, {\n key: \"area\",\n get: function get() {\n return Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_12__[\"area\"])(this._positions);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_computeHierarchy\",\n value: function _computeHierarchy() {\n var result = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].PolygonHierarchy();\n result.positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_11__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions);\n result.holes = this._holes.map(function (item) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_11__[\"Transform\"].transformWGS84ArrayToCartesianArray(item));\n });\n return result;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * initialize the Overlay parameter\n */\n this.positions = this._positions;\n }\n /**\n * Sets text\n * @param text\n * @param textStyle\n * @returns {Polygon}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_11__[\"Transform\"].transformWGS84ToCartesian(this.center);\n this._delegate.label = _objectSpread({\n text: text\n }, textStyle);\n return this;\n }\n /**\n * Sets style\n * @param style\n * @returns {Polygon}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_10__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_10__[\"Util\"].merge(this._delegate.polygon, style);\n return this;\n }\n /**\n * Parse from entity\n * @param entity\n * @returns {any}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity) {\n var polygon = undefined;\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_7__[\"Cesium\"].JulianDate.now();\n\n if (entity.polygon) {\n var _entity$properties;\n\n var positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_11__[\"Transform\"].transformCartesianArrayToWGS84Array(entity.polygon.hierarchy.getValue(now).positions);\n polygon = new Polygon(positions);\n polygon.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n }\n\n return polygon;\n }\n }]);\n\n return Polygon;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_13__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_13__[\"default\"].registerType('polygon');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Polygon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZX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NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFMQTtBQU1BO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTs7O0FBUUE7QUFDQTtBQUNBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBY0E7QUFDQTtBQUNBO0FBVkE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7OztBQU1BO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUFBO0FBS0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFJQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUdBO0FBQ0E7QUFHQTtBQUNBO0FBQUE7QUFDQTs7OztBQXBIQTtBQUNBO0FBc0hBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Polygon.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Polyline.js":
- /*!********************************************!*\
- !*** ./modules/overlay/vector/Polyline.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-06 15:03:25\n */\n\n\n\n\n\n\n\n\nvar Polyline = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Polyline, _Overlay);\n\n var _super = _createSuper(Polyline);\n\n function Polyline(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Polyline);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polyline: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Polyline, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_12__[\"default\"].getOverlayType('polyline');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n this._delegate.polyline.positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions);\n return this;\n }\n }, {\n key: \"center\",\n get: function get() {\n return Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_11__[\"center\"])(this._positions);\n }\n }, {\n key: \"distance\",\n get: function get() {\n return Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_11__[\"distance\"])(this._positions);\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * initialize the Overlay parameter\n */\n this.positions = this._positions;\n }\n /**\n * Sets Text\n * @param text\n * @param textStyle\n * @returns {Polyline}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n this._delegate.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ToCartesian(this.center);\n this._delegate.label = _objectSpread({\n text: text\n }, textStyle);\n return this;\n }\n /**\n * Sets style\n * @param style\n * @returns {Polyline}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (!style || Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.polyline, style);\n return this;\n }\n /**\n * Parse from entity\n * @param entity\n * @returns {Polyline}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity) {\n var polyline = undefined;\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n\n if (entity.polyline) {\n var _entity$properties;\n\n var positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformCartesianArrayToWGS84Array(entity.polyline.positions.getValue(now));\n polyline = new Polyline(positions);\n polyline.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n }\n\n return polyline;\n }\n }]);\n\n return Polyline;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_12__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_12__[\"default\"].registerType('polyline');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Polyline);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL1BvbHlsaW5lLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ZlY3Rvci9Qb2x5bGluZS5qcz9jNWU5Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTA2IDE1OjAzOjI1XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1b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FDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBSkE7QUFLQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQVVBO0FBQ0E7QUFDQTtBQVZBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7OztBQU1BO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUlBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBR0E7QUFDQTtBQUdBO0FBQ0E7QUFBQTtBQUNBOzs7O0FBdkZBO0FBQ0E7QUF5RkE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Polyline.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/PolylineVolume.js":
- /*!**************************************************!*\
- !*** ./modules/overlay/vector/PolylineVolume.js ***!
- \**************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-04-14 20:10:34\n */\n\n\n\n\n\n\n\nvar PolylineVolume = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(PolylineVolume, _Overlay);\n\n var _super = _createSuper(PolylineVolume);\n\n function PolylineVolume(positions, shape) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, PolylineVolume);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n _this._shape = shape || [];\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polylineVolume: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(PolylineVolume, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('polyline_volume');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n this._delegate.polylineVolume.positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions);\n return this;\n }\n }, {\n key: \"shape\",\n get: function get() {\n return this._shape;\n },\n set: function set(shape) {\n this._shape = shape || [];\n this._delegate.polylineVolume.shape = this._shape;\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.positions = this._positions;\n /**\n * initialize the Overlay parameter\n */\n\n this.shape = this._shape;\n }\n /**\n * @param text\n * @param textStyle\n * @returns {PolylineVolume}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets style\n * @param style\n * @returns {PolylineVolume}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'] && delete style['shape'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.polylineVolume, style);\n return this;\n }\n /**\n * Parses from entity\n * @param entity\n * @param shape\n * @returns {PolylineVolume|any}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity, shape) {\n var polylineVolume = undefined;\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n\n if (entity.polyline) {\n var _entity$properties;\n\n var positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformCartesianArrayToWGS84Array(entity.polyline.positions.getValue(now));\n polylineVolume = new PolylineVolume(positions, shape);\n polylineVolume.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n }\n\n return polylineVolume;\n }\n }]);\n\n return PolylineVolume;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('polyline_volume');\n/* harmony default export */ __webpack_exports__[\"default\"] = (PolylineVolume);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL1BvbHlsaW5lVm9sdW1lLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9vdmVybGF5L3ZlY3Rvci9Qb2x5bGluZVZvbHVtZS5qcz8xNDVjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA0LTE0IDIwOjEwOjM0XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IFBhcnNlIGZyb20gJ0BnZC1tb2R1bGVzL3BhcnNlL1BhcnNlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IE92ZXJsYXkgZnJvbSAnLi4vT3ZlcmxheSdcblxuY2xhc3MgUG9seWxpbmVWb2x1bWUgZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IocG9zaXRpb25zLCBzaGFwZSkge1xuICAgIHN1cGVyKClc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E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBR0E7QUFDQTtBQUdBO0FBQ0E7QUFBQTtBQUNBOzs7O0FBMUZBO0FBQ0E7QUE0RkE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/vector/PolylineVolume.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Rectangle.js":
- /*!*********************************************!*\
- !*** ./modules/overlay/vector/Rectangle.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-04-14 20:46:23\n */\n\n\n\n\n\n\n\nvar Rectangle = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Rectangle, _Overlay);\n\n var _super = _createSuper(Rectangle);\n\n function Rectangle(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Rectangle);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n rectangle: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Rectangle, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('rectangle');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n this._delegate.rectangle.coordinates = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Rectangle.fromCartesianArray(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions));\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.positions = this._positions;\n }\n /**\n * @param text\n * @param textStyle\n * @returns {Rectangle}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n this._delegate.position = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartographic.toCartesian(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Rectangle.center(this._delegate.rectangle, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartographic()));\n this._delegate.label = _objectSpread(_objectSpread({}, textStyle), {}, {\n text: text\n });\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Rectangle}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.rectangle, style);\n return this;\n }\n }]);\n\n return Rectangle;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('rectangle');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Rectangle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL1JlY3RhbmdsZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvb3ZlcmxheS92ZWN0b3IvUmVjdGFuZ2xlLmpzPzcxY2MiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDQtMTQgMjA6NDY6MjNcbiAqL1xuX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WVyZ2UodGhpcy5fc3R5bGUsIHN0eWxlKVxuICAgIFV0aWwubWVyZ2UodGhpcy5fZGVsZWdhdGUucmVjdGFuZ2xlLCBzdHlsZSlcbiAgICByZXR1cm4gdGhpc1xuICB9XG59XG5cbk92ZXJsYXkucmVnaXN0ZXJUeXBlKCdyZWN0YW5nbGUnKVxuXG5leHBvcnQgZGVmYXVsdCBSZWN0YW5nbGVcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBSkE7QUFLQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQVVBO0FBQ0E7QUFDQTtBQVZBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7OztBQU1BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQU1BO0FBRUE7QUFGQTtBQUlBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBL0RBO0FBQ0E7QUFpRUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Rectangle.js\n");
- /***/ }),
- /***/ "./modules/overlay/vector/Wall.js":
- /*!****************************************!*\
- !*** ./modules/overlay/vector/Wall.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Overlay */ \"./modules/overlay/Overlay.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-25 18:28:36\n */\n\n\n\n\n\n\n\nvar Wall = /*#__PURE__*/function (_Overlay) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(Wall, _Overlay);\n\n var _super = _createSuper(Wall);\n\n function Wall(positions) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Wall);\n\n _this = _super.call(this);\n _this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n _this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n wall: {}\n });\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Wall, [{\n key: \"type\",\n get: function get() {\n return _Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getOverlayType('wall');\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_8__[\"default\"].parsePositions(positions);\n this._delegate.wall.positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions);\n return this;\n }\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n /**\n * set the location\n */\n this.positions = this._positions;\n }\n /**\n *\n * @param text\n * @param textStyle\n * @returns {Wall}\n */\n\n }, {\n key: \"setLabel\",\n value: function setLabel(text, textStyle) {\n return this;\n }\n /**\n * Sets Style\n * @param style\n * @returns {Wall}\n */\n\n }, {\n key: \"setStyle\",\n value: function setStyle(style) {\n if (Object.keys(style).length === 0) {\n return this;\n }\n\n delete style['positions'];\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._style, style);\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_9__[\"Util\"].merge(this._delegate.wall, style);\n return this;\n }\n /**\n * Parses from entity\n * @param entity\n * @returns {Wall|any}\n */\n\n }], [{\n key: \"fromEntity\",\n value: function fromEntity(entity) {\n var wall = undefined;\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].JulianDate.now();\n\n if (entity.polyline) {\n var _entity$properties;\n\n var positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_10__[\"Transform\"].transformCartesianArrayToWGS84Array(entity.polyline.positions.getValue(now));\n wall = new Wall(positions);\n wall.attr = _objectSpread({}, entity === null || entity === void 0 ? void 0 : (_entity$properties = entity.properties) === null || _entity$properties === void 0 ? void 0 : _entity$properties.getValue(now));\n }\n\n return wall;\n }\n }]);\n\n return Wall;\n}(_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"]);\n\n_Overlay__WEBPACK_IMPORTED_MODULE_11__[\"default\"].registerType('wall');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Wall);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL1dhbGwuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL292ZXJsYXkvdmVjdG9yL1dhbGwuanM/YjNiNSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMi0yNSAxODoyODozNlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBQYXJzZSBmcm9tICdAZ2QtbW9kdWxlcy9wYXJzZS9QYXJzZSdcbmltcG9ydCB7IFV0aWwgfSBmcm9tICdAZ2QtbW9kdWxlcy91dGlscydcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCBPdmVybGF5IGZyb20gJy4uL092ZXJsYXknXG5cbmNsYXNzIFdhbGwgZXh0ZW5kcyBPdmVybGF5IHtcbiAgY29uc3RydWN0b3IocG9zaXRpb25zKSB7XG4gICAgc3VwZXIoKVxuICAgIHRoaXMuX3Bvc2l0aW9ucyA9IFBhcnNlLnBhcnNlUG9zaXRpb25zKHBvc2l0aW9ucylcbiAgICB0aGlzLl9kZWxlZ2F0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7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBSkE7QUFLQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQVVBO0FBQ0E7QUFDQTtBQVZBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7OztBQU1BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBR0E7QUFDQTtBQUdBO0FBQ0E7QUFBQTtBQUNBOzs7O0FBMUVBO0FBQ0E7QUE0RUE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/overlay/vector/Wall.js\n");
- /***/ }),
- /***/ "./modules/parse/Parse.js":
- /*!********************************!*\
- !*** ./modules/parse/Parse.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/position/Position */ \"./modules/position/Position.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-03-22 00:10:25\n */\n\n\nvar Parse = /*#__PURE__*/function () {\n function Parse() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Parse);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Parse, null, [{\n key: \"parsePosition\",\n value:\n /**\n * Parses all kinds of coordinates to position\n * @param position\n * @returns {Position}\n */\n function parsePosition(position) {\n var result = new _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"]();\n\n if (!position) {\n return result;\n }\n\n if (typeof position === 'string') {\n result = _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"].fromString(position);\n } else if (Array.isArray(position)) {\n result = _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"].fromArray(position);\n } else if (!(Object(position) instanceof _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) && Object(position).hasOwnProperty('lng') && Object(position).hasOwnProperty('lat')) {\n result = _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"].fromObject(position);\n } else if (Object(position) instanceof _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n result = position;\n }\n\n return result;\n }\n /**\n * Parses all kinds of coordinates array to position array\n * @param positions\n * @returns {unknown[]}\n */\n\n }, {\n key: \"parsePositions\",\n value: function parsePositions(positions) {\n if (typeof positions === 'string') {\n if (positions.indexOf('#') >= 0) {\n throw new Error('the positions invalid');\n }\n\n positions = positions.split(';').filter(function (item) {\n return !!item;\n });\n }\n\n return positions.map(function (item) {\n if (typeof item === 'string') {\n return _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"].fromString(item);\n } else if (Array.isArray(item)) {\n return _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"].fromArray(item);\n } else if (!(Object(item) instanceof _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) && Object(item).hasOwnProperty('lng') && Object(item).hasOwnProperty('lat')) {\n return _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"].fromObject(item);\n } else if (Object(item) instanceof _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n return item;\n }\n });\n }\n /**\n * Parses point position to array\n * @param position\n * @returns {*[]}\n */\n\n }, {\n key: \"parsePointCoordToArray\",\n value: function parsePointCoordToArray(position) {\n position = this.parsePosition(position);\n return [position.lng, position.lat];\n }\n /**\n * Parses polyline positions to array\n * @param positions\n * @returns {[]}\n */\n\n }, {\n key: \"parsePolylineCoordToArray\",\n value: function parsePolylineCoordToArray(positions) {\n var result = [];\n positions = this.parsePositions(positions);\n positions.forEach(function (item) {\n result.push([item.lng, item.lat]);\n });\n return result;\n }\n /**\n * Parses polygon positions to array\n * @param positions\n * @param loop\n * @returns {[][]}\n */\n\n }, {\n key: \"parsePolygonCoordToArray\",\n value: function parsePolygonCoordToArray(positions) {\n var loop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var result = [];\n positions = this.parsePositions(positions);\n positions.forEach(function (item) {\n result.push([item.lng, item.lat]);\n });\n\n if (loop && result.length > 0) {\n result.push(result[0]);\n }\n\n return [result];\n }\n }]);\n\n return Parse;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Parse);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,e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BQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/parse/Parse.js\n");
- /***/ }),
- /***/ "./modules/plot/Plot.js":
- /*!******************************!*\
- !*** ./modules/plot/Plot.js ***!
- \******************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _draw_DrawPoint__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./draw/DrawPoint */ \"./modules/plot/draw/DrawPoint.js\");\n/* harmony import */ var _draw_DrawPolyline__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./draw/DrawPolyline */ \"./modules/plot/draw/DrawPolyline.js\");\n/* harmony import */ var _draw_DrawPolygon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./draw/DrawPolygon */ \"./modules/plot/draw/DrawPolygon.js\");\n/* harmony import */ var _draw_DrawCircle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./draw/DrawCircle */ \"./modules/plot/draw/DrawCircle.js\");\n/* harmony import */ var _draw_DrawRectangle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./draw/DrawRectangle */ \"./modules/plot/draw/DrawRectangle.js\");\n/* harmony import */ var _draw_DrawBillboard__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./draw/DrawBillboard */ \"./modules/plot/draw/DrawBillboard.js\");\n/* harmony import */ var _draw_DrawAttackArrow__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./draw/DrawAttackArrow */ \"./modules/plot/draw/DrawAttackArrow.js\");\n/* harmony import */ var _draw_DrawDoubleArrow__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./draw/DrawDoubleArrow */ \"./modules/plot/draw/DrawDoubleArrow.js\");\n/* harmony import */ var _draw_DrawFineArrow__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./draw/DrawFineArrow */ \"./modules/plot/draw/DrawFineArrow.js\");\n/* harmony import */ var _draw_DrawGatheringPlace__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./draw/DrawGatheringPlace */ \"./modules/plot/draw/DrawGatheringPlace.js\");\n/* harmony import */ var _draw_DrawTailedAttackArrow__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./draw/DrawTailedAttackArrow */ \"./modules/plot/draw/DrawTailedAttackArrow.js\");\n/* harmony import */ var _edit_EditPoint__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./edit/EditPoint */ \"./modules/plot/edit/EditPoint.js\");\n/* harmony import */ var _edit_EditPolyline__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./edit/EditPolyline */ \"./modules/plot/edit/EditPolyline.js\");\n/* harmony import */ var _edit_EditPolygon__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./edit/EditPolygon */ \"./modules/plot/edit/EditPolygon.js\");\n/* harmony import */ var _edit_EditCircle__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./edit/EditCircle */ \"./modules/plot/edit/EditCircle.js\");\n/* harmony import */ var _edit_EditRectangle__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./edit/EditRectangle */ \"./modules/plot/edit/EditRectangle.js\");\n/* harmony import */ var _edit_EditBillboard__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./edit/EditBillboard */ \"./modules/plot/edit/EditBillboard.js\");\n/* harmony import */ var _edit_EditAttackArrow__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./edit/EditAttackArrow */ \"./modules/plot/edit/EditAttackArrow.js\");\n/* harmony import */ var _edit_EditDoubleArrow__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./edit/EditDoubleArrow */ \"./modules/plot/edit/EditDoubleArrow.js\");\n/* harmony import */ var _edit_EditFineArrow__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./edit/EditFineArrow */ \"./modules/plot/edit/EditFineArrow.js\");\n/* harmony import */ var _edit_EditGatheringPlace__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./edit/EditGatheringPlace */ \"./modules/plot/edit/EditGatheringPlace.js\");\n/* harmony import */ var _edit_EditTailedAttackArrow__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./edit/EditTailedAttackArrow */ \"./modules/plot/edit/EditTailedAttackArrow.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 19:26:06\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Plot = /*#__PURE__*/function () {\n function Plot(viewer) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Plot);\n\n this._viewer = viewer;\n this._options = options;\n this._layer = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CustomDataSource('plot-layer');\n\n this._viewer.dataSources.add(this._layer);\n\n this._currentWorker = undefined;\n this._state = undefined;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Plot, [{\n key: \"viewer\",\n get: function get() {\n return this._viewer;\n }\n }, {\n key: \"layer\",\n get: function get() {\n return this._layer;\n }\n }, {\n key: \"state\",\n get: function get() {\n return this._state;\n }\n /**\n *\n * @param type\n * @param style\n * @private\n */\n\n }, {\n key: \"_createDrawWorker\",\n value: function _createDrawWorker(type, style) {\n var drawWorker = undefined;\n\n switch (type) {\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].POINT:\n drawWorker = new _draw_DrawPoint__WEBPACK_IMPORTED_MODULE_5__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].POLYLINE:\n drawWorker = new _draw_DrawPolyline__WEBPACK_IMPORTED_MODULE_6__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].POLYGON:\n drawWorker = new _draw_DrawPolygon__WEBPACK_IMPORTED_MODULE_7__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].CIRCLE:\n drawWorker = new _draw_DrawCircle__WEBPACK_IMPORTED_MODULE_8__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].RECTANGLE:\n drawWorker = new _draw_DrawRectangle__WEBPACK_IMPORTED_MODULE_9__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].BILLBOARD:\n drawWorker = new _draw_DrawBillboard__WEBPACK_IMPORTED_MODULE_10__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].ATTACK_ARROW:\n drawWorker = new _draw_DrawAttackArrow__WEBPACK_IMPORTED_MODULE_11__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].DOUBLE_ARROW:\n drawWorker = new _draw_DrawDoubleArrow__WEBPACK_IMPORTED_MODULE_12__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].FINE_ARROW:\n drawWorker = new _draw_DrawFineArrow__WEBPACK_IMPORTED_MODULE_13__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].TAILED_ATTACK_ARROW:\n drawWorker = new _draw_DrawTailedAttackArrow__WEBPACK_IMPORTED_MODULE_15__[\"default\"](style);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].GATHERING_PLACE:\n drawWorker = new _draw_DrawGatheringPlace__WEBPACK_IMPORTED_MODULE_14__[\"default\"](style);\n break;\n\n default:\n break;\n }\n\n return drawWorker;\n }\n /**\n *\n * @param overlay\n * @private\n */\n\n }, {\n key: \"_createEditWorker\",\n value: function _createEditWorker(overlay) {\n var editWorker = undefined;\n\n switch (overlay.type) {\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].POINT:\n editWorker = new _edit_EditPoint__WEBPACK_IMPORTED_MODULE_16__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].POLYLINE:\n editWorker = new _edit_EditPolyline__WEBPACK_IMPORTED_MODULE_17__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].POLYGON:\n editWorker = new _edit_EditPolygon__WEBPACK_IMPORTED_MODULE_18__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].CIRCLE:\n editWorker = new _edit_EditCircle__WEBPACK_IMPORTED_MODULE_19__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].RECTANGLE:\n editWorker = new _edit_EditRectangle__WEBPACK_IMPORTED_MODULE_20__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].BILLBOARD:\n editWorker = new _edit_EditBillboard__WEBPACK_IMPORTED_MODULE_21__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].ATTACK_ARROW:\n editWorker = new _edit_EditAttackArrow__WEBPACK_IMPORTED_MODULE_22__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].DOUBLE_ARROW:\n editWorker = new _edit_EditDoubleArrow__WEBPACK_IMPORTED_MODULE_23__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].FINE_ARROW:\n editWorker = new _edit_EditFineArrow__WEBPACK_IMPORTED_MODULE_24__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].TAILED_ATTACK_ARROW:\n editWorker = new _edit_EditTailedAttackArrow__WEBPACK_IMPORTED_MODULE_26__[\"default\"](overlay);\n break;\n\n case _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_4__[\"OverlayType\"].GATHERING_PLACE:\n editWorker = new _edit_EditGatheringPlace__WEBPACK_IMPORTED_MODULE_25__[\"default\"](overlay);\n break;\n\n default:\n break;\n }\n\n return editWorker;\n }\n /**\n *\n * @param type\n * @param callback\n * @param style\n * @param clampToModel\n * @returns {Plot}\n */\n\n }, {\n key: \"draw\",\n value: function draw(type, callback) {\n var _this$_createDrawWork;\n\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var clampToModel = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n this._state = 'draw';\n\n if (this._currentWorker) {\n this._currentWorker.stop();\n }\n\n this._currentWorker = (_this$_createDrawWork = this._createDrawWorker(type, style)) === null || _this$_createDrawWork === void 0 ? void 0 : _this$_createDrawWork.start(this, _objectSpread(_objectSpread({}, this._options), {}, {\n onDrawStop: callback,\n clampToModel: clampToModel !== null && clampToModel !== void 0 ? clampToModel : this._options.clampToModel\n }));\n return this;\n }\n /**\n *\n * @param overlay\n * @param callback\n * @param clampToModel\n * @returns {Plot}\n */\n\n }, {\n key: \"edit\",\n value: function edit(overlay, callback) {\n var _this$_createEditWork;\n\n var clampToModel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n this._state = 'edit';\n\n if (this._currentWorker) {\n this._currentWorker.stop();\n }\n\n this._currentWorker = (_this$_createEditWork = this._createEditWorker(overlay)) === null || _this$_createEditWork === void 0 ? void 0 : _this$_createEditWork.start(this, _objectSpread(_objectSpread({}, this._options), {}, {\n onEditStop: callback,\n clampToModel: clampToModel !== null && clampToModel !== void 0 ? clampToModel : this._options.clampToModel\n }));\n return this;\n }\n /**\n *\n * @return {Plot}\n */\n\n }, {\n key: \"stop\",\n value: function stop() {\n if (this._currentWorker) {\n this._currentWorker.stop();\n }\n\n this._currentWorker = null;\n return undefined;\n }\n /**\n *\n * @returns {Plot}\n */\n\n }, {\n key: \"destroy\",\n value: function destroy() {\n this._viewer.dataSources.remove(this._layer);\n\n this._viewer = undefined;\n return this;\n }\n }]);\n\n return Plot;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Plot);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvUGxvdC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvcGxvdC9QbG90Lmp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QUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQW5DQTtBQUNBO0FBb0NBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQUE7QUFDQTtBQURBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUVBO0FBQ0E7QUFIQTtBQUtBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBRUE7QUFDQTtBQUhBO0FBS0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/plot/Plot.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/Draw.js":
- /*!***********************************!*\
- !*** ./modules/plot/draw/Draw.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-31 19:45:32\n */\n\n\nvar Draw = /*#__PURE__*/function () {\n function Draw(style) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Draw);\n\n this._style = style;\n this._viewer = undefined;\n this._layer = undefined;\n this._delegate = undefined;\n this._options = {};\n this._positions = [];\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Draw, [{\n key: \"drawTool\",\n get: function get() {\n return this._viewer.drawTool;\n }\n /**\n * The hook for mount viewer\n * Subclasses need to be overridden\n * @private\n */\n\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {}\n /**\n * The hook for mount stop\n * Subclasses need to be overridden\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {}\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {}\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onAnchorMoving\",\n value: function _onAnchorMoving(position) {\n this._positions.pop();\n\n this._positions.push(position);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onDrawStop\",\n value: function _onDrawStop() {\n this._unbindEvent();\n\n this._viewer.drawTool.deactivate();\n\n this._layer.entities.remove(this._delegate);\n\n this._stopdHook();\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this.drawTool.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_2__[\"PlotEventType\"].DRAW_ANCHOR, this._onDrawAnchor, this);\n this.drawTool.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_2__[\"PlotEventType\"].ANCHOR_MOVING, this._onAnchorMoving, this);\n this.drawTool.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_2__[\"PlotEventType\"].DRAW_STOP, this._onDrawStop, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this.drawTool.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_2__[\"PlotEventType\"].DRAW_ANCHOR, this._onDrawAnchor, this);\n this.drawTool.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_2__[\"PlotEventType\"].ANCHOR_MOVING, this._onAnchorMoving, this);\n this.drawTool.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_2__[\"PlotEventType\"].DRAW_STOP, this._onDrawStop, this);\n }\n /**\n *\n * @param plot\n * @param options\n * @returns {Draw}\n */\n\n }, {\n key: \"start\",\n value: function start(plot, options) {\n this._viewer = plot.viewer;\n this._layer = plot.layer;\n this._options = options;\n\n this._viewer.editTool.deactivate();\n\n this._viewer.drawTool.activate(options);\n\n this._mountedHook();\n\n this._unbindEvent();\n\n this._bindEvent();\n\n return this;\n }\n /**\n *\n * @returns {Draw}\n */\n\n }, {\n key: \"stop\",\n value: function stop() {\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_2__[\"PlotEventType\"].DRAW_STOP);\n return this;\n }\n }]);\n\n return Draw;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Draw);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9wbG90L2RyYXcvRHJhdy5qcz9lZTdmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTMxIDE5OjQ1OjMyXG4gKi9cblxuaW1wb3J0IHsgUGxvdEV2ZW50VHlwZSB9IGZyb20gJ0BnZC1tb2R1bGVzL2V2ZW50J1xuXG5jbGFzcyBEcmF3IHtcbiAgY29uc3RydWN0b3Ioc3R5bGUpIHtcbiAgICB0aGlzLl9zdHlsZSA9IHN0eWxlXG4gICAgdGhpcy5fdmlld2VyID0gdW5kZWZpbmVkXG4gICAgdGhpcy5fbGF5ZXIgPSB1bmRlZmluZWRcbiAgICB0aGlzLl9kZWxlZ2F0ZSA9IHVuZGVmaW5lZFxuICAgIHRoaXMuX29wdGlvbnMgPSB7fVxuICAgIHRoaXMuX3Bvc2l0aW9ucyA9IFtdXG4gIH1cblxuICBnZXQgZHJhd1Rvb2woKSB7XG4gICAgcmV0dXJuIHRoaXMuX3ZpZXdlci5kcmF3VG9vbFxuICB9XG5cbiAgLyoqXG4gICAqIFRoZSBob29rIGZvciBtb3VudCB2aWV3ZXJcbiAgICogU3ViY2xhc3NlcyBuZWVkIHRvIGJlIG92ZXJyaWRkZW5cbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9tb3VudGVkSG9vaygpIHt9XG5cbiAgLyoqXG4gICAq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**********************************************!*\
- !*** ./modules/plot/draw/DrawAttackArrow.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n/* harmony import */ var _graphics_AttackArrowGraphics__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../graphics/AttackArrowGraphics */ \"./modules/plot/graphics/AttackArrowGraphics.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 16:43:12\n */\n\n\n\n\n\n\nvar DEF_STYLE = {\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6),\n fill: true\n};\n\nvar DrawAttackArrow = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawAttackArrow, _Draw);\n\n var _super = _createSuper(DrawAttackArrow);\n\n function DrawAttackArrow(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawAttackArrow);\n\n _this = _super.call(this);\n _this._maxAnchorSize = 3;\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n _this._graphics = new _graphics_AttackArrowGraphics__WEBPACK_IMPORTED_MODULE_11__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawAttackArrow, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '单击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polygon: _objectSpread(_objectSpread({}, this._style), {}, {\n hierarchy: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 2) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var attackArrow = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"AttackArrow\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(attackArrow);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n var len = this._positions.length;\n\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position\n });\n this._graphics.positions = this._positions;\n\n if (len >= this._maxAnchorSize) {\n this._positions.pop();\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].DRAW_STOP);\n }\n }\n }]);\n\n return DrawAttackArrow;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawAttackArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3QXR0YWNrQXJyb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3QXR0YWNrQXJyb3cuanM/YTJiNyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0zMCAxNjo0MzoxMlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFBsb3RFdmVudFR5cGUgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCB7IEF0dGFja0Fycm93IH0gZnJvbSAnQGdkLW1vZHVsZXMvb3ZlcmxheSdcbmltcG9ydCBEcmF3IGZyb20gJy4vRHJhdydcbmltcG9ydCBBdHRhY2tBcnJvd0dyYXBoaWNzIGZyb20gJy4uL2dyYXBoaWNzL0F0dGFja0Fycm93R3JhcGhpY3MnXG5cbmNvbnN0IERFRl9TVFlMRSA9IHtcbiAgbWF0ZXJpYWw6IENlc2l1bS5Db2xvci5ZRUxMT1cud2l0aEFscGhhKDAuNiksXG4gIGZpbGw6IHRydWVcbn1cblxuY2xhc3MgRHJhd0F0dGFja0Fycm93IGV4dGV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BQ0E7QUFJQTtBQVBBO0FBUUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQURBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFUQTtBQURBO0FBQ0E7QUFZQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUdBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBOzs7O0FBMURBO0FBQ0E7QUE0REEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawAttackArrow.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawBillboard.js":
- /*!********************************************!*\
- !*** ./modules/plot/draw/DrawBillboard.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 20:29:59\n */\n\n\n\n\n\n\nvar IMG_CIRCLE_RED = __webpack_require__(/*! @gd-modules/images/circle_red.png */ \"./modules/images/circle_red.png\");\n\nvar DrawPoint = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawPoint, _Draw);\n\n var _super = _createSuper(DrawPoint);\n\n function DrawPoint(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawPoint);\n\n _this = _super.call(this);\n _this._position = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.ZERO;\n _this._style = _objectSpread({\n image: IMG_CIRCLE_RED\n }, style);\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawPoint, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '单击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n position: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n return _this2._position;\n }, false),\n billboard: _objectSpread({}, this._style)\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var billboard = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"Billboard\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianToWGS84(this._position), this._style.image).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(billboard);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n this._position = position;\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].DRAW_STOP);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onAnchorMoving\",\n value: function _onAnchorMoving(position) {\n this._position = position;\n }\n }]);\n\n return DrawPoint;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawPoint);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3QmlsbGJvYXJkLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9wbG90L2RyYXcvRHJhd0JpbGxib2FyZC5qcz81Y2YyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA4LTI5IDIwOjI5OjU5XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgUGxvdEV2ZW50VHlwZSB9IGZyb20gJ0BnZC1tb2R1bGVzL2V2ZW50J1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IHsgQmlsbGJvYXJkIH0gZnJvbSAnQGdkLW1vZHVsZXMvb3ZlcmxheSdcbmltcG9ydCBEcmF3IGZyb20gJy4vRHJhdydcblxuY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BQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBOzs7O0FBeERBO0FBQ0E7QUEwREEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawBillboard.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawCircle.js":
- /*!*****************************************!*\
- !*** ./modules/plot/draw/DrawCircle.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 21:24:55\n */\n\n\n\n\n\nvar DEF_STYLE = {\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6),\n fill: true\n};\n\nvar DrawCircle = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawCircle, _Draw);\n\n var _super = _createSuper(DrawCircle);\n\n function DrawCircle(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawCircle);\n\n _this = _super.call(this);\n _this._maxAnchorSize = 2;\n _this._radius = 0;\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawCircle, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '单击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polygon: _objectSpread(_objectSpread({}, this._style), {}, {\n hierarchy: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 1) {\n _this2._radius = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.distance(_this2._positions[0], _this2._positions[1]);\n\n if (_this2._radius <= 0) {\n return null;\n }\n\n var cep = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].EllipseGeometryLibrary.computeEllipsePositions({\n center: _this2._positions[0],\n semiMajorAxis: _this2._radius,\n semiMinorAxis: _this2._radius,\n rotation: 0,\n granularity: 0.005\n }, false, true);\n var pnts = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.unpackArray(cep.outerPositions);\n pnts.push(pnts[0]);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].PolygonHierarchy(pnts);\n } else {\n return null;\n }\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var circle = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"Circle\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianToWGS84(this._positions[0]), this._radius).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(circle);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n var len = this._positions.length;\n\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position,\n isCenter: len === 1\n });\n\n if (len >= this._maxAnchorSize) {\n this._positions.pop();\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].DRAW_STOP);\n }\n }\n }]);\n\n return DrawCircle;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawCircle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3Q2lyY2xlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9wbG90L2RyYXcvRHJhd0NpcmNsZS5qcz82MDNlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA4LTI5IDIxOjI0OjU1XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgUGxvdEV2ZW50VHlwZSB9IGZyb20gJ0BnZC1tb2R1bGVzL2V2ZW50J1xuaW1wb3J0IH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xuICAgICAgICAgICAgKVxuICAgICAgICAgICAgaWYgKHRoaXMuX3JhZGl1cyA8PSAwKSB7XG4gICAgICAgICAgICAgIHJldHVybiBudWxsXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBsZXQgY2VwID0gQ2VzaXVtLkVsbGlwc2VHZW9tZXRyeUxpYnJhcnkuY29tcHV0ZUVsbGlwc2VQb3NpdGlvbnMoXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjZW50ZXI6IHRoaXMuX3Bvc2l0aW9uc1swXSxcbiAgICAgICAgICAgICAgICBzZW1pTWFqb3JBeGlzOiB0aGlzLl9yYWRpdXMsXG4gICAgICAgICAgICAgICAgc2VtaU1pbm9yQXhpczogdGhpcy5fcmFkaXVzLFxuICAgICAgICAgICAgICAgIHJvdGF0aW9uOiAwLFxuICAgICAgICAgICAgICAgIGdyYW51bGFyaXR5OiAwLjAwNVxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBmYWxzZSxcbiAgICAgICAgICAgICAgdHJ1ZVxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgbGV0IHBudHMgPSBDZXNpdW0uQ2FydGVzaWFuMy51bnBhY2tBcnJheShjZXAub3V0ZXJQb3NpdGlvbnMpXG4gICAgICAgICAgICBwbnRzLnB1c2gocG50c1swXSlcbiAgICAgICAgICAgIHJldHVybiBuZXcgQ2VzaXVtLlBvbHlnb25IaWVyYXJjaHkocG50cylcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgICB9XG4gICAgICAgIH0sIGZhbHNlKVxuICAgICAgfVxuICAgIH0pXG4gICAgdGhpcy5fbGF5ZXIuZW50aXRpZXMuYWRkKHRoaXMuX2RlbGVnYXRlKVxuICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwcml2YXRlXG4gICAqL1xuICBfc3RvcGRIb29rKCkge1xuICAgIGxldCBjaXJjbGUgPSBuZXcgQ2lyY2xlKF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UUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQURBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFMQTtBQVVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBNUJBO0FBREE7QUFDQTtBQStCQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUlBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFGQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBOzs7O0FBaEZBO0FBQ0E7QUFrRkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawCircle.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawDoubleArrow.js":
- /*!**********************************************!*\
- !*** ./modules/plot/draw/DrawDoubleArrow.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n/* harmony import */ var _graphics_DoubleArrowGraphics__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../graphics/DoubleArrowGraphics */ \"./modules/plot/graphics/DoubleArrowGraphics.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 16:43:12\n */\n\n\n\n\n\n\nvar DEF_STYLE = {\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6),\n fill: true\n};\n\nvar DrawDoubleArrow = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawDoubleArrow, _Draw);\n\n var _super = _createSuper(DrawDoubleArrow);\n\n function DrawDoubleArrow(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawDoubleArrow);\n\n _this = _super.call(this);\n _this._maxAnchorSize = 4;\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n _this._graphics = new _graphics_DoubleArrowGraphics__WEBPACK_IMPORTED_MODULE_11__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawDoubleArrow, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '单击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polygon: _objectSpread(_objectSpread({}, this._style), {}, {\n hierarchy: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 2) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var doubleArrow = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"DoubleArrow\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(doubleArrow);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n var len = this._positions.length;\n\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position\n });\n this._graphics.positions = this._positions;\n\n if (len >= this._maxAnchorSize) {\n this._positions.pop();\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].DRAW_STOP);\n }\n }\n }]);\n\n return DrawDoubleArrow;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawDoubleArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3RG91YmxlQXJyb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3RG91YmxlQXJyb3c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NBO0FBQUE7QUFDQTtBQUNBOzs7O0FBMURBO0FBQ0E7QUE0REEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawDoubleArrow.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawFineArrow.js":
- /*!********************************************!*\
- !*** ./modules/plot/draw/DrawFineArrow.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n/* harmony import */ var _graphics_FineArrowGraphics__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../graphics/FineArrowGraphics */ \"./modules/plot/graphics/FineArrowGraphics.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 16:43:12\n */\n\n\n\n\n\n\nvar DEF_STYLE = {\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6),\n fill: true\n};\n\nvar DrawFineArrow = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawFineArrow, _Draw);\n\n var _super = _createSuper(DrawFineArrow);\n\n function DrawFineArrow(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawFineArrow);\n\n _this = _super.call(this);\n _this._maxAnchorSize = 2;\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n _this._graphics = new _graphics_FineArrowGraphics__WEBPACK_IMPORTED_MODULE_11__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawFineArrow, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '单击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polygon: _objectSpread(_objectSpread({}, this._style), {}, {\n hierarchy: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 1) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var fineArrow = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"FineArrow\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(fineArrow);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n var len = this._positions.length;\n\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_8__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position\n });\n this._graphics.positions = this._positions;\n\n if (len >= this._maxAnchorSize) {\n this._positions.pop();\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_8__[\"PlotEventType\"].DRAW_STOP);\n }\n }\n }]);\n\n return DrawFineArrow;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawFineArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3RmluZUFycm93LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9wbG90L2RyYXcvRHJhd0ZpbmVBcnJvdy5qcz83NmUxIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA4LTMwIDE2OjQzOjEyXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IHsgUGxvdEV2ZW50VHlwZSB9IGZyb20gJ0BnZC1tb2R1bGVzL2V2ZW50J1xuaW1wb3J0IHsgRmluZUFycm93IH0gZnJvbSAnQGdkLW1vZHVsZXMvb3ZlcmxheSdcbmltcG9ydCBEcmF3IGZyb20gJy4vRHJhdydcbmltcG9ydCBGaW5lQXJyb3dHcmFwaGljcyBmcm9tICcuLi9ncmFwaGljcy9GaW5lQXJyb3dHcmFwaGljcydcblxuY29uc3QgREVGX1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QTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFGQTtBQUNBO0FBSUE7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUlBO0FBUEE7QUFRQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVRBO0FBREE7QUFDQTtBQVlBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBR0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7Ozs7QUExREE7QUFDQTtBQTREQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawFineArrow.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawGatheringPlace.js":
- /*!*************************************************!*\
- !*** ./modules/plot/draw/DrawGatheringPlace.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n/* harmony import */ var _graphics_GatheringPlaceGraphics__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../graphics/GatheringPlaceGraphics */ \"./modules/plot/graphics/GatheringPlaceGraphics.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 17:22:21\n */\n\n\n\n\n\n\nvar DEF_STYLE = {\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6),\n fill: true\n};\n\nvar DrawGatheringPlace = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawGatheringPlace, _Draw);\n\n var _super = _createSuper(DrawGatheringPlace);\n\n function DrawGatheringPlace(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawGatheringPlace);\n\n _this = _super.call(this);\n _this._maxAnchorSize = 3;\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n _this._graphics = new _graphics_GatheringPlaceGraphics__WEBPACK_IMPORTED_MODULE_11__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawGatheringPlace, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '单击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polygon: _objectSpread(_objectSpread({}, this._style), {}, {\n hierarchy: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 1) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var gatheringPlace = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"GatheringPlace\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(gatheringPlace);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n var len = this._positions.length;\n\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_8__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position\n });\n this._graphics.positions = this._positions;\n\n if (len >= this._maxAnchorSize) {\n this._positions.pop();\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_8__[\"PlotEventType\"].DRAW_STOP);\n }\n }\n }]);\n\n return DrawGatheringPlace;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawGatheringPlace);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3R2F0aGVyaW5nUGxhY2UuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmU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FDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBOzs7O0FBMURBO0FBQ0E7QUE0REEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawGatheringPlace.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawPoint.js":
- /*!****************************************!*\
- !*** ./modules/plot/draw/DrawPoint.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-31 16:25:29\n */\n\n\n\n\n\nvar DEF_STYLE = {\n pixelSize: 10,\n outlineColor: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.BLUE,\n outlineWidth: 5\n};\n\nvar DrawPoint = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawPoint, _Draw);\n\n var _super = _createSuper(DrawPoint);\n\n function DrawPoint(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawPoint);\n\n _this = _super.call(this);\n _this._position = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.ZERO;\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawPoint, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '单击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n position: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n return _this2._position;\n }, false),\n point: _objectSpread({}, this._style)\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var point = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"Point\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianToWGS84(this._position)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(point);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n this._position = position;\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].DRAW_STOP, position);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onAnchorMoving\",\n value: function _onAnchorMoving(position) {\n this._position = position;\n }\n }]);\n\n return DrawPoint;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawPoint);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3UG9pbnQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3UG9pbnQuanM/YThhOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMS0zMSAxNjoyNToyOVxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFBsb3RFdmVudFR5cGUgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCB7IFBvaW50IH0gZnJvbSAnQGdkLW1vZHVsZXMvb3ZlcmxheSdcbmltcG9ydCBEcmF3IGZyb20gJy4vRHJhdydcblxuY29uc3QgREVGX1NUWUxFID0ge1xuICBwaXhlbFNpemU6IDEwLFxuICBvdXRsaW5lQ29sb3I6IENlc2l1bS5Db2xvci5CTFVFLFxuICBvdXRsaW5lV2lkdGg6IDVcbn1cblxuY2xhc3MgRHJhd1BvaW50IGV4dGVuZHMgRHJhdyB7XG4gIGNvbnN0cnVjdG9yKHN0eWxlKSB7XG4gICAgc3VwZXIoKVxuICAgIHRoaXMuX3Bvc2l0aW9uID0gQ2VzaXVtLkNhcnRlc2lhbjMuWkVST1xuICAgIHRoaXMuX3N0eWxlID0ge1xuICAgICAg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uICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwYXJhbSBwb3NpdGlvblxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX29uQW5jaG9yTW92aW5nKHBvc2l0aW9uKSB7XG4gICAgdGhpcy5fcG9zaXRpb24gPSBwb3NpdGlvblxuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IERyYXdQb2ludFxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUhBO0FBQ0E7QUFLQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBSEE7QUFPQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFDQTtBQU9BO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBR0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTs7OztBQXZEQTtBQUNBO0FBeURBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawPoint.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawPolygon.js":
- /*!******************************************!*\
- !*** ./modules/plot/draw/DrawPolygon.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 20:55:14\n */\n\n\n\n\n\nvar DEF_STYLE = {\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6),\n fill: true\n};\n\nvar DrawPolygon = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawPolygon, _Draw);\n\n var _super = _createSuper(DrawPolygon);\n\n function DrawPolygon(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawPolygon);\n\n _this = _super.call(this);\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawPolygon, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '左击选择点位,右击结束';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polygon: _objectSpread(_objectSpread({}, this._style), {}, {\n hierarchy: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 2) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].PolygonHierarchy(_this2._positions);\n } else {\n return null;\n }\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var polygon = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"Polygon\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(polygon);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position\n });\n }\n }]);\n\n return DrawPolygon;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawPolygon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3UG9seWdvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvcGxvdC9kcmF3L0RyYXdQb2x5Z29uLmpzP2IwODIiXSwic291cmNlc0NvbnRlbnQiOlsiLy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E7QUFDQTtBQUNBO0FBRkE7QUFDQTtBQUlBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBRkE7QUFNQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFSQTtBQURBO0FBQ0E7QUFXQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUdBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBOzs7O0FBakRBO0FBQ0E7QUFtREEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawPolygon.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawPolyline.js":
- /*!*******************************************!*\
- !*** ./modules/plot/draw/DrawPolyline.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 20:54:37\n */\n\n\n\n\n\nvar DEF_STYLE = {\n width: 3,\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6)\n};\n\nvar DrawPolyline = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawPolyline, _Draw);\n\n var _super = _createSuper(DrawPolyline);\n\n function DrawPolyline(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawPolyline);\n\n _this = _super.call(this);\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawPolyline, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '左击选择点位,右击结束';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polyline: _objectSpread(_objectSpread({}, this._style), {}, {\n positions: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n return _this2._positions;\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var polyline = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"Polyline\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(polyline);\n }\n /**\n *\n * @param position\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position\n });\n }\n }]);\n\n return DrawPolyline;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawPolyline);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3UG9seWxpbmUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3UG9seWxpbmUuanM/MjQzOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0yOSAyMDo1NDozN1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFBsb3RFdmVudFR5cGUgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCB7IFBvbHlsaW5lIH0gZnJvbSAnQGdkLW1vZHVsZXMvb3ZlcmxheSdcbmltcG9ydCBEcmF3IGZyb20gJy4vRHJhdydcblxuY29uc3QgREVGX1NUWUxFID0ge1xuICB3aWR0aDogMyxcbiAgbWF0ZXJpYWw6IENlc2l1bS5Db2xvci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cbiAgICogQHBhcmFtIHBvc2l0aW9uXG4gICAqIEByZXR1cm5zIHtib29sZWFufVxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX29uRHJhd0FuY2hvcihwb3NpdGlvbikge1xuICAgIHRoaXMuX3Bvc2l0aW9ucy5wdXNoKHBvc2l0aW9uKVxuICAgIHRoaXMuZHJhd1Rvb2wuZmlyZShQbG90RXZlbnRUeXBlLkNSRUFURV9BTkNIT1IsIHsgcG9zaXRpb24gfSlcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBEcmF3UG9seWxpbmVcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRkE7QUFDQTtBQUlBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBRkE7QUFNQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBSkE7QUFEQTtBQUNBO0FBT0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFHQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBOzs7O0FBOUNBO0FBQ0E7QUFnREEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawPolyline.js\n");
- /***/ }),
- /***/ "./modules/plot/draw/DrawRectangle.js":
- /*!********************************************!*\
- !*** ./modules/plot/draw/DrawRectangle.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-29 21:30:41\n */\n\n\n\n\n\nvar DEF_STYLE = {\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6)\n};\n\nvar DrawRectangle = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawRectangle, _Draw);\n\n var _super = _createSuper(DrawRectangle);\n\n function DrawRectangle(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawRectangle);\n\n _this = _super.call(this);\n _this._maxAnchorSize = 2;\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawRectangle, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '左击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n rectangle: _objectSpread(_objectSpread({}, this._style), {}, {\n coordinates: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function (time) {\n if (_this2._positions.length > 1) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Rectangle.fromCartesianArray(_this2._positions);\n } else {\n return null;\n }\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var rectangle = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"Rectangle\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(rectangle);\n }\n /**\n *\n * @param position\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n var len = this._positions.length;\n\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position\n });\n\n if (len >= this._maxAnchorSize) {\n this._positions.pop();\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].DRAW_STOP);\n }\n }\n }]);\n\n return DrawRectangle;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawRectangle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW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- /***/ "./modules/plot/draw/DrawTailedAttackArrow.js":
- /*!****************************************************!*\
- !*** ./modules/plot/draw/DrawTailedAttackArrow.js ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _Draw__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Draw */ \"./modules/plot/draw/Draw.js\");\n/* harmony import */ var _graphics_TailedAttackArrowGraphics__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../graphics/TailedAttackArrowGraphics */ \"./modules/plot/graphics/TailedAttackArrowGraphics.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 16:43:12\n */\n\n\n\n\n\n\nvar DEF_STYLE = {\n material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.YELLOW.withAlpha(0.6),\n fill: true\n};\n\nvar DrawTailedAttackArrow = /*#__PURE__*/function (_Draw) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(DrawTailedAttackArrow, _Draw);\n\n var _super = _createSuper(DrawTailedAttackArrow);\n\n function DrawTailedAttackArrow(style) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawTailedAttackArrow);\n\n _this = _super.call(this);\n _this._maxAnchorSize = 3;\n _this._style = _objectSpread(_objectSpread({}, DEF_STYLE), style);\n _this._graphics = new _graphics_TailedAttackArrowGraphics__WEBPACK_IMPORTED_MODULE_11__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawTailedAttackArrow, [{\n key: \"_mountEntity\",\n value: function _mountEntity() {\n var _this2 = this;\n\n this.drawTool.tooltipMess = '左击选择点位';\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity({\n polygon: _objectSpread(_objectSpread({}, this._style), {}, {\n hierarchy: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 2) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false)\n })\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopdHook\",\n value: function _stopdHook() {\n var tailedAttackArrow = new _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_9__[\"TailedAttackArrow\"](_gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions)).setStyle(this._style);\n this._options.onDrawStop && this._options.onDrawStop(tailedAttackArrow);\n }\n /**\n *\n * @param position\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onDrawAnchor\",\n value: function _onDrawAnchor(position) {\n var len = this._positions.length;\n\n this._positions.push(position);\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: position\n });\n this._graphics.positions = this._positions;\n\n if (len >= this._maxAnchorSize) {\n this._positions.pop();\n\n this.drawTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_7__[\"PlotEventType\"].DRAW_STOP);\n }\n }\n }]);\n\n return DrawTailedAttackArrow;\n}(_Draw__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawTailedAttackArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3VGFpbGVkQXR0YWNrQXJyb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZHJhdy9EcmF3VGFpbGVkQXR0YWNrQXJyb3cuanM/M2NiMCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0zMCAxNjo0MzoxMlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFBsb3RFdmVudFR5cGUgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybSdcbmltcG9ydCB7IFRhaWxlZEF0dGFja0Fycm93IH0gZnJvbSAnQGdkLW1vZHVsZXMvb3ZlcmxheSdcbmltcG9ydCBEcmF3IGZyb20gJy4vRHJhdydcbmltcG9ydCBUYWlsZWRBdHRhY2tBcnJvd0dyYXBoaWNzIGZyb20gJy4uL2dyYXBoaWNzL1RhaWxlZEF0dGFja0Fycm93R3JhcGhpY3MnXG5cbmNvbnN0IER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ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUZBO0FBQ0E7QUFJQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBSUE7QUFQQTtBQVFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFEQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBVEE7QUFEQTtBQUNBO0FBWUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFHQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBOzs7O0FBM0RBO0FBQ0E7QUE2REEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/draw/DrawTailedAttackArrow.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/Edit.js":
- /*!***********************************!*\
- !*** ./modules/plot/edit/Edit.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 23:50:53\n */\n\n\n\n\nvar Edit = /*#__PURE__*/function () {\n function Edit(overlay) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Edit);\n\n this._viewer = undefined;\n this._layer = undefined;\n this._overlay = overlay;\n this._overlay.show = false;\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Entity();\n\n this._delegate.merge(overlay.delegate);\n\n this._options = {};\n this._positions = [];\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Edit, [{\n key: \"editTool\",\n get: function get() {\n return this._viewer.editTool;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountedHook\",\n value: function _mountedHook() {\n this._overlay.positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions);\n this._overlay.show = true;\n this._options.onEditStop && this._options.onEditStop(this._overlay);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopedHook\",\n value: function _stopedHook() {\n this._overlay.positions = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions);\n this._overlay.show = true;\n this._options.onEditStop && this._options.onEditStop(this._overlay);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountAnchor\",\n value: function _mountAnchor() {\n var _this = this;\n\n this._positions = [].concat(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._overlay.positions));\n\n this._positions.forEach(function (item, index) {\n _this.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: item,\n index: index\n });\n });\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onEditAnchorStop\",\n value: function _onEditAnchorStop(_ref) {\n var pickedAnchor = _ref.pickedAnchor,\n position = _ref.position;\n var properties = pickedAnchor.properties.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.now());\n this._positions[properties.index] = position;\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @private\n */\n\n }, {\n key: \"_onAnchorMoving\",\n value: function _onAnchorMoving(_ref2) {\n var pickedAnchor = _ref2.pickedAnchor,\n position = _ref2.position;\n var properties = pickedAnchor.properties.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.now());\n this._positions[properties.index] = position;\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @private\n */\n\n }, {\n key: \"_onEditStop\",\n value: function _onEditStop(_ref3) {\n var pickedAnchor = _ref3.pickedAnchor,\n position = _ref3.position;\n\n this._unbindEvent();\n\n this._viewer.editTool.deactivate();\n\n this._layer.entities.remove(this._delegate);\n\n this._stopedHook();\n }\n /**\n *\n * @returns {Edit}\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this.editTool.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PlotEventType\"].ANCHOR_MOVING, this._onAnchorMoving, this);\n this.editTool.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PlotEventType\"].EDIT_ANCHOR_STOP, this._onEditAnchorStop, this);\n this.editTool.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PlotEventType\"].EDIT_STOP, this._onEditStop, this);\n return this;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this.editTool.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PlotEventType\"].ANCHOR_MOVING, this._onAnchorMoving, this);\n this.editTool.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PlotEventType\"].EDIT_ANCHOR_STOP, this._onEditAnchorStop, this);\n this.editTool.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PlotEventType\"].EDIT_STOP, this._onEditStop, this);\n }\n /**\n *\n * @param measure\n * @param options\n * @returns {Edit}\n */\n\n }, {\n key: \"start\",\n value: function start(measure, options) {\n this._viewer = measure.viewer;\n this._layer = measure.layer;\n this._options = options;\n this._viewer.editTool.tooltipMess = '点击锚点移动,右击结束编辑';\n\n this._viewer.editTool.activate(options);\n\n this._mountedHook();\n\n this._mountAnchor();\n\n this._unbindEvent();\n\n this._bindEvent();\n\n return this;\n }\n /**\n *\n * @returns {Edit}\n */\n\n }, {\n key: \"stop\",\n value: function stop() {\n this.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PlotEventType\"].EDIT_STOP, {\n pickedAnchor: null,\n position: null\n });\n return this;\n }\n }]);\n\n return Edit;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Edit);//# sourceURL=[module]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************************!*\
- !*** ./modules/plot/edit/EditAttackArrow.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n/* harmony import */ var _graphics_AttackArrowGraphics__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../graphics/AttackArrowGraphics */ \"./modules/plot/graphics/AttackArrowGraphics.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 23:46:07\n */\n\n\n\n\nvar EditAttackArrow = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditAttackArrow, _Edit);\n\n var _super = _createSuper(EditAttackArrow);\n\n function EditAttackArrow(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditAttackArrow);\n\n _this = _super.call(this, overlay);\n _this._graphics = new _graphics_AttackArrowGraphics__WEBPACK_IMPORTED_MODULE_7__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditAttackArrow, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this._delegate.polygon.hierarchy = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 2) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n }]);\n\n return EditAttackArrow;\n}(_Edit__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditAttackArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0QXR0YWNrQXJyb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0QXR0YWNrQXJyb3cuanM/NmFhNiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0zMCAyMzo0NjowN1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBFZGl0IGZyb20gJy4vRWRpdCdcbmltcG9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BQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7Ozs7QUFwQkE7QUFDQTtBQXNCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditAttackArrow.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditBillboard.js":
- /*!********************************************!*\
- !*** ./modules/plot/edit/EditBillboard.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 22:04:36\n */\n\n\n\n\nvar EditBillboard = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditBillboard, _Edit);\n\n var _super = _createSuper(EditBillboard);\n\n function EditBillboard(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditBillboard);\n\n _this = _super.call(this, overlay);\n _this._position = undefined;\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditBillboard, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.editTool.tooltipMess = '右击结束编辑';\n this._position = this._delegate.position.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now());\n this._delegate.position = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function () {\n return _this2._position;\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopedHook\",\n value: function _stopedHook() {\n this._overlay.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"Transform\"].transformCartesianToWGS84(this._position);\n this._overlay.show = true;\n this._options.onEditStop && this._options.onEditStop(this._overlay);\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @private\n */\n\n }, {\n key: \"_onAnchorMoving\",\n value: function _onAnchorMoving(_ref) {\n var pickedAnchor = _ref.pickedAnchor,\n position = _ref.position;\n this._position = position;\n }\n }]);\n\n return EditBillboard;\n}(_Edit__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditBillboard);//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UFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTs7OztBQXJDQTtBQUNBO0FBdUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditBillboard.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditCircle.js":
- /*!*****************************************!*\
- !*** ./modules/plot/edit/EditCircle.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-31 10:54:38\n */\n\n\n\n\n\nvar EditCircle = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditCircle, _Edit);\n\n var _super = _createSuper(EditCircle);\n\n function EditCircle(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditCircle);\n\n _this = _super.call(this, overlay);\n _this._center = undefined;\n _this._radius = 0;\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditCircle, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this._radius = this._overlay.radius;\n this._center = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__[\"Transform\"].transformWGS84ToCartesian(this._overlay.center);\n this._positions = [].concat([this._center, this._computeCirclePoints(this._center, this._radius)[0]]);\n this._delegate.polygon.hierarchy = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function (time) {\n if (_this2._positions.length > 1) {\n _this2._radius = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.distance(_this2._positions[0], _this2._positions[1]);\n\n if (_this2._radius <= 0) {\n return null;\n }\n\n var pnts = _this2._computeCirclePoints(_this2._positions[0], _this2._radius);\n\n pnts.push(pnts[0]);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(pnts);\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @param center\n * @param radius\n * @returns {*[]}\n * @private\n */\n\n }, {\n key: \"_computeCirclePoints\",\n value: function _computeCirclePoints(center, radius) {\n var pnts = [];\n var cep = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].EllipseGeometryLibrary.computeEllipsePositions({\n center: center,\n semiMajorAxis: radius,\n semiMinorAxis: radius,\n rotation: 0,\n granularity: 0.005\n }, false, true);\n\n if (cep && cep.outerPositions) {\n pnts = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.unpackArray(cep.outerPositions);\n }\n\n return pnts;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopedHook\",\n value: function _stopedHook() {\n this._overlay.center = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__[\"Transform\"].transformCartesianToWGS84(this._positions[0]);\n this._overlay.radius = this._radius;\n this._overlay.show = true;\n this._options.onEditStop && this._options.onEditStop(this._overlay);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountAnchor\",\n value: function _mountAnchor() {\n var _this3 = this;\n\n this._positions.forEach(function (item, index) {\n _this3.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: item,\n index: index,\n isCenter: index % 2 === 0\n });\n });\n }\n }]);\n\n return EditCircle;\n}(_Edit__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditCircle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0Q2lyY2xlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9wbG90L2VkaXQvRWRpdENpcmNsZS5qcz82OTU2Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5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QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUhBO0FBSUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQURBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUxBO0FBQ0E7QUFTQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFLQTtBQUNBOzs7O0FBeEZBO0FBQ0E7QUEwRkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditCircle.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditDoubleArrow.js":
- /*!**********************************************!*\
- !*** ./modules/plot/edit/EditDoubleArrow.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n/* harmony import */ var _graphics_DoubleArrowGraphics__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../graphics/DoubleArrowGraphics */ \"./modules/plot/graphics/DoubleArrowGraphics.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 23:46:07\n */\n\n\n\n\nvar EditDoubleArrow = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditDoubleArrow, _Edit);\n\n var _super = _createSuper(EditDoubleArrow);\n\n function EditDoubleArrow(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditDoubleArrow);\n\n _this = _super.call(this, overlay);\n _this._graphics = new _graphics_DoubleArrowGraphics__WEBPACK_IMPORTED_MODULE_7__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditDoubleArrow, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this._delegate.polygon.hierarchy = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 2) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n }]);\n\n return EditDoubleArrow;\n}(_Edit__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditDoubleArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0RG91YmxlQXJyb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0RG91YmxlQXJyb3cuanM/MTYyMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0zMCAyMzo0NjowN1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBFZGl0IGZyb20gJy4vRWRpdCdcbmltcG9ydCBEb3VibGVBcnJvd0dyYXBoaWNzIGZyb20gJy4uL2dyYXBoaWNzL0RvdWJsZUFycm93R3JhcGhpY3MnXG5cbmNsYXNzIEVkaXREb3VibGVBcnJvdyBleHRlbmRzIEVkaXQge1xuICBjb25zdHJ1Y3RvcihvdmVybGF5KSB7XG4gICAgc3Vw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 }),
- /***/ "./modules/plot/edit/EditFineArrow.js":
- /*!********************************************!*\
- !*** ./modules/plot/edit/EditFineArrow.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n/* harmony import */ var _graphics_FineArrowGraphics__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../graphics/FineArrowGraphics */ \"./modules/plot/graphics/FineArrowGraphics.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 23:46:07\n */\n\n\n\n\n\n\nvar EditFineArrow = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditFineArrow, _Edit);\n\n var _super = _createSuper(EditFineArrow);\n\n function EditFineArrow(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditFineArrow);\n\n _this = _super.call(this, overlay);\n _this._graphics = new _graphics_FineArrowGraphics__WEBPACK_IMPORTED_MODULE_9__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditFineArrow, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this._delegate.polygon.hierarchy = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 1) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n }]);\n\n return EditFineArrow;\n}(_Edit__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditFineArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0RmluZUFycm93LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9wbG90L2VkaXQvRWRpdEZpbmVBcnJvdy5qcz9kNTljIl0sInNvdXJjZXNDb250ZW50IjpbIi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y5fZGVsZWdhdGUpXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgRWRpdEZpbmVBcnJvd1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFGQTtBQUdBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFEQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBOzs7O0FBcEJBO0FBQ0E7QUFzQkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditFineArrow.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditGatheringPlace.js":
- /*!*************************************************!*\
- !*** ./modules/plot/edit/EditGatheringPlace.js ***!
- \*************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n/* harmony import */ var _graphics_GatheringPlaceGraphics__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../graphics/GatheringPlaceGraphics */ \"./modules/plot/graphics/GatheringPlaceGraphics.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 23:46:07\n */\n\n\n\n\nvar EditGatheringPlace = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditGatheringPlace, _Edit);\n\n var _super = _createSuper(EditGatheringPlace);\n\n function EditGatheringPlace(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditGatheringPlace);\n\n _this = _super.call(this, overlay);\n _this._graphics = new _graphics_GatheringPlaceGraphics__WEBPACK_IMPORTED_MODULE_7__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditGatheringPlace, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this._delegate.polygon.hierarchy = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 1) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n }]);\n\n return EditGatheringPlace;\n}(_Edit__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditGatheringPlace);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0R2F0aGVyaW5nUGxhY2UuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0R2F0aGVyaW5nUGxhY2UuanM/ZjJmMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0zMCAyMzo0NjowN1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBFZGl0IGZyb20gJy4vRWRpdCdcbmltcG9ydCBHYXRoZXJpbmdQbGFjZUdyYXBoaWNzIGZyb20gJy4uL2dyYXBoaWNzL0dhdGhlcmluZ1BsYWNlR3JhcGhpY3MnXG5cbmNsYXNzIEVkaXRHYXRoZXJpbmdQbGFjZSBleHRlbmRzIEVkaXQge1xuICBjb25zdHJ1Y3RvcihvdmVybGF5KSB7XG4gICAgc3VwZXIob3ZlcmxheSlcbiAgICB0aGlzLl9ncmFwaGljcyA9IG5ldyBHYXRoZXJpbmdQbGFjZUdyYXBoaWNzKClcbiAgfVxuXG4gIC8qKlxuICAgKlxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX21vdW50ZWRIb29rKCkge1xuICAgIHRoaXMuX2RlbGVnYXRlLnBvbHlnb24uaGllcmFyY2h5ID0gbmV3IENlc2l1bS5DYWxsYmFja1Byb3BlcnR5KCgpID0+IHtcbiAgICAgIGlmICh0aGlzLl9wb3NpdGlvbnMubGVuZ3RoID4gMSkge1xuICAgICAgICB0aGlzLl9ncmFwaGljcy5wb3NpdGlvbnMgPSB0aGlzLl9wb3NpdGlvbnNcbiAgICAgICAgcmV0dXJuIHRoaXMuX2dyYXBoaWNzLmhpZXJhcmNoeVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgIH1cbiAgICB9LCBmYWxzZSlcbiAgICB0aGlzLl9sYXllci5lbnRpdGllcy5hZGQodGhpcy5fZGVsZWdhdGUpXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgRWRpdEdhdGhlcmluZ1BsYWNlXG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUZBO0FBR0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQURBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7Ozs7QUFwQkE7QUFDQTtBQXNCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditGatheringPlace.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditPoint.js":
- /*!****************************************!*\
- !*** ./modules/plot/edit/EditPoint.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 22:04:36\n */\n\n\n\n\nvar EditPoint = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditPoint, _Edit);\n\n var _super = _createSuper(EditPoint);\n\n function EditPoint(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditPoint);\n\n _this = _super.call(this, overlay);\n _this._position = undefined;\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditPoint, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this.editTool.tooltipMess = '右击结束编辑';\n this._position = this._delegate.position.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now());\n this._delegate.position = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function () {\n return _this2._position;\n });\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_stopedHook\",\n value: function _stopedHook() {\n this._overlay.position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__[\"Transform\"].transformCartesianToWGS84(this._position);\n this._overlay.show = true;\n this._options.onEditStop && this._options.onEditStop(this._overlay);\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @private\n */\n\n }, {\n key: \"_onAnchorMoving\",\n value: function _onAnchorMoving(_ref) {\n var pickedAnchor = _ref.pickedAnchor,\n position = _ref.position;\n this._position = position;\n }\n }]);\n\n return EditPoint;\n}(_Edit__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditPoint);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0UG9pbnQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0UG9pbnQuanM/ZjNjYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0zMCAyMjowNDozNlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFRyYW5zZm9ybSB9IGZyb20gJ0BnZC1tb2R1bGVzL3RyYW5zZm9ybS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VxuICAgKi9cbiAgX29uQW5jaG9yTW92aW5nKHsgcGlja2VkQW5jaG9yLCBwb3NpdGlvbiB9KSB7XG4gICAgdGhpcy5fcG9zaXRpb24gPSBwb3NpdGlvblxuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEVkaXRQb2ludFxuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7O0FBQ0E7QUFBQTtBQUNBO0FBREE7QUFDQTtBQUFBO0FBQ0E7QUFGQTtBQUdBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFEQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBOzs7O0FBckNBO0FBQ0E7QUF1Q0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditPoint.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditPolygon.js":
- /*!******************************************!*\
- !*** ./modules/plot/edit/EditPolygon.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 23:12:09\n */\n\n\n\n\n\n\nvar EditPolygon = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditPolygon, _Edit);\n\n var _super = _createSuper(EditPolygon);\n\n function EditPolygon(overlay) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditPolygon);\n\n return _super.call(this, overlay);\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditPolygon, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this = this;\n\n this._delegate.polygon.hierarchy = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function (time) {\n if (_this._positions.length > 2) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_this._positions);\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountAnchor\",\n value: function _mountAnchor() {\n var _this2 = this;\n\n var positions = [].concat(this._overlay.delegate.polygon.hierarchy.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now()).positions);\n positions.push(positions[0]);\n\n for (var i = 0; i < positions.length - 1; i++) {\n var mid = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midCartesian\"])(positions[i], positions[i + 1]);\n\n this._positions.push(positions[i]);\n\n this._positions.push(mid);\n }\n\n this._positions.forEach(function (item, index) {\n _this2.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: item,\n index: index,\n isMid: index % 2 !== 0\n });\n });\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onEditAnchorStop\",\n value: function _onEditAnchorStop(_ref) {\n var _this3 = this;\n\n var pickedAnchor = _ref.pickedAnchor,\n position = _ref.position;\n var properties = pickedAnchor.properties.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now());\n var currentIndex = properties.index;\n\n if (properties.isMid) {\n var preMidPosition;\n var nextMidPosition;\n var len = this._positions.length;\n\n if (currentIndex === len - 1) {\n preMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midCartesian\"])(this._positions[currentIndex], this._positions[currentIndex - 1]);\n nextMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midCartesian\"])(this._positions[currentIndex], this._positions[0]);\n } else {\n preMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midCartesian\"])(this._positions[currentIndex], this._positions[currentIndex - 1]);\n nextMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midCartesian\"])(this._positions[currentIndex], this._positions[currentIndex + 1]);\n }\n\n this._positions.splice(currentIndex, 1, preMidPosition, position, nextMidPosition);\n\n this.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].CLEAR_ANCHOR);\n\n this._positions.forEach(function (item, index) {\n _this3.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: item,\n index: index,\n isMid: index % 2 !== 0\n });\n });\n }\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @private\n */\n\n }, {\n key: \"_onAnchorMoving\",\n value: function _onAnchorMoving(_ref2) {\n var pickedAnchor = _ref2.pickedAnchor,\n position = _ref2.position;\n var properties = pickedAnchor.properties.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now());\n var currentIndex = properties.index;\n this._positions[currentIndex] = position;\n var len = this._positions.length;\n\n if (!properties.isMid) {\n var preAnchorIndex = -1;\n var preMidAnchorIndex = -1;\n var nextAnchorIndex = -1;\n var nextMidAnchorIndex = -1;\n\n if (currentIndex === 0) {\n preAnchorIndex = len - 2;\n preMidAnchorIndex = len - 1;\n nextAnchorIndex = currentIndex + 2;\n nextMidAnchorIndex = currentIndex + 1;\n } else if (currentIndex === len - 2) {\n preAnchorIndex = currentIndex - 2;\n preMidAnchorIndex = currentIndex - 1;\n nextAnchorIndex = 0;\n nextMidAnchorIndex = len - 1;\n } else {\n preAnchorIndex = currentIndex - 2;\n preMidAnchorIndex = currentIndex - 1;\n nextAnchorIndex = currentIndex + 2;\n nextMidAnchorIndex = currentIndex + 1;\n }\n\n var preMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midCartesian\"])(this._positions[preAnchorIndex], this._positions[currentIndex]);\n var nextMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midCartesian\"])(this._positions[nextAnchorIndex], this._positions[currentIndex]);\n this._positions[preMidAnchorIndex] = preMidPosition;\n this._positions[nextMidAnchorIndex] = nextMidPosition;\n this.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].UPDATE_ANCHOR, {\n index: preMidAnchorIndex,\n position: preMidPosition\n });\n this.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].UPDATE_ANCHOR, {\n index: nextMidAnchorIndex,\n position: nextMidPosition\n });\n }\n }\n }]);\n\n return EditPolygon;\n}(_Edit__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditPolygon);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0UG9seWdvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvcGxvdC9lZGl0L0VkaXRQb2x5Z29uLmpzPzU3NzAiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDgtMzAgMjM6MTI6MDlcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgeyBQbG90RXZlbnRUeXBlIH0gZnJvbSAnQ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BQUNBO0FBQ0E7QUFBQTtBQUNBO0FBSUE7QUFJQTtBQUNBO0FBSUE7QUFJQTtBQUNBO0FBQUE7QUFDQTtBQU1BO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFLQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUlBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBOzs7O0FBbEpBO0FBQ0E7QUFvSkEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditPolygon.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditPolyline.js":
- /*!*******************************************!*\
- !*** ./modules/plot/edit/EditPolyline.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 22:39:34\n */\n\n\n\n\n\nvar EditPolyline = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditPolyline, _Edit);\n\n var _super = _createSuper(EditPolyline);\n\n function EditPolyline(overlay) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditPolyline);\n\n return _super.call(this, overlay);\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditPolyline, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this = this;\n\n this._delegate.polyline.positions = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function () {\n if (_this._positions.length > 1) {\n return _this._positions;\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountAnchor\",\n value: function _mountAnchor() {\n var _this2 = this;\n\n var positions = [].concat(this._overlay.delegate.polyline.positions.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now()));\n\n for (var i = 0; i < positions.length - 1; i++) {\n var mid = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_7__[\"midCartesian\"])(positions[i], positions[i + 1]);\n\n this._positions.push(positions[i]);\n\n this._positions.push(mid);\n }\n\n this._positions.push(positions[positions.length - 1]);\n\n this._positions.forEach(function (item, index) {\n _this2.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: item,\n index: index,\n isMid: index % 2 !== 0\n });\n });\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onEditAnchorStop\",\n value: function _onEditAnchorStop(_ref) {\n var _this3 = this;\n\n var pickedAnchor = _ref.pickedAnchor,\n position = _ref.position;\n var properties = pickedAnchor.properties.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now());\n var currentIndex = properties.index;\n\n if (properties.isMid) {\n var preMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_7__[\"midCartesian\"])(this._positions[currentIndex], this._positions[currentIndex - 1]);\n var nextMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_7__[\"midCartesian\"])(this._positions[currentIndex], this._positions[currentIndex + 1]);\n\n this._positions.splice(currentIndex, 1, preMidPosition, position, nextMidPosition);\n\n this.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].CLEAR_ANCHOR);\n\n this._positions.forEach(function (item, index) {\n _this3.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].CREATE_ANCHOR, {\n position: item,\n index: index,\n isMid: index % 2 !== 0\n });\n });\n }\n }\n /**\n *\n * @param pickedAnchor\n * @param position\n * @private\n */\n\n }, {\n key: \"_onAnchorMoving\",\n value: function _onAnchorMoving(_ref2) {\n var pickedAnchor = _ref2.pickedAnchor,\n position = _ref2.position;\n var properties = pickedAnchor.properties.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].JulianDate.now());\n var currentIndex = properties.index;\n this._positions[currentIndex] = position;\n\n if (!properties.isMid && this._options.maxAnchorSize > 2) {\n var preAnchorIndex = -1;\n var preMidAnchorIndex = -1;\n var nextAnchorIndex = -1;\n var nextMidAnchorIndex = -1;\n var len = this._positions.length;\n\n if (currentIndex === 0) {\n nextAnchorIndex = currentIndex + 2;\n nextMidAnchorIndex = currentIndex + 1;\n } else if (properties.index === len - 1) {\n preAnchorIndex = currentIndex - 2;\n preMidAnchorIndex = currentIndex - 1;\n } else {\n preAnchorIndex = currentIndex - 2;\n preMidAnchorIndex = currentIndex - 1;\n nextAnchorIndex = currentIndex + 2;\n nextMidAnchorIndex = currentIndex + 1;\n }\n\n if (preAnchorIndex > 0) {\n var preMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_7__[\"midCartesian\"])(this._positions[preAnchorIndex], this._positions[currentIndex]);\n this._positions[preMidAnchorIndex] = preMidPosition;\n this.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].UPDATE_ANCHOR, {\n index: preMidAnchorIndex,\n position: preMidPosition\n });\n }\n\n if (nextAnchorIndex > 0) {\n var nextMidPosition = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_7__[\"midCartesian\"])(this._positions[nextAnchorIndex], this._positions[currentIndex]);\n this._positions[nextMidAnchorIndex] = nextMidPosition;\n this.editTool.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"PlotEventType\"].UPDATE_ANCHOR, {\n index: nextMidAnchorIndex,\n position: nextMidPosition\n });\n }\n }\n }\n }]);\n\n return EditPolyline;\n}(_Edit__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditPolyline);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0UG9seWxpbmUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0UG9seWxpbmUuanM/OWRkMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0zMCAyMjozOTozNFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFBsb3RFdmVudFR5cGUgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCB7IG1pZENhcnRlc2lhbiB9IGZyb20gJ0BnZC1tb2R1bGVzL21hdGgnXG5pbXBvcnQgRWRpdCBmcm9tICcuL0VkaXQnXG5cbmNsYXNzIEVkaXRQb2x5bGluZSBleHRlbmRzIEVkaXQge1xuICBjb25zdHJ1Y3RvcihvdmVybGF5KSB7XG4gICAgc3VwZXIob3ZlcmxheSlcbiAgfVxuXG4gIC8qKlxuICAgKlxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX21vdW50ZWRIb29rKCkge1xuICAgIHRoaXMuX2RlbGVnYXRlLnBvbHlsaW5lLnBvc2l0aW9ucyA9IG5ldyBDZXNpdW0uQ2FsbGJhY2tQcm9wZXJ0eSgoKSA9PiB7XG4gICAgICBpZiAodGhpcy5fcG9zaXRpb25zLmxlbmd0aCA+IDEpIHtcbiA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lmIChwcm9wZXJ0aWVzLmluZGV4ID09PSBsZW4gLSAxKSB7XG4gICAgICAgIHByZUFuY2hvckluZGV4ID0gY3VycmVudEluZGV4IC0gMlxuICAgICAgICBwcmVNaWRBbmNob3JJbmRleCA9IGN1cnJlbnRJbmRleCAtIDFcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHByZUFuY2hvckluZGV4ID0gY3VycmVudEluZGV4IC0gMlxuICAgICAgICBwcmVNaWRBbmNob3JJbmRleCA9IGN1cnJlbnRJbmRleCAtIDFcbiAgICAgICAgbmV4dEFuY2hvckluZGV4ID0gY3VycmVudEluZGV4ICsgMlxuICAgICAgICBuZXh0TWlkQW5jaG9ySW5kZXggPSBjdXJyZW50SW5kZXggKyAxXG4gICAgICB9XG5cbiAgICAgIGlmIChwcmVBbmNob3JJbmRleCA+IDApIHtcbiAgICAgICAgbGV0IHByZU1pZFBvc2l0aW9uID0gbWlkQ2FydGVzaWFuKFxuICAgICAgICAgIHRoaXMuX3Bvc2l0aW9uc1twcmVBbmNob3JJbmRleF0sXG4gICAgICAgICAgdGhpcy5fcG9zaXRpb25zW2N1cnJlbnRJbmRleF1cbiAgICAgICAgKVxuICAgICAgICB0aGlzLl9wb3NpdGlvbnNbcHJlTWlkQW5jaG9ySW5kZXhdID0gcHJlTWlkUG9zaXRpb25cbiAgICAgICAgdGhpcy5lZGl0VG9vbC5maXJlKFBsb3RFdmVudFR5cGUuVVBEQVRFX0FOQ0hPUiwge1xuICAgICAgICAgIGluZGV4OiBwcmVNaWRBbmNob3JJbmRleCxcbiAgICAgICAgICBwb3NpdGlvbjogcHJlTWlkUG9zaXRpb25cbiAgICAgICAgfSlcbiAgICAgIH1cblxuICAgICAgaWYgKG5leHRBbmNob3JJbmRleCA+IDApIHtcbiAgICAgICAgbGV0IG5leHRNaWRQb3NpdGlvbiA9IG1pZENhcnRlc2lhbihcbiAgICAgICAgICB0aGlzLl9wb3NpdGlvbnNbbmV4dEFuY2hvckluZGV4XSxcbiAgIC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QUFHQTtBQUNBO0FBTUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFIQTtBQUtBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTs7OztBQXhJQTtBQUNBO0FBMElBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditPolyline.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditRectangle.js":
- /*!********************************************!*\
- !*** ./modules/plot/edit/EditRectangle.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 23:41:34\n */\n\n\n\n\nvar EditRectangle = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditRectangle, _Edit);\n\n var _super = _createSuper(EditRectangle);\n\n function EditRectangle(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditRectangle);\n\n _this = _super.call(this, overlay);\n _this._overlay = overlay;\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditRectangle, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this._delegate.rectangle.coordinates = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function (time) {\n if (_this2._positions.length > 1) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Rectangle.fromCartesianArray(_this2._positions);\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n }]);\n\n return EditRectangle;\n}(_Edit__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditRectangle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0UmVjdGFuZ2xlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9wbG90L2VkaXQvRWRpdFJlY3RhbmdsZS5qcz9iMGVjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA4LTMwIDIzOjQxOjM0XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IHsgVHJhbnNmb3JtIH0gZnJvbSAnQGdkLW1vZHVsZXMvdHJhbnNmb3JtJ1xuaW1wb3J0IEVkaXQgZnJvbSAnLi9FZGl0J1xuXG5jbGFzcyBFZGl0UmVjdGFuZ2xlIGV4dGVuZHMgRWRpdCB7XG4gIGNvbnN0cnVjdG9yKG92ZXJsYXkpIHtcbiAgICBzdXBlcihvdmVybGF5KVxuICAgIHRoaXMuX292ZXJsYXkgPSBvdmVybGF5XG4gIH1cblxuICAvKipcbiAgICpcbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9tb3VudGVkSG9vaygpIHtcbiAgICB0aGlzLl9kZWxlZ2F0ZS5yZWN0YW5nbGUuY29vcmRpbmF0ZXMgPSBuZXcgQ2VzaXVtLkNhbGxiYWNrUHJvcGVydHkodGltZSA9PiB7XG4gICAgICBpZiAodGhpcy5fcG9zaXRpb25zLmxlbmd0aCA+IDEpIHtcbiAgICAgICAgcmV0dXJuIENlc2l1bS5SZWN0YW5nbGUuZnJvbUNhcnRlc2lhbkFycmF5KHRoaXMuX3Bvc2l0aW9ucylcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBudWxsXG4gICAgICB9XG4gICAgfSwgZmFsc2UpXG4gICAgdGhpcy5fbGF5ZXIuZW50aXRpZXMuYWRkKHRoaXMuX2RlbGVnYXRlKVxuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEVkaXRSZWN0YW5nbGVcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBRkE7QUFHQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7Ozs7QUFuQkE7QUFDQTtBQXFCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditRectangle.js\n");
- /***/ }),
- /***/ "./modules/plot/edit/EditTailedAttackArrow.js":
- /*!****************************************************!*\
- !*** ./modules/plot/edit/EditTailedAttackArrow.js ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _Edit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Edit */ \"./modules/plot/edit/Edit.js\");\n/* harmony import */ var _graphics_TailedAttackArrowGraphics__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../graphics/TailedAttackArrowGraphics */ \"./modules/plot/graphics/TailedAttackArrowGraphics.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 23:46:07\n */\n\n\n\n\nvar EditTailedAttackArrow = /*#__PURE__*/function (_Edit) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(EditTailedAttackArrow, _Edit);\n\n var _super = _createSuper(EditTailedAttackArrow);\n\n function EditTailedAttackArrow(overlay) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, EditTailedAttackArrow);\n\n _this = _super.call(this, overlay);\n _this._graphics = new _graphics_TailedAttackArrowGraphics__WEBPACK_IMPORTED_MODULE_7__[\"default\"]();\n return _this;\n }\n /**\n *\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(EditTailedAttackArrow, [{\n key: \"_mountedHook\",\n value: function _mountedHook() {\n var _this2 = this;\n\n this._delegate.polygon.hierarchy = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].CallbackProperty(function () {\n if (_this2._positions.length > 2) {\n _this2._graphics.positions = _this2._positions;\n return _this2._graphics.hierarchy;\n } else {\n return null;\n }\n }, false);\n\n this._layer.entities.add(this._delegate);\n }\n }]);\n\n return EditTailedAttackArrow;\n}(_Edit__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditTailedAttackArrow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0VGFpbGVkQXR0YWNrQXJyb3cuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZWRpdC9FZGl0VGFpbGVkQXR0YWNrQXJyb3cuanM/NWE5OSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wOC0zMCAyMzo0NjowN1xuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBFZGl0IGZyb20gJy4vRWRpdCdcbmltcG9ydCBUYWlsZWRBdHRhY2tBcnJvd0dyYXBoaWNzIGZyb20gJy4uL2dyYXBoaWNzL1RhaWxlZEF0dGFja0Fycm93R3JhcGhpY3MnXG5cbmNsYXNzIEVkaXRUYWlsZWRBdHRhY2tBcnJvdyBleHRlbmRzIEVkaXQge1xuICBjb25zdHJ1Y3RvcihvdmVybGF5KSB7XG4gICAgc3VwZXIob3ZlcmxheSlcbiAgICB0aGlzLl9ncmFwaGljcyA9IG5ldyBUYWlsZWRBdHRhY2tBcnJvd0dyYXBoaWNzKClcbiAgfVxuXG4gIC8qKlxuICAgKlxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX21vdW50ZWRIb29rKCkge1xuICAgIHRoaXMuX2RlbGVnYXRlLnBvbHlnb24uaGllcmFyY2h5ID0gbmV3IENlc2l1bS5DYWxsYmFja1Byb3BlcnR5KCgpID0+IHtcbiAgICAgIGlmICh0aGlzLl9wb3NpdGlvbnMubGVuZ3RoID4gMikge1xuICAgICAgICB0aGlzLl9ncmFwaGljcy5wb3NpdGlvbnMgPSB0aGlzLl9wb3NpdGlvbnNcbiAgICAgICAgcmV0dXJuIHRoaXMuX2dyYXBoaWNzLmhpZXJhcmNoeVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgIH1cbiAgICB9LCBmYWxzZSlcbiAgICB0aGlzLl9sYXllci5lbnRpdGllcy5hZGQodGhpcy5fZGVsZWdhdGUpXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgRWRpdFRhaWxlZEF0dGFja0Fycm93XG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7QUFDQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFDQTtBQUZBO0FBR0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQURBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7Ozs7QUFwQkE7QUFDQTtBQXNCQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/plot/edit/EditTailedAttackArrow.js\n");
- /***/ }),
- /***/ "./modules/plot/graphics/AttackArrowGraphics.js":
- /*!******************************************************!*\
- !*** ./modules/plot/graphics/AttackArrowGraphics.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 16:22:50\n */\n\n\n\n\nvar HALF_PI = Math.PI / 2;\n\nvar AttackArrowGraphics = /*#__PURE__*/function () {\n function AttackArrowGraphics(options) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, AttackArrowGraphics);\n\n this._positions = (options === null || options === void 0 ? void 0 : options.positions) || [];\n this.headHeightFactor = 0.18;\n this.headWidthFactor = 0.3;\n this.neckHeightFactor = 0.85;\n this.neckWidthFactor = 0.15;\n this.headTailFactor = 0.8;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(AttackArrowGraphics, [{\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = positions;\n }\n }, {\n key: \"hierarchy\",\n get: function get() {\n return this._createHierarchy();\n }\n }, {\n key: \"_getArrowHeadPoints\",\n value: function _getArrowHeadPoints(points, tailLeft, tailRight) {\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBaseLength(points);\n var headHeight = len * this.headHeightFactor;\n var headPnt = points[points.length - 1];\n len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(headPnt, points[points.length - 2]);\n var tailWidth = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(tailLeft, tailRight);\n\n if (headHeight > tailWidth * this.headTailFactor) {\n headHeight = tailWidth * this.headTailFactor;\n }\n\n var headWidth = headHeight * this.headWidthFactor;\n var neckWidth = headHeight * this.neckWidthFactor;\n headHeight = headHeight > len ? len : headHeight;\n var neckHeight = headHeight * this.neckHeightFactor;\n var headEndPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(points[points.length - 2], headPnt, 0, headHeight, true);\n var neckEndPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(points[points.length - 2], headPnt, 0, neckHeight, true);\n var headLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(headPnt, headEndPnt, HALF_PI, headWidth, false);\n var headRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(headPnt, headEndPnt, HALF_PI, headWidth, true);\n var neckLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(headPnt, neckEndPnt, HALF_PI, neckWidth, false);\n var neckRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(headPnt, neckEndPnt, HALF_PI, neckWidth, true);\n return [neckLeft, headLeft, headPnt, headRight, neckRight];\n }\n }, {\n key: \"_getArrowBodyPoints\",\n value: function _getArrowBodyPoints(points, neckLeft, neckRight, tailWidthFactor) {\n var allLen = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].wholeDistance(points);\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBaseLength(points);\n var tailWidth = len * tailWidthFactor;\n var neckWidth = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(neckLeft, neckRight);\n var widthDif = (tailWidth - neckWidth) / 2;\n var tempLen = 0;\n var leftBodyPnts = [];\n var rightBodyPnts = [];\n\n for (var i = 1; i < points.length - 1; i++) {\n var angle = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getAngleOfThreePoints(points[i - 1], points[i], points[i + 1]) / 2;\n tempLen += _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(points[i - 1], points[i]);\n var w = (tailWidth / 2 - tempLen / allLen * widthDif) / Math.sin(angle);\n var left = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(points[i - 1], points[i], Math.PI - angle, w, true);\n var right = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(points[i - 1], points[i], angle, w, false);\n leftBodyPnts.push(left);\n rightBodyPnts.push(right);\n }\n\n return leftBodyPnts.concat(rightBodyPnts);\n }\n }, {\n key: \"_createHierarchy\",\n value: function _createHierarchy() {\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].parsePolygonCoordToArray(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions))[0];\n var tailLeft = pnts[0];\n var tailRight = pnts[1];\n\n if (_gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].isClockWise(pnts[0], pnts[1], pnts[2])) {\n tailLeft = pnts[1];\n tailRight = pnts[0];\n }\n\n var midTail = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].mid(tailLeft, tailRight);\n var bonePnts = [midTail].concat(pnts.slice(2)); // 计算箭头\n\n var headPnts = this._getArrowHeadPoints(bonePnts, tailLeft, tailRight);\n\n var neckLeft = headPnts[0];\n var neckRight = headPnts[4];\n var tailWidthFactor = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(tailLeft, tailRight) / _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBaseLength(bonePnts); // 计算箭身\n\n var bodyPnts = this._getArrowBodyPoints(bonePnts, neckLeft, neckRight, tailWidthFactor); // 整合\n\n\n var count = bodyPnts.length;\n var leftPnts = [tailLeft].concat(bodyPnts.slice(0, count / 2));\n leftPnts.push(neckLeft);\n var rightPnts = [tailRight].concat(bodyPnts.slice(count / 2, count));\n rightPnts.push(neckRight);\n leftPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getQBSplinePoints(leftPnts);\n rightPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getQBSplinePoints(rightPnts);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].parsePositions(leftPnts.concat(headPnts, rightPnts.reverse()))));\n }\n }]);\n\n return AttackArrowGraphics;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AttackArrowGraphics);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZ3JhcGhpY3MvQXR0YWNrQXJyb3dHcmFwaGljcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvcGxvdC9ncmFwaGljcy9BdHRhY2tBcnJvd0dyYXBoaWNzLmpzPzk4ZjkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDgtMzAgMTY6MjI6NTBcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgeyBQbG90VXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuXG5jb25zdCBIQUxGX1BJID0gTWF0aC5QSSAvIDJcblxuY2xhc3MgQXR0YWNrQXJyb3dHcmFwaGljcyB7XG4gIGNvbnN0cnVjdG9yKG9wdGlvbnMpIHtcbiAgICB0aGlzLl9wb3NpdGlvbnMgPSBvcHRpb25zPy5wb3NpdGlvbnMgfHwgW11cbiAgICB0aGlzLmhlYWRIZWlnaHRGYWN0b3IgPSAwLjE4XG4gICAgdGhpcy5oZWFkV2lkdGhGYWN0b3IgPSAwLjNcbiAgICB0aGlzLm5lY2tIZWlnaHRGYWN0b3IgPSAwLjg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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBS0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUtBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/plot/graphics/AttackArrowGraphics.js\n");
- /***/ }),
- /***/ "./modules/plot/graphics/DoubleArrowGraphics.js":
- /*!******************************************************!*\
- !*** ./modules/plot/graphics/DoubleArrowGraphics.js ***!
- \******************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 16:27:29\n */\n\n\n\n\nvar HALF_PI = Math.PI / 2;\n\nvar DoubleArrowGraphics = /*#__PURE__*/function () {\n function DoubleArrowGraphics(options) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DoubleArrowGraphics);\n\n this._positions = (options === null || options === void 0 ? void 0 : options.positions) || [];\n this.headHeightFactor = 0.25;\n this.headWidthFactor = 0.3;\n this.neckHeightFactor = 0.85;\n this.neckWidthFactor = 0.15;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DoubleArrowGraphics, [{\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = positions;\n }\n }, {\n key: \"hierarchy\",\n get: function get() {\n return this._createHierarchy();\n }\n }, {\n key: \"_getArrowPoints\",\n value: function _getArrowPoints(pnt1, pnt2, pnt3, clockWise) {\n var midPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].mid(pnt1, pnt2);\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(midPnt, pnt3);\n var midPnt1 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnt3, midPnt, 0, len * 0.3, true);\n var midPnt2 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnt3, midPnt, 0, len * 0.5, true);\n midPnt1 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(midPnt, midPnt1, HALF_PI, len / 5, clockWise);\n midPnt2 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(midPnt, midPnt2, HALF_PI, len / 4, clockWise);\n var points = [midPnt, midPnt1, midPnt2, pnt3]; // 计算箭头部分\n\n var arrowPnts = this._getArrowHeadPoints(points);\n\n var neckLeftPoint = arrowPnts[0];\n var neckRightPoint = arrowPnts[4]; // 计算箭身部分\n\n var tailWidthFactor = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(pnt1, pnt2) / _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBaseLength(points) / 2;\n\n var bodyPnts = this._getArrowBodyPoints(points, neckLeftPoint, neckRightPoint, tailWidthFactor);\n\n var n = bodyPnts.length;\n var lPoints = bodyPnts.slice(0, n / 2);\n var rPoints = bodyPnts.slice(n / 2, n);\n lPoints.push(neckLeftPoint);\n rPoints.push(neckRightPoint);\n lPoints = lPoints.reverse();\n lPoints.push(pnt2);\n rPoints = rPoints.reverse();\n rPoints.push(pnt1);\n return lPoints.reverse().concat(arrowPnts, rPoints);\n }\n }, {\n key: \"_getArrowHeadPoints\",\n value: function _getArrowHeadPoints(points) {\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBaseLength(points);\n var headHeight = len * this.headHeightFactor;\n var headPnt = points[points.length - 1];\n var headWidth = headHeight * this.headWidthFactor;\n var neckWidth = headHeight * this.neckWidthFactor;\n var neckHeight = headHeight * this.neckHeightFactor;\n var headEndPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(points[points.length - 2], headPnt, 0, headHeight, true);\n var neckEndPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(points[points.length - 2], headPnt, 0, neckHeight, true);\n var headLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(headPnt, headEndPnt, HALF_PI, headWidth, false);\n var headRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(headPnt, headEndPnt, HALF_PI, headWidth, true);\n var neckLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(headPnt, neckEndPnt, HALF_PI, neckWidth, false);\n var neckRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(headPnt, neckEndPnt, HALF_PI, neckWidth, true);\n return [neckLeft, headLeft, headPnt, headRight, neckRight];\n }\n }, {\n key: \"_getArrowBodyPoints\",\n value: function _getArrowBodyPoints(points, neckLeft, neckRight, tailWidthFactor) {\n var allLen = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].wholeDistance(points);\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBaseLength(points);\n var tailWidth = len * tailWidthFactor;\n var neckWidth = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(neckLeft, neckRight);\n var widthDif = (tailWidth - neckWidth) / 2;\n var tempLen = 0;\n var leftBodyPnts = [];\n var rightBodyPnts = [];\n\n for (var i = 1; i < points.length - 1; i++) {\n var angle = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getAngleOfThreePoints(points[i - 1], points[i], points[i + 1]) / 2;\n tempLen += _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(points[i - 1], points[i]);\n var w = (tailWidth / 2 - tempLen / allLen * widthDif) / Math.sin(angle);\n var left = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(points[i - 1], points[i], Math.PI - angle, w, true);\n var right = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(points[i - 1], points[i], angle, w, false);\n leftBodyPnts.push(left);\n rightBodyPnts.push(right);\n }\n\n return leftBodyPnts.concat(rightBodyPnts);\n }\n }, {\n key: \"_getTempPoint4\",\n value: function _getTempPoint4(linePnt1, linePnt2, point) {\n var midPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].mid(linePnt1, linePnt2);\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(midPnt, point);\n var angle = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getAngleOfThreePoints(linePnt1, midPnt, point);\n var symPnt, distance1, distance2, mid;\n\n if (angle < HALF_PI) {\n distance1 = len * Math.sin(angle);\n distance2 = len * Math.cos(angle);\n mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(linePnt1, midPnt, HALF_PI, distance1, false);\n symPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(midPnt, mid, HALF_PI, distance2, true);\n } else if (angle >= HALF_PI && angle < Math.PI) {\n distance1 = len * Math.sin(Math.PI - angle);\n distance2 = len * Math.cos(Math.PI - angle);\n mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(linePnt1, midPnt, HALF_PI, distance1, false);\n symPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(midPnt, mid, HALF_PI, distance2, false);\n } else if (angle >= Math.PI && angle < Math.PI * 1.5) {\n distance1 = len * Math.sin(angle - Math.PI);\n distance2 = len * Math.cos(angle - Math.PI);\n mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(linePnt1, midPnt, HALF_PI, distance1, true);\n symPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(midPnt, mid, HALF_PI, distance2, true);\n } else {\n distance1 = len * Math.sin(Math.PI * 2 - angle);\n distance2 = len * Math.cos(Math.PI * 2 - angle);\n mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(linePnt1, midPnt, HALF_PI, distance1, true);\n symPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(midPnt, mid, HALF_PI, distance2, false);\n }\n\n return symPnt;\n }\n }, {\n key: \"_createHierarchy\",\n value: function _createHierarchy() {\n var count = this._positions.length;\n var tempPoint4 = undefined;\n var connPoint = undefined;\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].parsePolygonCoordToArray(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions))[0];\n var pnt1 = pnts[0];\n var pnt2 = pnts[1];\n var pnt3 = pnts[2];\n if (count === 3) tempPoint4 = this._getTempPoint4(pnt1, pnt2, pnt3);else tempPoint4 = pnts[3];\n if (count === 3 || count === 4) connPoint = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].mid(pnt1, pnt2);else connPoint = pnts[4];\n var leftArrowPnts, rightArrowPnts;\n\n if (_gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].isClockWise(pnt1, pnt2, pnt3)) {\n leftArrowPnts = this._getArrowPoints(pnt1, connPoint, tempPoint4, false);\n rightArrowPnts = this._getArrowPoints(connPoint, pnt2, pnt3, true);\n } else {\n leftArrowPnts = this._getArrowPoints(pnt2, connPoint, pnt3, false);\n rightArrowPnts = this._getArrowPoints(connPoint, pnt1, tempPoint4, true);\n }\n\n var m = leftArrowPnts.length;\n var t = (m - 5) / 2;\n var llBodyPnts = leftArrowPnts.slice(0, t);\n var lArrowPnts = leftArrowPnts.slice(t, t + 5);\n var lrBodyPnts = leftArrowPnts.slice(t + 5, m);\n var rlBodyPnts = rightArrowPnts.slice(0, t);\n var rArrowPnts = rightArrowPnts.slice(t, t + 5);\n var rrBodyPnts = rightArrowPnts.slice(t + 5, m);\n rlBodyPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBezierPoints(rlBodyPnts);\n var bodyPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBezierPoints(rrBodyPnts.concat(llBodyPnts.slice(1)));\n lrBodyPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBezierPoints(lrBodyPnts);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].parsePositions(rlBodyPnts.concat(rArrowPnts, bodyPnts, lArrowPnts, lrBodyPnts))));\n }\n }]);\n\n return DoubleArrowGraphics;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DoubleArrowGraphics);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZ3JhcGhpY3MvRG91YmxlQXJyb3dHcmFwaGljcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvcGxvdC9ncmFwaGljcy9Eb3VibGVBcnJvd0dyYXBoaWNzLmpzPzIzYmEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDgtMzAgMTY6Mjc6MjlcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBUcmFuc2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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQU9BOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/plot/graphics/DoubleArrowGraphics.js\n");
- /***/ }),
- /***/ "./modules/plot/graphics/FineArrowGraphics.js":
- /*!****************************************************!*\
- !*** ./modules/plot/graphics/FineArrowGraphics.js ***!
- \****************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 17:10:33\n */\n\n\n\n\nvar HALF_PI = Math.PI / 2;\n\nvar FineArrowGraphics = /*#__PURE__*/function () {\n function FineArrowGraphics(options) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, FineArrowGraphics);\n\n this._positions = (options === null || options === void 0 ? void 0 : options.positions) || [];\n this.tailWidthFactor = 0.15;\n this.neckWidthFactor = 0.2;\n this.headWidthFactor = 0.25;\n this.headAngle = Math.PI / 8.5;\n this.neckAngle = Math.PI / 13;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(FineArrowGraphics, [{\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = positions;\n }\n }, {\n key: \"hierarchy\",\n get: function get() {\n return this._createHierarchy();\n }\n }, {\n key: \"_createHierarchy\",\n value: function _createHierarchy() {\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].parsePolygonCoordToArray(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions))[0];\n var pnt1 = pnts[0];\n var pnt2 = pnts[1];\n var len = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBaseLength(pnts);\n var tailWidth = len * this.tailWidthFactor;\n var neckWidth = len * this.neckWidthFactor;\n var headWidth = len * this.headWidthFactor;\n var tailLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnt2, pnt1, HALF_PI, tailWidth, true);\n var tailRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnt2, pnt1, HALF_PI, tailWidth, false);\n var headLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnt1, pnt2, this.headAngle, headWidth, false);\n var headRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnt1, pnt2, this.headAngle, headWidth, true);\n var neckLeft = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnt1, pnt2, this.neckAngle, neckWidth, false);\n var neckRight = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnt1, pnt2, this.neckAngle, neckWidth, true);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].parsePositions([tailLeft, neckLeft, headLeft, pnt2, headRight, neckRight, tailRight])));\n }\n }]);\n\n return FineArrowGraphics;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (FineArrowGraphics);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZ3JhcGhpY3MvRmluZUFycm93R3JhcGhpY3MuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3Bsb3QvZ3Jh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U1BO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFPQTtBQU9BO0FBT0E7QUFPQTtBQU9BO0FBYUE7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/plot/graphics/FineArrowGraphics.js\n");
- /***/ }),
- /***/ "./modules/plot/graphics/GatheringPlaceGraphics.js":
- /*!*********************************************************!*\
- !*** ./modules/plot/graphics/GatheringPlaceGraphics.js ***!
- \*********************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 17:17:52\n */\n\n\n\n\nvar HALF_PI = Math.PI / 2;\nvar FITTING_COUNT = 100;\n\nvar GatheringPlaceGraphics = /*#__PURE__*/function () {\n function GatheringPlaceGraphics(options) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, GatheringPlaceGraphics);\n\n this._positions = (options === null || options === void 0 ? void 0 : options.positions) || [];\n this.t = 0.4;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(GatheringPlaceGraphics, [{\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(positions) {\n this._positions = positions;\n }\n }, {\n key: \"hierarchy\",\n get: function get() {\n return this._createHierarchy();\n }\n }, {\n key: \"_createHierarchy\",\n value: function _createHierarchy() {\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].parsePolygonCoordToArray(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions))[0];\n\n if (this._positions.length === 2) {\n var _mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].mid(pnts[0], pnts[1]);\n\n var d = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].distance(pnts[0], _mid) / 0.9;\n var pnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getThirdPoint(pnts[0], _mid, HALF_PI, d, true);\n pnts = [pnts[0], pnt, pnts[1]];\n }\n\n var mid = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].mid(pnts[0], pnts[2]);\n pnts.push(mid, pnts[0], pnts[1]);\n var normals = [];\n\n for (var i = 0; i < pnts.length - 2; i++) {\n var pnt1 = pnts[i];\n var pnt2 = pnts[i + 1];\n var pnt3 = pnts[i + 2];\n var normalPoints = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getBisectorNormals(this.t, pnt1, pnt2, pnt3);\n normals = normals.concat(normalPoints);\n }\n\n var count = normals.length;\n normals = [normals[count - 1]].concat(normals.slice(0, count - 1));\n var pList = [];\n\n for (var _i = 0; _i < pnts.length - 2; _i++) {\n var _pnt = pnts[_i];\n var _pnt2 = pnts[_i + 1];\n pList.push(_pnt);\n\n for (var t = 0; t <= FITTING_COUNT; t++) {\n var _pnt3 = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_5__[\"PlotUtil\"].getCubicValue(t / FITTING_COUNT, _pnt, normals[_i * 2], normals[_i * 2 + 1], _pnt2);\n\n pList.push(_pnt3);\n }\n\n pList.push(_pnt2);\n }\n\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_4__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].parsePositions(pList)));\n }\n }]);\n\n return GatheringPlaceGraphics;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (GatheringPlaceGraphics);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZ3JhcGhpY3MvR2F0aGVyaW5nUGxhY2VHcmFwaGljcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvcGxvdC9ncmFwaGljcy9HYXRoZXJpbmdQbGFjZUdyYXBoaWNzLmpzPzhmZmIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKi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NBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFNQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUdBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/plot/graphics/GatheringPlaceGraphics.js\n");
- /***/ }),
- /***/ "./modules/plot/graphics/TailedAttackArrowGraphics.js":
- /*!************************************************************!*\
- !*** ./modules/plot/graphics/TailedAttackArrowGraphics.js ***!
- \************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _AttackArrowGraphics__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./AttackArrowGraphics */ \"./modules/plot/graphics/AttackArrowGraphics.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-08-30 17:26:34\n */\n\n\n\n\n\n\nvar TailedAttackArrowGraphics = /*#__PURE__*/function (_AttackArrowGraphics) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(TailedAttackArrowGraphics, _AttackArrowGraphics);\n\n var _super = _createSuper(TailedAttackArrowGraphics);\n\n function TailedAttackArrowGraphics(options) {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TailedAttackArrowGraphics);\n\n _this = _super.call(this, options);\n _this.headHeightFactor = 0.18;\n _this.headWidthFactor = 0.3;\n _this.neckHeightFactor = 0.85;\n _this.neckWidthFactor = 0.15;\n _this.tailWidthFactor = 0.1;\n _this.headTailFactor = 0.8;\n _this.swallowTailFactor = 1;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TailedAttackArrowGraphics, [{\n key: \"_createHierarchy\",\n value: function _createHierarchy() {\n var pnts = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePolygonCoordToArray(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__[\"Transform\"].transformCartesianArrayToWGS84Array(this._positions))[0];\n var tailLeft = pnts[0];\n var tailRight = pnts[1];\n\n if (_gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].isClockWise(pnts[0], pnts[1], pnts[2])) {\n tailLeft = pnts[1];\n tailRight = pnts[0];\n }\n\n var midTail = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].mid(tailLeft, tailRight);\n var bonePnts = [midTail].concat(pnts.slice(2));\n\n var headPnts = this._getArrowHeadPoints(bonePnts, tailLeft, tailRight);\n\n var neckLeft = headPnts[0];\n var neckRight = headPnts[4];\n var tailWidth = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].distance(tailLeft, tailRight);\n var allLen = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getBaseLength(bonePnts);\n var len = allLen * this.tailWidthFactor * this.swallowTailFactor;\n var swallowTailPnt = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getThirdPoint(bonePnts[1], bonePnts[0], 0, len, true);\n var factor = tailWidth / allLen;\n\n var bodyPnts = this._getArrowBodyPoints(bonePnts, neckLeft, neckRight, factor);\n\n var count = bodyPnts.length;\n var leftPnts = [tailLeft].concat(bodyPnts.slice(0, count / 2));\n leftPnts.push(neckLeft);\n var rightPnts = [tailRight].concat(bodyPnts.slice(count / 2, count));\n rightPnts.push(neckRight);\n leftPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getQBSplinePoints(leftPnts);\n rightPnts = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"PlotUtil\"].getQBSplinePoints(rightPnts);\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].PolygonHierarchy(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__[\"Transform\"].transformWGS84ArrayToCartesianArray(_gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_6__[\"default\"].parsePositions(leftPnts.concat(headPnts, rightPnts.reverse(), [swallowTailPnt, leftPnts[0]]))));\n }\n }]);\n\n return TailedAttackArrowGraphics;\n}(_AttackArrowGraphics__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (TailedAttackArrowGraphics);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bsb3QvZ3JhcGhpY3MvVGFpbGVkQXR0YWNrQXJyb3dHcmFwaGljcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvcGxvdC9ncmFwaGljcy9UYWlsZWRBdHRhY2tBcnJvd0dyYXBoaWNzLmpzPzM5MGEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDgtMzAgMTc6MjY6MzRcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgUGFyc2UgZnJvbSAnQGdkLW1vZHVsZXMvcGFyc2UvUGFyc2UnXG5pbXBvcnQgeyBUcmFuc2Zvcm0gfSBmcm9tICdAZ2QtbW9kdWxlcy90cmFuc2Zvcm0nXG5pbXBvcnQgeyBQbG90VXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IEF0dGFja0Fycm93R3JhcGhpY3MgZnJvbSAnLi9BdHRhY2tBcnJvd0dyYXBoaWNzJ1xuXG5jbGFzcyBUYWlsZWRBdHRhY2tBcnJvd0dyYXBoaWNzIGV4dGVuZHMgQXR0YWNrQXJyb3dHcmFwaGljcyB7XG4gIGNvbnN0cnVjdG9yKG9wdGlvbnMpIHtcbiAgICBzdXBlcihvcHRpb25zKVxuICAgIHRoaXMuaGVhZEhlaWdodEZhY3RvciA9IDAuMThcbiAgICB0aGlzLmhlYWRXaWR0aEZhY3R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b0NhcnRlc2lhbkFycmF5KFxuICAgICAgICBQYXJzZS5wYXJzZVBvc2l0aW9ucyhcbiAgICAgICAgICBsZWZ0UG50cy5jb25jYXQoaGVhZFBudHMsIHJpZ2h0UG50cy5yZXZlcnNlKCksIFtcbiAgICAgICAgICAgIHN3YWxsb3dUYWlsUG50LFxuICAgICAgICAgICAgbGVmdFBudHNbMF1cbiAgICAgICAgICBdKVxuICAgICAgICApXG4gICAgICApXG4gICAgKVxuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IFRhaWxlZEF0dGFja0Fycm93R3JhcGhpY3NcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBUkE7QUFTQTtBQUNBOzs7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFPQTtBQUNBO0FBQUE7QUFDQTtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFVQTs7OztBQTdEQTtBQUNBO0FBK0RBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/plot/graphics/TailedAttackArrowGraphics.js\n");
- /***/ }),
- /***/ "./modules/position/Position.js":
- /*!**************************************!*\
- !*** ./modules/position/Position.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2019-12-27 14:35:02\n */\n\n\n\nvar Position = /*#__PURE__*/function () {\n function Position(lng, lat, alt, heading, pitch, roll) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Position);\n\n this._lng = +lng || 0;\n this._lat = +lat || 0;\n this._alt = +alt || 0;\n this._heading = +heading || 0;\n this._pitch = +pitch || 0;\n this._roll = +roll || 0;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Position, [{\n key: \"lng\",\n get: function get() {\n return this._lng;\n },\n set: function set(lng) {\n this._lng = +lng;\n }\n }, {\n key: \"lat\",\n get: function get() {\n return this._lat;\n },\n set: function set(lat) {\n this._lat = +lat;\n }\n }, {\n key: \"alt\",\n get: function get() {\n return this._alt;\n },\n set: function set(alt) {\n this._alt = +alt;\n }\n }, {\n key: \"heading\",\n get: function get() {\n return this._heading;\n },\n set: function set(heading) {\n this._heading = +heading;\n }\n }, {\n key: \"pitch\",\n get: function get() {\n return this._pitch;\n },\n set: function set(pitch) {\n this._pitch = +pitch;\n }\n }, {\n key: \"roll\",\n get: function get() {\n return this._roll;\n }\n /**\n *\n * @returns {string}\n */\n ,\n set: function set(roll) {\n this._roll = +roll;\n }\n }, {\n key: \"serialize\",\n value: function serialize() {\n var position = new Position(this._lng, this._lat, this._alt, this._heading, this._pitch, this._roll);\n return JSON.stringify(position);\n }\n /**\n * Calculate the distance between two positions\n * @param target\n * @returns {number}\n */\n\n }, {\n key: \"distance\",\n value: function distance(target) {\n if (!target || !(target instanceof Position)) {\n return 0;\n }\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.distance(_gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__[\"Transform\"].transformWGS84ToCartesian(this), _gd_modules_transform__WEBPACK_IMPORTED_MODULE_3__[\"Transform\"].transformWGS84ToCartesian(target));\n }\n /**\n * clone a position\n * @returns {Position}\n */\n\n }, {\n key: \"clone\",\n value: function clone() {\n var position = new Position();\n position.lng = this.lng || 0;\n position.lat = this.lat || 0;\n position.alt = this.alt || 0;\n position.heading = this.heading || 0;\n position.pitch = this.pitch || 0;\n position.roll = this.roll || 0;\n return position;\n }\n /**\n * clone a position\n * @deprecated\n * @returns {Position}\n */\n\n }, {\n key: \"copy\",\n value: function copy() {\n return this.clone();\n }\n /**\n *\n * @returns {*[]}\n */\n\n }, {\n key: \"toArray\",\n value: function toArray() {\n return [this.lng, this.lat, this.alt, this.heading, this.pitch, this.roll];\n }\n /**\n *\n * @returns {string}\n */\n\n }, {\n key: \"toString\",\n value: function toString() {\n return \"\".concat(this.lng, \",\").concat(this.lat, \",\").concat(this.alt, \",\").concat(this.heading, \",\").concat(this.pitch, \",\").concat(this.roll);\n }\n /**\n *\n * @returns {{lng, heading, alt, roll, pitch, lat}}\n */\n\n }, {\n key: \"toObject\",\n value: function toObject() {\n return {\n lng: this.lng,\n lat: this.lat,\n alt: this.alt,\n heading: this.heading,\n pitch: this.pitch,\n roll: this.roll\n };\n }\n /**\n *\n * @param arr\n * @returns {Position}\n */\n\n }], [{\n key: \"fromArray\",\n value: function fromArray(arr) {\n var position = new Position();\n\n if (Array.isArray(arr)) {\n position.lng = arr[0] || 0;\n position.lat = arr[1] || 0;\n position.alt = arr[2] || 0;\n position.heading = arr[3] || 0;\n position.pitch = arr[4] || 0;\n position.roll = arr[5] || 0;\n }\n\n return position;\n }\n /**\n *\n * @param str\n * @returns {Position}\n */\n\n }, {\n key: \"fromString\",\n value: function fromString(str) {\n var position = new Position();\n\n if (str && typeof str === 'string') {\n var arr = str.split(',');\n position = this.fromArray(arr);\n }\n\n return position;\n }\n /**\n *\n * @param obj\n * @returns {Position}\n */\n\n }, {\n key: \"fromObject\",\n value: function fromObject(obj) {\n return new Position(obj.lng, obj.lat, obj.alt, obj.heading, obj.pitch, obj.roll);\n }\n /**\n * Deserialize\n * @param valStr\n * @returns {Position}\n */\n\n }, {\n key: \"deserialize\",\n value: function deserialize(valStr) {\n var position = new Position();\n var obj = JSON.parse(valStr);\n\n if (obj) {\n position.lng = obj.lng || 0;\n position.lat = obj.lat || 0;\n position.alt = obj.alt || 0;\n position.heading = obj.heading || 0;\n position.pitch = obj.pitch || 0;\n position.roll = obj.roll || 0;\n }\n\n return position;\n }\n }]);\n\n return Position;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Position);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Bvc2l0aW9uL1Bvc2l0aW9uLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9wb3NpdGlvbi9Qb3NpdGl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ztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBUUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/position/Position.js\n");
- /***/ }),
- /***/ "./modules/roaming/KeyboardRoaming.js":
- /*!********************************************!*\
- !*** ./modules/roaming/KeyboardRoaming.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-06-08 20:41:51\n */\n\n\nvar KeyboardRoaming = /*#__PURE__*/function () {\n function KeyboardRoaming(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, KeyboardRoaming);\n\n this._viewer = viewer;\n this._enable = false;\n this._moveRate = 100.0;\n this._rotateRate = 0.01;\n this._flags = {\n moveForward: false,\n moveBackward: false,\n moveUp: false,\n moveDown: false,\n moveLeft: false,\n moveRight: false,\n turnLeft: false,\n turnRight: false\n };\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(KeyboardRoaming, [{\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n if (this._enable === enable) {\n return this;\n }\n\n if (this._viewer.scene.mode !== _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SceneMode.SCENE3D) {\n return this;\n }\n\n this._enable = enable;\n this._enable ? this._bindEvent() : this._unbindEvent();\n return this;\n }\n }, {\n key: \"moveRate\",\n get: function get() {\n return this._moveRate;\n },\n set: function set(moveRate) {\n this._moveRate = moveRate;\n return this;\n }\n }, {\n key: \"rotateRate\",\n get: function get() {\n return this._rotateRate;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(rotateRate) {\n this._rotateRate = rotateRate;\n return this;\n }\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n var canvas = this._viewer.scene.canvas;\n canvas.setAttribute('tabindex', '0');\n canvas.addEventListener('click', this._onClick.bind(this), false);\n\n this._viewer.clock.onTick.addEventListener(this._onTick, this);\n\n document.addEventListener('keydown', this._onKeydown.bind(this), false);\n document.addEventListener('keyup', this._onKeyup.bind(this), false);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n var _this = this;\n\n Object.keys(this._flags).forEach(function (key) {\n _this._flags[key] = false;\n });\n var canvas = this._viewer.scene.canvas;\n canvas.removeAttribute('tabindex');\n canvas.removeEventListener('click', this._onClick, false);\n\n this._viewer.clock.onTick.removeEventListener(this._onTick, this);\n\n document.removeEventListener('keydown', this._onKeydown, false);\n document.removeEventListener('keyup', this._onKeyup, false);\n }\n /**\n *\n * @param e\n * @returns {undefined}\n * @private\n */\n\n }, {\n key: \"_getFlagForKeyCode\",\n value: function _getFlagForKeyCode(e) {\n var flag = undefined;\n\n switch (e.keyCode) {\n case 'W'.charCodeAt(0):\n case 38:\n if (e.shiftKey) {\n flag = 'moveUp';\n } else {\n flag = 'moveForward';\n }\n\n break;\n\n case 'S'.charCodeAt(0):\n case 40:\n if (e.shiftKey) {\n flag = 'moveDown';\n } else {\n flag = 'moveBackward';\n }\n\n break;\n\n case 'A'.charCodeAt(0):\n case 37:\n flag = 'moveLeft';\n break;\n\n case 'D'.charCodeAt(0):\n case 39:\n flag = 'moveRight';\n break;\n\n case 'Q'.charCodeAt(0):\n flag = 'turnLeft';\n break;\n\n case 'E'.charCodeAt(0):\n flag = 'turnRight';\n break;\n\n default:\n break;\n }\n\n return flag;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onClick\",\n value: function _onClick() {\n var canvas = this._viewer.scene.canvas;\n canvas.focus();\n }\n /**\n *\n * @param e\n * @private\n */\n\n }, {\n key: \"_onKeydown\",\n value: function _onKeydown(e) {\n var flag = this._getFlagForKeyCode(e);\n\n if (flag) {\n this._flags[flag] = true;\n }\n }\n /**\n *\n * @param e\n * @private\n */\n\n }, {\n key: \"_onKeyup\",\n value: function _onKeyup(e) {\n var _this2 = this;\n\n Object.keys(this._flags).forEach(function (key) {\n _this2._flags[key] = false;\n });\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onTick\",\n value: function _onTick() {\n var camera = this._viewer.scene.camera;\n\n var cameraHeight = this._viewer.scene.globe.ellipsoid.cartesianToCartographic(camera.position).height;\n\n var moveRate = cameraHeight / this._moveRate;\n var axis = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.clone(camera.position, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3());\n this._flags.moveForward && camera.moveForward(moveRate);\n this._flags.moveBackward && camera.moveBackward(moveRate);\n this._flags.moveUp && camera.moveUp(moveRate);\n this._flags.moveDown && camera.moveDown(moveRate);\n this._flags.moveLeft && camera.moveLeft(moveRate);\n this._flags.moveRight && camera.moveRight(moveRate);\n this._flags.turnLeft && camera.rotate(axis, -this._rotateRate);\n this._flags.turnRight && camera.rotate(axis, this._rotateRate);\n }\n }]);\n\n return KeyboardRoaming;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (KeyboardRoaming);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3JvYW1pbmcvS2V5Ym9hcmRSb2FtaW5nLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9yb2FtaW5nL0tleWJvYXJkUm9hbWluZy5qcz81ZGEzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA2LTA4IDIwOjQxOjUxXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuXG5jbGFzcyBLZXlib2FyZFJvYW1pbmcge1xuICBjb25zdHJ1Y3Rvcih2aWV3ZXIpIHtcbiAgICB0aGlzLl92aWV3ZXIgPSB2aWV3ZXJcbiAgICB0aGlzLl9lbmFibGUgPSBmYWxzZ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0E7QUFoQ0E7QUFDQTtBQWlDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/roaming/KeyboardRoaming.js\n");
- /***/ }),
- /***/ "./modules/roaming/Roaming.js":
- /*!************************************!*\
- !*** ./modules/roaming/Roaming.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author 刘策\n * @Date 2022-09-27 11:04\n * @Description 场景漫游功能\n */\n\nvar DEF_OPTS = {\n offsetHeight: 0,\n roamType: 'gs',\n loop: false,\n camera: {\n pitch: -10,\n range: 5\n },\n path: {\n resolution: 1,\n material: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].PolylineGlowMaterialProperty({\n glowPower: 0.1,\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.YELLOW\n }),\n width: 10,\n show: false\n }\n};\n\nvar Roaming = /*#__PURE__*/function () {\n /**\n * 配置漫游属性\n * @param {Object} viewer 视图\n * @param {Object} options 漫游设置\n * @param {Array} options.positions 漫游坐标点数组\n * @param {Array} options.times 到达每个点的时间,以秒为单位\n * @param {Number} options.offsetHeight 水平高度偏移,将所有点固定同一高度\n * @param {Number} options.speed 飞行速度,设置了times属性后不适用\n * @param {Number} options.pauseTime 每个点的停留时长(单位:秒)\n * @param {Cesium.PathGraphics} options.path 路径设置\n * @param {Boolean} options.loop 是否循环漫游\n * @param {Object} options.camera 漫游相机属性\n */\n function Roaming(viewer, options) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Roaming);\n\n this._viewer = viewer._delegate || viewer;\n this._speed = options.speed;\n this._times = options.times;\n this._camera = _objectSpread(_objectSpread({}, DEF_OPTS.camera), options.camera);\n this._offsetHeight = options.offsetHeight;\n this.pathOptions = options.path;\n this.multiplier = 1; // 时间变化速率,影响飞行速度\n\n this._loop = options.loop || DEF_OPTS.loop;\n this.roamType = DEF_OPTS.roamType;\n this.coordinates = []; // 飞行经过的坐标点\n\n for (var i = 0; i < options.positions.length; i++) {\n if (!options.positions[0].x || !options.positions[0].y || !options.positions[0].z) {\n throw new Error('数组坐标参数缺失');\n }\n\n if (this._offsetHeight) {\n var cartographic = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartographic.fromCartesian(options.positions[i]); // 世界坐标转地理坐标(弧度)\n\n var lngLat = [cartographic.longitude / Math.PI * 180, cartographic.latitude / Math.PI * 180]; // 地理坐标(弧度)转经纬度坐标\n\n var position = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3.fromDegrees(lngLat[0], lngLat[1], this._offsetHeight);\n this.coordinates.push(position);\n } else {\n this.coordinates = options.positions;\n }\n }\n }\n /**\n * 更新漫游配置参数\n * @param {Object} options 配置参数\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Roaming, [{\n key: \"updateOptionsParams\",\n value: function updateOptionsParams(options) {\n this._speed = options.speed || this._speed;\n this._times = options.times || this._times;\n this._offsetHeight = options.offsetHeight || this._offsetHeight;\n this.camera = _objectSpread(_objectSpread({}, this._camera), options.camera);\n this.pathOptions = options.path || this.pathOptions;\n this.multiplier = 1; // 时间变化速率,影响飞行速度\n\n this._loop = options.loop || this._loop;\n this.roamType = DEF_OPTS.roamType;\n this.coordinates = []; // 飞行经过的坐标点\n\n for (var i = 0; i < options.positions.length; i++) {\n if (!options.positions[0].x || !options.positions[0].y || !options.positions[0].z) {\n throw new Error('数组坐标参数缺失');\n }\n\n if (this._offsetHeight) {\n var cartographic = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartographic.fromCartesian(options.positions[i]); // 世界坐标转地理坐标(弧度)\n\n var lngLat = [cartographic.longitude / Math.PI * 180, cartographic.latitude / Math.PI * 180]; // 地理坐标(弧度)转经纬度坐标\n\n var position = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3.fromDegrees(lngLat[0], lngLat[1], this._offsetHeight);\n this.coordinates.push(position);\n } else {\n this.coordinates = options.positions;\n }\n }\n }\n /**\n * 开始漫游\n */\n\n }, {\n key: \"start\",\n value: function start() {\n this.roamingState = 'start';\n this.flyPosition = []; // 飞行经过的坐标点和时间\n\n this.curPositionIndex = 0; // 飞行中当前经过点位数组下标\n\n this.flyTotalTime = 0; // 飞行总时间\n\n this.rotateTime = 2; // 镜头旋转时间\n\n this._startTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.fromDate(new Date());\n var position = this.computeRoamingLineProperty(this.coordinates);\n this._stopTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.addSeconds(this._startTime, this.flyTotalTime, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate());\n this.setClockTime(this._startTime, this._stopTime);\n this.createEntityFly(this._startTime, this._stopTime, position);\n this.setCameraRotate();\n this.addCameraRoaming();\n }\n /**\n * 暂停漫游\n */\n\n }, {\n key: \"pause\",\n value: function pause() {\n if (this.roamingState !== 'start') {\n throw new Error('未启动漫游');\n }\n\n var clockViewModel = this._viewer.clockViewModel;\n\n if (clockViewModel.shouldAnimate) {\n this.removeCameraRoaming();\n clockViewModel.shouldAnimate = false;\n this._viewer.trackedEntity = undefined;\n this.roamingState = 'pause';\n }\n }\n /**\n * 继续漫游\n */\n\n }, {\n key: \"continue\",\n value: function _continue() {\n if (this.roamingState !== 'pause') {\n throw new Error('当前漫游不处于暂停状态');\n }\n\n this._viewer.trackedEntity = this.entityFly;\n this.addCameraRoaming();\n this._viewer.clockViewModel.shouldAnimate = true;\n this.roamingState = 'start';\n }\n /**\n * 关闭漫游\n */\n\n }, {\n key: \"close\",\n value: function close() {\n var _this = this;\n\n console.log('漫游结束关闭');\n this.roamingState = 'close';\n this._viewer.trackedEntity = undefined;\n this.removeCameraRoaming();\n\n this._viewer.clock.onStop.removeEventListener(_this.close, _this);\n\n this._viewer.entities.remove(this.entityFly);\n }\n }, {\n key: \"changeSpeed\",\n value: function changeSpeed(multiplier) {\n this._viewer.clock.multiplier = multiplier;\n this.rotateTime = this.rotateTime / multiplier;\n }\n /**\n * 设置漫游事件系统\n * @param {*} start\n * @param {*} stop\n */\n\n }, {\n key: \"setClockTime\",\n value: function setClockTime(start, stop) {\n var viewer = this._viewer; // 将当前日期转为JulianDate\n\n viewer.clock.startTime = start.clone();\n viewer.clock.stopTime = stop.clone();\n viewer.clock.currentTime = start.clone();\n viewer.clock.multiplier = this.multiplier; // 时间变化速率,影响飞行速度\n // 是否循环漫游\n\n viewer.clock.clockRange = this._loop ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ClockRange.LOOP_STOP : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ClockRange.CLAMPED; // 时钟在此模式下前进的间隔当前间隔乘以某个系数\n\n viewer.clock.clockStep = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ClockStep.SYSTEM_CLOCK_MULTIPLIER;\n viewer.clock.shouldAnimate = true; // 设置时间轴动态效果\n }\n /**\n * 设置漫游事件相机旋转朝向的目标点\n */\n\n }, {\n key: \"setCameraRotate\",\n value: function setCameraRotate() {\n this.rotateTargetPoint = [];\n this.rotateTargetPosition = [];\n\n for (var k = 1; k < this.flyPosition.length - 1; k++) {\n // 旋转到目标点时所处时间\n var rotateTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.addSeconds(this.flyPosition[k].time, 2, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate());\n var targetPoint = this.entityFly.position.getValue(rotateTime);\n\n var aroundPoint = this._viewer.entities.add({\n position: targetPoint,\n point: {\n pixelSize: 0.1,\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.YELLOW.withAlpha(0.01)\n }\n });\n\n this.rotateTargetPoint.push(aroundPoint);\n this.rotateTargetPosition.push(targetPoint);\n }\n }\n /**\n * 视图每帧刷新绑定相机漫游监听事件\n */\n\n }, {\n key: \"addCameraRoaming\",\n value: function addCameraRoaming() {\n var _this = this;\n\n if (!this.entityFly) {\n throw new Error('未创建漫游轨迹');\n }\n\n this._viewer.scene.preUpdate.addEventListener(_this.listenerContext, _this);\n\n this._viewer.clock.onStop.addEventListener(_this.close, _this);\n }\n /**\n * 视图每帧刷新移除相机漫游监听事件\n */\n\n }, {\n key: \"removeCameraRoaming\",\n value: function removeCameraRoaming() {\n var _this = this;\n\n this._viewer.scene.preUpdate.removeEventListener(_this.listenerContext, _this);\n }\n /**\n * 相机漫游事件\n */\n\n }, {\n key: \"listenerContext\",\n value: function listenerContext() {\n var _this = this;\n\n if (this.roamType === 'gs') {\n // 计算当前时间和下一目标点到达时间的差值\n var currentTime = this._viewer.clock.currentTime;\n var result = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.compare(this.flyPosition[this.curPositionIndex].time, currentTime); // 到达目标点后执行操作\n\n if (result < 0) {\n console.log(this._viewer.trackedEntity);\n this._viewer.trackedEntity = undefined;\n var heading = this._camera.heading ? this._camera.heading * (2 * Math.PI / 360) : this.getHeading(this.flyPosition[this.curPositionIndex].position, this.flyPosition[this.curPositionIndex + 1].position);\n var pitch = this._camera.pitch * (2 * Math.PI / 360);\n var range = this._camera.range;\n var viewFrom = {\n x: -range * Math.cos(pitch) * Math.sin(heading),\n y: -range * Math.cos(pitch) * Math.cos(heading),\n z: -range * Math.sin(pitch)\n };\n this.entityFly.viewFrom = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(viewFrom.x, viewFrom.y, viewFrom.z);\n\n if (this.curPositionIndex === 0) {\n this._viewer.trackedEntity = this.entityFly;\n } else {\n var number = this.curPositionIndex - 1;\n\n this._viewer.flyTo(this.rotateTargetPoint[number], {\n offset: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeadingPitchRange(heading, pitch, range),\n duration: this.rotateTime\n }).then(function () {\n _this._viewer.entities.remove(_this.rotateTargetPoint[number]);\n\n _this._viewer.trackedEntity = _this.entityFly;\n });\n }\n\n this.curPositionIndex = this.curPositionIndex + 1;\n }\n }\n }\n /**\n * 创建相机漫游追踪的entity飞行设置\n * @param {*} position computeRoamingLineProperty计算的属性\n * @param {*} start 开始时间节点\n * @param {*} stop 结束时间节点\n */\n\n }, {\n key: \"createEntityFly\",\n value: function createEntityFly(start, stop, position) {\n this.entityFly = this._viewer.entities.add({\n availability: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].TimeIntervalCollection([new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].TimeInterval({\n start: start,\n stop: stop\n })]),\n position: position,\n orientation: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].VelocityOrientationProperty(position),\n point: {\n color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Color.WHITE.withAlpha(0.01),\n pixelSize: 0.1\n },\n path: this.pathOptions || DEF_OPTS.path\n }); // 设置插值方式\n\n this.entityFly.position.setInterpolationOptions({\n interpolationDegree: 1,\n interpolationAlgorithm: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].LinearApproximation\n });\n }\n /**\n * 创建位置集合\n * @param {Array} coordinates 点集合\n * @returns\n */\n\n }, {\n key: \"computeRoamingLineProperty\",\n value: function computeRoamingLineProperty(coordinates) {\n var property = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].SampledPositionProperty();\n var coordinatesLength = coordinates.length;\n var timesLength = this._times ? this._times.length : 0;\n\n for (var i = 0; i < coordinatesLength; i++) {\n if (i === 0) {\n var position = coordinates[i];\n this.flyPosition.push({\n time: this._startTime,\n position: position\n });\n property.addSample(this._startTime, position);\n } else {\n // 当前点的前一个坐标\n var position_last = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(property._property._values[i * 3 - 3], property._property._values[i * 3 - 2], property._property._values[i * 3 - 1]); // 当前点坐标\n\n var _position = coordinates[i];\n\n if (this._times && timesLength === coordinatesLength - 1) {\n var _time = this._times[i - 1];\n this.flyTotalTime = this.flyTotalTime + _time;\n var time = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.addSeconds(property._property._times[i - 1], _time, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate());\n this.flyPosition.push({\n time: time,\n position: _position\n }); // 线性变化属性中添加对应时间所在的位置\n\n property.addSample(time, _position);\n } else if (this._speed && !this._times) {\n // 两点笛卡尔坐标转弧度坐标\n var positions = [_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(position_last), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(_position)]; // 两点构成测地线\n\n var geodesic = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].EllipsoidGeodesic(positions[0], positions[1]); // 测地线表面距离,单位m\n\n var distance = geodesic.surfaceDistance; // 飞行速度,单位m/s\n\n var speed = this._speed; // 飞行需要时长,单位s\n\n var _time2 = distance / speed;\n\n this.flyTotalTime = this.flyTotalTime + _time2;\n\n var _time3 = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate.addSeconds(property._property._times[i - 1], _time2, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].JulianDate());\n\n this.flyPosition.push({\n time: _time3,\n position: _position\n }); // 线性变化属性中添加对应时间所在的位置\n\n property.addSample(_time3, _position);\n } else {\n throw new Error('漫游时间段设置错误或未设置漫游速度参数');\n }\n }\n }\n\n return property;\n }\n /**\n * @describe 计算两点heading角,这个计算的是逆时针,如果需要顺时针,可以在返回的结果里+360即可.\n * @param {Cartesian3} pointA 当前坐标。\n * @param {Cartesian3} pointB 目标坐标。\n * @return Number\n */\n\n }, {\n key: \"getHeading\",\n value: function getHeading(pointA, pointB) {\n // 建立以点A为原点,X轴为east,Y轴为north,Z轴朝上的坐标系\n var transform = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(pointA); // 向量AB\n\n var positionvector = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3.subtract(pointB, pointA, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3()); // 因transform是将A为原点的eastNorthUp坐标系中的点转换到世界坐标系的矩阵\n // AB为世界坐标中的向量\n // 因此将AB向量转换为A原点坐标系中的向量,需乘以transform的逆矩阵。\n\n var vector = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Matrix4.multiplyByPointAsVector(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Matrix4.inverse(transform, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Matrix4()), positionvector, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3()); // 归一化\n\n var direction = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3.normalize(vector, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3()); // heading\n\n var heading = Math.atan2(direction.y, direction.x) - _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.PI_OVER_TWO;\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.TWO_PI - _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.zeroToTwoPi(heading);\n }\n }, {\n key: \"getPitch\",\n value: function getPitch(pointA, pointB) {\n var transform = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(pointA);\n var vector = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3.subtract(pointB, pointA, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3());\n var direction = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Matrix4.multiplyByPointAsVector(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Matrix4.inverse(transform, transform), vector, vector);\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3.normalize(direction, direction); // 因为direction已归一化,斜边长度等于1,所以余弦函数等于direction.z\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.PI_OVER_TWO - _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.acosClamped(direction.z);\n }\n /**\n * 设置漫游路径是否可见\n * @param {boolean} visible\n */\n\n }, {\n key: \"pathVisibility\",\n set: function set(visible) {\n if (this.entityFly) {\n this.entityFly.path.show = visible;\n }\n }\n }]);\n\n return Roaming;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Roaming);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3JvYW1pbmcvUm9hbWluZy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvcm9hbWluZy9Sb2FtaW5nLmpzPzg2ZGUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yIOWImOetllxuICogQERhdGUgMjAyMi0wOS0yNyAxMTowNFxuICogQERlc2NyaXB0aW9uIOWcuuaZr+a8q+a4uOWKn+iDvVxuICovXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5cbmNvbnN0IERFRl9PUFRTID0ge1xuICBvZmZzZXRIZWlnaHQ6IDAsXG4gIHJvYW1UeXBlOiAnZ3MnLFxuICBsb29wOiBmYWxzZSxcbiAgY2FtZXJhOiB7XG4gICAgcGl0Y2g6IC0xMCxcbiAgICByYW5nZTogNVxuICB9LFxuICBwYXRoOiB7XG4gICAgcmVzb2x1dGlvbjogMSxcbiAgICBtYXRlcmlhbDogbmV3IENlc2l1bS5Qb2x5bGluZUdsb3dNYXRlcmlhbFByb3BlcnR5KHtcbiAgICA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W9kZXNpYy5zdXJmYWNlRGlzdGFuY2VcbiAgICAgICAgICAvLyDpo57ooYzpgJ/luqbvvIzljZXkvY1tL3NcbiAgICAgICAgICBsZXQgc3BlZWQgPSB0aGlzLl9zcGVlZFxuICAgICAgICAgIC8vIOmjnuihjOmcgOimgeaXtumVv++8jOWNleS9jXNcbiAgICAgICAgICBsZXQgX3RpbWUgPSBkaXN0YW5jZSAvIHNwZWVkXG4gICAgICAgICAgdGhpcy5mbHlUb3RhbFRpbWUgPSB0aGlzLmZseVRvdGFsVGltZSArIF90aW1lXG4gICAgICAgICAgbGV0IHRpbWUgPSBDZXNpdW0uSnVsaWFuRGF0ZS5hZGRTZWNvbmRzKFxuICAgICAgICAgICAgcHJvcGVydHkuX3Byb3BlcnR5Ll90aW1lc1tpIC0gMV0sXG4gICAgICAgICAgICBfdGltZSxcbiAgICAgICAgICAgIG5ldyBDZXNpdW0uSnVsaWFuRGF0ZSgpXG4gICAgICAgICAgKVxuICAgICAgICAgIHRoaXMuZmx5UG9zaXRpb24ucHVzaCh7XG4gICAgICAgICAgICB0aW1lOiB0aW1lLFxuICAgICAgICAgICAgcG9zaXRpb246IHBvc2l0aW9uXG4gICAgICAgICAgfSlcbiAgICAgICAgICAvLyDnur/mgKflj5jljJblsZ7mgKfkuK3mt7vliqDlr7nlupTml7bpl7TmiYDlnKjnmoTkvY3nva5cbiAgICAgICAgICBwcm9wZXJ0eS5hZGRTYW1wbGUodGltZSwgcG9zaXRpb24pXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCfmvKvmuLjml7bpl7TmrrXorr7nva7plJnor6/miJbmnKrorr7nva7mvKvmuLjpgJ/luqblj4LmlbAnKVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiBwcm9wZXJ0eTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAZGVzY3JpYmUg6K6h566X5Lik54K5aGVhZGluZ+inku+8jOi/meS4quiuoee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UFJQTtBQUNBO0FBQ0E7QUFGQTtBQUNBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/roaming/Roaming.js\n");
- /***/ }),
- /***/ "./modules/roaming/RoamingController.js":
- /*!**********************************************!*\
- !*** ./modules/roaming/RoamingController.js ***!
- \**********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-06-08 20:41:51\n */\n\n\n\nvar RoamingController = /*#__PURE__*/function () {\n function RoamingController(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RoamingController);\n\n this._viewer = viewer;\n this._viewOption = {};\n this._cache = {};\n this._activedPath = undefined;\n }\n /**\n *\n * @returns {boolean}\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RoamingController, [{\n key: \"_onPostRender\",\n value: function _onPostRender() {\n if (!this._activedPath) {\n return false;\n }\n\n this._activedPath.pathEvent && this._activedPath.pathEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PathEventType\"].POST_RENDER, {\n viewer: this._viewer,\n viewOption: this._viewOption\n });\n }\n /**\n *\n * @param path\n * @returns {RoamingController}\n */\n\n }, {\n key: \"addPath\",\n value: function addPath(path) {\n if (path && !this._cache.hasOwnProperty(path.pathId)) {\n path.pathEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PathEventType\"].ADD);\n this._cache[path.pathId] = path;\n }\n\n return this;\n }\n /**\n *\n * @param paths\n * @returns {RoamingController}\n */\n\n }, {\n key: \"addPaths\",\n value: function addPaths(paths) {\n var _this = this;\n\n if (Array.isArray(paths)) {\n paths.forEach(function (item) {\n _this.addPath(item);\n });\n }\n\n return this;\n }\n /**\n *\n * @param path\n * @returns {RoamingController}\n */\n\n }, {\n key: \"removePath\",\n value: function removePath(path) {\n if (path && this._cache.hasOwnProperty(path.pathId)) {\n delete this._cache[path.pathId];\n path.pathEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PathEventType\"].REMOVE);\n }\n\n return this;\n }\n /**\n *\n * @param id\n * @returns {*|undefined}\n */\n\n }, {\n key: \"getPath\",\n value: function getPath(id) {\n var filters = this.getPaths().filter(function (item) {\n return item.id === id;\n });\n return filters && filters.length ? filters[0] : undefined;\n }\n /**\n *\n * @returns {*[]}\n */\n\n }, {\n key: \"getPaths\",\n value: function getPaths() {\n var _this2 = this;\n\n var result = [];\n Object.keys(this._cache).forEach(function (key) {\n result.push(_this2._cache[key]);\n });\n return result;\n }\n /**\n *\n * @param path\n * @param viewOption\n * @returns {RoamingController}\n */\n\n }, {\n key: \"activate\",\n value: function activate(path) {\n var _this$_activedPath;\n\n var viewOption = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!path || (path === null || path === void 0 ? void 0 : path.pathId) === ((_this$_activedPath = this._activedPath) === null || _this$_activedPath === void 0 ? void 0 : _this$_activedPath.pathId) || !this._cache.hasOwnProperty(path === null || path === void 0 ? void 0 : path.pathId)) {\n return this;\n }\n\n this._viewOption = viewOption;\n this._activedPath && this.deactivate();\n this._activedPath = path;\n this._activedPath.pathEvent && this._activedPath.pathEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"PathEventType\"].RESET_TIME_LINE);\n\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n return this;\n }\n /**\n *\n * @returns {RoamingController}\n */\n\n }, {\n key: \"deactivate\",\n value: function deactivate() {\n this._activedPath && (this._activedPath.actived = false);\n this._activedPath = undefined;\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n return this;\n }\n /**\n *\n * @returns {RoamingController}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n this._cache = {};\n this._activedPath && (this._activedPath.actived = false);\n this._activedPath = undefined;\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_3__[\"SceneEventType\"].POST_RENDER, this._onPostRender, this);\n\n this._viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n\n return this;\n }\n }]);\n\n return RoamingController;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (RoamingController);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3JvYW1pbmcvUm9hbWluZ0NvbnRyb2xsZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3JvYW1pbmcvUm9hbWluZ0NvbnRyb2xsZXIuanM/OTY5YyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wNi0wOCAyMDo0MTo1MVxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCB7IFNjZW5lRXZlbnRUeXBlLCBQYXRoRXZlbnRUeXBlIH0gZnJvbSAnQGdkLW1vZHVsZXMvZXZlbnQnXG5cbmNsYXNzIFJvYW1pbmdDb250cm9sbGVyIHtcbiAgY29uc3RydWN0b3Iodmlld2VyKSB7XG4gICAgdGhpcy5fdmlld2VyID0gdmlld2VyXG4gICAgdGhpcy5fdmlld09wdGlvbiA9IHt9XG4gICAgdGhpcy5fY2FjaGUgPSB7fVxuICAgIHRoaXMuX2FjdGl2ZWRQYXRoID0gdW5kZWZpbmVkXG4gIH1cblxuICAvKipcbiAgICpcbiAgICogQHJldHVybnMge2Jvb2xlYW59XG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QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBQUE7QUFLQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/roaming/RoamingController.js\n");
- /***/ }),
- /***/ "./modules/roaming/RoamingPath.js":
- /*!****************************************!*\
- !*** ./modules/roaming/RoamingPath.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-06-08 20:41:51\n */\n\n\n\n\n\n\n\n\nvar RoamingPath = /*#__PURE__*/function () {\n function RoamingPath(positions, duration, pathMode) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, RoamingPath);\n\n this._id = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__[\"Util\"].uuid();\n this._bid = undefined;\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_4__[\"default\"].parsePositions(positions);\n this._duration = duration || 20;\n this._pathMode = pathMode || 'speed';\n this._timeLine = [];\n this._sampledPosition = undefined;\n this._actived = false;\n this._endTime = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.now();\n this._pathEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"PathEvent\"]();\n\n this._pathEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"PathEventType\"].ADD, this._onAdd, this);\n\n this._pathEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"PathEventType\"].REMOVE, this._onRemove, this);\n\n this._pathEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"PathEventType\"].POST_RENDER, this._onPostRender, this);\n\n this._pathEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"PathEventType\"].RESET_TIME_LINE, this._resetTimeLine, this);\n\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(RoamingPath, [{\n key: \"pathId\",\n get: function get() {\n return this._id;\n }\n }, {\n key: \"id\",\n get: function get() {\n return this._bid;\n },\n set: function set(id) {\n this._bid = id;\n return this;\n }\n }, {\n key: \"positions\",\n get: function get() {\n return this._positions;\n },\n set: function set(postions) {\n this._positions = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_4__[\"default\"].parsePositions(postions);\n return this;\n }\n }, {\n key: \"duration\",\n get: function get() {\n return this._duration;\n },\n set: function set(duration) {\n this._duration = duration;\n return this;\n }\n }, {\n key: \"pathMode\",\n get: function get() {\n return this._pathMode;\n },\n set: function set(pathMode) {\n this._pathMode = pathMode;\n return this;\n }\n }, {\n key: \"pathEvent\",\n get: function get() {\n return this._pathEvent;\n }\n }, {\n key: \"actived\",\n get: function get() {\n return this._actived;\n },\n set: function set(actived) {\n this._actived = actived;\n return this;\n }\n }, {\n key: \"state\",\n get: function get() {\n return this._state;\n }\n }, {\n key: \"_onAdd\",\n value: function _onAdd() {\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n }\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].REMOVED;\n }\n /**\n *\n * @param viewer\n * @param viewOption\n * @private\n */\n\n }, {\n key: \"_onPostRender\",\n value: function _onPostRender(_ref) {\n var viewer = _ref.viewer,\n viewOption = _ref.viewOption;\n\n if (!this.actived) {\n return false;\n }\n\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.now();\n\n if (_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.lessThan(now, this._endTime) && this._sampledPosition) {\n var p = this._sampledPosition.getValue(now);\n\n var next_p = this._sampledPosition.getValue(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.addSeconds(now, 0.001, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate()));\n\n if (p && next_p) {\n viewer.camera.lookAt(p, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRange(Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"heading\"])(p, next_p), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians((viewOption === null || viewOption === void 0 ? void 0 : viewOption.pitch) || -20), (viewOption === null || viewOption === void 0 ? void 0 : viewOption.range) || 2000));\n }\n } else {\n viewer.camera.lookAtTransform(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Matrix4.IDENTITY);\n this._actived = false;\n }\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_resetTimeLine\",\n value: function _resetTimeLine() {\n if (!this._positions || !this._positions.length) {\n return false;\n }\n\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.now();\n var interval = 0;\n var timeLine = [];\n\n if (this._pathMode === 'speed') {\n var v = Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"distance\"])(this._positions) / this._duration;\n\n timeLine = this._positions.map(function (item, index, arr) {\n if (index !== 0) {\n interval += Object(_gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"distance\"])([arr[index - 1], item]) / v;\n }\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.addSeconds(now, interval, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate());\n });\n } else {\n var len = this._positions.length;\n\n var _interval = (this._duration - this._duration % len) / len;\n\n timeLine = this._positions.map(function (item, index) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate.addSeconds(now, index * _interval, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].JulianDate());\n });\n }\n\n this._sampledPosition = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SampledPositionProperty();\n\n this._sampledPosition.addSamples(timeLine, _gd_modules_transform__WEBPACK_IMPORTED_MODULE_7__[\"Transform\"].transformWGS84ArrayToCartesianArray(this._positions));\n\n this._sampledPosition.forwardExtrapolationType = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ExtrapolationType.HOLD;\n\n this._sampledPosition.setInterpolationOptions({\n interpolationDegree: 2,\n interpolationAlgorithm: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HermitePolynomialApproximation\n });\n\n this._endTime = timeLine[timeLine.length - 1];\n this._actived = true;\n }\n }]);\n\n return RoamingPath;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"]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QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/roaming/RoamingPath.js\n");
- /***/ }),
- /***/ "./modules/roaming/index.js":
- /*!**********************************!*\
- !*** ./modules/roaming/index.js ***!
- \**********************************/
- /*! exports provided: KeyboardRoaming, RoamingController, RoamingPath, Roaming */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _KeyboardRoaming__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./KeyboardRoaming */ \"./modules/roaming/KeyboardRoaming.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KeyboardRoaming\", function() { return _KeyboardRoaming__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _RoamingController__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RoamingController */ \"./modules/roaming/RoamingController.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"RoamingController\", function() { return _RoamingController__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _RoamingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RoamingPath */ \"./modules/roaming/RoamingPath.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"RoamingPath\", function() { return _RoamingPath__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _Roaming__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Roaming */ \"./modules/roaming/Roaming.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Roaming\", function() { return _Roaming__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2021-06-08 20:41:51\n */\n\n/**\n * roaming\n */\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3JvYW1pbmcvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3JvYW1pbmcvaW5kZXguanM/M2JmNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wNi0wOCAyMDo0MTo1MVxuICovXG5cbi8qKlxuICogcm9hbWluZ1xuICovXG5leHBvcnQgeyBkZWZhdWx0IGFzIEtleWJvYXJkUm9hbWluZyB9IGZyb20gJy4vS2V5Ym9hcmRSb2FtaW5nJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBSb2FtaW5nQ29udHJvbGxlciB9IGZyb20gJy4vUm9hbWluZ0NvbnRyb2xsZXInXG5leHBvcnQgeyBkZWZhdWx0IGFzIFJvYW1pbmdQYXRoIH0gZnJvbSAnLi9Sb2FtaW5nUGF0aCdcbmV4cG9ydCB7IGRlZmF1bHQgYXMgUm9hbWluZyB9IGZyb20gJy4vUm9hbWluZydcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/roaming/index.js\n");
- /***/ }),
- /***/ "./modules/scene/SceneController.js":
- /*!******************************************!*\
- !*** ./modules/scene/SceneController.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-09-21 17:07\n * @Description\n */\n\n/**\n * @Description 默认设置\n * @param skyAtmosphere 椭球边缘大气特效\n * @param fog 场景雾\n */\n\nvar DEF_OPTS = {\n skyAtmosphere: {\n hueShift: 0,\n saturationShift: 0,\n brightnessShift: 0\n },\n fog: {\n density: 0.0002,\n minimumBrightness: 0.03\n }\n};\n\nvar SceneController = /*#__PURE__*/function () {\n function SceneController(viewer) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, SceneController);\n\n this._viewer = viewer._delegate || viewer;\n this.postProcessStage = null;\n }\n /**\n * @Description 设置场景亮度\n * @param {Number} num 亮度值。\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SceneController, [{\n key: \"setBrightness\",\n value: function setBrightness(num) {\n var viewer = this._viewer;\n var stages = viewer.scene.postProcessStages;\n viewer.scene.brightness = viewer.scene.brightness || stages.add(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStageLibrary.createBrightnessStage());\n viewer.scene.brightness.enabled = true;\n viewer.scene.brightness.uniforms.brightness = Number(num);\n }\n /**\n * @Description 设置后处理下雨效果\n */\n\n }, {\n key: \"showRain\",\n value: function showRain() {\n var viewer = this._viewer;\n viewer.scene.skyBox.show = true;\n viewer.scene.skyAtmosphere.show = true;\n var fs = \"\\nuniform sampler2D colorTexture;//\\u8F93\\u5165\\u7684\\u573A\\u666F\\u6E32\\u67D3\\u7167\\u7247\\n varying vec2 v_textureCoordinates;\\n\\n float hash(float x){\\n return fract(sin(x*133.3)*13.13);\\n }\\n\\n void main(void){\\n\\n float time = czm_frameNumber / 60.0;\\n vec2 resolution = czm_viewport.zw;\\n\\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\\n vec3 c=vec3(.6,.7,.8);\\n\\n float a=-.4;\\n float si=sin(a),co=cos(a);\\n uv*=mat2(co,-si,si,co);\\n uv*=length(uv+vec2(0,4.9))*.3+1.;\\n\\n float v=1.-sin(hash(floor(uv.x*100.))*2.);\\n float b=clamp(abs(sin(20.*time*v+uv.y*(5./(2.+v))))-.95,0.,1.)*20.;\\n c*=v*b; //\\u5C4F\\u5E55\\u4E0A\\u96E8\\u7684\\u989C\\u8272\\n\\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c,1), 0.5); //\\u5C06\\u96E8\\u548C\\u4E09\\u7EF4\\u573A\\u666F\\u878D\\u5408\\n }\";\n this.postProcessStage = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n name: 'rain',\n fragmentShader: fs\n });\n viewer.scene.postProcessStages.add(this.postProcessStage);\n var scene = viewer.scene;\n scene.skyAtmosphere.hueShift = -0.8;\n scene.skyAtmosphere.saturationShift = -0.7;\n scene.skyAtmosphere.brightnessShift = -0.33;\n scene.fog.density = 0.001;\n scene.fog.minimumBrightness = 0.8;\n }\n /**\n * @Description 关闭后处理下雨效果\n */\n\n }, {\n key: \"closeRain\",\n value: function closeRain() {\n if (!this.postProcessStage || this.postProcessStage.name !== 'rain') {\n return;\n }\n\n this._viewer.scene.postProcessStages.remove(this.postProcessStage);\n\n this.postProcessStage = null;\n var scene = this._viewer.scene;\n scene.skyAtmosphere.hueShift = DEF_OPTS.skyAtmosphere.hueShift;\n scene.skyAtmosphere.saturationShift = DEF_OPTS.skyAtmosphere.saturationShift;\n scene.skyAtmosphere.brightnessShift = DEF_OPTS.skyAtmosphere.brightnessShift;\n scene.fog.density = DEF_OPTS.fog.density;\n scene.fog.minimumBrightness = DEF_OPTS.fog.minimumBrightness;\n }\n /**\n * @Description 设置后处理下雪效果\n */\n\n }, {\n key: \"showSnow\",\n value: function showSnow() {\n var viewer = this._viewer;\n viewer.scene.skyBox.show = true;\n viewer.scene.skyAtmosphere.show = true;\n var fs = \"\\nuniform sampler2D colorTexture; //\\u8F93\\u5165\\u7684\\u573A\\u666F\\u6E32\\u67D3\\u7167\\u7247\\n varying vec2 v_textureCoordinates;\\n\\n float snow(vec2 uv,float scale)\\n {\\n float time = czm_frameNumber / 60.0;\\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));if(w<.1)return 0.;\\n uv+=time/scale;uv.y+=time*2./scale;uv.x+=sin(uv.y+time*.5)/scale;\\n uv*=scale;vec2 s=floor(uv),f=fract(uv),p;float k=3.,d;\\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;d=length(p);k=min(d,k);\\n k=smoothstep(0.,k,sin(f.x+f.y)*0.01);\\n return k*w;\\n }\\n\\n void main(void){\\n vec2 resolution = czm_viewport.zw;\\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\\n vec3 finalColor=vec3(0);\\n //float c=smoothstep(1.,0.3,clamp(uv.y*.3+.8,0.,.75));\\n float c = 0.0;\\n c+=snow(uv,30.)*.0;\\n c+=snow(uv,20.)*.0;\\n c+=snow(uv,15.)*.0;\\n c+=snow(uv,10.);\\n c+=snow(uv,8.);\\n c+=snow(uv,6.);\\n c+=snow(uv,5.);\\n finalColor=(vec3(c)); //\\u5C4F\\u5E55\\u4E0A\\u96EA\\u7684\\u989C\\u8272\\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5); //\\u5C06\\u96EA\\u548C\\u4E09\\u7EF4\\u573A\\u666F\\u878D\\u5408\\n}\\n \";\n this.postProcessStage = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n name: 'snow',\n fragmentShader: fs\n });\n viewer.scene.postProcessStages.add(this.postProcessStage);\n }\n /**\n * @Description 关闭后处理下雨效果\n */\n\n }, {\n key: \"closeSnow\",\n value: function closeSnow() {\n if (!this.postProcessStage || this.postProcessStage.name !== 'snow') {\n return;\n }\n\n this._viewer.scene.postProcessStages.remove(this.postProcessStage);\n\n this.postProcessStage = null;\n }\n }]);\n\n return SceneController;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (SceneController);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3NjZW5lL1NjZW5lQ29udHJvbGxlci5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvc2NlbmUvU2NlbmVDb250cm9sbGVyLmpzP2JkNDQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yIOWImOetllxuICogQERhdGUgMjAyMi0wOS0yMSAxNzowN1xuICogQERlc2NyaXB0aW9uXG4gKi9cblxuaW1wb3J0IHtDZXNpdW19IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcblxuLyoqXG4gKiBARGVzY3JpcHRpb24g6buY6K6k6K6+572uXG4gKiBAcGFyYW0gc2t5QXRtb3NwaGVyZSDmpK3nkIPovrnnvJjlpKfmsJTnibnmlYhcbiAqIEBwYXJhbSBmb2cg5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O0FBQ0E7QUFFQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFIQTtBQUtBO0FBQ0E7QUFDQTtBQUZBO0FBTkE7QUFDQTtBQVdBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFEQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBNEJBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQWlDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/scene/SceneController.js\n");
- /***/ }),
- /***/ "./modules/scene/index.js":
- /*!********************************!*\
- !*** ./modules/scene/index.js ***!
- \********************************/
- /*! exports provided: SceneController */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _SceneController__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SceneController */ \"./modules/scene/SceneController.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"SceneController\", function() { return _SceneController__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/**\n * @Author 刘策\n * @Date 2022-09-21 17:07\n * @Description\n */\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3NjZW5lL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9zY2VuZS9pbmRleC5qcz84Mjc0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDliJjnrZZcbiAqIEBEYXRlIDIwMjItMDktMjEgMTc6MDdcbiAqIEBEZXNjcmlwdGlvblxuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgU2NlbmVDb250cm9sbGVyIH0gZnJvbSAnLi9TY2VuZUNvbnRyb2xsZXInXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/scene/index.js\n");
- /***/ }),
- /***/ "./modules/state/State.js":
- /*!********************************!*\
- !*** ./modules/state/State.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-05-11 16:39:23\n */\nvar State = {\n INITIALIZED: 'initialized',\n ADDED: 'added',\n REMOVED: 'removed',\n CLEARED: 'cleared',\n INSTALLED: 'installed',\n ENABLED: 'enabled',\n DISABLED: 'disabled',\n PLAY: 'play',\n PAUSE: 'pause',\n RESTORE: 'restore'\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (State);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3N0YXRlL1N0YXRlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy9zdGF0ZS9TdGF0ZS5qcz83ZjE1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA1LTExIDE2OjM5OjIzXG4gKi9cblxuY29uc3QgU3RhdGUgPSB7XG4gIElOSVRJQUxJWkVEOiAnaW5pdGlhbGl6ZWQnLFxuICBBRERFRDogJ2FkZGVkJyxcbiAgUkVNT1ZFRDogJ3JlbW92ZWQnLFxuICBDTEVBUkVEOiAnY2xlYXJlZCcsXG4gIElOU1RBTExFRDogJ2luc3RhbGxlZCcsXG4gIEVOQUJMRUQ6ICdlbmFibGVkJyxcbiAgRElTQUJMRUQ6ICdkaXNhYmxlZCcsXG4gIFBMQVk6ICdwbGF5JyxcbiAgUEFVU0U6ICdwYXVzZScsXG4gIFJFU1RPUkU6ICdyZXN0b3JlJ1xufVxuXG5leHBvcnQgZGVmYXVsdCBTdGF0ZVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQVZBO0FBYUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/state/State.js\n");
- /***/ }),
- /***/ "./modules/terrain/TerrainFactory.js":
- /*!*******************************************!*\
- !*** ./modules/terrain/TerrainFactory.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _TerrainType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TerrainType */ \"./modules/terrain/TerrainType.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-21 15:54:56\n */\n\n\n\nvar TerrainFactory = /*#__PURE__*/function () {\n function TerrainFactory() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, TerrainFactory);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(TerrainFactory, null, [{\n key: \"createEllipsoidTerrain\",\n value:\n /**\n * Create ellipsoid terrain\n * @param options\n * @returns {module:cesium.EllipsoidTerrainProvider}\n */\n function createEllipsoidTerrain(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].EllipsoidTerrainProvider(options);\n }\n /**\n * Create url terrain\n * @param options\n * @returns {module:cesium.CesiumTerrainProvider}\n */\n\n }, {\n key: \"createUrlTerrain\",\n value: function createUrlTerrain(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].CesiumTerrainProvider(options);\n }\n /**\n * Create google terrain\n * @param options\n * @returns {module:cesium.GoogleEarthEnterpriseTerrainProvider}\n */\n\n }, {\n key: \"createGoogleTerrain\",\n value: function createGoogleTerrain(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].GoogleEarthEnterpriseTerrainProvider(options);\n }\n /**\n * Create arcgis terrain\n * @param options\n * @returns {module:cesium.ArcGISTiledElevationTerrainProvider}\n */\n\n }, {\n key: \"createArcgisTerrain\",\n value: function createArcgisTerrain(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].ArcGISTiledElevationTerrainProvider(options);\n }\n /**\n * Create vr terrain\n * @param options\n * @returns {module:cesium.VRTheWorldTerrainProvider}\n */\n\n }, {\n key: \"createVRTerrain\",\n value: function createVRTerrain(options) {\n return new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].VRTheWorldTerrainProvider(options);\n }\n /**\n * Create Terrain\n * @param type\n * @param options\n * @returns {any}\n */\n\n }, {\n key: \"createTerrain\",\n value: function createTerrain(type, options) {\n var terrain = undefined;\n\n switch (type) {\n case _TerrainType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].NONE:\n terrain = this.createEllipsoidTerrain(options);\n break;\n\n case _TerrainType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].XYZ:\n terrain = this.createUrlTerrain(options);\n break;\n\n case _TerrainType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].GOOGLE:\n terrain = this.createGoogleTerrain(options);\n break;\n\n case _TerrainType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ARCGIS:\n terrain = this.createArcgisTerrain(options);\n break;\n\n case _TerrainType__WEBPACK_IMPORTED_MODULE_3__[\"default\"].VR:\n terrain = this.createVRTerrain(options);\n break;\n\n default:\n break;\n }\n\n return terrain;\n }\n }]);\n\n return TerrainFactory;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (TerrainFactory);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RlcnJhaW4vVGVycmFpbkZhY3RvcnkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3RlcnJhaW4vVGVycmFpbkZhY3RvcnkuanM/OTcwYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMS0yMSAxNTo1NDo1NlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBUZXJyYWluVHlwZSBmcm9tICcuL1RlcnJhaW5UeXBlJ1xuXG5jbGFzcyBUZXJyYWluRmFjdG9yeSB7XG4gIC8qKlxuICAgKiBDcmVhdGUgZWxsaXBzb2lkIHRlcnJhaW5cbiAgICogQHBhcmFtIG9wdGlvbnNcbiAgICogQHJldHVybnMge21vZHVsZTpjZXNpdW0uRWxsaXBzb2lkVGVycmFpblByb3ZpZGVyfVxuICAgKi9cbiAgc3RhdGljIGNyZWF0ZUVsbGlwc29pZFRlcnJhaW4ob3B0aW9ucykge1xuICAgIHJldHVybiBuZXcgQ2VzaXVtLkVsbGlwc29pZFRlcnJhaW5Qcm92aWRlcihvcHRpb25zKVxuICB9XG5cbiAgLyoqXG4gICAqIENyZWF0ZSB1cmwgdGVycmFpblxuICAgKiBAcGFyYW0gb3B0aW9uc1xuICAgKiBAcmV0dXJucyB7bW9kdWxlOmNlc2l1bS5DZXNpdW1UZXJyYWluUHJvdmlkZXJ9XG4gICAqL1xuICBzdGF0aWMgY3JlYXRlVXJsVGVycmFpbihvcHRpb25zKSB7XG4gICAgcmV0dXJuIG5ldyBDZXNpdW0uQ2VzaXVtVGVyc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BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBakJBO0FBQ0E7QUFrQkE7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/terrain/TerrainFactory.js\n");
- /***/ }),
- /***/ "./modules/terrain/TerrainType.js":
- /*!****************************************!*\
- !*** ./modules/terrain/TerrainType.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-05-10 08:15:36\n */\nvar TerrainType = {\n NONE: 'none',\n XYZ: 'xyz',\n ARCGIS: 'arcgis',\n GOOGLE: 'google',\n VR: 'vr'\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (TerrainType);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RlcnJhaW4vVGVycmFpblR5cGUuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3RlcnJhaW4vVGVycmFpblR5cGUuanM/MzlhOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wNS0xMCAwODoxNTozNlxuICovXG5cbmxldCBUZXJyYWluVHlwZSA9IHtcbiAgTk9ORTogJ25vbmUnLFxuICBYWVo6ICd4eXonLFxuICBBUkNHSVM6ICdhcmNnaXMnLFxuICBHT09HTEU6ICdnb29nbGUnLFxuICBWUjogJ3ZyJ1xufVxuXG5leHBvcnQgZGVmYXVsdCBUZXJyYWluVHlwZVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBTEE7QUFRQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/terrain/TerrainType.js\n");
- /***/ }),
- /***/ "./modules/terrain/index.js":
- /*!**********************************!*\
- !*** ./modules/terrain/index.js ***!
- \**********************************/
- /*! exports provided: TerrainType, TerrainFactory */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _TerrainType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TerrainType */ \"./modules/terrain/TerrainType.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TerrainType\", function() { return _TerrainType__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _TerrainFactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TerrainFactory */ \"./modules/terrain/TerrainFactory.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"TerrainFactory\", function() { return _TerrainFactory__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2021-03-14 00:30:53\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RlcnJhaW4vaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3RlcnJhaW4vaW5kZXguanM/Y2JhNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMS0wMy0xNCAwMDozMDo1M1xuICovXG5cbmV4cG9ydCB7IGRlZmF1bHQgYXMgVGVycmFpblR5cGUgfSBmcm9tICcuL1RlcnJhaW5UeXBlJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBUZXJyYWluRmFjdG9yeSB9IGZyb20gJy4vVGVycmFpbkZhY3RvcnknXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/terrain/index.js\n");
- /***/ }),
- /***/ "./modules/themes/compass.scss":
- /*!*************************************!*\
- !*** ./modules/themes/compass.scss ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9jb21wYXNzLnNjc3MuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3RoZW1lcy9jb21wYXNzLnNjc3M/MjlmZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW4iXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/themes/compass.scss\n");
- /***/ }),
- /***/ "./modules/themes/contextmenu.scss":
- /*!*****************************************!*\
- !*** ./modules/themes/contextmenu.scss ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9jb250ZXh0bWVudS5zY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy90aGVtZXMvY29udGV4dG1lbnUuc2Nzcz9mYTU2Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/themes/contextmenu.scss\n");
- /***/ }),
- /***/ "./modules/themes/distancelegend.scss":
- /*!********************************************!*\
- !*** ./modules/themes/distancelegend.scss ***!
- \********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9kaXN0YW5jZWxlZ2VuZC5zY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy90aGVtZXMvZGlzdGFuY2VsZWdlbmQuc2Nzcz9kMGI3Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/themes/distancelegend.scss\n");
- /***/ }),
- /***/ "./modules/themes/hawkeyemap.scss":
- /*!****************************************!*\
- !*** ./modules/themes/hawkeyemap.scss ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9oYXdrZXllbWFwLnNjc3MuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3RoZW1lcy9oYXdrZXllbWFwLnNjc3M/NGY5MiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW4iXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/themes/hawkeyemap.scss\n");
- /***/ }),
- /***/ "./modules/themes/index.js":
- /*!*********************************!*\
- !*** ./modules/themes/index.js ***!
- \*********************************/
- /*! no exports provided */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var cesium_Widgets_widgets_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cesium/Widgets/widgets.css */ \"./node_modules/cesium/Build/Cesium/Widgets/widgets.css\");\n/* harmony import */ var cesium_Widgets_widgets_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cesium_Widgets_widgets_css__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.scss */ \"./modules/themes/index.scss\");\n/* harmony import */ var _index_scss__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_scss__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _popup_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./popup.scss */ \"./modules/themes/popup.scss\");\n/* harmony import */ var _popup_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_popup_scss__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _tooltip_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tooltip.scss */ \"./modules/themes/tooltip.scss\");\n/* harmony import */ var _tooltip_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_tooltip_scss__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _contextmenu_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./contextmenu.scss */ \"./modules/themes/contextmenu.scss\");\n/* harmony import */ var _contextmenu_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_contextmenu_scss__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _mapswitch_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mapswitch.scss */ \"./modules/themes/mapswitch.scss\");\n/* harmony import */ var _mapswitch_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mapswitch_scss__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _mapsplit_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mapsplit.scss */ \"./modules/themes/mapsplit.scss\");\n/* harmony import */ var _mapsplit_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_mapsplit_scss__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _hawkeyemap_scss__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./hawkeyemap.scss */ \"./modules/themes/hawkeyemap.scss\");\n/* harmony import */ var _hawkeyemap_scss__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_hawkeyemap_scss__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _compass_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./compass.scss */ \"./modules/themes/compass.scss\");\n/* harmony import */ var _compass_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_compass_scss__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _locationbar_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./locationbar.scss */ \"./modules/themes/locationbar.scss\");\n/* harmony import */ var _locationbar_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_locationbar_scss__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _distancelegend_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./distancelegend.scss */ \"./modules/themes/distancelegend.scss\");\n/* harmony import */ var _distancelegend_scss__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_distancelegend_scss__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _zoom_controller_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./zoom-controller.scss */ \"./modules/themes/zoom-controller.scss\");\n/* harmony import */ var _zoom_controller_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_zoom_controller_scss__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _loading_mask_scss__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./loading-mask.scss */ \"./modules/themes/loading-mask.scss\");\n/* harmony import */ var _loading_mask_scss__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_loading_mask_scss__WEBPACK_IMPORTED_MODULE_12__);\n/**\n * @Author: Caven\n * @Date: 2020-01-21 10:48:50\n */\n\n\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DQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/themes/index.js\n");
- /***/ }),
- /***/ "./modules/themes/index.scss":
- /*!***********************************!*\
- !*** ./modules/themes/index.scss ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9pbmRleC5zY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy90aGVtZXMvaW5kZXguc2Nzcz8xNDIxIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/themes/index.scss\n");
- /***/ }),
- /***/ "./modules/themes/loading-mask.scss":
- /*!******************************************!*\
- !*** ./modules/themes/loading-mask.scss ***!
- \******************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9sb2FkaW5nLW1hc2suc2Nzcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvdGhlbWVzL2xvYWRpbmctbWFzay5zY3NzPzI4YmYiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/themes/loading-mask.scss\n");
- /***/ }),
- /***/ "./modules/themes/locationbar.scss":
- /*!*****************************************!*\
- !*** ./modules/themes/locationbar.scss ***!
- \*****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9sb2NhdGlvbmJhci5zY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy90aGVtZXMvbG9jYXRpb25iYXIuc2Nzcz85ZjQ3Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/themes/locationbar.scss\n");
- /***/ }),
- /***/ "./modules/themes/mapsplit.scss":
- /*!**************************************!*\
- !*** ./modules/themes/mapsplit.scss ***!
- \**************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9tYXBzcGxpdC5zY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy90aGVtZXMvbWFwc3BsaXQuc2Nzcz8yOTIxIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/themes/mapsplit.scss\n");
- /***/ }),
- /***/ "./modules/themes/mapswitch.scss":
- /*!***************************************!*\
- !*** ./modules/themes/mapswitch.scss ***!
- \***************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9tYXBzd2l0Y2guc2Nzcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvdGhlbWVzL21hcHN3aXRjaC5zY3NzPzNlMDAiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/themes/mapswitch.scss\n");
- /***/ }),
- /***/ "./modules/themes/popup.scss":
- /*!***********************************!*\
- !*** ./modules/themes/popup.scss ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy9wb3B1cC5zY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy90aGVtZXMvcG9wdXAuc2Nzcz8wMTEwIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/themes/popup.scss\n");
- /***/ }),
- /***/ "./modules/themes/tooltip.scss":
- /*!*************************************!*\
- !*** ./modules/themes/tooltip.scss ***!
- \*************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy90b29sdGlwLnNjc3MuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3RoZW1lcy90b29sdGlwLnNjc3M/ODRjYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW4iXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/themes/tooltip.scss\n");
- /***/ }),
- /***/ "./modules/themes/zoom-controller.scss":
- /*!*********************************************!*\
- !*** ./modules/themes/zoom-controller.scss ***!
- \*********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoZW1lcy96b29tLWNvbnRyb2xsZXIuc2Nzcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvdGhlbWVzL3pvb20tY29udHJvbGxlci5zY3NzPzU0ZDUiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/themes/zoom-controller.scss\n");
- /***/ }),
- /***/ "./modules/thirdpart/index.js":
- /*!************************************!*\
- !*** ./modules/thirdpart/index.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/**\n * @Author: Caven\n * @Date: 2019-12-30 09:35:51\n */\n\nvar thirdPart = {\n Cartesian2: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian2,\n Cartesian3: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cartesian3,\n Matrix3: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Matrix3,\n Matrix4: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Matrix4,\n Material: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Material,\n SceneMode: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].SceneMode,\n SkyBox: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].SkyBox,\n Color: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Color,\n Rect: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Rectangle,\n ShadowMode: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].ShadowMode,\n JulianDate: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].JulianDate,\n HeightReference: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].HeightReference,\n HorizontalOrigin: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].HorizontalOrigin,\n VerticalOrigin: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].VerticalOrigin,\n CallbackProperty: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].CallbackProperty,\n ClassificationType: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].ClassificationType,\n TilesetStyle: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].Cesium3DTileStyle,\n GeographicTilingScheme: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].GeographicTilingScheme,\n WebMercatorTilingScheme: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].WebMercatorTilingScheme,\n ColorMaterialProperty: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].ColorMaterialProperty,\n ImageMaterialProperty: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].ImageMaterialProperty,\n PolylineDashMaterialProperty: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].PolylineDashMaterialProperty,\n PolylineGlowMaterialProperty: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].PolylineGlowMaterialProperty,\n PolylineOutlineMaterialProperty: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].PolylineOutlineMaterialProperty,\n PolylineArrowMaterialProperty: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].PolylineArrowMaterialProperty,\n writeTextToCanvas: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_0__[\"Cesium\"].writeTextToCanvas\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (thirdPart);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RoaXJkcGFydC9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvdGhpcmRwYXJ0L2luZGV4LmpzP2Y2OGMiXSwic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ack-internal:///./modules/thirdpart/index.js\n");
- /***/ }),
- /***/ "./modules/tools/DrawTool.js":
- /*!***********************************!*\
- !*** ./modules/tools/DrawTool.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Caven\n * @Date: 2021-07-14 20:28:14\n */\n\n\n\nvar IMG_CIRCLE_RED = __webpack_require__(/*! @gd-modules/images/circle_red.png */ \"./modules/images/circle_red.png\");\n\nvar IMG_CIRCLE_YELLOW = __webpack_require__(/*! @gd-modules/images/circle_yellow.png */ \"./modules/images/circle_yellow.png\");\n\nvar DEF_OPTS = {\n icon_center: IMG_CIRCLE_YELLOW,\n icon_anchor: IMG_CIRCLE_RED,\n icon_size: [12, 12],\n clampToModel: false\n};\n\nvar DrawTool = /*#__PURE__*/function () {\n function DrawTool() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, DrawTool);\n\n this._viewer = undefined;\n this._anchorLayer = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CustomDataSource('draw-anchor-layer');\n this._floatingAnchor = undefined;\n this._options = {};\n this._plotEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEvent\"]();\n this._tooltipMess = undefined;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DrawTool, [{\n key: \"tooltipMess\",\n set: function set(tooltipMess) {\n this._tooltipMess = tooltipMess;\n return this;\n }\n /**\n *\n * @param e\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onClick\",\n value: function _onClick(e) {\n var position = this._options.clampToModel && e.position ? e.position : e.surfacePosition;\n\n if (!position) {\n return false;\n }\n\n if (!this._floatingAnchor) {\n this._floatingAnchor = this._onCreateAnchor({\n position: position\n });\n }\n\n this._plotEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].DRAW_ANCHOR, position);\n }\n /**\n *\n * @param e\n * @private\n */\n\n }, {\n key: \"_onMouseMove\",\n value: function _onMouseMove(e) {\n this._viewer.tooltip.showAt(e.windowPosition, this._tooltipMess);\n\n var position = this._options.clampToModel && e.position ? e.position : e.surfacePosition;\n\n if (!position) {\n return false;\n }\n\n this._floatingAnchor && this._floatingAnchor.position.setValue(position);\n\n this._plotEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].ANCHOR_MOVING, position);\n }\n /**\n *\n * @param e\n * @private\n */\n\n }, {\n key: \"_onRightClick\",\n value: function _onRightClick(e) {\n this._plotEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].DRAW_STOP, this._options.clampToModel && e.position ? e.position : e.surfacePosition);\n }\n /**\n *\n * @param position\n * @param isCenter\n * @returns {*}\n * @private\n */\n\n }, {\n key: \"_onCreateAnchor\",\n value: function _onCreateAnchor(_ref) {\n var position = _ref.position,\n _ref$isCenter = _ref.isCenter,\n isCenter = _ref$isCenter === void 0 ? false : _ref$isCenter;\n return this._anchorLayer.entities.add({\n position: position,\n billboard: {\n image: isCenter ? this._options.icon_center : this._options.icon_anchor,\n width: this._options.icon_size[0],\n height: this._options.icon_size[1],\n eyeOffset: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(0, 0, -100),\n heightReference: this._viewer.scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].SceneMode.SCENE3D && !this._options.clampToModel ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.CLAMP_TO_GROUND : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.NONE\n }\n });\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onClearAnchor\",\n value: function _onClearAnchor() {\n this._anchorLayer.entities.removeAll();\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].CLICK, this._onClick, this);\n\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].MOUSE_MOVE, this._onMouseMove, this);\n\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].RIGHT_CLICK, this._onRightClick, this);\n\n this._plotEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].CREATE_ANCHOR, this._onCreateAnchor, this);\n\n this._plotEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].CLEAR_ANCHOR, this._onClearAnchor, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].CLICK, this._onClick, this);\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].MOUSE_MOVE, this._onMouseMove, this);\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].RIGHT_CLICK, this._onRightClick, this);\n\n this._plotEvent.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].CREATE_ANCHOR, this._onCreateAnchor, this);\n\n this._plotEvent.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].CLEAR_ANCHOR, this._onClearAnchor, this);\n }\n /**\n *\n * @param type\n * @param callback\n * @param context\n * @returns {DrawTool}\n */\n\n }, {\n key: \"on\",\n value: function on(type, callback, context) {\n this._plotEvent.on(type, callback, context || this);\n\n return this;\n }\n /**\n *\n * @param type\n * @param callback\n * @param context\n * @returns {DrawTool}\n */\n\n }, {\n key: \"off\",\n value: function off(type, callback, context) {\n this._plotEvent.off(type, callback, context || this);\n\n return this;\n }\n /**\n *\n * @param type\n * @param parmas\n * @returns {DrawTool}\n */\n\n }, {\n key: \"fire\",\n value: function fire(type, parmas) {\n this._plotEvent.fire(type, parmas);\n\n return this;\n }\n /**\n *\n * @param options\n * @returns {DrawTool}\n */\n\n }, {\n key: \"activate\",\n value: function activate() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this._viewer.tooltip.enable = true;\n this._options = _objectSpread(_objectSpread({}, DEF_OPTS), options);\n\n this._unbindEvent();\n\n this._bindEvent();\n\n this.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].DRAW_START, this._options);\n return this;\n }\n /**\n *\n * @returns {DrawTool}\n */\n\n }, {\n key: \"deactivate\",\n value: function deactivate() {\n this._unbindEvent();\n\n this._viewer.tooltip.enable = false;\n\n this._anchorLayer.entities.removeAll();\n\n this._floatingAnchor = undefined;\n return this;\n }\n /**\n *\n * @param viewer\n */\n\n }, {\n key: \"install\",\n value: function install(viewer) {\n this._viewer = viewer;\n\n this._viewer.dataSources.add(this._anchorLayer);\n\n Object.defineProperty(this._viewer, 'drawTool', {\n value: this,\n writable: false\n });\n }\n }]);\n\n return DrawTool;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DrawTool);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Rvb2xzL0RyYXdUb29sLmpzLmpzIiwic291c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zb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/tools/DrawTool.js\n");
- /***/ }),
- /***/ "./modules/tools/EditTool.js":
- /*!***********************************!*\
- !*** ./modules/tools/EditTool.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Caven\n * @Date: 2021-07-14 20:28:10\n */\n\n\n\nvar IMG_CIRCLE_RED = __webpack_require__(/*! @gd-modules/images/circle_red.png */ \"./modules/images/circle_red.png\");\n\nvar IMG_CIRCLE_BLUE = __webpack_require__(/*! @gd-modules/images/circle_blue.png */ \"./modules/images/circle_blue.png\");\n\nvar IMG_CIRCLE_YELLOW = __webpack_require__(/*! @gd-modules/images/circle_yellow.png */ \"./modules/images/circle_yellow.png\");\n\nvar DEF_OPTS = {\n icon_center: IMG_CIRCLE_YELLOW,\n icon_anchor: IMG_CIRCLE_RED,\n icon_midAnchor: IMG_CIRCLE_BLUE,\n icon_size: [12, 12],\n clampToModel: true\n};\n\nvar EditTool = /*#__PURE__*/function () {\n function EditTool() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, EditTool);\n\n this._viewer = undefined;\n this._anchorLayer = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].CustomDataSource('edit-anchor-layer');\n this._options = {};\n this._plotEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEvent\"]();\n this._tooltipMess = undefined;\n this._pickedAnchor = undefined;\n this._isMoving = false;\n this._anchors = [];\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(EditTool, [{\n key: \"tooltipMess\",\n set: function set(tooltipMess) {\n this._tooltipMess = tooltipMess;\n return this;\n }\n /**\n *\n * @param e\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_onClick\",\n value: function _onClick(e) {\n if (this._isMoving) {\n var position = this._options.clampToModel && e.position ? e.position : e.surfacePosition;\n\n if (!position) {\n return false;\n }\n\n if (this._pickedAnchor && this._pickedAnchor.position && this._pickedAnchor.properties) {\n this._pickedAnchor.position.setValue(position);\n\n this._plotEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].EDIT_ANCHOR_STOP, {\n pickedAnchor: this._pickedAnchor,\n position: position\n });\n }\n\n this._isMoving = false;\n } else {\n if (!e.target || !e.target.id) {\n return false;\n }\n\n this._pickedAnchor = e.target.id;\n this._isMoving = true;\n }\n }\n /**\n *\n * @param e\n * @private\n */\n\n }, {\n key: \"_onMouseMove\",\n value: function _onMouseMove(e) {\n this._viewer.tooltip.showAt(e.windowPosition, this._tooltipMess);\n\n if (!this._isMoving && this._anchors.length !== 0) {\n return false;\n }\n\n var position = this._options.clampToModel && e.position ? e.position : e.surfacePosition;\n\n if (!position) {\n return false;\n }\n\n if (this._pickedAnchor && this._pickedAnchor.position && this._pickedAnchor.properties) {\n this._pickedAnchor.position.setValue(position);\n\n this._plotEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].ANCHOR_MOVING, {\n pickedAnchor: this._pickedAnchor,\n position: position\n });\n } else if (this._anchors.length === 0) {\n this._plotEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].ANCHOR_MOVING, {\n position: position\n });\n }\n }\n /**\n *\n * @param e\n * @private\n */\n\n }, {\n key: \"_onRightClick\",\n value: function _onRightClick(e) {\n var position = this._options.clampToModel && e.position ? e.position : e.surfacePosition;\n\n this._plotEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].EDIT_STOP, {\n pickedAnchor: this._pickedAnchor,\n position: position\n });\n }\n /**\n *\n * @param position\n * @param index\n * @param isCenter\n * @param isMid\n * @private\n */\n\n }, {\n key: \"_onCreateAnchor\",\n value: function _onCreateAnchor(_ref) {\n var position = _ref.position,\n index = _ref.index,\n _ref$isCenter = _ref.isCenter,\n isCenter = _ref$isCenter === void 0 ? false : _ref$isCenter,\n _ref$isMid = _ref.isMid,\n isMid = _ref$isMid === void 0 ? false : _ref$isMid;\n var image = isMid ? this._options.icon_midAnchor : isCenter ? this._options.icon_center : this._options.icon_anchor;\n\n var anchor = this._anchorLayer.entities.add({\n position: position,\n billboard: {\n image: image,\n width: 12,\n height: 12,\n eyeOffset: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian3(0, 0, -100),\n heightReference: this._viewer.scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].SceneMode.SCENE3D && !this._options.clampToModel ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.CLAMP_TO_GROUND : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].HeightReference.NONE\n },\n properties: {\n isMid: isMid,\n index: index\n }\n });\n\n this._anchors.push(anchor);\n }\n /**\n *\n * @param index\n * @param position\n * @private\n */\n\n }, {\n key: \"_onUpdateAnchor\",\n value: function _onUpdateAnchor(_ref2) {\n var index = _ref2.index,\n position = _ref2.position;\n this._anchors[index] && this._anchors[index].position.setValue(position);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onClearAnchor\",\n value: function _onClearAnchor() {\n this._anchorLayer.entities.removeAll();\n\n this._anchors = [];\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].CLICK, this._onClick, this);\n\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].MOUSE_MOVE, this._onMouseMove, this);\n\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].RIGHT_CLICK, this._onRightClick, this);\n\n this._plotEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].CREATE_ANCHOR, this._onCreateAnchor, this);\n\n this._plotEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].UPDATE_ANCHOR, this._onUpdateAnchor, this);\n\n this._plotEvent.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].CLEAR_ANCHOR, this._onClearAnchor, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].CLICK, this._onClick, this);\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].MOUSE_MOVE, this._onMouseMove, this);\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"MouseEventType\"].RIGHT_CLICK, this._onRightClick, this);\n\n this._plotEvent.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].CREATE_ANCHOR, this._onCreateAnchor, this);\n\n this._plotEvent.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].UPDATE_ANCHOR, this._onUpdateAnchor, this);\n\n this._plotEvent.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].CLEAR_ANCHOR, this._onClearAnchor, this);\n }\n /**\n *\n * @param type\n * @param callback\n * @param context\n * @returns {EditTool}\n */\n\n }, {\n key: \"on\",\n value: function on(type, callback, context) {\n this._plotEvent.on(type, callback, context || this);\n\n return this;\n }\n /**\n *\n * @param type\n * @param callback\n * @param context\n * @returns {EditTool}\n */\n\n }, {\n key: \"off\",\n value: function off(type, callback, context) {\n this._plotEvent.off(type, callback, context || this);\n\n return this;\n }\n /**\n *\n * @param type\n * @param parmas\n * @returns {EditTool}\n */\n\n }, {\n key: \"fire\",\n value: function fire(type, parmas) {\n this._plotEvent.fire(type, parmas);\n\n return this;\n }\n /**\n *\n * @param options\n * @returns {EditTool}\n */\n\n }, {\n key: \"activate\",\n value: function activate() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this._viewer.tooltip.enable = true;\n this._options = _objectSpread(_objectSpread({}, DEF_OPTS), options);\n\n this._unbindEvent();\n\n this._bindEvent();\n\n this.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_4__[\"PlotEventType\"].EDIT_START, this._options);\n return this;\n }\n /**\n *\n * @returns {EditTool}\n */\n\n }, {\n key: \"deactivate\",\n value: function deactivate() {\n this._unbindEvent();\n\n this._viewer.tooltip.enable = false;\n\n this._anchorLayer.entities.removeAll();\n\n this._anchors = [];\n return this;\n }\n /**\n *\n * @param viewer\n */\n\n }, {\n key: \"install\",\n value: function install(viewer) {\n this._viewer = viewer;\n\n this._viewer.dataSources.add(this._anchorLayer);\n\n Object.defineProperty(this._viewer, 'editTool', {\n value: this,\n writable: false\n });\n }\n }]);\n\n return EditTool;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditTool);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Rvb2xzL0VkaXRUb29sLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy90b29scy9FZGl0VG9vbC5qcz8zNDIwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dG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GlwTWVzcyA9IHVuZGVmaW5lZFxuICAgIHRoaXMuX3BpY2tlZEFuY2hvciA9IHVuZGVmaW5lZFxuICAgIHRoaXMuX2lzTW92aW5nID0gZmFsc2VcbiAgICB0aGlzLl9hbmNob3JzID0gW11cbiAgfVxuXG4gIHNldCB0b29sdGlwTWVzcyh0b29sdGlwTWVzcykge1xuICAgIHRoaXMuX3Rvb2x0aXBNZXNzID0gdG9vbHRpcE1lc3NcbiAgICByZXR1cm4gdGhpc1xuICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwYXJhbSBlXG4gICAqIEByZXR1cm5zIHtib29sZWFufVxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgX29uQ2xpY2soZSkge1xuICAgIGlmICh0aGlzLl9pc01vdmluZykge1xuICAgICAgbGV0IHBvc2l0aW9uID1cbiAgICAgICAgdGhpcy5fb3B0aW9ucy5jbGFtcFRvTW9kZWwgJiYgZS5wb3NpdGlvblxuICAgICAgICAgID8gZS5wb3NpdGlvblxuICAgICAgICAgIDogZS5zdXJmYWNlUG9zaXRpb25cbiAgICAgIGlmICghcG9zaXRpb24pIHtcbiAgICAgICAgcmV0dXJuIGZhbHNlXG4gICAgICB9XG4gICAgICBpZiAoXG4gICAgICAgIHRoaXMuX3BpY2tlZEFuY2hvciAmJlxuICAgICAgICB0aGlzLl9waWNrZWRBbmNob3IucG9zaXRpb24gJiZcbiAgICAgICAgdGhpcy5fcGlja2VkQW5jaG9yLnByb3BlcnRpZXNcbiAgICAgICkge1xuICAgICAgICB0aGlzLl9waWNrZWRBbmNob3IucG9zaXRpb24uc2V0VmFsdWUocG9zaXRpb24pXG4gICAgICAgIHRoaXMuX3Bsb3RFdmVudC5maXJlKFBsb3RFdmVudFR5cGUuRURJVF9BTkNIT1JfU1RPUCwge1xuICAgICAgICAgIHBpY2tlZEFuY2hvcjogdGhpcy5fcGlja2VkQW5jaG9yLFxuICAgICAgICAgIHBvc2l0aW9uXG4gICAgICAgIH0pXG4gICAg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BQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFGQTtBQUlBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/tools/EditTool.js\n");
- /***/ }),
- /***/ "./modules/tools/index.js":
- /*!********************************!*\
- !*** ./modules/tools/index.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return createTools; });\n/* harmony import */ var _DrawTool__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DrawTool */ \"./modules/tools/DrawTool.js\");\n/* harmony import */ var _EditTool__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EditTool */ \"./modules/tools/EditTool.js\");\n/**\n * @Author: Caven\n * @Date: 2021-07-14 20:25:41\n */\n\n\nfunction createTools() {\n return {\n drawTool: new _DrawTool__WEBPACK_IMPORTED_MODULE_0__[\"default\"](),\n editTool: new _EditTool__WEBPACK_IMPORTED_MODULE_1__[\"default\"]()\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3Rvb2xzL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy90b29scy9pbmRleC5qcz9kMjc3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTA3LTE0IDIwOjI1OjQxXG4gKi9cblxuaW1wb3J0IERyYXdUb29sIGZyb20gJy4vRHJhd1Rvb2wnXG5pbXBvcnQgRWRpdFRvb2wgZnJvbSAnLi9FZGl0VG9vbCdcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gY3JlYXRlVG9vbHMoKSB7XG4gIHJldHVybiB7XG4gICAgZHJhd1Rvb2w6IG5ldyBEcmF3VG9vbCgpLFxuICAgIGVkaXRUb29sOiBuZXcgRWRpdFRvb2woKVxuICB9XG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/tools/index.js\n");
- /***/ }),
- /***/ "./modules/transform/CoordTransform.js":
- /*!*********************************************!*\
- !*** ./modules/transform/CoordTransform.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-01-31 20:40:25\n */\nvar BD_FACTOR = 3.14159265358979324 * 3000.0 / 180.0;\nvar PI = 3.1415926535897932384626;\nvar RADIUS = 6378245.0;\nvar EE = 0.00669342162296594323;\n\nvar CoordTransform = /*#__PURE__*/function () {\n function CoordTransform() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, CoordTransform);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CoordTransform, null, [{\n key: \"BD09ToGCJ02\",\n value:\n /**\n * BD-09 To GCJ-02\n * @param lng\n * @param lat\n * @returns {number[]}\n */\n function BD09ToGCJ02(lng, lat) {\n var x = +lng - 0.0065;\n var y = +lat - 0.006;\n var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * BD_FACTOR);\n var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * BD_FACTOR);\n var gg_lng = z * Math.cos(theta);\n var gg_lat = z * Math.sin(theta);\n return [gg_lng, gg_lat];\n }\n /**\n * GCJ-02 To BD-09\n * @param lng\n * @param lat\n * @returns {number[]}\n * @constructor\n */\n\n }, {\n key: \"GCJ02ToBD09\",\n value: function GCJ02ToBD09(lng, lat) {\n lat = +lat;\n lng = +lng;\n var z = Math.sqrt(lng * lng + lat * lat) + 0.00002 * Math.sin(lat * BD_FACTOR);\n var theta = Math.atan2(lat, lng) + 0.000003 * Math.cos(lng * BD_FACTOR);\n var bd_lng = z * Math.cos(theta) + 0.0065;\n var bd_lat = z * Math.sin(theta) + 0.006;\n return [bd_lng, bd_lat];\n }\n /**\n * WGS-84 To GCJ-02\n * @param lng\n * @param lat\n * @returns {number[]}\n */\n\n }, {\n key: \"WGS84ToGCJ02\",\n value: function WGS84ToGCJ02(lng, lat) {\n lat = +lat;\n lng = +lng;\n\n if (this.out_of_china(lng, lat)) {\n return [lng, lat];\n } else {\n var d = this.delta(lng, lat);\n return [lng + d[0], lat + d[1]];\n }\n }\n /**\n * GCJ-02 To WGS-84\n * @param lng\n * @param lat\n * @returns {number[]}\n * @constructor\n */\n\n }, {\n key: \"GCJ02ToWGS84\",\n value: function GCJ02ToWGS84(lng, lat) {\n lat = +lat;\n lng = +lng;\n\n if (this.out_of_china(lng, lat)) {\n return [lng, lat];\n } else {\n var d = this.delta(lng, lat);\n var mgLng = lng + d[0];\n var mgLat = lat + d[1];\n return [lng * 2 - mgLng, lat * 2 - mgLat];\n }\n }\n /**\n *\n * @param lng\n * @param lat\n * @returns {number[]}\n */\n\n }, {\n key: \"delta\",\n value: function delta(lng, lat) {\n var dLng = this.transformLng(lng - 105, lat - 35);\n var dLat = this.transformLat(lng - 105, lat - 35);\n var radLat = lat / 180 * PI;\n var magic = Math.sin(radLat);\n magic = 1 - EE * magic * magic;\n var sqrtMagic = Math.sqrt(magic);\n dLng = dLng * 180 / (RADIUS / sqrtMagic * Math.cos(radLat) * PI);\n dLat = dLat * 180 / (RADIUS * (1 - EE) / (magic * sqrtMagic) * PI);\n return [dLng, dLat];\n }\n /**\n *\n * @param lng\n * @param lat\n * @returns {number}\n */\n\n }, {\n key: \"transformLng\",\n value: function transformLng(lng, lat) {\n lat = +lat;\n lng = +lng;\n var ret = 300.0 + lng + 2.0 * lat + 0.1 * lng * lng + 0.1 * lng * lat + 0.1 * Math.sqrt(Math.abs(lng));\n ret += (20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0 / 3.0;\n ret += (20.0 * Math.sin(lng * PI) + 40.0 * Math.sin(lng / 3.0 * PI)) * 2.0 / 3.0;\n ret += (150.0 * Math.sin(lng / 12.0 * PI) + 300.0 * Math.sin(lng / 30.0 * PI)) * 2.0 / 3.0;\n return ret;\n }\n /**\n *\n * @param lng\n * @param lat\n * @returns {number}\n */\n\n }, {\n key: \"transformLat\",\n value: function transformLat(lng, lat) {\n lat = +lat;\n lng = +lng;\n var ret = -100.0 + 2.0 * lng + 3.0 * lat + 0.2 * lat * lat + 0.1 * lng * lat + 0.2 * Math.sqrt(Math.abs(lng));\n ret += (20.0 * Math.sin(6.0 * lng * PI) + 20.0 * Math.sin(2.0 * lng * PI)) * 2.0 / 3.0;\n ret += (20.0 * Math.sin(lat * PI) + 40.0 * Math.sin(lat / 3.0 * PI)) * 2.0 / 3.0;\n ret += (160.0 * Math.sin(lat / 12.0 * PI) + 320 * Math.sin(lat * PI / 30.0)) * 2.0 / 3.0;\n return ret;\n }\n /**\n *\n * @param lng\n * @param lat\n * @returns {boolean}\n */\n\n }, {\n key: \"out_of_china\",\n value: function out_of_china(lng, lat) {\n lat = +lat;\n lng = +lng;\n return !(lng > 73.66 && lng < 135.05 && lat > 3.86 && lat < 53.55);\n }\n }]);\n\n return CoordTransform;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (CoordTransform);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RyYW5zZm9ybS9Db29yZFRyYW5zZm9ybS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvdHJhbnNmb3JtL0Nvb3JkVHJhbnNmb3JtLmpzPzBhMjkiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDEtMzEgMjA6NDA6MjVcbiAqL1xuXG5jb25zdCBCRF9GQUNUT1IgPSAoMy4xNDE1OTI2NTM1ODk3OTMyNCAqIDMwMDAuMCkgLyAxODAuMFxuY29uc3QgUEkgPSAzLjE0MTU5MjY1MzU4OTc5MzIzODQ2MjZcbmNvbnN0IFJBRElVUyA9IDYzNzgyNDUuMFxuY29uc3QgRUUgPSAwLjAwNjY5MzQyMTYyMjk2NTk0MzI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NBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQU9BO0FBSUE7QUFHQTtBQUtBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFPQTtBQUlBO0FBR0E7QUFLQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/transform/CoordTransform.js\n");
- /***/ }),
- /***/ "./modules/transform/Transform.js":
- /*!****************************************!*\
- !*** ./modules/transform/Transform.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/position/Position */ \"./modules/position/Position.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-07 09:00:32\n */\n\n\nvar WMP = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].WebMercatorProjection();\n\nvar Transform = /*#__PURE__*/function () {\n function Transform() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Transform);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Transform, null, [{\n key: \"transformCartesianToWGS84\",\n value:\n /**\n * Transforms Cartesian To WGS84\n * @param cartesian\n * @returns {Position}\n */\n function transformCartesianToWGS84(cartesian) {\n if (cartesian) {\n var cartographic = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(cartesian);\n return new _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_3__[\"default\"](_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(cartographic.longitude), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(cartographic.latitude), cartographic.height);\n }\n\n return new _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_3__[\"default\"](0, 0);\n }\n /**\n * Transforms WGS84 To Cartesian\n * @param position\n * @returns {Cartesian3}\n */\n\n }, {\n key: \"transformWGS84ToCartesian\",\n value: function transformWGS84ToCartesian(position) {\n return position ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.fromDegrees(position.lng, position.lat, position.alt, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Ellipsoid.WGS84) : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3.ZERO;\n }\n /**\n * Transforms WGS84 To Cartographic\n * @param position\n * @returns {Cartographic}\n */\n\n }, {\n key: \"transformWGS84ToCartographic\",\n value: function transformWGS84ToCartographic(position) {\n return position ? _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromDegrees(position.lng, position.lat, position.alt) : _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.ZERO;\n }\n /**\n * Transforms Cartesian Array To WGS84 Array\n * @param cartesianArr\n * @returns {*|*[]}\n */\n\n }, {\n key: \"transformCartesianArrayToWGS84Array\",\n value: function transformCartesianArrayToWGS84Array(cartesianArr) {\n var _this = this;\n\n return cartesianArr ? cartesianArr.map(function (item) {\n return _this.transformCartesianToWGS84(item);\n }) : [];\n }\n /**\n * Transforms WGS84 Array To Cartesian Array\n * @param WGS84Arr\n * @returns {*|*[]}\n */\n\n }, {\n key: \"transformWGS84ArrayToCartesianArray\",\n value: function transformWGS84ArrayToCartesianArray(WGS84Arr) {\n var _this2 = this;\n\n return WGS84Arr ? WGS84Arr.map(function (item) {\n return _this2.transformWGS84ToCartesian(item);\n }) : [];\n }\n /**\n * Transforms WGS84 To Mercator\n * @param position\n * @returns {Position}\n */\n\n }, {\n key: \"transformWGS84ToMercator\",\n value: function transformWGS84ToMercator(position) {\n var mp = WMP.project(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartographic.fromDegrees(position.lng, position.lat, position.alt));\n return new _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_3__[\"default\"](mp.x, mp.y, mp.z);\n }\n /**\n * Transforms Mercator To WGS84\n * @param position\n * @returns {Position}\n */\n\n }, {\n key: \"transformMercatorToWGS84\",\n value: function transformMercatorToWGS84(position) {\n var mp = WMP.unproject(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(position.lng, position.lat, position.alt));\n return new _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_3__[\"default\"](_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(mp.longitude), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toDegrees(mp.latitude), mp.height);\n }\n /**\n * Transforms Window To WGS84\n * @param position\n * @param viewer\n * @returns {Position}\n */\n\n }, {\n key: \"transformWindowToWGS84\",\n value: function transformWindowToWGS84(position, viewer) {\n var scene = viewer.scene;\n var cartesian;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SceneMode.SCENE3D) {\n var ray = scene.camera.getPickRay(position);\n cartesian = scene.globe.pick(ray, scene);\n } else {\n cartesian = scene.camera.pickEllipsoid(position, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Ellipsoid.WGS84);\n }\n\n return this.transformCartesianToWGS84(cartesian);\n }\n /**\n * Transforms WGS84 To Window\n * @param position\n * @param viewer\n * @returns {Cartesian2}\n */\n\n }, {\n key: \"transformWGS84ToWindow\",\n value: function transformWGS84ToWindow(position, viewer) {\n var scene = viewer.scene;\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SceneTransforms.wgs84ToWindowCoordinates(scene, this.transformWGS84ToCartesian(position));\n }\n /**\n * 世界坐标转本地坐标\n * @param cartesian 世界坐标\n * @param matrix 本地坐标矩阵\n * @returns {Object} 本地坐标的x,y,z坐标对象\n */\n\n }, {\n key: \"transformWorldToLocal\",\n value: function transformWorldToLocal(cartesian, matrix) {\n var vX = cartesian.x;\n var vY = cartesian.y;\n var vZ = cartesian.z;\n var a1 = vX - matrix[12],\n a2 = vY - matrix[13],\n a3 = vZ - matrix[14],\n b1 = matrix[4],\n b2 = matrix[5],\n b3 = matrix[6],\n c1 = matrix[8],\n c2 = matrix[9],\n c3 = matrix[10],\n d1 = matrix[0],\n d2 = matrix[1],\n d3 = matrix[2];\n var equations = [\"a1 = y * b1 + z * c1 + d1 * x\", \"a2 = y * b2 + z * c2 + d2 * x\", \"a3 = y * b3 + z * c3 + d3 * x\"];\n\n for (var i = 0; i < equations.length; i++) {\n equations[i] = equations[i].replace(\"a1\", \"(\" + a1 + \")\").replace(\"b1\", \"(\" + b1 + \")\").replace(\"c1\", \"(\" + c1 + \")\").replace(\"d1\", \"(\" + d1 + \")\").replace(\"a2\", \"(\" + a2 + \")\").replace(\"b2\", \"(\" + b2 + \")\").replace(\"c2\", \"(\" + c2 + \")\").replace(\"d2\", \"(\" + d2 + \")\").replace(\"a3\", \"(\" + a3 + \")\").replace(\"b3\", \"(\" + b3 + \")\").replace(\"c3\", \"(\" + c3 + \")\").replace(\"d3\", \"(\" + d3 + \")\");\n } // 计算三元一次方程\n // 确保常量和未知数分开在2边,逻辑安装这样处理的\n\n\n var LEquat = {\n formatFloat: function formatFloat(f, digit) {\n var m = Math.pow(10, digit);\n return parseInt(f * m, 10) / m;\n },\n // 是否常量一边, 返回0常量的一边索引,1变量一边的索引,返回一个数组\n separateSide: function separateSide(equations) {\n var arr = [],\n equa = equations.split(\"=\");\n\n if (equa[0].search(/x|y|z/) == -1) {\n arr = equa.slice(0);\n } else {\n arr[0] = equa[1];\n arr[1] = equa[0];\n }\n\n return arr;\n },\n // 分隔变量的一边,把x,y,z分隔\n // x 是索引0,y是索引1,z是索引2\n separateVariableSide: function separateVariableSide(variableSide) {\n var variables = variableSide.split(/\\s+(\\+|\\-)\\s+/);\n var arr = [];\n\n for (var _i = 0; _i < variables.length; _i++) {\n if (variables[_i].search(/x/) != -1) {\n arr[0] = variables[_i];\n } else if (variables[_i].search(/y/) != -1) {\n arr[1] = variables[_i];\n } else if (variables[_i].search(/z/) != -1) {\n arr[2] = variables[_i];\n }\n }\n\n return arr;\n },\n // 取出方程里面变量一边对应x,y,z的常量系数\n // 0: x的系数,1:y的系数,2:z的系数\n getCoefficient: function getCoefficient(variableSideArray) {\n var me = LEquat;\n var arr = [];\n\n for (var _i2 = 0; _i2 < variableSideArray.length; _i2++) {\n var coeffs = variableSideArray[_i2].split(\"*\");\n\n if (coeffs[0].search(/x|y|z/) == -1) {\n arr[_i2] = coeffs[0];\n } else {\n arr[_i2] = coeffs[1];\n }\n }\n\n return arr;\n },\n step: function step() {\n var me = LEquat; // 分隔第一个方程\n\n var equation1 = me.separateSide(equations[0]); // 分隔第二个方程\n\n var equation2 = me.separateSide(equations[1]); // 分隔第三个方程\n\n var equation3 = me.separateSide(equations[2]); // 第一个方程的常量一边\n\n var a1 = equation1[0]; // 第一个方程x系数\n\n var equa1 = me.getCoefficient(me.separateVariableSide(equation1[1])); // y的系数 z的系数 x的系数\n\n var b1 = equa1[1],\n c1 = equa1[2],\n d1 = equa1[0]; // 第二个方程的常量一边\n\n var a2 = equation2[0]; // 第二个方程变量一边系数\n\n var equa2 = me.getCoefficient(me.separateVariableSide(equation2[1]));\n var b2 = equa2[1],\n c2 = equa2[2],\n d2 = equa2[0]; // 第三个方程的常量一边\n\n var a3 = equation3[0]; // 第三个方程变量一边系数\n\n var equa3 = me.getCoefficient(me.separateVariableSide(equation3[1]));\n var b3 = equa3[1],\n c3 = equa3[2],\n d3 = equa3[0]; // ( a1 * (d2/d1) )\n\n var left4_1 = \" ( \" + a1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) \"; // (4.1) 右边\n\n var right4_1 = \" y \" + \" * \" + b1 + \" * ( \" + d2 + \" / \" + d1 + \" ) + z * \" + c1 + \" * ( \" + d2 + \" / \" + d1 + \" ) - \" + d2 + \" * x \"; // 消x (4.1) - (2)\n // ( ( a1 * (d2/d1) ) - a2 ) = y * ( (b1 * (d2/d1)) - b2 ) + z * ( (c1 * (d2/d1)) - c2 ); (5)\n // (5) 中常量的一边\n\n var left5_1 = \" ( \" + left4_1 + \" - \" + a2 + \" ) \"; // (5) 中变量一边\n\n var right5_1 = \" y * ( ( \" + b1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + b2 + \" ) + z * ( ( \" + c1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + c2 + \" ) \"; // (1) * (d3/d1)\n // ( a1 * (d3/d1) ) = y * ( b1 * (d3/d1) ) + z * ( c1 * (d3/d1) ) - d1 * x * (d3/d1) (6)\n // ( a1 * (d3/d1) ) = y * ( b1 * (d3/d1) ) + z * ( c1 * (d3/d1) ) - d3 * x (6.1)\n\n var left6_1 = \" ( \" + a1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) \";\n var right6_1 = \" y * ( \" + b1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) + z * ( \" + c1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + d3 + \" * x \"; // (6.1) - (3)\n // ( ( a1 * (d3/d1) ) - a3 ) = y * ( ( b1 * (d3/d1) ) - b3 ) + z * ( ( c1 * (d3/d1) ) - c3 ) (7)\n\n var left7_1 = \" ( \" + left6_1 + \" - \" + a3 + \" ) \";\n var right7_1 = \" y * ( ( \" + b1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + b3 + \" ) + z * ( ( \" + c1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + c3 + \" ) \"; // (5) * ( ( (b1 * (d3/d1)) - b3 ) / ( ( b1 * (d2/d1) ) - b2 ) )\n // ( ( ( a1 * (d2/d1) ) - a2 ) * ( ( (b1 * (d3/d1)) - b3 ) / ( ( b1 * (d2/d1) ) - b2 ) ) )\n // = y * ( (b1 * (d3/d1)) - b3 ) + z * ( ( (c1 * (d2/d1)) - c2 ) * ( ( (b1 * (d3/d1)) - b3 ) / ( ( b1 * (d2/d1) ) - b2 ) ) ) (8)\n\n var left8_1 = \" ( \" + left5_1 + \" * ( ( ( \" + b1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + b3 + \" ) / ( ( \" + b1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + b2 + \" ) ) ) \";\n var right8_1 = \" y * ( ( \" + b1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + b3 + \" ) + z * ( ( ( \" + c1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + c2 + \" ) * ( ( ( \" + b1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + b3 + \" ) / ( ( \" + b1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + b2 + \" ) ) ) \"; // (8) - (7)\n // ( ( ( ( a1 * (d2/d1) ) - a2 ) * ( ( (b1 * (d3/d1)) - b3 ) / ( ( b1 * (d2/d1) ) - b2 ) ) ) - ( ( a1 * (d3/d1) ) - a3 ) )\n // =\n // z * ( ( ( (c1 * (d2/d1)) - c2 ) * ( ( (b1 * (d3/d1)) - b3 ) / ( ( b1 * (d2/d1) ) - b2 ) ) ) - ( ( c1 * (d3/d1) ) - c3 ) ) (9)\n\n var left9_1 = \" ( \" + left8_1 + \" - \" + left7_1 + \" ) \";\n var right9_1 = \" z * ( ( ( ( \" + c1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + c2 + \" ) * ( ( ( \" + b1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + b3 + \" ) / ( ( \" + b1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + b2 + \" ) ) ) - ( ( \" + c1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + c3 + \" ) ) \";\n var z = left9_1 + \" / \" + \" ( ( ( ( \" + c1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + c2 + \" ) * ( ( ( \" + b1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + b3 + \" ) / ( ( \" + b1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + b2 + \" ) ) ) - ( ( \" + c1 + \" * ( \" + d3 + \" / \" + d1 + \" ) ) - \" + c3 + \" ) ) \"; // ( ( a1 * (d2/d1) ) - a2 ) = y * ( (b1 * (d2/d1)) - b2 ) + z * ( (c1 * (d2/d1)) - c2 );\n\n var y = \" ( \" + left5_1 + \" - \" + \" z * ( ( \" + c1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + c2 + \" ) ) \" + \" / \" + \" ( ( \" + b1 + \" * ( \" + d2 + \" / \" + d1 + \" ) ) - \" + b2 + \" ) \"; // 把z代入到(5)中\n\n y = y.replace(\"z\", z); // 把y,z代入方程1\n // a1 = y * b1 + z * c1 + d1 * x\n\n var x = ' ( ' + a1 + ' - y * ' + b1 + ' - z * ' + c1 + ' ) / ' + d1;\n x = x.replace('z', z).replace('y', y);\n x = me.formatFloat(eval(x), 2);\n y = me.formatFloat(eval(y), 2);\n z = me.formatFloat(eval(z), 2);\n return {\n x: x,\n y: y,\n z: z\n };\n }\n };\n return LEquat.step();\n }\n }]);\n\n return Transform;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Transform);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RyYW5zZm9ybS9UcmFuc2Zvcm0uanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3RyYW5zZm9ybS9UcmFuc2Zvcm0uanM/ZTdmYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIE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xXSwgZDMgPSBtYXRyaXhbMl1cbiAgICBsZXQgZXF1YXRpb25zID0gW1xuICAgICAgXCJhMSA9IHkgKiBiMSArIHogKiBjMSArIGQxICogeFwiLFxuICAgICAgXCJhMiA9IHkgKiBiMiArIHogKiBjMiArIGQyICogeFwiLFxuICAgICAgXCJhMyA9IHkgKiBiMyArIHogKiBjMyArIGQzICogeFwiXG4gICAgXTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IGVxdWF0aW9ucy5sZW5ndGg7IGkrKykge1xuICAgICAgZXF1YXRpb25zW2ldID0gZXF1YXRpb25zW2ldLnJlcGxhY2UoXCJhMVwiLCBcIihcIiArIGExICsgXCIpXCIpLnJlcGxhY2UoXCJiMVwiLCBcIihcIiArIGIxICsgXCIpXCIpLnJlcGxhY2UoXCJjMVwiLCBcIihcIiArIGMxICsgXCIpXCIpLnJlcGxhY2UoXCJkMVwiLCBcIihcIiArIGQxICsgXCIpXCIpXG4gICAgICAgIC5yZXBsYWNlKFwiYTJcIiwgXCIoXCIgKyBhMiArIFwiKVwiKS5yZXBsYWNlKFwiYjJcIiwgXCIoXCIgKyBiMiArIFwiKVwiKS5yZXBsYWNlKFwiYzJcIiwgXCIoXCIgKyBjMiArIFwiKVwiKS5yZXBsYWNlKFwiZDJcIiwgXCIoXCIgKyBkMiArIFwiKVwiKVxuICAgICAgICAucmVwbGFjZShcImEzXCIsIFwiKFwiICsgYTMgKyBcIilcIikucmVwbGFjZShcImIzXCIsIFwiKFwiICsgYjMgKyBcIilcIikucmVwbGFjZShcImMzXCIsIFwiKFwiICsgYzMgKyBcIilcIikucmVwbGFjZShcImQzXCIsIFwiKFwiICsgZDMgKyBcIilcIik7XG4gICAgfVxuLy8g6K6h566X5LiJ5YWD5LiA5qyh5pa556iLXG4vLyDnoa7kv53luLjph4/lkozmnKrnn6XmlbDliIblvIDlnKgy6L65LOmAu+i+keWuieijhei/meagt+WkhOeQhueahFxuICAgIGxldCBMRXF1YXQgPSB7XG4gICAgICB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odmFyaWFibGVzW2ldLnNlYXJjaCgveC8pICE9IC0xKSB7XG4gICAgICAgICAgICBhcnJbMF0gPSB2YXJpYWJsZXNbaV07XG4gICAgICAgICAgfSBlbHNlIGlmICh2YXJpYWJsZXNbaV0uc2VhcmNoKC95LykgIT0gLTEpIHtcbiAgICAgICAgICAgIGFyclsxXSA9IHZhcmlhYmxlc1tpXTtcbiAgICAgICAgICB9IGVsc2UgaWYgKHZhcmlhYmxlc1tpXS5zZWFyY2goL3ovKSAhPSAtMSkge1xuICAgICAgICAgICAgYXJyWzJdID0gdmFyaWFibGVzW2ldO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gYXJyO1xuICAgICAgfSxcbiAgICAgIC8vIOWPluWHuuaWueeoi+mHjOmdouWPmOmHj+S4gOi+ueWvueW6lHjvvIx577yMeueahOW4uOmHj+ezu+aVsFxuICAgICAgLy8gMDogeOeahOezu+aVsO+8jDHvvJp555qE57O75pWw77yMMu+8mnrnmoTns7vmlbBcbiAgICAgIGdldENvZWZmaWNpZW50OiBmdW5jdGlvbih2YXJpYWJsZVNpZGVBcnJheSkge1xuICAgICAgICBsZXQgbWUgPSBMRXF1YXQ7XG4gICAgICAgIGxldCBhcnIgPSBbXTtcbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB2YXJpYWJsZVNpZGVBcnJheS5sZW5ndGg7IGkrKykge1xuICAgICAgICAgIGxldCBjb2VmZnMgPSB2YXJpYWJsZVNpZGVBcnJheVtpXS5zcGxpdChcIipcIik7XG4gICAgICAgICAgaWYgKGNvZWZmc1swXS5zZWFyY2goL3h8eXx6LykgPT0gLTEpIHtcbiAgICAgICAgICAgIGFycltpXSA9IGNvZWZmc1swXTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgYXJyW2ldID0gY29lZmZzWzFdO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gYXJyO1xuICAgICAgfSxcbiAgICA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it5Y+Y6YeP5LiA6L65XG4gICAgICAgIGxldCByaWdodDVfMSA9IFwiIHkgKiAoICggXCIgKyBiMSArIFwiICogKCBcIiArIGQyICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBiMiArIFwiICkgKyB6ICogKCAoIFwiICsgYzEgKyBcIiAqICggXCIgKyBkMiArIFwiIC8gXCIgKyBkMSArIFwiICkgKSAtIFwiICsgYzIgKyBcIiApIFwiO1xuICAgICAgICAvLyAoMSkgKiAoZDMvZDEpXG4gICAgICAgIC8vICggYTEgKiAoZDMvZDEpICkgPSB5ICogKCBiMSAqIChkMy9kMSkgKSArIHogKiAoIGMxICogKGQzL2QxKSApIC0gZDEgKiB4ICogKGQzL2QxKSAgKDYpXG4gICAgICAgIC8vICggYTEgKiAoZDMvZDEpICkgPSB5ICogKCBiMSAqIChkMy9kMSkgKSArIHogKiAoIGMxICogKGQzL2QxKSApIC0gZDMgKiB4ICAgICAgICg2LjEpXG4gICAgICAgIGxldCBsZWZ0Nl8xID0gXCIgKCBcIiArIGExICsgXCIgKiAoIFwiICsgZDMgKyBcIiAvIFwiICsgZDEgKyBcIiApICkgXCI7XG4gICAgICAgIGxldCByaWdodDZfMSA9IFwiIHkgKiAoIFwiICsgYjEgKyBcIiAqICggXCIgKyBkMyArIFwiIC8gXCIgKyBkMSArIFwiICkgKSArIHogKiAoIFwiICsgYzEgKyBcIiAqICggXCIgKyBkMyArIFwiIC8gXCIgKyBkMSArIFwiICkgKSAtIFwiICsgZDMgKyBcIiAqIHggXCI7XG4gICAgICAgIC8vICg2LjEpIC0gKDMpXG4gICAgICAgIC8vICggKCBhMSAqIChkMy9kMSkgKSAtIGEzICkgPSB5ICogKCAoIGIxICogKGQzL2QxKSApIC0gYjMgKSArIHogKiAoICggYzEgKiAoZDMvZDEpICkgLSBjMyApICAoNylcbiAgICAgICAgbGV0IGxlZnQ3XzEgPSBcIiAoIFwiICsgbGVmdDZfMSArIFwiIC0gXCIgKyBhMyArIFwiICkgXCI7XG4gICAgICAgIGxldCByaWdodDdfMSA9IFwiIHkgKiAoICggXCIgKyBiMSArIFwiICogKCBcIiArIGQzICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBiMyArIFwiICkgKyB6ICogKCAoIFwiICsgYzEgKyBcIiAqICggXCIgKyBkMyArIFwiIC8gXCIgKyBkMSArIFwiICkgKSAtIFwiICsgYzMgKyBcIiApIFwiO1xuICAgICAgICAvLyAoNSkgKiAoICggKGIxICogKGQzL2QxKSkgLSBiMyApIC8gKCAoIGIxICogKGQyL2QxKSApIC0gYjIgKSApXG4gICAgICAgIC8vICggKCAoIGExICogKGQyL2QxKSApIC0gYTIgKSAqICggKCAoYjEgKiAoZDMvZDEpKSAtIGIzICkgLyAoICggYjEgKiAoZDIvZDEpICkgLSBiMiApICkgKVxuICAgICAgICAvLyA9IHkgKiAoIChiMSAqIChkMy9kMSkpIC0gYjMgKSArIHogKiAoICggKGMxICogKGQyL2QxKSkgLSBjMiApICogKCAoIChiMSAqIChkMy9kMSkpIC0gYjMgKSAvICggKCBiMSAqIChkMi9kMSkgKSAtIGIyICkgKSApICAoOClcbiAgICAgICAgbGV0IGxlZnQ4XzEgPSBcIiAoIFwiICsgbGVmdDVfMSArIFwiICogKCAoICggXCIgKyBiMSArIFwiICogKCBcIiArIGQzICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBiMyArIFwiICkgLyAoICggXCIgKyBiMSArIFwiICogKCBcIiArIGQyICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBiMiArIFwiICkgKSApIFwiO1xuICAgICAgICBsZXQgcmlnaHQ4XzEgPSBcIiB5ICogKCAoIFwiICsgYjEgKyBcIiAqICggXCIgKyBkMyArIFwiIC8gXCIgKyBkMSArIFwiICkgKSAtIFwiICsgYjMgKyBcIiApICsgeiAqICggKCAoIFwiICsgYzEgKyBcIiAqICggXCIgKyBkMiArIFwiIC8gXCIgKyBkMSArIFwiICkgKSAtIFwiICsgYzIgKyBcIiApICogKCAoICggXCIgKyBiMSArIFwiICogKCBcIiArIGQzICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBiMyArIFwiICkgLyAoICggXCIgKyBiMSArIFwiICogKCBcIiArIGQyICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBiMiArIFwiICkgKSApIFwiO1xuICAgICAgICAvLyAoOCkgLSAoNylcbiAgICAgICAgLy8gKCAoICggKCBhMSAqIChkMi9kMSkgKSAtIGEyICkgKiAoICggKGIxICogKGQzL2QxKSkgLSBiMyApIC8gKCAoIGIxICogKGQyL2QxKSApIC0gYjIgKSApICkgLSAoICggYTEgKiAoZDMvZDEpICkgLSBhMyApIClcbiAgICAgICAgLy8gPVxuICAgICAgICAvLyB6ICogKCAoICggKGMxICogKGQyL2QxKSkgLSBjMiApICogKCAoIChiMSAqIChkMy9kMSkpIC0gYjMgKSAvICggKCBiMSAqIChkMi9kMSkgKSAtIGIyICkgKSApIC0gKCAoIGMxICogKGQzL2QxKSApIC0gYzMgKSApICAoOSlcbiAgICAgICAgbGV0IGxlZnQ5XzEgPSBcIiAoIFwiICsgbGVmdDhfMSArIFwiIC0gXCIgKyBsZWZ0N18xICsgXCIgKSBcIjtcbiAgICAgICAgbGV0IHJpZ2h0OV8xID0gXCIgeiAqICggKCAoICggXCIgKyBjMSArIFwiICogKCBcIiArIGQyICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBjMiArIFwiICkgKiAoICggKCBcIiArIGIxICsgXCIgKiAoIFwiICsgZDMgKyBcIiAvIFwiICsgZDEgKyBcIiApICkgLSBcIiArIGIzICsgXCIgKSAvICggKCBcIiArIGIxICsgXCIgKiAoIFwiICsgZDIgKyBcIiAvIFwiICsgZDEgKyBcIiApICkgLSBcIiArIGIyICsgXCIgKSApICkgLSAoICggXCIgKyBjMSArIFwiICogKCBcIiArIGQzICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBjMyArIFwiICkgKSBcIjtcbiAgICAgICAgbGV0IHogPSBsZWZ0OV8xICsgXCIgLyBcIiArIFwiICggKCAoICggXCIgKyBjMSArIFwiICogKCBcIiArIGQyICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBjMiArIFwiICkgKiAoICggKCBcIiArIGIxICsgXCIgKiAoIFwiICsgZDMgKyBcIiAvIFwiICsgZDEgKyBcIiApICkgLSBcIiArIGIzICsgXCIgKSAvICggKCBcIiArIGIxICsgXCIgKiAoIFwiICsgZDIgKyBcIiAvIFwiICsgZDEgKyBcIiApICkgLSBcIiArIGIyICsgXCIgKSApICkgLSAoICggXCIgKyBjMSArIFwiICogKCBcIiArIGQzICsgXCIgLyBcIiArIGQxICsgXCIgKSApIC0gXCIgKyBjMyArIFwiICkgKSBcIjtcbiAgICAgICAgLy8gKCAoIGExICogKGQyL2QxKSApIC0gYTIgKSA9IHkgKiAoIChiMSAqIChkMi9kMSkpIC0gYjIgKSArIHogKiAoIChjMSAqIChkMi9kMSkpIC0gYzIgKTtcbiAgICAgICAgbGV0IHkgPSBcIiAoIFwiICsgbGVmdDVfMSArIFwiIC0gXCIgKyBcIiB6ICogKCAoIFwiICsgYzEgKyBcIiAqICggXCIgKyBkMiArIFwiIC8gXCIgKyBkMSArIFwiICkgKSAtIFwiICsgYzIgKyBcIiApICkgXCIgKyBcIiAvIFwiICsgXCIgKCAoIFwiICsgYjEgKyBcIiAqICggXCIgKyBkMiArIFwiIC8gXCIgKyBkMSArIFwiICkgKSAtIFwiICsgYjIgKyBcIiApIFwiO1xuICAgICAgICAvLyDmiop65Luj5YWl5YiwKDUp5LitXG4gICAgICAgIHkgPSB5LnJlcGxhY2UoXCJ6XCIsIHopO1xuICAgICAgICAvLyDmiop577yMeuS7o+WFpeaWueeoizFcbiAgICAgICAgLy8gYTEgPSB5ICogYjEgKyB6ICogYzEgKyBkMSAqIHhcbiAgICAgICAgbGV0IHggPSAnICggJyArIGExICsgJyAtIHkgKiAnIC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QUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQWxIQTtBQW9IQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/transform/Transform.js\n");
- /***/ }),
- /***/ "./modules/transform/index.js":
- /*!************************************!*\
- !*** ./modules/transform/index.js ***!
- \************************************/
- /*! exports provided: Transform, CoordTransform */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Transform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Transform */ \"./modules/transform/Transform.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Transform\", function() { return _Transform__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _CoordTransform__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CoordTransform */ \"./modules/transform/CoordTransform.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CoordTransform\", function() { return _CoordTransform__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2021-01-31 21:38:15\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3RyYW5zZm9ybS9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvdHJhbnNmb3JtL2luZGV4LmpzP2U2NWUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDEtMzEgMjE6Mzg6MTVcbiAqL1xuXG5leHBvcnQgeyBkZWZhdWx0IGFzIFRyYW5zZm9ybSB9IGZyb20gJy4vVHJhbnNmb3JtJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBDb29yZFRyYW5zZm9ybSB9IGZyb20gJy4vQ29vcmRUcmFuc2Zvcm0nXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/transform/index.js\n");
- /***/ }),
- /***/ "./modules/utils/DateUtil.js":
- /*!***********************************!*\
- !*** ./modules/utils/DateUtil.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author 刘策\n * @Date 2022-11-18 15:09\n * @Description 日期转换工具\n */\nvar DateUtil = /*#__PURE__*/function () {\n function DateUtil() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DateUtil);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DateUtil, null, [{\n key: \"getNowFormatDate\",\n value:\n /**\n * 获取当前日期,年月日\"yyyy-MM-dd\"\n * @return {String} 日期\n */\n function getNowFormatDate() {\n var date = new Date();\n var separator = '-';\n var year = date.getFullYear();\n var month = date.getMonth() + 1;\n var strDate = date.getDate();\n\n if (month >= 1 && month <= 9) {\n month = '0' + month;\n }\n\n if (strDate >= 0 && strDate <= 9) {\n strDate = '0' + strDate;\n }\n\n return year + separator + month + separator + strDate;\n }\n /**\n * @describe 获取节气日期\n * @param {String} Str 节气名称\n * @return Date 日期\n */\n\n }, {\n key: \"getSolarTerm\",\n value: function getSolarTerm(Str) {\n var solarTerm = [\"小寒\", \"大寒\", \"立春\", \"雨水\", \"惊蛰\", \"春分\", \"清明\", \"谷雨\", \"立夏\", \"小满\", \"芒种\", \"夏至\", \"小暑\", \"大暑\", \"立秋\", \"处暑\", \"白露\", \"秋分\", \"寒露\", \"霜降\", \"立冬\", \"小雪\", \"大雪\", \"冬至\"];\n var sTermInfo = [0, 21208, 42467, 63836, 85337, 107014, 128867, 150921, 173149, 195551, 218072, 240693, 263343, 285989, 308563, 331033, 353350, 375494, 397447, 419210, 440795, 462224, 483532, 504758];\n var date = new Date();\n var year = date.getFullYear();\n var index = solarTerm.indexOf(Str);\n var solarTermDate = new Date(31556925974.7 * (year - 1900) + sTermInfo[index] * 60000 + Date.UTC(1900, 0, 6, 2, 5));\n return solarTermDate.getFullYear() + \"-\" + (solarTermDate.getMonth() + 1) + \"-\" + solarTermDate.getUTCDate();\n }\n /**\n * @describe 格式化时间,将10进制小时数转为hh:mm\n * @param {Number} val 小时数\n * @returns {String} 字符串时间,格式hh:mm\n */\n\n }, {\n key: \"getFormatTooltip\",\n value: function getFormatTooltip(val) {\n var arr = String(val).split('.');\n\n if (arr.length === 1) {\n if (Number(arr[0]) < 10) {\n arr[0] = \"0\" + arr[0];\n }\n\n return arr[0] + ':00';\n }\n\n if (arr.length === 2) {\n var minute = String(Number(arr[1]) / 100 * 60);\n\n if (minute.length === 1) {\n minute += 0;\n }\n\n if (Number(arr[0]) < 10) {\n arr[0] = \"0\" + arr[0];\n }\n\n return arr[0] + ':' + minute;\n }\n\n return '';\n }\n }]);\n\n return DateUtil;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DateUtil);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3V0aWxzL0RhdGVVdGlsLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy91dGlscy9EYXRlVXRpbC5qcz84N2Q1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvciDliJjnrZZcbiAqIEBEYXRlIDIwMjItMTEtMTggMTU6MDlcbiAqIEBEZXNjcmlwdGlvbiDml6XmnJ/ovazmjaLlt6XlhbdcbiAqL1xuXG5jbGFzcyBEYXRlVXRpbCB7XG4gIC8qKlxuICAgKiDojrflj5blvZPliY3ml6XmnJ/vvIzlubTmnIjml6VcInl5eXktTU0tZGRcIlxuICAgKiBAcmV0dXJuIHtTdHJpbmd9IOaXpeacn1xuICAgKi9cbiAgc3RhdGljIGdldE5vd0Zvcm1hdERhdGUoKSB7XG4gICAgbGV0IGRhdGUgPSBuZXcgRGF0ZSgpXG4gICAgbGV0IHNlcGFyYXRvciA9ICctJ1xuICAgIGxldCB5ZWFyID0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s7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/utils/DateUtil.js\n");
- /***/ }),
- /***/ "./modules/utils/DomUtil.js":
- /*!**********************************!*\
- !*** ./modules/utils/DomUtil.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Util */ \"./modules/utils/Util.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2019-12-31 17:50:13\n */\n\n/**\n * Dom Utils\n * some code reference leaflet\n * https://github.com/Leaflet/Leaflet/tree/master/src/core\n */\n\nvar DomUtil = /*#__PURE__*/function () {\n function DomUtil() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DomUtil);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DomUtil, null, [{\n key: \"get\",\n value:\n /**\n * Returns an element given its DOM id, or returns the element itself\n * if it was passed directly.\n * @param id\n * @returns {HTMLElement|*}\n */\n function get(id) {\n return typeof id === 'string' ? document.getElementById(id) : id;\n }\n /**\n * Returns the value for a certain style attribute on an element,\n * including computed values or values set through CSS.\n * @param el\n * @param style\n * @returns {null|*}\n */\n\n }, {\n key: \"getStyle\",\n value: function getStyle(el, style) {\n var value = el.style[style] || el.currentStyle && el.currentStyle[style];\n\n if ((!value || value === 'auto') && document.defaultView) {\n var css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n }\n /**\n * Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element.\n * @param tagName\n * @param className\n * @param container\n * @returns {HTMLElement}\n */\n\n }, {\n key: \"create\",\n value: function create(tagName, className) {\n var container = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var el = document.createElement(tagName);\n el.className = className || '';\n\n if (container) {\n container.appendChild(el);\n }\n\n return el;\n }\n /**\n * Removes `el` from its parent element\n * @param {*} el\n */\n\n }, {\n key: \"remove\",\n value: function remove(el) {\n var parent = el.parentNode;\n\n if (parent) {\n parent.removeChild(el);\n }\n }\n /**\n * Removes all of `el`'s children elements from `el`\n * @param {*} el\n */\n\n }, {\n key: \"empty\",\n value: function empty(el) {\n while (el.firstChild) {\n el.removeChild(el.firstChild);\n }\n }\n /**\n * Returns `true` if the element's class attribute contains `name`.\n * @param {*} el\n * @param {*} name\n */\n\n }, {\n key: \"hasClass\",\n value: function hasClass(el, name) {\n if (el.classList !== undefined) {\n return el.classList.contains(name);\n }\n\n var className = this.getClass(el);\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n }\n /**\n * @function Adds `name` to the element's class attribute.\n * @param {*} el\n * @param {*} name\n */\n\n }, {\n key: \"addClass\",\n value: function addClass(el, name) {\n if (el.classList !== undefined) {\n var classes = _Util__WEBPACK_IMPORTED_MODULE_2__[\"default\"].splitWords(name);\n\n for (var i = 0, len = classes.length; i < len; i++) {\n el.classList.add(classes[i]);\n }\n } else if (!this.hasClass(el, name)) {\n var className = this.getClass(el);\n this.setClass(el, (className ? className + ' ' : '') + name);\n }\n }\n /**\n * @function Removes `name` from the element's class attribute.\n * @param {*} el\n * @param {*} name\n */\n\n }, {\n key: \"removeClass\",\n value: function removeClass(el, name) {\n if (el.classList !== undefined) {\n el.classList.remove(name);\n } else {\n this.setClass(el, _Util__WEBPACK_IMPORTED_MODULE_2__[\"default\"].trim((' ' + this.getClass(el) + ' ').replace(' ' + name + ' ', ' ')));\n }\n }\n /**\n * Sets the element's class.\n * @param {*} el\n * @param {*} name\n */\n\n }, {\n key: \"setClass\",\n value: function setClass(el, name) {\n if (el.className.baseVal === undefined) {\n el.className = name;\n } else {\n // in case of SVG element\n el.className.baseVal = name;\n }\n }\n /**\n * @function Returns the element's class.\n * @param {*} el\n */\n\n }, {\n key: \"getClass\",\n value: function getClass(el) {\n // Check if the element is an SVGElementInstance and use the correspondingElement instead\n // (Required for linked SVG elements in IE11.)\n if (el.correspondingElement) {\n el = el.correspondingElement;\n }\n\n return el.className.baseVal === undefined ? el.className : el.className.baseVal;\n }\n /**\n * Creates svg\n * @param width\n * @param height\n * @param path\n * @param container\n * @returns {SVGElement}\n */\n\n }, {\n key: \"createSvg\",\n value: function createSvg(width, height, path, container) {\n var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg:svg');\n svg.setAttribute('class', 'svg-path');\n svg.setAttribute('width', width);\n svg.setAttribute('height', height);\n svg.setAttribute('viewBox', \"0 0 \".concat(width, \" \").concat(height));\n var pathEl = document.createElementNS('http://www.w3.org/2000/svg', 'path');\n pathEl.setAttribute('d', path);\n svg.appendChild(pathEl);\n\n if (container) {\n container.appendChild(svg);\n }\n\n return svg;\n }\n /**\n * Parses string to Dom\n * @param domStr\n * @param withWrapper\n * @param className\n * @returns {HTMLDivElement|NodeListOf<ChildNode>}\n */\n\n }, {\n key: \"parseDom\",\n value: function parseDom(domStr, withWrapper, className) {\n var _withWrapper;\n\n withWrapper = (_withWrapper = withWrapper) !== null && _withWrapper !== void 0 ? _withWrapper : false;\n var el = document.createElement('div');\n el.className = className || '';\n el.innerHTML = domStr;\n return withWrapper ? el : el.childNodes;\n }\n /**\n * enter full screen\n * @param el\n */\n\n }, {\n key: \"enterFullscreen\",\n value: function enterFullscreen(el) {\n if (!el) {\n return;\n }\n\n if (el.requestFullscreen) {\n el.requestFullscreen();\n } else if (el.msRequestFullscreen) {\n el.msRequestFullscreen();\n } else if (el.mozRequestFullScreen) {\n el.mozRequestFullScreen();\n } else if (el.webkitRequestFullscreen) {\n el.webkitRequestFullscreen();\n }\n }\n /**\n * exit full screen\n */\n\n }, {\n key: \"exitFullscreen\",\n value: function exitFullscreen() {\n if (document.exitFullscreen) {\n document.exitFullscreen();\n } else if (document.msExitFullscreen) {\n document.msExitFullscreen();\n } else if (document.mozCancelFullScreen) {\n document.mozCancelFullScreen();\n } else if (document.webkitExitFullscreen) {\n document.webkitExitFullscreen();\n }\n }\n /**\n * Creates video\n * @param url\n * @param className\n * @param container\n * @returns {HTMLElement}\n */\n\n }, {\n key: \"createVideo\",\n value: function createVideo(url, className) {\n var container = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var videoEl = this.create('video', className, container);\n var map4 = this.create('source', '', videoEl);\n map4.setAttribute('src', url);\n map4.setAttribute('type', 'video/map4');\n var mov = this.create('source', '', videoEl);\n mov.setAttribute('src', url);\n mov.setAttribute('type', 'video/quicktime');\n return videoEl;\n }\n }]);\n\n return DomUtil;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (DomUtil);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3V0aWxzL0RvbVV0aWwuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3V0aWxzL0RvbVV0aWwuanM/ZjNmMCJdLCJzb3VyY2VzQ29udGVudC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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/utils/DomUtil.js\n");
- /***/ }),
- /***/ "./modules/utils/PlotUtil.js":
- /*!***********************************!*\
- !*** ./modules/utils/PlotUtil.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-08-21 18:05:39\n */\nvar TWO_PI = Math.PI * 2;\nvar FITTING_COUNT = 100;\nvar ZERO_TOLERANCE = 0.0001;\n\nvar PlotUtil = /*#__PURE__*/function () {\n function PlotUtil() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, PlotUtil);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PlotUtil, null, [{\n key: \"distance\",\n value:\n /**\n * @param pnt1\n * @param pnt2\n * @returns {number}\n */\n function distance(pnt1, pnt2) {\n return Math.sqrt(Math.pow(pnt1[0] - pnt2[0], 2) + Math.pow(pnt1[1] - pnt2[1], 2));\n }\n /**\n * @param points\n * @returns {number}\n */\n\n }, {\n key: \"wholeDistance\",\n value: function wholeDistance(points) {\n var distance = 0;\n\n for (var i = 0; i < points.length - 1; i++) {\n distance += this.distance(points[i], points[i + 1]);\n }\n\n return distance;\n }\n /**\n * @param points\n * @returns {number}\n */\n\n }, {\n key: \"getBaseLength\",\n value: function getBaseLength(points) {\n return Math.pow(this.wholeDistance(points), 0.99);\n }\n /**\n * @param pnt1\n * @param pnt2\n * @returns {number[]}\n */\n\n }, {\n key: \"mid\",\n value: function mid(pnt1, pnt2) {\n return [(pnt1[0] + pnt2[0]) / 2, (pnt1[1] + pnt2[1]) / 2];\n }\n /**\n * @param pnt1\n * @param pnt2\n * @param pnt3\n * @returns {[*, *]|[*, *]|[*, number]}\n */\n\n }, {\n key: \"getCircleCenterOfThreePoints\",\n value: function getCircleCenterOfThreePoints(pnt1, pnt2, pnt3) {\n var pntA = [(pnt1[0] + pnt2[0]) / 2, (pnt1[1] + pnt2[1]) / 2];\n var pntB = [pntA[0] - pnt1[1] + pnt2[1], pntA[1] + pnt1[0] - pnt2[0]];\n var pntC = [(pnt1[0] + pnt3[0]) / 2, (pnt1[1] + pnt3[1]) / 2];\n var pntD = [pntC[0] - pnt1[1] + pnt3[1], pntC[1] + pnt1[0] - pnt3[0]];\n return this.getIntersectPoint(pntA, pntB, pntC, pntD);\n }\n /**\n * @param pntA\n * @param pntB\n * @param pntC\n * @param pntD\n * @returns {(*|number)[]|*[]}\n */\n\n }, {\n key: \"getIntersectPoint\",\n value: function getIntersectPoint(pntA, pntB, pntC, pntD) {\n var x, y, f, e;\n\n if (pntA[1] === pntB[1]) {\n f = (pntD[0] - pntC[0]) / (pntD[1] - pntC[1]);\n x = f * (pntA[1] - pntC[1]) + pntC[0];\n y = pntA[1];\n return [x, y];\n }\n\n if (pntC[1] === pntD[1]) {\n e = (pntB[0] - pntA[0]) / (pntB[1] - pntA[1]);\n x = e * (pntC[1] - pntA[1]) + pntA[0];\n y = pntC[1];\n return [x, y];\n }\n\n e = (pntB[0] - pntA[0]) / (pntB[1] - pntA[1]);\n f = (pntD[0] - pntC[0]) / (pntD[1] - pntC[1]);\n y = (e * pntA[1] - pntA[0] - f * pntC[1] + pntC[0]) / (e - f);\n x = e * y - e * pntA[1] + pntA[0];\n return [x, y];\n }\n /**\n * @param startPnt\n * @param endPnt\n * @returns {number}\n */\n\n }, {\n key: \"getAzimuth\",\n value: function getAzimuth(startPnt, endPnt) {\n var azimuth;\n var angle = Math.asin(Math.abs(endPnt[1] - startPnt[1]) / this.distance(startPnt, endPnt));\n if (endPnt[1] >= startPnt[1] && endPnt[0] >= startPnt[0]) azimuth = angle + Math.PI;else if (endPnt[1] >= startPnt[1] && endPnt[0] < startPnt[0]) azimuth = TWO_PI - angle;else if (endPnt[1] < startPnt[1] && endPnt[0] < startPnt[0]) azimuth = angle;else if (endPnt[1] < startPnt[1] && endPnt[0] >= startPnt[0]) azimuth = Math.PI - angle;\n return azimuth;\n }\n /**\n * @param pntA\n * @param pntB\n * @param pntC\n * @returns {number}\n */\n\n }, {\n key: \"getAngleOfThreePoints\",\n value: function getAngleOfThreePoints(pntA, pntB, pntC) {\n var angle = this.getAzimuth(pntB, pntA) - this.getAzimuth(pntB, pntC);\n return angle < 0 ? angle + TWO_PI : angle;\n }\n /**\n * @param pnt1\n * @param pnt2\n * @param pnt3\n * @returns {boolean}\n */\n\n }, {\n key: \"isClockWise\",\n value: function isClockWise(pnt1, pnt2, pnt3) {\n return (pnt3[1] - pnt1[1]) * (pnt2[0] - pnt1[0]) > (pnt2[1] - pnt1[1]) * (pnt3[0] - pnt1[0]);\n }\n /**\n * @param t\n * @param startPnt\n * @param endPnt\n * @returns {*[]}\n */\n\n }, {\n key: \"getPointOnLine\",\n value: function getPointOnLine(t, startPnt, endPnt) {\n var x = startPnt[0] + t * (endPnt[0] - startPnt[0]);\n var y = startPnt[1] + t * (endPnt[1] - startPnt[1]);\n return [x, y];\n }\n /**\n * @param t\n * @param startPnt\n * @param cPnt1\n * @param cPnt2\n * @param endPnt\n * @returns {number[]}\n */\n\n }, {\n key: \"getCubicValue\",\n value: function getCubicValue(t, startPnt, cPnt1, cPnt2, endPnt) {\n t = Math.max(Math.min(t, 1), 0);\n var tp = 1 - t;\n var t2 = t * t;\n var t3 = t2 * t;\n var tp2 = tp * tp;\n var tp3 = tp2 * tp;\n var x = tp3 * startPnt[0] + 3 * tp2 * t * cPnt1[0] + 3 * tp * t2 * cPnt2[0] + t3 * endPnt[0];\n var y = tp3 * startPnt[1] + 3 * tp2 * t * cPnt1[1] + 3 * tp * t2 * cPnt2[1] + t3 * endPnt[1];\n return [x, y];\n }\n /**\n * @param startPnt\n * @param endPnt\n * @param angle\n * @param distance\n * @param clockWise\n * @returns {*[]}\n */\n\n }, {\n key: \"getThirdPoint\",\n value: function getThirdPoint(startPnt, endPnt, angle, distance, clockWise) {\n var azimuth = this.getAzimuth(startPnt, endPnt);\n var alpha = clockWise ? azimuth + angle : azimuth - angle;\n var dx = distance * Math.cos(alpha);\n var dy = distance * Math.sin(alpha);\n return [endPnt[0] + dx, endPnt[1] + dy];\n }\n /**\n * @param center\n * @param radius\n * @param startAngle\n * @param endAngle\n * @returns {[]}\n */\n\n }, {\n key: \"getArcPoints\",\n value: function getArcPoints(center, radius, startAngle, endAngle) {\n var x,\n y,\n pnts = [];\n var angleDiff = endAngle - startAngle;\n angleDiff = angleDiff < 0 ? angleDiff + TWO_PI : angleDiff;\n\n for (var i = 0; i <= FITTING_COUNT; i++) {\n var angle = startAngle + angleDiff * i / FITTING_COUNT;\n x = center[0] + radius * Math.cos(angle);\n y = center[1] + radius * Math.sin(angle);\n pnts.push([x, y]);\n }\n\n return pnts;\n }\n /**\n * @param t\n * @param pnt1\n * @param pnt2\n * @param pnt3\n * @returns {*[][]}\n */\n\n }, {\n key: \"getBisectorNormals\",\n value: function getBisectorNormals(t, pnt1, pnt2, pnt3) {\n var normal = this.getNormal(pnt1, pnt2, pnt3);\n var dist = Math.sqrt(normal[0] * normal[0] + normal[1] * normal[1]);\n var uX = normal[0] / dist;\n var uY = normal[1] / dist;\n var d1 = this.distance(pnt1, pnt2);\n var d2 = this.distance(pnt2, pnt3);\n var dt, x, y, bisectorNormalLeft, bisectorNormalRight;\n\n if (dist > ZERO_TOLERANCE) {\n if (this.isClockWise(pnt1, pnt2, pnt3)) {\n dt = t * d1;\n x = pnt2[0] - dt * uY;\n y = pnt2[1] + dt * uX;\n bisectorNormalRight = [x, y];\n dt = t * d2;\n x = pnt2[0] + dt * uY;\n y = pnt2[1] - dt * uX;\n bisectorNormalLeft = [x, y];\n } else {\n dt = t * d1;\n x = pnt2[0] + dt * uY;\n y = pnt2[1] - dt * uX;\n bisectorNormalRight = [x, y];\n dt = t * d2;\n x = pnt2[0] - dt * uY;\n y = pnt2[1] + dt * uX;\n bisectorNormalLeft = [x, y];\n }\n } else {\n x = pnt2[0] + t * (pnt1[0] - pnt2[0]);\n y = pnt2[1] + t * (pnt1[1] - pnt2[1]);\n bisectorNormalRight = [x, y];\n x = pnt2[0] + t * (pnt3[0] - pnt2[0]);\n y = pnt2[1] + t * (pnt3[1] - pnt2[1]);\n bisectorNormalLeft = [x, y];\n }\n\n return [bisectorNormalRight, bisectorNormalLeft];\n }\n /**\n * @param pnt1\n * @param pnt2\n * @param pnt3\n * @returns {number[]}\n */\n\n }, {\n key: \"getNormal\",\n value: function getNormal(pnt1, pnt2, pnt3) {\n var dX1 = pnt1[0] - pnt2[0];\n var dY1 = pnt1[1] - pnt2[1];\n var d1 = Math.sqrt(dX1 * dX1 + dY1 * dY1);\n dX1 /= d1;\n dY1 /= d1;\n var dX2 = pnt3[0] - pnt2[0];\n var dY2 = pnt3[1] - pnt2[1];\n var d2 = Math.sqrt(dX2 * dX2 + dY2 * dY2);\n dX2 /= d2;\n dY2 /= d2;\n var uX = dX1 + dX2;\n var uY = dY1 + dY2;\n return [uX, uY];\n }\n /**\n * @param t\n * @param controlPoints\n * @returns {[]}\n */\n\n }, {\n key: \"getCurvePoints\",\n value: function getCurvePoints(t, controlPoints) {\n var leftControl = this.getLeftMostControlPoint(t, controlPoints);\n var normals = [leftControl];\n var pnt1, pnt2, pnt3, normalPoints;\n\n for (var i = 0; i < controlPoints.length - 2; i++) {\n pnt1 = controlPoints[i];\n pnt2 = controlPoints[i + 1];\n pnt3 = controlPoints[i + 2];\n normalPoints = this.getBisectorNormals(t, pnt1, pnt2, pnt3);\n normals = normals.concat(normalPoints);\n }\n\n var rightControl = this.getRightMostControlPoint(t, controlPoints);\n normals.push(rightControl);\n var points = [];\n\n for (var _i = 0; _i < controlPoints.length - 1; _i++) {\n pnt1 = controlPoints[_i];\n pnt2 = controlPoints[_i + 1];\n points.push(pnt1);\n\n for (var _t = 0; _t < FITTING_COUNT; _t++) {\n var pnt = this.getCubicValue(_t / FITTING_COUNT, pnt1, normals[_i * 2], normals[_i * 2 + 1], pnt2);\n points.push(pnt);\n }\n\n points.push(pnt2);\n }\n\n return points;\n }\n /**\n * @param t\n * @param controlPoints\n * @returns {number[]}\n */\n\n }, {\n key: \"getLeftMostControlPoint\",\n value: function getLeftMostControlPoint(t, controlPoints) {\n var pnt1 = controlPoints[0];\n var pnt2 = controlPoints[1];\n var pnt3 = controlPoints[2];\n var pnts = this.getBisectorNormals(0, pnt1, pnt2, pnt3);\n var normalRight = pnts[0];\n var normal = this.getNormal(pnt1, pnt2, pnt3);\n var dist = Math.sqrt(normal[0] * normal[0] + normal[1] * normal[1]);\n var controlX, controlY;\n\n if (dist > ZERO_TOLERANCE) {\n var mid = this.mid(pnt1, pnt2);\n var pX = pnt1[0] - mid[0];\n var pY = pnt1[1] - mid[1];\n var d1 = this.distance(pnt1, pnt2); // normal at midpoint\n\n var n = 2.0 / d1;\n var nX = -n * pY;\n var nY = n * pX; // upper triangle of symmetric transform matrix\n\n var a11 = nX * nX - nY * nY;\n var a12 = 2 * nX * nY;\n var a22 = nY * nY - nX * nX;\n var dX = normalRight[0] - mid[0];\n var dY = normalRight[1] - mid[1]; // coordinates of reflected vector\n\n controlX = mid[0] + a11 * dX + a12 * dY;\n controlY = mid[1] + a12 * dX + a22 * dY;\n } else {\n controlX = pnt1[0] + t * (pnt2[0] - pnt1[0]);\n controlY = pnt1[1] + t * (pnt2[1] - pnt1[1]);\n }\n\n return [controlX, controlY];\n }\n /**\n * @param t\n * @param controlPoints\n * @returns {number[]}\n */\n\n }, {\n key: \"getRightMostControlPoint\",\n value: function getRightMostControlPoint(t, controlPoints) {\n var count = controlPoints.length;\n var pnt1 = controlPoints[count - 3];\n var pnt2 = controlPoints[count - 2];\n var pnt3 = controlPoints[count - 1];\n var pnts = this.getBisectorNormals(0, pnt1, pnt2, pnt3);\n var normalLeft = pnts[1];\n var normal = this.getNormal(pnt1, pnt2, pnt3);\n var dist = Math.sqrt(normal[0] * normal[0] + normal[1] * normal[1]);\n var controlX, controlY;\n\n if (dist > ZERO_TOLERANCE) {\n var mid = this.mid(pnt2, pnt3);\n var pX = pnt3[0] - mid[0];\n var pY = pnt3[1] - mid[1];\n var d1 = this.distance(pnt2, pnt3); // normal at midpoint\n\n var n = 2.0 / d1;\n var nX = -n * pY;\n var nY = n * pX; // upper triangle of symmetric transform matrix\n\n var a11 = nX * nX - nY * nY;\n var a12 = 2 * nX * nY;\n var a22 = nY * nY - nX * nX;\n var dX = normalLeft[0] - mid[0];\n var dY = normalLeft[1] - mid[1]; // coordinates of reflected vector\n\n controlX = mid[0] + a11 * dX + a12 * dY;\n controlY = mid[1] + a12 * dX + a22 * dY;\n } else {\n controlX = pnt3[0] + t * (pnt2[0] - pnt3[0]);\n controlY = pnt3[1] + t * (pnt2[1] - pnt3[1]);\n }\n\n return [controlX, controlY];\n }\n /**\n * @param points\n * @returns {[]|*}\n */\n\n }, {\n key: \"getBezierPoints\",\n value: function getBezierPoints(points) {\n if (points.length <= 2) return points;\n var bezierPoints = [];\n var n = points.length - 1;\n\n for (var t = 0; t <= 1; t += 0.01) {\n var x = 0;\n var y = 0;\n\n for (var index = 0; index <= n; index++) {\n var factor = this.getBinomialFactor(n, index);\n var a = Math.pow(t, index);\n var b = Math.pow(1 - t, n - index);\n x += factor * a * b * points[index][0];\n y += factor * a * b * points[index][1];\n }\n\n bezierPoints.push([x, y]);\n }\n\n bezierPoints.push(points[n]);\n return bezierPoints;\n }\n /**\n *\n * @param n\n * @param index\n * @returns {number}\n */\n\n }, {\n key: \"getBinomialFactor\",\n value: function getBinomialFactor(n, index) {\n return this.getFactorial(n) / (this.getFactorial(index) * this.getFactorial(n - index));\n }\n /**\n * @param n\n * @returns {number}\n */\n\n }, {\n key: \"getFactorial\",\n value: function getFactorial(n) {\n if (n <= 1) return 1;\n if (n === 2) return 2;\n if (n === 3) return 6;\n if (n === 4) return 24;\n if (n === 5) return 120;\n var result = 1;\n\n for (var i = 1; i <= n; i++) {\n result *= i;\n }\n\n return result;\n }\n /**\n * @param points\n * @returns {[]|*}\n */\n\n }, {\n key: \"getQBSplinePoints\",\n value: function getQBSplinePoints(points) {\n if (points.length <= 2) return points;\n var n = 2;\n var bSplinePoints = [];\n var m = points.length - n - 1;\n bSplinePoints.push(points[0]);\n\n for (var i = 0; i <= m; i++) {\n for (var t = 0; t <= 1; t += 0.05) {\n var x = 0;\n var y = 0;\n\n for (var k = 0; k <= n; k++) {\n var factor = this.getQuadricBSplineFactor(k, t);\n x += factor * points[i + k][0];\n y += factor * points[i + k][1];\n }\n\n bSplinePoints.push([x, y]);\n }\n }\n\n bSplinePoints.push(points[points.length - 1]);\n return bSplinePoints;\n }\n /**\n * @param k\n * @param t\n * @returns {number}\n */\n\n }, {\n key: \"getQuadricBSplineFactor\",\n value: function getQuadricBSplineFactor(k, t) {\n if (k === 0) return Math.pow(t - 1, 2) / 2;\n if (k === 1) return (-2 * Math.pow(t, 2) + 2 * t + 1) / 2;\n if (k === 2) return Math.pow(t, 2) / 2;\n return 0;\n }\n }]);\n\n return PlotUtil;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (PlotUtil);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3V0aWxzL1Bsb3RVdGlsLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy91dGlscy9QbG90VXRpbC5qcz83MjE2Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA4LTIxIDE4OjA1OjM5XG4gKi9cblxuY29uc3QgVFdPX1BJID0gTWF0aC5QSSAqIDJcbmNvbnN0IEZJVFRJTkdfQ09VTlQgPSAxMDBcbmNvbnN0IFpFUk9fVE9MRV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AgKiBAcGFyYW0gcG50MVxuICAgKiBAcGFyYW0gcG50MlxuICAgKiBAcGFyYW0gcG50M1xuICAgKiBAcmV0dXJucyB7WyosICpdfFsqLCAqXXxbKiwgbnVtYmVyXX1cbiAgICovXG4gIHN0YXRpYyBnZXRDaXJjbGVDZW50ZXJPZlRocmVlUG9pbnRzKHBudDEsIHBudDIsIHBudDMpIHtcbiAgICBsZXQgcG50QSA9IFsocG50MVswXSArIHBudDJbMF0pIC8gMiwgKHBudDFbMV0gKyBwbnQyWzFdKSAvIDJdXG4gICAgbGV0IHBudEIgPSBbcG50QVswXSAtIHBudDFbMV0gKyBwbnQyWzFdLCBwbnRBWzFdICsgcG50MVswXSAtIHBudDJbMF1dXG4gICAgbGV0IHBudEMgPSBbKHBudDFbMF0gKyBwbnQzWzBdKSAvIDIsIChwbnQxWzFdICsgcG50M1sxXSkgLyAyXVxuICAgIGxldCBwbnREID0gW3BudENbMF0gLSBwbnQxWzFdICsgcG50M1sxXSwgcG50Q1sxXSArIHBudDFbMF0gLSBwbnQzWzBdXVxuICAgIHJldHVybiB0aGlzLmdldEludGVyc2VjdFBvaW50KHBudEEsIHBudEIsIHBudEMsIHBudEQpXG4gIH1cblxuICAvKipcbiAgICogQHBhcmFtIHBudEFcbiAgICogQHBhcmFtIHBudEJcbiAgICogQHBhcmFtIHBudENcbiAgICogQHBhcmFtIHBudERcbiAgICogQHJldHVybnMgeygqfG51bWJlcilbXXwqW119XG4gICAqL1xuICBzdGF0aWMgZ2V0SW50ZXJzZWN0UG9pbnQocG50QSwgcG50QiwgcG50QywgcG50RCkge1xuICAgIGxldCB4LCB5LCBmLCBlXG4gICAgaWYgKHBudEFbMV0gPT09IHBudEJbMV0pIHtcbiAgICAgIGYgPSAocG50RFswXSAtIHBudENbMF0pIC8gKHBudERbMV0gLSBwbnRDWzFdKVxuICAgICAgeCA9IGYgKiAocG50QVsxXSAtIHBudENbMV0pICsgcG50Q1swXVxuICAgICAgeSA9IHBudEFbMV1cbiAgICAgIHJldHVybiBbeCwgeV1cbiAgICB9XG4gICAgaWYgKHBudENbMV0gPT09IHBudERbMV0pIHtcbiAgICAgIGUgPSAocG50QlswXSAtIHBudEFbMF0pIC8gKHBudEJbMV0gLSBwbnRBWzFdKVxuICAgICAgeCA9IGUgKiAocG50Q1sxXSAtIHBudEFbMV0pICsgcG50QVswXVxuICAgICAgeSA9IHBudENbMV1cbiAgICAgIHJldHVybiBbeCwgeV1cbiAgICB9XG4gICAgZSA9IChwbnRCWzBdIC0gcG50QVswXSkgLyAocG50QlsxXSAtIHBudEFbMV0pXG4gICAgZiA9IChwbnREWzBdIC0gcG50Q1swXSkgLyAocG50RFsxXSAtIHBudENbMV0pXG4gICAgeSA9IChlICogcG50QVsxXSAtIHBudEFbMF0gLSBmICogcG50Q1sxXSArIHBudENbMF0pIC8gKGUgLSBmKVxuICAgIHggPSBlICogeSAtIGUgKiBwbnRBWzFdICsgcG50QVswXVxuICAgIHJldHVybiBbeCwgeV1cbiAgfVxuXG4gIC8qKlxuICAgKiBAcGFyYW0gc3RhcnRQbnRcbiAgICogQHBhcmFtIGVuZFBudFxuICAgKiBAcmV0dXJucyB7bnVtYmVyfVxuICAgKi9cbiAgc3RhdGljIGdldEF6aW11dGgoc3RhcnRQbnQsIGVuZFBudCkge1xuICAgIGxldCBhemltdXRoXG4gICAgbGV0IGFuZ2xlID0gTWF0aC5hc2luKFxuICAgICAgTWF0aC5hYnMoZW5kUG50WzFdIC0gc3RhcnRQbnRbMV0pIC8gdGhpcy5kaXN0YW5jZShzdGFydFBudCwgZW5kUG50KVxuICAgIClcbiAgICBpZiAoZW5kUG50WzFdID49IHN0YXJ0UG50WzFdICYmIGVuZFBudFswXSA+PSBzdGFydFBudFswXSlcbiAgICAgIGF6aW11dGggPSBhbmdsZSArIE1hdGguUElcbiAgICBlbHNlIGlmIChlbmRQbnRbMV0gPj0gc3RhcnRQbnRbMV0gJiYgZW5kUG50WzBdIDwgc3RhcnRQbnRbMF0pXG4gICAgICBhemltdXRoID0gVFdPX1BJIC0gYW5nbGVcbiAgICBlbHNlIGlmIChlbmRQbnRbMV0gPCBzdGFydFBudFsxXSAmJiBlbmRQbnRbMF0gPCBzdGFydFBudFswXSkgYXppbXV0aCA9IGFuZ2xlXG4gICAgZWxzZSBpZiAoZW5kUG50WzFdIDwgc3RhcnRQbnRbMV0gJiYgZW5kUG50WzBdID49IHN0YXJ0UG50WzBdKVxuICAgICAgYXppbXV0aCA9IE1hdGguUEkgLSBhbmdsZVxuICAgIHJldHVybiBhemltdXRoXG4gIH1cblxuICAvKipcbiAgICogQHBhcmFtIHBudEFcbiAgICogQHBhcmFtIHBudEJcbiAgICogQHBhcmFtIHBudENcbiAgICogQHJldHVybnMge251bWJlcn1cbiAgICovXG4gIHN0YXRpYyBnZXRBbmdsZU9mVGhyZWVQb2ludHMocG50QSwgcG50QiwgcG50Qykge1xuICAgIGxldCBhbmdsZSA9IHRoaXMuZ2V0QXppbXV0aChwbnRCLCBwbnRBKSAtIHRoaXMuZ2V0QXppbXV0aChwbnRCLCBwbnRDKVxuICAgIHJldHVybiBhbmdsZSA8IDAgPyBhbmdsZSArIFRXT19QSSA6IGFuZ2xlXG4gIH1cblxuICAvKipcbiAgICogQHBhcmFtIHBudDFcbiAgICogQHBhcmFtIHBudDJcbiAgICogQHBhcmFtIHBudDNcbiAgICogQHJldHVybnMge2Jvb2xlYW59XG4gICAqL1xuICBzdGF0aWMgaXNDbG9ja1dpc2UocG50MSwgcG50MiwgcG50Mykge1xuICAgIHJldHVybiAoXG4gICAgICAocG50M1sxXSAtIHBudDFbMV0pICogKHBudDJbMF0gLSBwbnQxWzBdKSA+XG4gICAgICAocG50MlsxXSAtIHBudDFbMV0pICogKHBudDNbMF0gLSBwbnQxWzBdKVxuICAgIClcbiAgfVxuXG4gIC8qKlxuICAgKiBAcGFyYW0gdFxuICAgKiBAcGFyYW0gc3RhcnRQbnRcbiAgICogQHBhcmFtIGVuZFBudFxuICAgKiBAcmV0dXJucyB7Kltd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xuICAgIH1cbiAgICByZXR1cm4gW2NvbnRyb2xYLCBjb250cm9sWV1cbiAgfVxuXG4gIC8qKlxuICAgKiBAcGFyYW0gcG9pbnRzXG4gICAqIEByZXR1cm5zIHtbXXwqfVxuICAgKi9cbiAgc3RhdGljIGdldEJlemllclBvaW50cyhwb2ludHMpIHtcbiAgICBpZiAocG9pbnRzLmxlbmd0aCA8PSAyKSByZXR1cm4gcG9pbnRzXG4gICAgbGV0IGJlemllclBvaW50cyA9IFtdXG4gICAgbGV0IG4gPSBwb2ludHMubGVuZ3RoIC0gMVxuICAgIGZvciAobGV0IHQgPSAwOyB0IDw9IDE7IHQgKz0gMC4wMSkge1xuICAgICAgbGV0IHggPSAwXG4gICAgICBsZXQgeSA9IDBcbiAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPD0gbjsgaW5kZXgrKykge1xuICAgICAgICBsZXQgZmFjdG9yID0gdGhpcy5nZXRCaW5vbWlhbEZhY3RvcihuLCBpbmRleClcbiAgICAgICAgbGV0IGEgPSBNYXRoLnBvdyh0LCBpbmRleClcbiAgICAgICAgbGV0IGIgPSBNYXRoLnBvdygxIC0gdCwgbiAtIGluZGV4KVxuICAgICAgICB4ICs9IGZhY3RvciAqIGEgKiBiICogcG9pbnRzW2luZGV4XVswXVxuICAgICAgICB5ICs9IGZhY3RvciAqIGEgKiBiICogcG9pbnRzW2luZGV4XVsxXVxuICAgICAgfVxuICAgICAgYmV6aWVyUG9pbnRzLnB1c2goW3gsIHldKVxuICAgIH1cbiAgICBiZXppZXJQb2ludHMucHVzaChwb2ludHNbbl0pXG4gICAgcmV0dXJuIGJlemllclBvaW50c1xuICB9XG5cbiAgLyoqXG4gICAqXG4gICAqIEBwYXJhbSBuXG4gICAqIEBwYXJhbSBpbmRleFxuICAgKiBAcmV0dXJucyB7bnVtYmVyfVxuICAgKi9cbiAgc3RhdGljIGdldEJpbm9taWFsRmFjdG9yKG4sIGluZGV4KSB7XG4gICAgcmV0dXJuIChcbi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FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/utils/PlotUtil.js\n");
- /***/ }),
- /***/ "./modules/utils/Util.js":
- /*!*******************************!*\
- !*** ./modules/utils/Util.js ***!
- \*******************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author: Caven\n * @Date: 2019-12-31 17:58:01\n */\nvar CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');\n/**\n * Some of the code borrows from leaflet\n * https://github.com/Leaflet/Leaflet/tree/master/src/core\n */\n\nvar Util = /*#__PURE__*/function () {\n function Util() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Util);\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Util, null, [{\n key: \"uuid\",\n value:\n /**\n * Generates uuid\n * @param prefix\n * @returns {string}\n */\n function uuid() {\n var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'D';\n var uuid = [];\n uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';\n uuid[14] = '4';\n var r;\n\n for (var i = 0; i < 36; i++) {\n if (!uuid[i]) {\n r = 0 | Math.random() * 16;\n uuid[i] = CHARS[i === 19 ? r & 0x3 | 0x8 : r];\n }\n }\n\n return prefix + '-' + uuid.join('');\n }\n /**\n * Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter.\n * @param dest\n * @param sources\n * @returns {*}\n */\n\n }, {\n key: \"merge\",\n value: function merge(dest) {\n var i, j, len, src;\n\n for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n sources[_key - 1] = arguments[_key];\n }\n\n for (j = 0, len = sources.length; j < len; j++) {\n src = sources[j];\n\n for (i in src) {\n dest[i] = src[i];\n }\n }\n\n return dest;\n }\n /**\n * @function splitWords(str: String): String[]\n * Trims and splits the string on whitespace and returns the array of parts.\n * @param {*} str\n */\n\n }, {\n key: \"splitWords\",\n value: function splitWords(str) {\n return this.trim(str).split(/\\s+/);\n }\n /**\n * @function setOptions(obj: Object, options: Object): Object\n * Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`.\n * @param {*} obj\n * @param {*} options\n */\n\n }, {\n key: \"setOptions\",\n value: function setOptions(obj, options) {\n if (!obj.hasOwnProperty('options')) {\n obj.options = obj.options ? Object.create(obj.options) : {};\n }\n\n for (var i in options) {\n obj.options[i] = options[i];\n }\n\n return obj.options;\n }\n /**\n * @function formatNum(num: Number, digits?: Number): Number\n * Returns the number `num` rounded to `digits` decimals, or to 6 decimals by default.\n * @param num\n * @param digits\n * @returns {number}\n */\n\n }, {\n key: \"formatNum\",\n value: function formatNum(num, digits) {\n var pow = Math.pow(10, digits === undefined ? 6 : digits);\n return Math.round(num * pow) / pow;\n }\n /**\n * @function trim(str: String): String\n * Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)\n * @param {*} str\n */\n\n }, {\n key: \"trim\",\n value: function trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n }\n /**\n * Data URI string containing a base64-encoded empty GIF image.\n * Used as a hack to free memory from unused images on WebKit-powered\n * mobile devices (by setting image `src` to this string).\n * @returns {string}\n */\n\n }, {\n key: \"emptyImageUrl\",\n value: function emptyImageUrl() {\n return function () {\n return 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';\n }();\n }\n /**\n * @function checkPosition(position: Object): Boolean\n * Check position for validity\n * @param {*} position\n */\n\n }, {\n key: \"checkPosition\",\n value: function checkPosition(position) {\n return position && position.hasOwnProperty('_lng') && position.hasOwnProperty('_lat') && position.hasOwnProperty('_alt');\n }\n /**\n * Creates a debounced function that delays invoking `fn` until after `delay`\n * @param fn\n * @param delay\n * @returns {function(): void}\n */\n\n }, {\n key: \"debounce\",\n value: function debounce(fn, delay) {\n var timer = null;\n return function () {\n timer && clearTimeout(timer);\n timer = setTimeout(fn, delay);\n };\n }\n /**\n * Creates a throttled function that only invokes `fn` at most once per\n * @param fn\n * @param delay\n * @returns {function(): void}\n */\n\n }, {\n key: \"throttle\",\n value: function throttle(fn, delay) {\n var valid = true;\n return function () {\n if (!valid) {\n return false;\n }\n\n valid = false;\n setTimeout(function () {\n fn();\n valid = true;\n }, delay);\n };\n }\n /**\n *\n * @param dataUrl\n * @returns {Blob}\n */\n\n }, {\n key: \"dataURLtoBlob\",\n value: function dataURLtoBlob(dataUrl) {\n var arr = dataUrl.split(',');\n var mime = arr[0].match(/:(.*?);/)[1];\n var bStr = atob(arr[1]);\n var len = bStr.length;\n var u8Arr = new Uint8Array(len);\n\n while (len--) {\n u8Arr[len] = bStr.charCodeAt(len);\n }\n\n return new Blob([u8Arr], {\n type: mime\n });\n }\n }]);\n\n return Util;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Util);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3V0aWxzL1V0aWwuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3V0aWxzL1V0aWwuanM/MThhOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAxOS0xMi0zMSAxNzo1ODowMVxuICovXG5cbmNvbnN0IENIQVJTID0gJzAxMjM0NTY3ODlBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6Jy5zcGxpdChcbiAgJydcbilcblxuLyoqXG4gKiAgU29tZSBvZiB0aGUgY29kZSBib3Jyb3dzIGZyb20gbGVhZmxldFxuICogaHR0cHM6Ly9naXRodWIuY29tL0xlYWZsZXQvTGVhZmxldC90cmVlL21hc3Rlci9zcmMvY29yZVxuICovXG5jbGFzcyBVdGlsIHtcbiAgLyoqXG4gICAqIEdlbmVyYXRlcyB1dWlkXG4gICAqIEBwYXJhbSBwcmVmaXhcbiAgICogQHJldHVybnMge3N0cmluZ31cbiAgICovXG4gIHN0YXRpYyB1dWlkKHByZWZpeCA9ICdEJykge1xuICAgIGxldCB1dWlkID0gW11cbiAgICB1dWlkWzhdID0gdXVpZFsxM10gPSB1dWlkWzE4XSA9IHV1aWRbMjNdID0gJy0nXG4gICAgdXVpZFsxNF0gPSAnNCdcbiAgICBsZXQgclxuICAgIGZvciAobGV0IGkgPSAwOyBpIDwgMzY7IGkrKykge1xuICAgICAgaWYgKCF1dWlkW2ldKSB7XG4gICAgICAgIHIgPSAwIHwgKE1hdGgucmFuZG9tKCk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2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/utils/Util.js\n");
- /***/ }),
- /***/ "./modules/utils/index.js":
- /*!********************************!*\
- !*** ./modules/utils/index.js ***!
- \********************************/
- /*! exports provided: Util, DomUtil, PlotUtil, DateUtil */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Util */ \"./modules/utils/Util.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Util\", function() { return _Util__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n/* harmony import */ var _DomUtil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DomUtil */ \"./modules/utils/DomUtil.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DomUtil\", function() { return _DomUtil__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _PlotUtil__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PlotUtil */ \"./modules/utils/PlotUtil.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PlotUtil\", function() { return _PlotUtil__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _DateUtil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DateUtil */ \"./modules/utils/DateUtil.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DateUtil\", function() { return _DateUtil__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/**\n * @Author: Caven\n * @Date: 2020-01-06 16:38:49\n */\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3V0aWxzL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy91dGlscy9pbmRleC5qcz84ZjZlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTA2IDE2OjM4OjQ5XG4gKi9cbmV4cG9ydCB7IGRlZmF1bHQgYXMgVXRpbCB9IGZyb20gJy4vVXRpbCdcbmV4cG9ydCB7IGRlZmF1bHQgYXMgRG9tVXRpbCB9IGZyb20gJy4vRG9tVXRpbCdcbmV4cG9ydCB7IGRlZmF1bHQgYXMgUGxvdFV0aWwgfSBmcm9tICcuL1Bsb3RVdGlsJ1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBEYXRlVXRpbCB9IGZyb20gJy4vRGF0ZVV0aWwnXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/utils/index.js\n");
- /***/ }),
- /***/ "./modules/viewer/Viewer.js":
- /*!**********************************!*\
- !*** ./modules/viewer/Viewer.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_option__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/option */ \"./modules/option/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_widget__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/widget */ \"./modules/widget/index.js\");\n/* harmony import */ var _gd_modules_tools__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/tools */ \"./modules/tools/index.js\");\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Caven\n * @Date: 2019-12-27 17:13:24\n */\n\n\n\n\n\n\n\n\nvar DEF_OPTS = {\n animation: false,\n //Whether to create animated widgets, lower left corner of the meter\n baseLayerPicker: false,\n //Whether to display the layer selector\n imageryProvider: false,\n // Whether to display the default imagery\n fullscreenButton: false,\n //Whether to display the full-screen button\n geocoder: false,\n //To display the geocoder widget, query the button in the upper right corner\n homeButton: false,\n //Whether to display the Home button\n infoBox: false,\n //Whether to display the information box\n sceneModePicker: false,\n //Whether to display 3D/2D selector\n selectionIndicator: false,\n //Whether to display the selection indicator component\n timeline: false,\n //Whether to display the timeline\n navigationHelpButton: false,\n //Whether to display the help button in the upper right corner\n navigationInstructionsInitiallyVisible: false,\n creditContainer: undefined,\n shouldAnimate: true,\n showRenderLoopErrors: false,\n orderIndependentTranslucency: false\n};\n\nvar Viewer = /*#__PURE__*/function () {\n function Viewer(id) {\n var _this = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Viewer);\n\n if (!id || typeof id === 'string' && !document.getElementById(id)) {\n throw new Error('Viewer:the id is empty');\n }\n\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Viewer(id, _objectSpread(_objectSpread({}, DEF_OPTS), options)); // Initialize the viewer\n\n /**\n * Registers events\n */\n\n new _gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"MouseEvent\"](this); // Register global mouse events\n\n this._viewerEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"ViewerEvent\"](); // Register viewer events\n\n this._sceneEvent = new _gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"SceneEvent\"](this); // Register scene events\n\n this._viewerOption = new _gd_modules_option__WEBPACK_IMPORTED_MODULE_6__[\"ViewerOption\"](this); // Initialize the viewer option\n\n this._cameraOption = new _gd_modules_option__WEBPACK_IMPORTED_MODULE_6__[\"CameraOption\"](this); // Initialize the camera option\n\n this._gdContainer = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"DomUtil\"].create('div', 'gd-container', typeof id === 'string' ? document.getElementById(id) : id); //Register the custom container\n\n this._baseLayerPicker = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].BaseLayerPickerViewModel({\n globe: this._delegate.scene.globe\n }); //Initialize the baseLayer picker\n\n this._layerGroupCache = {};\n this._layerCache = {};\n /**\n * Registers default widgets\n */\n\n var widgets = Object(_gd_modules_widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"])();\n Object.keys(widgets).forEach(function (key) {\n _this.use(widgets[key]);\n });\n /**\n * Registers default tools\n */\n\n var tools = Object(_gd_modules_tools__WEBPACK_IMPORTED_MODULE_10__[\"default\"])();\n Object.keys(tools).forEach(function (key) {\n _this.use(tools[key]);\n });\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Viewer, [{\n key: \"delegate\",\n get: function get() {\n return this._delegate;\n }\n }, {\n key: \"gdContainer\",\n get: function get() {\n return this._gdContainer;\n }\n }, {\n key: \"scene\",\n get: function get() {\n return this._delegate.scene;\n }\n }, {\n key: \"camera\",\n get: function get() {\n return this._delegate.camera;\n }\n }, {\n key: \"canvas\",\n get: function get() {\n return this._delegate.scene.canvas;\n }\n }, {\n key: \"dataSources\",\n get: function get() {\n return this._delegate.dataSources;\n }\n }, {\n key: \"imageryLayers\",\n get: function get() {\n return this._delegate.imageryLayers;\n }\n }, {\n key: \"terrainProvider\",\n get: function get() {\n return this._delegate.terrainProvider;\n }\n }, {\n key: \"entities\",\n get: function get() {\n return this._delegate.entities;\n }\n }, {\n key: \"postProcessStages\",\n get: function get() {\n return this._delegate.scene.postProcessStages;\n }\n }, {\n key: \"clock\",\n get: function get() {\n return this._delegate.clock;\n }\n }, {\n key: \"viewerEvent\",\n get: function get() {\n return this._viewerEvent;\n }\n }, {\n key: \"cameraPosition\",\n get: function get() {\n var position = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformCartesianToWGS84(this.camera.positionWC);\n\n if (position) {\n position.heading = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toDegrees(this.camera.heading);\n position.pitch = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toDegrees(this.camera.pitch);\n position.roll = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toDegrees(this.camera.roll);\n }\n\n return position;\n }\n }, {\n key: \"resolution\",\n get: function get() {\n var width = this.scene.canvas.width;\n var height = this.scene.canvas.height;\n var min = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWindowToWGS84(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian2(width / 2 | 0, height - 1), this);\n var max = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWindowToWGS84(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian2(1 + width / 2 | 0, height - 1), this);\n\n if (!min || !max) {\n return 1;\n }\n\n return Math.abs(min.lng - max.lng);\n }\n }, {\n key: \"viewBounds\",\n get: function get() {\n var width = this.scene.canvas.width;\n var height = this.scene.canvas.height;\n var min = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWindowToWGS84(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian2(0, height), this);\n var max = _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWindowToWGS84(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Cartesian2(width, 0), this);\n\n if (!min || !max) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Rectangle.MAX_VALUE;\n }\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Rectangle.fromDegrees(min.lng, min.lat, max.lng, max.lat);\n }\n /***\n *\n * @param layerGroup\n * @private\n */\n\n }, {\n key: \"_addLayerGroup\",\n value: function _addLayerGroup(layerGroup) {\n if (layerGroup !== null && layerGroup !== void 0 && layerGroup.layerGroupEvent && !Object(this._layerGroupCache).hasOwnProperty(layerGroup.id)) {\n layerGroup.layerGroupEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"LayerGroupEventType\"].ADD, this);\n this._layerGroupCache[layerGroup.id] = layerGroup;\n }\n }\n /**\n *\n * @param layerGroup\n * @private\n */\n\n }, {\n key: \"_removeLayerGroup\",\n value: function _removeLayerGroup(layerGroup) {\n if (layerGroup !== null && layerGroup !== void 0 && layerGroup.layerGroupEvent && Object(this._layerGroupCache).hasOwnProperty(layerGroup.id)) {\n layerGroup.layerGroupEvent.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"LayerGroupEventType\"].REMOVE, this);\n delete this._layerGroupCache[layerGroup.id];\n }\n }\n /**\n * @param layer\n * @private\n */\n\n }, {\n key: \"_addLayer\",\n value: function _addLayer(layer) {\n !this._layerCache[layer.type] && (this._layerCache[layer.type] = {});\n\n if (!Object(this._layerCache[layer.type]).hasOwnProperty(layer.id)) {\n layer.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"LayerEventType\"].ADD, this);\n this._layerCache[layer.type][layer.id] = layer;\n }\n }\n /**\n * @param layer\n * @private\n */\n\n }, {\n key: \"_removeLayer\",\n value: function _removeLayer(layer) {\n if (Object(this._layerCache[layer.type]).hasOwnProperty(layer.id)) {\n layer.fire(_gd_modules_event__WEBPACK_IMPORTED_MODULE_5__[\"LayerEventType\"].REMOVE, this);\n delete this._layerCache[layer.type][layer.id];\n }\n }\n /**\n * Sets viewer options\n * @param options\n * @returns {Viewer}\n */\n\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n this._viewerOption.setOptions(options);\n\n return this;\n }\n /**\n * Sets camera pitch range\n * @param min\n * @param max\n * @returns {Viewer}\n */\n\n }, {\n key: \"setPitchRange\",\n value: function setPitchRange() {\n var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -90;\n var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -20;\n\n this._cameraOption.setPitchRange(min, max);\n\n return this;\n }\n /**\n * @param west\n * @param south\n * @param east\n * @param north\n * @returns {Viewer}\n */\n\n }, {\n key: \"setBounds\",\n value: function setBounds(west, south, east, north) {\n this._cameraOption.setBounds(west, south, east, north);\n\n return this;\n }\n /**\n * Changes Scene Mode,2:2D,2.5:2.5D,3:3D\n * @param sceneMode\n * @param duration\n * @returns {Viewer}\n */\n\n }, {\n key: \"changeSceneMode\",\n value: function changeSceneMode(sceneMode) {\n var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n if (sceneMode === 2) {\n this._delegate.scene.morphTo2D(duration);\n } else if (sceneMode === 3) {\n this._delegate.scene.morphTo3D(duration);\n } else if (sceneMode === 2.5) {\n this._delegate.scene.morphToColumbusView(duration);\n }\n\n return this;\n }\n /**\n * Changes Mouse Mode,0:Default,1: Change the tiltEventTypes to CameraEventType.RIGHT_DRAG\n * @param mouseMode\n * @returns {Viewer}\n */\n\n }, {\n key: \"changeMouseMode\",\n value: function changeMouseMode(mouseMode) {\n this._cameraOption.changeMouseMode(mouseMode);\n\n return this;\n }\n /**\n * Adds the baseLayer .\n * The baseLayer can be a single or an array,\n * and when the baseLayer is an array, the baseLayer will be loaded together\n * @param baseLayers\n * @param options\n * @returns {Viewer}\n */\n\n }, {\n key: \"addBaseLayer\",\n value: function addBaseLayer(baseLayers) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!baseLayers) {\n return this;\n }\n\n this._baseLayerPicker.imageryProviderViewModels.push(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ProviderViewModel({\n name: options.name || '地图',\n creationFunction: function creationFunction() {\n return baseLayers;\n }\n }));\n\n if (!this._baseLayerPicker.selectedImagery) {\n this._baseLayerPicker.selectedImagery = this._baseLayerPicker.imageryProviderViewModels[0];\n }\n\n this.mapSwitch && this.mapSwitch.addMap(options);\n return this;\n }\n /**\n * Changes the current globe display of the baseLayer\n * @param index\n * @returns {Viewer}\n */\n\n }, {\n key: \"changeBaseLayer\",\n value: function changeBaseLayer(index) {\n if (this._baseLayerPicker && index >= 0) {\n this._baseLayerPicker.selectedImagery = this._baseLayerPicker.imageryProviderViewModels[index];\n }\n\n return this;\n }\n /**\n *\n * @param windowPosition\n * @returns {Promise}\n */\n\n }, {\n key: \"getImageryLayerInfo\",\n value: function getImageryLayerInfo(windowPosition) {\n var ray = this._delegate.camera.getPickRay(windowPosition);\n\n return this._delegate.imageryLayers.pickImageryLayerFeatures(ray, this._delegate.scene);\n }\n /**\n * Adds the terrain\n * @param terrain\n * @param options\n * @returns {Viewer}\n */\n\n }, {\n key: \"addTerrain\",\n value: function addTerrain(terrain) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!terrain) {\n return this;\n }\n\n this._baseLayerPicker.terrainProviderViewModels.push(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].ProviderViewModel({\n name: options.name || '地形',\n creationFunction: function creationFunction() {\n return terrain;\n }\n }));\n\n if (!this._baseLayerPicker.selectedTerrain) {\n this._baseLayerPicker.selectedTerrain = this._baseLayerPicker.terrainProviderViewModels[0];\n }\n\n return this;\n }\n /**\n * Changes the current globe display of the terrain\n * @param index\n * @returns {Viewer}\n */\n\n }, {\n key: \"changeTerrain\",\n value: function changeTerrain(index) {\n if (this._baseLayerPicker && index >= 0) {\n this._baseLayerPicker.selectedTerrain = this._baseLayerPicker.terrainProviderViewModels[index];\n }\n\n return this;\n }\n /**\n * Removes terrain\n * @returns {Viewer}\n */\n\n }, {\n key: \"removeTerrain\",\n value: function removeTerrain() {\n this._baseLayerPicker.terrainProviderViewModels = [];\n this._baseLayerPicker.selectedTerrain = undefined;\n this._delegate.terrainProvider = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].EllipsoidTerrainProvider();\n return this;\n }\n /**\n *\n * @param layerGroup\n * @returns {Viewer}\n */\n\n }, {\n key: \"addLayerGroup\",\n value: function addLayerGroup(layerGroup) {\n this._addLayerGroup(layerGroup);\n\n return this;\n }\n /**\n *\n * @param layerGroup\n * @returns {Viewer}\n */\n\n }, {\n key: \"removeLayerGroup\",\n value: function removeLayerGroup(layerGroup) {\n this._removeLayerGroup(layerGroup);\n\n return this;\n }\n /**\n *\n * @param id\n * @returns {undefined}\n */\n\n }, {\n key: \"getLayerGroup\",\n value: function getLayerGroup(id) {\n return this._layerGroupCache[id] || undefined;\n }\n /**\n * add a layer\n * @param layer\n * @returns {Viewer}\n */\n\n }, {\n key: \"addLayer\",\n value: function addLayer(layer) {\n this._addLayer(layer);\n\n return this;\n }\n /**\n * Removes a layer\n * @param layer\n * @returns {Viewer}\n */\n\n }, {\n key: \"removeLayer\",\n value: function removeLayer(layer) {\n this._removeLayer(layer);\n\n return this;\n }\n /**\n * Checks to see if the layer is included\n * @param layer\n * @returns {boolean}\n */\n\n }, {\n key: \"hasLayer\",\n value: function hasLayer(layer) {\n return Object(this._layerCache[layer.type]).hasOwnProperty(layer.id);\n }\n /**\n * Returns a layer by id\n * @param id\n * @returns {*|undefined}\n */\n\n }, {\n key: \"getLayer\",\n value: function getLayer(id) {\n var filters = this.getLayers().filter(function (item) {\n return item.id === id;\n });\n return filters && filters.length ? filters[0] : undefined;\n }\n /**\n * Returns all layers\n * @returns {[]}\n */\n\n }, {\n key: \"getLayers\",\n value: function getLayers() {\n var _this2 = this;\n\n var result = [];\n Object.keys(this._layerCache).forEach(function (type) {\n var cache = _this2._layerCache[type];\n Object.keys(cache).forEach(function (layerId) {\n result.push(cache[layerId]);\n });\n });\n return result;\n }\n /**\n * Iterate through each layer and pass it as an argument to the callback function\n * @param method\n * @param context\n * @returns {Viewer}\n */\n\n }, {\n key: \"eachLayer\",\n value: function eachLayer(method, context) {\n var _this3 = this;\n\n Object.keys(this._layerCache).forEach(function (type) {\n var cache = _this3._layerCache[type];\n Object.keys(cache).forEach(function (layerId) {\n method.call(context, cache[layerId]);\n });\n });\n return this;\n }\n /**\n * @param target\n * @param duration\n * @returns {Viewer}\n */\n\n }, {\n key: \"flyTo\",\n value: function flyTo(target, duration) {\n this._delegate.flyTo((target === null || target === void 0 ? void 0 : target.delegate) || target, {\n duration: duration\n });\n\n return this;\n }\n /**\n * @param target\n * @returns {Viewer}\n */\n\n }, {\n key: \"zoomTo\",\n value: function zoomTo(target) {\n this._delegate.zoomTo((target === null || target === void 0 ? void 0 : target.delegate) || target);\n\n return this;\n }\n /**\n * Camera fly to a position\n * @param position\n * @param completeCallback\n * @param duration\n * @returns {Viewer}\n */\n\n }, {\n key: \"flyToPosition\",\n value: function flyToPosition(position, completeCallback, duration) {\n position = _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_4__[\"default\"].parsePosition(position);\n this.camera.flyTo({\n destination: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_8__[\"Transform\"].transformWGS84ToCartesian(position),\n orientation: {\n heading: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toRadians(position.heading),\n pitch: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toRadians(position.pitch),\n roll: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_3__[\"Cesium\"].Math.toRadians(position.roll)\n },\n complete: completeCallback,\n duration: duration\n });\n return this;\n }\n /**\n * Camera zoom to a position\n * @param position\n * @param completeCallback\n * @returns {Viewer}\n */\n\n }, {\n key: \"zoomToPosition\",\n value: function zoomToPosition(position, completeCallback) {\n this.flyToPosition(position, completeCallback, 0);\n return this;\n }\n /**\n *\n * @param type\n * @param callback\n * @param context\n * @returns {Viewer}\n */\n\n }, {\n key: \"on\",\n value: function on(type, callback, context) {\n this._viewerEvent.on(type, callback, context || this);\n\n this._sceneEvent.on(type, callback, context || this);\n\n return this;\n }\n /**\n *\n * @param type\n * @param callback\n * @param context\n * @returns {Viewer}\n */\n\n }, {\n key: \"once\",\n value: function once(type, callback, context) {\n this._viewerEvent.once(type, callback, context || this);\n\n return this;\n }\n /**\n *\n * @param type\n * @param callback\n * @param context\n * @returns {Viewer}\n */\n\n }, {\n key: \"off\",\n value: function off(type, callback, context) {\n this._viewerEvent.off(type, callback, context || this);\n\n this._sceneEvent.off(type, callback, context || this);\n\n return this;\n }\n /**\n * Destroys the viewer.\n */\n\n }, {\n key: \"destroy\",\n value: function destroy() {\n var _this4 = this;\n\n Object.keys(this._layerCache).forEach(function (type) {\n var cache = _this4._layerCache[type];\n Object.keys(cache).forEach(function (layerId) {\n _this4._removeLayer(cache[layerId]);\n });\n });\n\n this._delegate.destroy();\n\n this._delegate = undefined;\n this._baseLayerPicker = undefined;\n this._layerCache = {};\n\n this._gdContainer.parentNode.removeChild(this._gdContainer);\n\n this._gdContainer = undefined;\n return this;\n }\n /**\n * Export scene to image\n * @param name\n * @returns {Viewer}\n */\n\n }, {\n key: \"exportScene\",\n value: function exportScene(name) {\n var canvas = this.canvas;\n var image = canvas.toDataURL('image/png').replace('image/png', 'image/octet-stream');\n var link = document.createElement('a');\n var blob = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"Util\"].dataURLtoBlob(image);\n var objUrl = URL.createObjectURL(blob);\n link.download = \"\".concat(name || 'scene', \".png\");\n link.href = objUrl;\n link.click();\n return this;\n }\n /**\n * Adds a plugin\n * @param plugin\n * @returns {Viewer}\n */\n\n }, {\n key: \"use\",\n value: function use(plugin) {\n if (plugin && plugin.install) {\n plugin.install(this);\n }\n\n return this;\n }\n }]);\n\n return Viewer;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Viewer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3ZpZXdlci9WaWV3ZXIuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3ZpZXdlci9WaWV3ZXIuanM/Y2VkZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAxOS0xMi0yNyAxNzoxMzoyNFxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBQYXJzZSBmcm9tICdAZ2QtbW9kdWxlcy9wYXJzZS9QYXJzZSdcbmltcG9ydCB7XG4gIExheWVyR3JvdXBFdmVudFR5cGUsXG4gIExheWVyRXZlbnRUeXBlLFxuICBNb3VzZUV2ZW50LFxuICBWaWV3ZXJFdmVudCxcbiAgU2NlbmVFdmVudFxufSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCB7IFZpZXdlck9wdGlvbiwgQ2FtZXJhT3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BpZiAoXG4gICAgICBsYXllckdyb3VwPy5sYXllckdyb3VwRXZlbnQgJiZcbiAgICAgICFPYmplY3QodGhpcy5fbGF5ZXJHcm91cENhY2hlKS5oYXNPd25Qcm9wZXJ0eShsYXllckdyb3VwLmlkKVxuICAgICkge1xuICAgICAgbGF5ZXJHcm91cC5sYXllckdyb3VwRXZlbnQuZmlyZShMYXllckdyb3VwRXZlbnRUeXBlLkFERCwgdGhpcylcbiAgICAgIHRoaXMuX2xheWVyR3JvdXBDYWNoZVtsYXllckdyb3VwLmlkXSA9IGxheWVyR3JvdXBcbiAgICB9XG4gIH1cblxuICAvKipcbiAgICpcbiAgICogQHBhcmFtIGxheWVyR3JvdXBcbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9yZW1vdmVMYXllckdyb3VwKGxheWVyR3JvdXApIHtcbiAgICBpZiAoXG4gICAgICBsYXllckdyb3VwPy5sYXllckdyb3VwRXZlbnQgJiZcbiAgICAgIE9iamVjdCh0aGlzLl9sYXllckdyb3VwQ2FjaGUpLmhhc093blByb3BlcnR5KGxheWVyR3JvdXAuaWQpXG4gICAgKSB7XG4gICAgICBsYXllckdyb3VwLmxheWVyR3JvdXBFdmVudC5maXJlKExheWVyR3JvdXBFdmVudFR5cGUuUkVNT1ZFLCB0aGlzKVxuICAgICAgZGVsZXRlIHRoaXMuX2xheWVyR3JvdXBDYWNoZVtsYXllckdyb3VwLmlkXVxuICAgIH1cbiAgfVxuXG4gIC8qKlxuICAgKiBAcGFyYW0gbGF5ZXJcbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9hZGRMYXllcihsYXllcikge1xuICAgICF0aGlzLl9sYXllckNhY2hlW2xheWVyLnR5cGVdICYmICh0aGlzLl9sYXllckNhY2hlW2xheWVyLnR5cGVdID0ge30pXG4gICAgaWYgKCFPYmplY3QodGhpcy5fbGF5ZXJDYWNoZVtsYXllci50eXBlXSkuaGFzT3duUHJvcGVydHkobGF5ZXIuaWQpKSB7XG4gICAgICBsYXllci5maX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E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/viewer/Viewer.js\n");
- /***/ }),
- /***/ "./modules/weather/Weather.js":
- /*!************************************!*\
- !*** ./modules/weather/Weather.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _type_Fog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type/Fog */ \"./modules/weather/type/Fog.js\");\n/* harmony import */ var _type_Rain__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./type/Rain */ \"./modules/weather/type/Rain.js\");\n/* harmony import */ var _type_Snow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./type/Snow */ \"./modules/weather/type/Snow.js\");\n/* harmony import */ var _type_Cloud__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./type/Cloud */ \"./modules/weather/type/Cloud.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-11-30 20:54:58\n */\n\n\n\n\n\nvar Weather = /*#__PURE__*/function () {\n function Weather() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Weather);\n\n this._comps = {\n fog: new _type_Fog__WEBPACK_IMPORTED_MODULE_2__[\"default\"](),\n rain: new _type_Rain__WEBPACK_IMPORTED_MODULE_3__[\"default\"](),\n snow: new _type_Snow__WEBPACK_IMPORTED_MODULE_4__[\"default\"](),\n cloud: new _type_Cloud__WEBPACK_IMPORTED_MODULE_5__[\"default\"]()\n };\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Weather, [{\n key: \"fog\",\n get: function get() {\n return this._comps.fog;\n }\n }, {\n key: \"rain\",\n get: function get() {\n return this._comps.rain;\n }\n }, {\n key: \"snow\",\n get: function get() {\n return this._comps.snow;\n }\n }, {\n key: \"cloud\",\n get: function get() {\n return this._comps.cloud;\n }\n /**\n *\n * @param viewer\n */\n\n }, {\n key: \"install\",\n value: function install(viewer) {\n var _this = this;\n\n Object.keys(this._comps).forEach(function (key) {\n _this._comps[key].addTo(viewer);\n });\n Object.defineProperty(viewer, 'weather', {\n value: this,\n writable: false\n });\n }\n }]);\n\n return Weather;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Weather);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dlYXRoZXIvV2VhdGhlci5qcy5qcyIsInN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lUHJvcGVydHkodmlld2VyLCAnd2VhdGhlcicsIHtcbiAgICAgIHZhbHVlOiB0aGlzLFxuICAgICAgd3JpdGFibGU6IGZhbHNlXG4gICAgfSlcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBXZWF0aGVyXG4iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUpBO0FBTUE7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTs7O0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/weather/Weather.js\n");
- /***/ }),
- /***/ "./modules/weather/type/Cloud.js":
- /*!***************************************!*\
- !*** ./modules/weather/type/Cloud.js ***!
- \***************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-11-30 20:19:19\n */\n\n\n\n\nvar IMG = __webpack_require__(/*! @gd-modules/images/cloud.jpg */ \"./modules/images/cloud.jpg\");\n\nvar Cloud = /*#__PURE__*/function () {\n function Cloud() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Cloud);\n\n this._id = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"Util\"].uuid();\n this._viewer = undefined;\n this._delegate = undefined;\n this._rotateAmount = 0;\n this._enable = false;\n this._heading = 0;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Cloud, [{\n key: \"type\",\n get: function get() {\n return 'cloud';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n if (!this._viewer.scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].SceneMode.SCENE3D) {\n return this;\n }\n\n this._enable = this._delegate.show = enable;\n\n if (this._enable) {\n this._viewer.scene.postUpdate.addEventListener(this._onRotate, this);\n } else {\n this._viewer.scene.postUpdate.removeEventListener(this._onRotate, this);\n }\n\n return this;\n }\n }, {\n key: \"rotateAmount\",\n get: function get() {\n return this._rotateAmount;\n }\n /**\n *\n * @param scene\n * @param time\n * @private\n */\n ,\n set: function set(rotateAmount) {\n this._rotateAmount = rotateAmount;\n return this;\n }\n }, {\n key: \"_onRotate\",\n value: function _onRotate(scene, time) {\n if (this._rotateAmount === 0) {\n return;\n }\n\n this._heading += this._rotateAmount;\n\n if (this._heading >= 360 || this._heading <= -360) {\n this._heading = 0;\n }\n\n this._delegate.modelMatrix = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Transforms.headingPitchRollToFixedFrame(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian3(), new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].HeadingPitchRoll(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Math.toRadians(this._heading), 0, 0));\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_createPrimitive\",\n value: function _createPrimitive() {\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Primitive({\n appearance: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].EllipsoidSurfaceAppearance({\n material: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Material({\n fabric: {\n type: 'Image',\n uniforms: {\n color: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(1.0, 1.0, 1.0, 1.0),\n image: IMG\n },\n components: {\n alpha: 'texture2D(image, fract(repeat * materialInput.st)).r * color.a',\n diffuse: 'vec3(1.0)'\n }\n }\n }),\n translucent: true,\n aboveGround: true\n })\n });\n this._delegate.geometryInstances = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].GeometryInstance({\n geometry: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].EllipsoidGeometry({\n vertexFormat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].VertexFormat.POSITION_AND_ST,\n radii: this._viewer.scene.globe.ellipsoid.radii\n }),\n id: this._id\n });\n this._delegate.show = this._enable;\n\n this._viewer.scene.primitives.add(this._delegate);\n }\n /**\n *\n * @param viewer\n * @returns {Cloud}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n\n this._createPrimitive();\n\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return Cloud;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Cloud);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dlYXRoZXIvdHlwZS9DbG91ZC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvd2VhdGhlci90eXBlL0Nsb3VkLmpzPzA3ODQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMTEtMzAgMjA6MTk6MTlcbiAqL1xuXG5pbXBvcnQgeyBDZXNpdW0gfSBmcm9tICdAZ2QtbW9kdWxlcy9uYW1lc3BhY2UnXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc3RhdGUvU3RhdGUnXG5pbXBvcnQgeyBVdGlsIH0gZnJvbSAnQGdkLW1vZHVsZXMvdXRpbHMnXG5cbmNvbnN0IElNRyA9IHJlcXVpcmUoJ0BnZC1tb2R1bGVzL2ltYWdlcy9jbG91ZC5qcGcnKVxuXG5jbGFzcyBDbG91ZCB7XG4gIGNvbnN0cnVjdG9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Q0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/weather/type/Cloud.js\n");
- /***/ }),
- /***/ "./modules/weather/type/Fog.js":
- /*!*************************************!*\
- !*** ./modules/weather/type/Fog.js ***!
- \*************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-02-26 23:05:44\n */\n\n\n\n\nvar FogShader = __webpack_require__(/*! @gd-modules/material/shader/weather/FogShader.glsl */ \"./modules/material/shader/weather/FogShader.glsl\");\n\nvar Fog = /*#__PURE__*/function () {\n function Fog() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Fog);\n\n this._id = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"Util\"].uuid();\n this._viewer = undefined;\n this._delegate = undefined;\n this._enable = false;\n this._fogByDistance = {\n near: 10,\n nearValue: 0,\n far: 2000,\n farValue: 1.0\n };\n this._color = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Color(0, 0, 0, 1);\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Fog, [{\n key: \"type\",\n get: function get() {\n return 'fog';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"fogByDistance\",\n get: function get() {\n return this._fogByDistance;\n },\n set: function set(fogByDistance) {\n var _this$_fogByDistance, _this$_fogByDistance2, _this$_fogByDistance3, _this$_fogByDistance4;\n\n this._fogByDistance = fogByDistance;\n this._delegate && (this._delegate.uniforms.fogByDistance = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian4(((_this$_fogByDistance = this._fogByDistance) === null || _this$_fogByDistance === void 0 ? void 0 : _this$_fogByDistance.near) || 10, ((_this$_fogByDistance2 = this._fogByDistance) === null || _this$_fogByDistance2 === void 0 ? void 0 : _this$_fogByDistance2.nearValue) || 0.0, ((_this$_fogByDistance3 = this._fogByDistance) === null || _this$_fogByDistance3 === void 0 ? void 0 : _this$_fogByDistance3.far) || 2000, ((_this$_fogByDistance4 = this._fogByDistance) === null || _this$_fogByDistance4 === void 0 ? void 0 : _this$_fogByDistance4.farValue) || 1.0));\n return this;\n }\n }, {\n key: \"color\",\n get: function get() {\n return this._color;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(color) {\n this._color = color;\n this._delegate && (this._delegate.uniforms.fogColor = color);\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n var _this$_fogByDistance5, _this$_fogByDistance6, _this$_fogByDistance7, _this$_fogByDistance8;\n\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n name: this._id,\n fragmentShader: FogShader,\n uniforms: {\n fogByDistance: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].Cartesian4(((_this$_fogByDistance5 = this._fogByDistance) === null || _this$_fogByDistance5 === void 0 ? void 0 : _this$_fogByDistance5.near) || 10, ((_this$_fogByDistance6 = this._fogByDistance) === null || _this$_fogByDistance6 === void 0 ? void 0 : _this$_fogByDistance6.nearValue) || 0.0, ((_this$_fogByDistance7 = this._fogByDistance) === null || _this$_fogByDistance7 === void 0 ? void 0 : _this$_fogByDistance7.far) || 200, ((_this$_fogByDistance8 = this._fogByDistance) === null || _this$_fogByDistance8 === void 0 ? void 0 : _this$_fogByDistance8.farValue) || 1.0),\n fogColor: this._color\n }\n });\n\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n /**\n *\n * @param viewer\n * @returns {Fog}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return Fog;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Fog);//# sourceURL=[module]\n//#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AgIHRoaXMuX3N0YXRlID0gU3RhdGUuQURERURcbiAgICByZXR1cm4gdGhpc1xuICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEZvZ1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7OztBQVdBO0FBQ0E7QUFDQTtBQVhBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBOzs7QUFrQkE7QUFDQTtBQUNBO0FBZEE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQU9BO0FBQ0E7OztBQVdBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQVpBO0FBQ0E7QUFDQTtBQUNBOzs7QUFVQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBTUE7QUFQQTtBQUhBO0FBQ0E7QUFZQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/weather/type/Fog.js\n");
- /***/ }),
- /***/ "./modules/weather/type/Rain.js":
- /*!**************************************!*\
- !*** ./modules/weather/type/Rain.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-15 20:23:42\n */\n\n\n\n\nvar RainShader = __webpack_require__(/*! @gd-modules/material/shader/weather/RainShader.glsl */ \"./modules/material/shader/weather/RainShader.glsl\");\n\nvar Rain = /*#__PURE__*/function () {\n function Rain() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Rain);\n\n this._id = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"Util\"].uuid();\n this._viewer = undefined;\n this._delegate = undefined;\n this._enable = false;\n this._speed = 10.0;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Rain, [{\n key: \"type\",\n get: function get() {\n return 'rain';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"speed\",\n get: function get() {\n return this._speed;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(speed) {\n this._speed = speed;\n this._delegate && (this._delegate.uniforms.speed = speed);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n name: this._id,\n fragmentShader: RainShader,\n uniforms: {\n speed: this._speed\n }\n });\n\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n /**\n *\n * @param viewer\n * @returns {Rain}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return Rain;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Rain);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dlYXRoZXIvdHlwZS9SYWluLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93ZWF0aGVyL3R5cGUvUmFpbi5qcz8xN2ExIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTE1IDIwOjIzOjQyXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbS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TtBQUNBO0FBQ0E7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBOzs7QUFXQTtBQUNBO0FBQ0E7QUFYQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTs7O0FBWUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBYkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBVUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBREE7QUFIQTtBQUNBO0FBTUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/weather/type/Rain.js\n");
- /***/ }),
- /***/ "./modules/weather/type/Snow.js":
- /*!**************************************!*\
- !*** ./modules/weather/type/Snow.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-15 20:23:46\n */\n\n\n\n\nvar SnowShader = __webpack_require__(/*! @gd-modules/material/shader/weather/SnowShader.glsl */ \"./modules/material/shader/weather/SnowShader.glsl\");\n\nvar Snow = /*#__PURE__*/function () {\n function Snow() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Snow);\n\n this._id = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"Util\"].uuid();\n this._viewer = undefined;\n this._delegate = undefined;\n this._enable = false;\n this._speed = 10.0;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].INITIALIZED;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Snow, [{\n key: \"type\",\n get: function get() {\n return 'snow';\n }\n }, {\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n this._enable = enable;\n\n if (enable && this._viewer && !this._delegate) {\n this._createPostProcessStage();\n }\n\n this._delegate && (this._delegate.enabled = enable);\n return this;\n }\n }, {\n key: \"speed\",\n get: function get() {\n return this._speed;\n }\n /**\n *\n * @private\n */\n ,\n set: function set(speed) {\n this._speed = speed;\n this._delegate && (this._delegate.uniforms.speed = speed);\n return this;\n }\n }, {\n key: \"_createPostProcessStage\",\n value: function _createPostProcessStage() {\n this._delegate = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_2__[\"Cesium\"].PostProcessStage({\n name: this._id,\n fragmentShader: SnowShader,\n uniforms: {\n speed: this._speed\n }\n });\n\n this._viewer.scene.postProcessStages.add(this._delegate);\n }\n /**\n *\n * @param viewer\n * @returns {Snow}\n */\n\n }, {\n key: \"addTo\",\n value: function addTo(viewer) {\n if (!viewer) {\n return this;\n }\n\n this._viewer = viewer;\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_3__[\"default\"].ADDED;\n return this;\n }\n }]);\n\n return Snow;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Snow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dlYXRoZXIvdHlwZS9Tbm93LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93ZWF0aGVyL3R5cGUvU25vdy5qcz9kNDJlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTAxLTE1IDIwOjIzOjQ2XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IHsgVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuXG5jb25zdCBTbm93U2hhZGVyID0gcmVxdWlyZSgnQGdkLW1vZHVsZXMvbWF0ZXJpYWwvc2hhZGVyL3dlYXRoZXIvU25vd1NoYWRlci5nbHNsJylcblxuY2xhc3MgU25vdyB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMuX2lkID0gVXRpbC51dWlkKClcbiAgICB0aGlzLl92aWV3ZXIgPSB1bmRlZmluZWRcb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TtBQUFBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/weather/type/Snow.js\n");
- /***/ }),
- /***/ "./modules/widget/Widget.js":
- /*!**********************************!*\
- !*** ./modules/widget/Widget.js ***!
- \**********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _WidgetType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./WidgetType */ \"./modules/widget/WidgetType.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2020-01-15 19:17:52\n */\n\n\n\nvar Widget = /*#__PURE__*/function () {\n function Widget() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Widget);\n\n this._viewer = undefined;\n this._enable = false;\n this._wrapper = undefined;\n this._ready = false;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Widget, [{\n key: \"enable\",\n get: function get() {\n return this._enable;\n },\n set: function set(enable) {\n if (this._enable === enable) {\n return this;\n }\n\n this._enable = enable;\n this._state = this._enable ? _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_2__[\"default\"].ENABLED : _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_2__[\"default\"].DISABLED;\n this._enableHook && this._enableHook();\n return this;\n }\n }, {\n key: \"state\",\n get: function get() {\n return this._state;\n }\n /**\n * mount content\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {}\n /**\n * binds event\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {}\n /**\n * Unbinds event\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {}\n /**\n * When enable modifies the hook executed, the subclass copies it as required\n * @private\n */\n\n }, {\n key: \"_enableHook\",\n value: function _enableHook() {\n !this._ready && this._mountContent();\n\n if (this._enable) {\n !this._wrapper.parentNode && this._viewer.gdContainer.appendChild(this._wrapper);\n\n this._bindEvent();\n } else {\n this._unbindEvent();\n\n this._wrapper.parentNode && this._viewer.gdContainer.removeChild(this._wrapper);\n }\n }\n /**\n * Updating the Widget location requires subclass overrides\n * @param windowCoord\n * @private\n */\n\n }, {\n key: \"_updateWindowCoord\",\n value: function _updateWindowCoord(windowCoord) {}\n /**\n * Hook for installed\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {}\n /**\n * Installs to viewer\n * @param viewer\n */\n\n }, {\n key: \"install\",\n value: function install(viewer) {\n this._viewer = viewer;\n /**\n * do installHook\n */\n\n this._installHook && this._installHook();\n this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_2__[\"default\"].INSTALLED;\n }\n /**\n * Setting wrapper\n * @param wrapper\n * @returns {Widget}\n */\n\n }, {\n key: \"setWrapper\",\n value: function setWrapper(wrapper) {\n return this;\n }\n /**\n * Setting widget content\n * @param content\n * @returns {Widget}\n */\n\n }, {\n key: \"setContent\",\n value: function setContent(content) {\n if (content && typeof content === 'string') {\n this._wrapper.innerHTML = content;\n } else if (content && content instanceof Element) {\n while (this._wrapper.hasChildNodes()) {\n this._wrapper.removeChild(this._wrapper.firstChild);\n }\n\n this._wrapper.appendChild(content);\n }\n\n return this;\n }\n /**\n * hide widget\n */\n\n }, {\n key: \"hide\",\n value: function hide() {\n this._wrapper && (this._wrapper.style.cssText = \"\\n visibility:hidden;\\n \");\n }\n /**\n * Registers type\n * @param type\n */\n\n }], [{\n key: \"registerType\",\n value: function registerType(type) {\n if (type) {\n _WidgetType__WEBPACK_IMPORTED_MODULE_3__[\"default\"][type.toLocaleUpperCase()] = type.toLocaleLowerCase();\n }\n }\n /**\n *\n * @param type\n */\n\n }, {\n key: \"getWidgetType\",\n value: function getWidgetType(type) {\n return _WidgetType__WEBPACK_IMPORTED_MODULE_3__[\"default\"][type.toLocaleUpperCase()] || undefined;\n }\n }]);\n\n return Widget;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Widget);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC9XaWRnZXQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3dpZGdldC9XaWRnZXQuanM/ZDFhOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMS0xNSAxOToxNzo1MlxuICovXG5cbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBXaWRnZXRUeXBlIGZyb20gJy4vV2lkZ2V0VHlwZSdcblxuY2xhc3MgV2lkZ2V0IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgdGh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OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUlBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTs7Ozs7O0FBR0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/widget/Widget.js\n");
- /***/ }),
- /***/ "./modules/widget/WidgetType.js":
- /*!**************************************!*\
- !*** ./modules/widget/WidgetType.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/**\n * @Author: Caven\n * @Date: 2020-05-10 10:15:46\n */\nvar WidgetType = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (WidgetType);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC9XaWRnZXRUeXBlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aWRnZXQvV2lkZ2V0VHlwZS5qcz8zMTM0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA1LTEwIDEwOjE1OjQ2XG4gKi9cblxubGV0IFdpZGdldFR5cGUgPSB7fVxuXG5leHBvcnQgZGVmYXVsdCBXaWRnZXRUeXBlXG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/widget/WidgetType.js\n");
- /***/ }),
- /***/ "./modules/widget/index.js":
- /*!*********************************!*\
- !*** ./modules/widget/index.js ***!
- \*********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return createWidgets; });\n/* harmony import */ var _type_ContextMenu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type/ContextMenu */ \"./modules/widget/type/ContextMenu.js\");\n/* harmony import */ var _type_LocationBar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./type/LocationBar */ \"./modules/widget/type/LocationBar.js\");\n/* harmony import */ var _type_MapSplit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type/MapSplit */ \"./modules/widget/type/MapSplit.js\");\n/* harmony import */ var _type_MapSwitch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./type/MapSwitch */ \"./modules/widget/type/MapSwitch.js\");\n/* harmony import */ var _type_Popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./type/Popup */ \"./modules/widget/type/Popup.js\");\n/* harmony import */ var _type_Tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./type/Tooltip */ \"./modules/widget/type/Tooltip.js\");\n/* harmony import */ var _type_HawkeyeMap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./type/HawkeyeMap */ \"./modules/widget/type/HawkeyeMap.js\");\n/* harmony import */ var _type_Compass__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./type/Compass */ \"./modules/widget/type/Compass.js\");\n/* harmony import */ var _type_DistanceLegend__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./type/DistanceLegend */ \"./modules/widget/type/DistanceLegend.js\");\n/* harmony import */ var _type_ZoomController__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./type/ZoomController */ \"./modules/widget/type/ZoomController.js\");\n/* harmony import */ var _type_LoadingMask__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./type/LoadingMask */ \"./modules/widget/type/LoadingMask.js\");\n/**\n * @Author:Caven\n * @Date:2020-03-05 21:53:35\n */\n\n\n\n\n\n\n\n\n\n\n\nfunction createWidgets() {\n return {\n popup: new _type_Popup__WEBPACK_IMPORTED_MODULE_4__[\"default\"](),\n contextMenu: new _type_ContextMenu__WEBPACK_IMPORTED_MODULE_0__[\"default\"](),\n tooltip: new _type_Tooltip__WEBPACK_IMPORTED_MODULE_5__[\"default\"](),\n mapSwitch: new _type_MapSwitch__WEBPACK_IMPORTED_MODULE_3__[\"default\"](),\n mapSplit: new _type_MapSplit__WEBPACK_IMPORTED_MODULE_2__[\"default\"](),\n locationBar: new _type_LocationBar__WEBPACK_IMPORTED_MODULE_1__[\"default\"](),\n hawkeyeMap: new _type_HawkeyeMap__WEBPACK_IMPORTED_MODULE_6__[\"default\"](),\n compass: new _type_Compass__WEBPACK_IMPORTED_MODULE_7__[\"default\"](),\n distanceLegend: new _type_DistanceLegend__WEBPACK_IMPORTED_MODULE_8__[\"default\"](),\n zoomController: new _type_ZoomController__WEBPACK_IMPORTED_MODULE_9__[\"default\"](),\n loadingMask: new _type_LoadingMask__WEBPACK_IMPORTED_MODULE_10__[\"default\"]()\n };\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC9pbmRleC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvd2lkZ2V0L2luZGV4LmpzPzY5NmQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG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SGF3a2V5ZU1hcCgpLFxuICAgIGNvbXBhc3M6IG5ldyBDb21wYXNzKCksXG4gICAgZGlzdGFuY2VMZWdlbmQ6IG5ldyBEaXN0YW5jZUxlZ2VuZCgpLFxuICAgIHpvb21Db250cm9sbGVyOiBuZXcgWm9vbUNvbnRyb2xsZXIoKSxcbiAgICBsb2FkaW5nTWFzazogbmV3IExvYWRpbmdNYXNrKClcbiAgfVxufVxuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBWEE7QUFhQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/widget/index.js\n");
- /***/ }),
- /***/ "./modules/widget/type/Compass.js":
- /*!****************************************!*\
- !*** ./modules/widget/type/Compass.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/icons */ \"./modules/icons/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-19 13:11:12\n */\n\n\n\n\n\n\n\nvar Compass = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Compass, _Widget);\n\n var _super = _createSuper(Compass);\n\n function Compass() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Compass);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', \"gd-compass\");\n _this._compassRectangle = undefined;\n _this._outRing = undefined;\n _this._gyro = undefined;\n _this._rotation_marker = undefined;\n _this._orbitCursorAngle = 0;\n _this._orbitCursorOpacity = 0.0;\n _this._orbitLastTimestamp = 0;\n _this._orbitFrame = undefined;\n _this._orbitIsLook = false;\n _this._rotateInitialCursorAngle = undefined;\n _this._rotateFrame = undefined;\n _this._mouseMoveHandle = undefined;\n _this._mouseUpHandle = undefined;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Compass, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getWidgetType('compass');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n var _this2 = this;\n\n Object.defineProperty(this._viewer, 'compass', {\n value: this,\n writable: false\n });\n\n this._wrapper.onmousedown = function (e) {\n _this2._handleMouseDown(e);\n };\n\n this._wrapper.ondblclick = function (e) {\n _this2._handleDoubleClick(e);\n };\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_9__[\"SceneEventType\"].POST_RENDER, this._postRenderHandler, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_9__[\"SceneEventType\"].POST_RENDER, this._postRenderHandler, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_postRenderHandler\",\n value: function _postRenderHandler() {\n var heading = this._viewer.camera.heading;\n this._outRing && (this._outRing.style.cssText = \"\\n transform : rotate(-\".concat(heading, \"rad);\\n -webkit-transform : rotate(-\").concat(heading, \"rad);\\n \"));\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', 'out-ring-bg', this._wrapper);\n this._outRing = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].parseDom(_gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__[\"default\"].compass_outer, true, 'out-ring');\n\n this._wrapper.appendChild(this._outRing);\n\n this._gyro = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].parseDom(_gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__[\"default\"].compass_inner, true, 'gyro');\n\n this._wrapper.appendChild(this._gyro);\n\n this._rotation_marker = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].parseDom(_gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__[\"default\"].compass_rotation_marker, true, 'rotation_marker');\n\n this._wrapper.appendChild(this._rotation_marker);\n\n this._rotation_marker.style.visibility = 'hidden';\n this._ready = true;\n }\n }, {\n key: \"_handleMouseDown\",\n value: function _handleMouseDown(e) {\n var scene = this._viewer.scene;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.MORPHING) {\n return true;\n }\n\n this._compassRectangle = e.currentTarget.getBoundingClientRect();\n var maxDistance = this._compassRectangle.width / 2.0;\n\n var vector = this._getVector(e);\n\n var distanceFraction = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2.magnitude(vector) / maxDistance;\n\n if (distanceFraction < 50 / 145) {\n this._orbit(vector);\n } else if (distanceFraction < 1.0) {\n this._rotate(vector);\n } else {\n return true;\n }\n }\n }, {\n key: \"_handleDoubleClick\",\n value: function _handleDoubleClick() {\n var scene = this._viewer.scene;\n var camera = scene.camera;\n var sscc = scene.screenSpaceCameraController;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.MORPHING || !sscc.enableInputs) {\n return true;\n }\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.COLUMBUS_VIEW && !sscc.enableTranslate) {\n return;\n }\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE3D || scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.COLUMBUS_VIEW) {\n if (!sscc.enableLook) {\n return;\n }\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE3D) {\n if (!sscc.enableRotate) {\n return;\n }\n }\n }\n\n var center = this._getCameraFocus(true);\n\n if (!center) {\n return;\n }\n\n var cameraPosition = scene.globe.ellipsoid.cartographicToCartesian(camera.positionCartographic);\n var surfaceNormal = scene.globe.ellipsoid.geodeticSurfaceNormal(center);\n var focusBoundingSphere = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].BoundingSphere(center, 0);\n camera.flyToBoundingSphere(focusBoundingSphere, {\n offset: new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].HeadingPitchRange(0, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.PI_OVER_TWO - _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.angleBetween(surfaceNormal, camera.directionWC), _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.distance(cameraPosition, center)),\n duration: 1.5\n });\n }\n }, {\n key: \"_getCameraFocus\",\n value: function _getCameraFocus(inWorldCoordinates) {\n var result = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3();\n var scene = this._viewer.scene;\n var camera = scene.camera;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.MORPHING) {\n return undefined;\n }\n\n if (this._viewer.delegate.trackedEntity) {\n result = this._viewer.delegate.trackedEntity.position.getValue(this._viewer.clock.currentTime);\n } else {\n var rayScratch = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Ray();\n rayScratch.origin = camera.positionWC;\n rayScratch.direction = camera.directionWC;\n result = scene.globe.pick(rayScratch, scene);\n }\n\n if (!result) {\n return undefined;\n }\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE2D || scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.COLUMBUS_VIEW) {\n result = camera.worldToCameraCoordinatesPoint(result);\n var unprojectedScratch = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartographic();\n\n if (inWorldCoordinates) {\n result = scene.globe.ellipsoid.cartographicToCartesian(scene.mapProjection.unproject(result, unprojectedScratch));\n }\n } else {\n if (!inWorldCoordinates) {\n result = camera.worldToCameraCoordinatesPoint(result);\n }\n }\n\n return result;\n }\n }, {\n key: \"_orbit\",\n value: function _orbit(vector) {\n var _this3 = this;\n\n var scene = this._viewer.scene;\n var sscc = scene.screenSpaceCameraController;\n var camera = scene.camera;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.MORPHING || !sscc.enableInputs) {\n return;\n }\n\n switch (scene.mode) {\n case _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.COLUMBUS_VIEW:\n if (sscc.enableLook) {\n break;\n }\n\n if (!sscc.enableTranslate || !sscc.enableTilt) {\n return;\n }\n\n break;\n\n case _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE3D:\n if (sscc.enableLook) {\n break;\n }\n\n if (!sscc.enableTilt || !sscc.enableRotate) {\n return;\n }\n\n break;\n\n case _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE2D:\n if (!sscc.enableTranslate) {\n return;\n }\n\n break;\n }\n\n this._mouseMoveHandle = function (e) {\n _this3._orbitMouseMoveFunction(e);\n };\n\n this._mouseUpHandle = function () {\n _this3._orbitMouseUpFunction();\n };\n\n document.removeEventListener('mousemove', this._mouseMoveHandle, false);\n document.removeEventListener('mouseup', this._mouseUpHandle, false);\n this._orbitLastTimestamp = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].getTimestamp();\n\n if (this._viewer.delegate.trackedEntity) {\n this._orbitFrame = undefined;\n this._orbitIsLook = false;\n } else {\n var center = this._getCameraFocus(true);\n\n if (!center) {\n this._orbitFrame = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(camera.positionWC, scene.globe.ellipsoid);\n this._orbitIsLook = true;\n } else {\n this._orbitFrame = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(center, scene.globe.ellipsoid);\n this._orbitIsLook = false;\n }\n }\n\n this._rotation_marker.style.visibility = 'visible';\n this._gyro.className += ' gyro-active';\n document.addEventListener('mousemove', this._mouseMoveHandle, false);\n document.addEventListener('mouseup', this._mouseUpHandle, false);\n\n this._viewer.clock.onTick.addEventListener(this._orbitTickFunction, this);\n\n this._updateAngleAndOpacity(vector, this._compassRectangle.width);\n }\n }, {\n key: \"_orbitTickFunction\",\n value: function _orbitTickFunction() {\n var scene = this._viewer.scene;\n var camera = this._viewer.camera;\n var timestamp = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].getTimestamp();\n var deltaT = timestamp - this._orbitLastTimestamp;\n var rate = (this._orbitCursorOpacity - 0.5) * 2.5 / 1000;\n var distance = deltaT * rate;\n var angle = this._orbitCursorAngle + _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.PI_OVER_TWO;\n var x = Math.cos(angle) * distance;\n var y = Math.sin(angle) * distance;\n var oldTransform;\n\n if (this._orbitFrame) {\n oldTransform = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix4.clone(camera.transform);\n camera.lookAtTransform(this._orbitFrame);\n }\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE2D) {\n camera.move(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3(x, y, 0), Math.max(scene.canvas.clientWidth, scene.canvas.clientHeight) / 100 * camera.positionCartographic.height * distance);\n } else {\n if (this._orbitIsLook) {\n camera.look(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.UNIT_Z, -x);\n camera.look(camera.right, -y);\n } else {\n camera.rotateLeft(x);\n camera.rotateUp(y);\n }\n }\n\n if (this._orbitFrame && oldTransform) {\n camera.lookAtTransform(oldTransform);\n }\n\n this._orbitLastTimestamp = timestamp;\n }\n }, {\n key: \"_updateAngleAndOpacity\",\n value: function _updateAngleAndOpacity(vector, compassWidth) {\n var angle = Math.atan2(-vector.y, vector.x);\n this._orbitCursorAngle = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.zeroToTwoPi(angle - _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.PI_OVER_TWO);\n var distance = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2.magnitude(vector);\n var maxDistance = compassWidth / 2.0;\n var distanceFraction = Math.min(distance / maxDistance, 1.0);\n this._orbitCursorOpacity = 0.5 * distanceFraction * distanceFraction + 0.5;\n this._rotation_marker.style.cssText = \"\\n transform: rotate(-\".concat(this._orbitCursorAngle, \"rad);\\n opacity: \").concat(this._orbitCursorOpacity);\n }\n }, {\n key: \"_orbitMouseMoveFunction\",\n value: function _orbitMouseMoveFunction(e) {\n this._updateAngleAndOpacity(this._getVector(e), this._compassRectangle.width);\n }\n }, {\n key: \"_orbitMouseUpFunction\",\n value: function _orbitMouseUpFunction() {\n document.removeEventListener('mousemove', this._mouseMoveHandle, false);\n document.removeEventListener('mouseup', this._mouseUpHandle, false);\n\n this._viewer.clock.onTick.removeEventListener(this._orbitTickFunction, this);\n\n this._mouseMoveHandle = undefined;\n this._mouseUpHandle = undefined;\n this._rotation_marker.style.visibility = 'hidden';\n this._gyro.className = this._gyro.className.replace(' gyro-active', '');\n }\n }, {\n key: \"_rotate\",\n value: function _rotate(vector) {\n var _this4 = this;\n\n var scene = this._viewer.scene;\n var camera = scene.camera;\n var sscc = scene.screenSpaceCameraController;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.MORPHING || scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE2D || !sscc.enableInputs) {\n return;\n }\n\n if (!sscc.enableLook && (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.COLUMBUS_VIEW || scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE3D && !sscc.enableRotate)) {\n return;\n }\n\n this._mouseMoveHandle = function (e) {\n _this4._rotateMouseMoveFunction(e);\n };\n\n this._mouseUpHandle = function () {\n _this4._rotateMouseUpFunction();\n };\n\n document.removeEventListener('mousemove', this._mouseMoveHandle, false);\n document.removeEventListener('mouseup', this._mouseUpHandle, false);\n this._rotateInitialCursorAngle = Math.atan2(-vector.y, vector.x);\n\n if (this._viewer.delegate.trackedEntity) {\n this._rotateFrame = undefined;\n } else {\n var center = this._getCameraFocus(true);\n\n if (!center || scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.COLUMBUS_VIEW && !sscc.enableLook && !sscc.enableTranslate) {\n this._rotateFrame = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(camera.positionWC, scene.globe.ellipsoid);\n } else {\n this._rotateFrame = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Transforms.eastNorthUpToFixedFrame(center, scene.globe.ellipsoid);\n }\n }\n\n var oldTransform;\n\n if (this._rotateFrame) {\n oldTransform = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix4.clone(camera.transform);\n camera.lookAtTransform(this._rotateFrame);\n }\n\n this._rotateInitialCameraAngle = -camera.heading;\n\n if (this._rotateFrame && oldTransform) {\n camera.lookAtTransform(oldTransform);\n }\n\n document.addEventListener('mousemove', this._mouseMoveHandle, false);\n document.addEventListener('mouseup', this._mouseUpHandle, false);\n }\n }, {\n key: \"_rotateMouseMoveFunction\",\n value: function _rotateMouseMoveFunction(e) {\n var camera = this._viewer.camera;\n\n var vector = this._getVector(e);\n\n var angle = Math.atan2(-vector.y, vector.x);\n var angleDifference = angle - this._rotateInitialCursorAngle;\n var newCameraAngle = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.zeroToTwoPi(this._rotateInitialCameraAngle - angleDifference);\n var oldTransform;\n\n if (this._rotateFrame) {\n oldTransform = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Matrix4.clone(camera.transform);\n camera.lookAtTransform(this._rotateFrame);\n }\n\n var currentCameraAngle = -camera.heading;\n camera.rotateRight(newCameraAngle - currentCameraAngle);\n\n if (this._rotateFrame && oldTransform) {\n camera.lookAtTransform(oldTransform);\n }\n }\n }, {\n key: \"_rotateMouseUpFunction\",\n value: function _rotateMouseUpFunction() {\n document.removeEventListener('mousemove', this._mouseMoveHandle, false);\n document.removeEventListener('mouseup', this._mouseUpHandle, false);\n this._mouseMoveHandle = undefined;\n this._mouseUpHandle = undefined;\n }\n }, {\n key: \"_getVector\",\n value: function _getVector(e) {\n var compassRectangle = this._compassRectangle;\n var center = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2((compassRectangle.right - compassRectangle.left) / 2.0, (compassRectangle.bottom - compassRectangle.top) / 2.0);\n var clickLocation = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2(e.clientX - compassRectangle.left, e.clientY - compassRectangle.top);\n var vector = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2();\n _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian2.subtract(clickLocation, center, vector);\n return vector;\n }\n }]);\n\n return Compass;\n}(_Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('compass');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Compass);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL0NvbXBhc3MuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3dpZGdldC90eXBlL0NvbXBhc3MuanM/MTEyMyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMy0xOSAxMzoxMToxMlxuICovXG5cbmltcG9ydCB7IENlc2l1bSB9IGZyb20gJ0BnZC1tb2R1bGVzL25hbWVzcGFjZSdcbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCBJY29ucyBmcm9tICdAZ2QtbW9kdWxlcy9pY29ucydcbmltcG9ydCB7IERvbVV0aWwgfSBm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s7QUFFQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBR0E7OztBQUVBO0FBQ0E7QUFJQTs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUtBO0FBQ0E7QUFDQTtBQUFBO0FBS0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBTUE7QUFJQTtBQUNBO0FBSUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBOzs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUVBO0FBQ0E7QUFDQTtBQUlBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7Ozs7QUFwYkE7QUFDQTtBQXNiQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/widget/type/Compass.js\n");
- /***/ }),
- /***/ "./modules/widget/type/ContextMenu.js":
- /*!********************************************!*\
- !*** ./modules/widget/type/ContextMenu.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n/* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2019-12-31 17:32:01\n */\n\n\n\n\n\nvar ContextMenu = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(ContextMenu, _Widget);\n\n var _super = _createSuper(ContextMenu);\n\n function ContextMenu() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ContextMenu);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', 'gd-context-menu');\n _this._ulEl = undefined;\n _this._handler = undefined;\n _this._overlay = undefined;\n _this._position = undefined;\n _this._wgs84Position = undefined;\n _this._surfacePosition = undefined;\n _this._wgs84SurfacePosition = undefined;\n _this._windowPosition = undefined;\n _this._instanceId = undefined;\n _this._config = {};\n _this._defaultMenu = [{\n label: '飞到默认位置',\n callback: function callback() {\n _this._viewer.camera.flyHome(1.5);\n },\n context: _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this)\n }, {\n label: '取消飞行',\n callback: function callback() {\n _this._viewer.camera.cancelFlight();\n },\n context: _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default()(_this)\n }];\n _this._overlayMenu = [];\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ContextMenu, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getWidgetType('contextmenu');\n }\n }, {\n key: \"DEFAULT_MENU\",\n set: function set(menus) {\n this._defaultMenu = menus;\n return this;\n }\n }, {\n key: \"config\",\n set: function set(config) {\n this._config = config;\n config.customClass && this._setCustomClass();\n return this;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n Object.defineProperty(this._viewer, 'contextMenu', {\n value: this,\n writable: false\n });\n this._handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ScreenSpaceEventHandler(this._viewer.canvas);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n var _this2 = this;\n\n this._handler.setInputAction(function (movement) {\n _this2._onRightClick(movement);\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n\n this._handler.setInputAction(function (movement) {\n _this2._onClick(movement);\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ScreenSpaceEventType.RIGHT_CLICK);\n\n this._handler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ScreenSpaceEventType.LEFT_CLICK);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n this._ulEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('ul', 'menu-list', this._wrapper);\n this._ready = true;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountMenu\",\n value: function _mountMenu() {\n var _this3 = this;\n\n while (this._ulEl.hasChildNodes()) {\n this._ulEl.removeChild(this._ulEl.firstChild);\n } // Add menu item\n\n\n if (this._overlayMenu && this._overlayMenu.length) {\n this._overlayMenu.forEach(function (item) {\n _this3._addMenuItem(item.label, item.callback, item.context || _this3);\n });\n }\n\n if (this._defaultMenu && this._defaultMenu.length) {\n this._defaultMenu.forEach(function (item) {\n _this3._addMenuItem(item.label, item.callback, item.context || _this3);\n });\n }\n }\n /**\n *\n * @param movement\n * @private\n */\n\n }, {\n key: \"_onRightClick\",\n value: function _onRightClick(movement) {\n var _this$_overlay;\n\n if (!this._enable) {\n return;\n }\n\n this._overlay = undefined;\n var scene = this._viewer.scene;\n this._windowPosition = movement.position;\n var target = scene.pick(movement.position);\n\n if (scene.pickPositionSupported) {\n this._position = scene.pickPosition(movement.position);\n }\n\n if (this._position) {\n var c = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(this._position);\n\n if (c) {\n this._wgs84Position = {\n lng: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(c.longitude),\n lat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(c.latitude),\n alt: c.height\n };\n }\n }\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].SceneMode.SCENE3D) {\n var ray = scene.camera.getPickRay(movement.position);\n this._surfacePosition = scene.globe.pick(ray, scene);\n } else {\n this._surfacePosition = scene.camera.pickEllipsoid(movement.position, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Ellipsoid.WGS84);\n }\n\n if (this._surfacePosition) {\n var _c = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Ellipsoid.WGS84.cartesianToCartographic(this._surfacePosition);\n\n if (_c) {\n this._wgs84SurfacePosition = {\n lng: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(_c.longitude),\n lat: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(_c.latitude),\n alt: _c.height\n };\n }\n }\n\n this._instanceId = target === null || target === void 0 ? void 0 : target.instanceId; // for Entity\n\n if ((target === null || target === void 0 ? void 0 : target.id) instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Entity) {\n var layer = this._viewer.getLayers().filter(function (item) {\n return item.layerId === target.id.layerId;\n })[0];\n\n if (layer && layer.getOverlay) {\n this._overlay = layer.getOverlay(target.id.overlayId);\n }\n } // for Cesium3DTileFeature\n else if (target instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cesium3DTileFeature) {\n var _layer = this._viewer.getLayers().filter(function (item) {\n return item.layerId === target.tileset.layerId;\n })[0];\n\n if (_layer && _layer.getOverlay) {\n this._overlay = _layer.getOverlay(target.tileset.overlayId);\n }\n } // for Cesium3DTileset\n else if ((target === null || target === void 0 ? void 0 : target.primitive) instanceof _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cesium3DTileset) {\n var _layer2 = this._viewer.getLayers().filter(function (item) {\n return item.layerId === target.primitive.layerId;\n })[0];\n\n if (_layer2 && _layer2.getOverlay) {\n this._overlay = _layer2.getOverlay(target.primitive.overlayId);\n }\n } // for Primitve\n else if (target !== null && target !== void 0 && target.primitive) {\n var _layer3 = this._viewer.getLayers().filter(function (item) {\n return item.layerId === target.primitive.layerId;\n })[0];\n\n if (_layer3 && _layer3.getOverlay) {\n this._overlay = _layer3.getOverlay(target.primitive.overlayId);\n }\n }\n\n this._overlayMenu = ((_this$_overlay = this._overlay) === null || _this$_overlay === void 0 ? void 0 : _this$_overlay.contextMenu) || [];\n\n this._mountMenu();\n\n this._updateWindowCoord(movement.position);\n }\n /**\n *\n * @param movement\n * @private\n */\n\n }, {\n key: \"_onClick\",\n value: function _onClick(movement) {\n this.hide();\n }\n /**\n *\n * @param windowCoord\n * @private\n */\n\n }, {\n key: \"_updateWindowCoord\",\n value: function _updateWindowCoord(windowCoord) {\n var visibility = this._ulEl.hasChildNodes() ? 'visible' : 'hidden';\n this._wrapper.style.cssText = \"\\n visibility:\".concat(visibility, \";\\n z-index:1;\\n transform:translate3d(\").concat(Math.round(windowCoord.x), \"px,\").concat(Math.round(windowCoord.y), \"px, 0);\\n \");\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_setCustomClass\",\n value: function _setCustomClass() {\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].setClass(this._wrapper, \"gd-context-menu \".concat(this._config.customClass));\n }\n /**\n *\n * @param label\n * @param method\n * @param context\n * @returns {ContextMenu}\n * @private\n */\n\n }, {\n key: \"_addMenuItem\",\n value: function _addMenuItem(label, method, context) {\n if (!label || !method) {\n return this;\n }\n\n var menu = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('li', 'menu-item', null);\n var a = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('a', '', menu);\n a.innerHTML = label;\n a.href = 'javascript:void(0)';\n var self = this;\n\n if (method) {\n a.onclick = function () {\n method.call(context, {\n windowPosition: self._windowPosition,\n position: self._position,\n wgs84Position: self._wgs84Position,\n surfacePosition: self._surfacePosition,\n wgs84SurfacePosition: self._wgs84SurfacePosition,\n overlay: self._overlay,\n instanceId: self._instanceId\n });\n self.hide();\n };\n }\n\n this._ulEl.appendChild(menu);\n\n return this;\n }\n }]);\n\n return ContextMenu;\n}(_Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('contextmenu');\n/* harmony default export */ __webpack_exports__[\"default\"] = (ContextMenu);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL0NvbnRleHRNZW51LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aWRnZXQvdHlwZS9Db250ZXh0TWVudS5qcz8z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NBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFQQTtBQVNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7Ozs7QUF4UkE7QUFDQTtBQTBSQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/widget/type/ContextMenu.js\n");
- /***/ }),
- /***/ "./modules/widget/type/DistanceLegend.js":
- /*!***********************************************!*\
- !*** ./modules/widget/type/DistanceLegend.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ \"./node_modules/@babel/runtime/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-12-09 20:54:06\n */\n\n\n\n\n\nvar geodesic = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].EllipsoidGeodesic();\nvar BASE = [1, 2, 3, 5];\nvar DIS = [].concat(BASE, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5___default()(BASE.map(function (item) {\n return item * 10;\n})), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5___default()(BASE.map(function (item) {\n return item * 100;\n})), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5___default()(BASE.map(function (item) {\n return item * 1000;\n})), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5___default()(BASE.map(function (item) {\n return item * 10000;\n})), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5___default()(BASE.map(function (item) {\n return item * 100000;\n})), _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5___default()(BASE.map(function (item) {\n return item * 1000000;\n})));\n\nvar DistanceLegend = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(DistanceLegend, _Widget);\n\n var _super = _createSuper(DistanceLegend);\n\n function DistanceLegend() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, DistanceLegend);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', 'gd-distance-legend');\n _this._labelEl = undefined;\n _this._scaleBarEl = undefined;\n _this._lastUpdate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].getTimestamp();\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(DistanceLegend, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getWidgetType('distance_legend');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n Object.defineProperty(this._viewer, 'distanceLegend', {\n value: this,\n writable: false\n });\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_9__[\"SceneEventType\"].POST_RENDER, this._updateContent, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_9__[\"SceneEventType\"].POST_RENDER, this._updateContent, this);\n }\n /**\n *\n * @param scene\n * @param time\n * @returns\n * @private\n */\n\n }, {\n key: \"_updateContent\",\n value: function _updateContent(scene, time) {\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].getTimestamp();\n\n if (now < this._lastUpdate + 250) {\n return;\n }\n\n if (!this._labelEl || !this._scaleBarEl) {\n return;\n }\n\n this._lastUpdate = now;\n var width = scene.canvas.width;\n var height = scene.canvas.height;\n var left = scene.camera.getPickRay(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian2(width / 2 | 0, height - 1));\n var right = scene.camera.getPickRay(new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian2(1 + width / 2 | 0, height - 1));\n var leftPosition = scene.globe.pick(left, scene);\n var rightPosition = scene.globe.pick(right, scene);\n\n if (!leftPosition || !rightPosition) {\n return;\n }\n\n geodesic.setEndPoints(scene.globe.ellipsoid.cartesianToCartographic(leftPosition), scene.globe.ellipsoid.cartesianToCartographic(rightPosition));\n var pixelDistance = geodesic.surfaceDistance;\n var maxBarWidth = 100;\n var distance = 0;\n\n for (var i = DIS.length - 1; i >= 0; --i) {\n if (DIS[i] / pixelDistance < maxBarWidth) {\n distance = DIS[i];\n break;\n }\n }\n\n if (distance) {\n this._wrapper.style.visibility = 'visible';\n this._labelEl.innerHTML = distance >= 1000 ? \"\".concat(distance / 1000, \" km\") : \"\".concat(distance, \" m\");\n var barWidth = distance / pixelDistance | 0;\n this._scaleBarEl.style.cssText = \"width: \".concat(barWidth, \"px; left: \").concat((125 - barWidth) / 2, \"px;\");\n }\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n this._labelEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', 'label', this._wrapper);\n this._scaleBarEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', 'scale-bar', this._wrapper);\n this._wrapper.style.visibility = 'hidden';\n this._ready = true;\n }\n }]);\n\n return DistanceLegend;\n}(_Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('distance_legend');\n/* harmony default export */ __webpack_exports__[\"default\"] = (DistanceLegend);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL0Rpc3RhbmNlTGVnZW5kLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aWRnZXQvdHlwZS9EaXN0YW5jZUxlZ2VuZC5qcz9kNTVlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTEyLTA5IDIwOjU0OjA2XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IHsgRG9tVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IHsgU2NlbmVFdmVudFR5cGUgfSBmcm9tICdAZ2QtbW9kdWxlcy9ldmVudCdcbmltcG9ydCBXaWRnZXQgZnJvbSAnLi4vV2lkZ2V0J1xuXG5jb25zdCBnZW9kZXNpYyA9IG5ldyBDZXNpdW0uRWxsaXBzb2lkR2VvZGVzaWMoKVxuXG5jb25zdCBCQVNFID0gWzEsIDIsIDMsIDVdXG5cbmNvbnN0IERJUyA9IFtcbiAgLi4uQkFTRSxcbiAgLi4uQkFTRS5tYXAoaXRlbSA9PiBpdGVtICogMTApLFxuICAuLi5CQVNFLm1hcChpdGVtID0+IGl0ZW0gKiAxMDApLFxuICAuLi5CQVNFLm1hcChpdGVtID0+IGl0ZW0gKiAxMDAwKSxcbiAgLi4uQkFTRS5tYXAo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Q0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUdBO0FBR0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUlBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBR0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXZHQTtBQUNBO0FBeUdBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/widget/type/DistanceLegend.js\n");
- /***/ }),
- /***/ "./modules/widget/type/HawkeyeMap.js":
- /*!*******************************************!*\
- !*** ./modules/widget/type/HawkeyeMap.js ***!
- \*******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-15 17:47:42\n */\n\n\n\n\n\nvar DEF_OPTS = {\n animation: false,\n baseLayerPicker: false,\n imageryProvider: false,\n fullscreenButton: false,\n geocoder: false,\n homeButton: false,\n infoBox: false,\n sceneModePicker: false,\n selectionIndicator: false,\n timeline: false,\n navigationHelpButton: false,\n navigationInstructionsInitiallyVisible: false,\n creditContainer: undefined\n};\n\nvar HawkeyeMap = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(HawkeyeMap, _Widget);\n\n var _super = _createSuper(HawkeyeMap);\n\n function HawkeyeMap() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, HawkeyeMap);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', 'gd-hawkeye-map', null);\n\n _this._wrapper.setAttribute('id', _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].uuid());\n\n _this._baseLayers = [];\n _this._map = undefined;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(HawkeyeMap, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getWidgetType('hawkeye_map');\n }\n }, {\n key: \"baseLayers\",\n get: function get() {\n return this._baseLayers;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n var map = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Viewer(this._wrapper, _objectSpread(_objectSpread({}, DEF_OPTS), {}, {\n sceneMode: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].SceneMode.SCENE2D\n }));\n map.imageryLayers.removeAll();\n map.cesiumWidget.creditContainer.style.display = 'none';\n map.cesiumWidget.screenSpaceEventHandler.removeInputAction(_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOUBLE_CLICK);\n map.scene.backgroundColor = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Color.TRANSPARENT;\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"Util\"].merge(map.scene.screenSpaceCameraController, {\n enableRotate: false,\n enableTranslate: false,\n enableZoom: false,\n enableTilt: false,\n enableLook: false,\n maximumZoomDistance: 40489014.0\n });\n this._map = map;\n this._ready = true;\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_9__[\"SceneEventType\"].CAMERA_CHANGED, this._syncMap, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_9__[\"SceneEventType\"].CAMERA_CHANGED, this._syncMap, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n Object.defineProperty(this._viewer, 'hawkeyeMap', {\n value: this,\n writable: false\n });\n this._viewer.camera.percentageChanged = 0.01;\n }\n /**\n *\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_syncMap\",\n value: function _syncMap() {\n var viewCenter = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian2(Math.floor(this._viewer.canvas.clientWidth / 2), Math.floor(this._viewer.canvas.clientHeight / 2));\n\n var worldPosition = this._viewer.scene.camera.pickEllipsoid(viewCenter);\n\n if (!worldPosition) {\n return false;\n }\n\n var distance = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.distance(worldPosition, this._viewer.scene.camera.positionWC);\n\n this._map.scene.camera.lookAt(worldPosition, new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3(0.0, 0.0, distance));\n }\n /**\n *\n * @param baseLayer\n * @returns {HawkeyeMap}\n */\n\n }, {\n key: \"addBaseLayer\",\n value: function addBaseLayer(baseLayer) {\n var _this2 = this;\n\n if (!this._map || !this._enable) {\n return this;\n }\n\n if (baseLayer) {\n if (this._baseLayers && this._baseLayers.length) {\n this._map.imageryLayers.removeAll();\n }\n\n if (!Array.isArray(baseLayer)) {\n baseLayer = [baseLayer];\n }\n\n baseLayer.forEach(function (item) {\n _this2._baseLayers.push(_this2._map.imageryLayers.addImageryProvider(item));\n });\n }\n\n return this;\n }\n }]);\n\n return HawkeyeMap;\n}(_Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_10__[\"default\"].registerType('hawkeye_map');\n/* harmony default export */ __webpack_exports__[\"default\"] = (HawkeyeMap);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL0hhd2tleWVNYXAuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3dpZGdldC90eXBlL0hhd2tleWVNYXAuanM/NDJmNSJdLCJzb3VyY2VzQ29udGVudCI6Wy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0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBR0E7QUFJQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTs7OztBQXZIQTtBQUNBO0FBeUhBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/widget/type/HawkeyeMap.js\n");
- /***/ }),
- /***/ "./modules/widget/type/LoadingMask.js":
- /*!********************************************!*\
- !*** ./modules/widget/type/LoadingMask.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Liquid\n * @Date: 2021-03-02 13:38:48\n */\n\n\n\n\nvar LoadingMask = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LoadingMask, _Widget);\n\n var _super = _createSuper(LoadingMask);\n\n function LoadingMask() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LoadingMask);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__[\"DomUtil\"].create('div', 'gd-loading-mask');\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LoadingMask, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getWidgetType('loading_mask');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n Object.defineProperty(this._viewer, 'loadingMask', {\n value: this,\n writable: false\n });\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n var el = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__[\"DomUtil\"].parseDom(\"\\n <span></span>\\n <span></span>\\n <span></span>\\n <span></span>\\n <span></span>\\n \", true, 'loading');\n\n this._wrapper.appendChild(el);\n\n this._ready = true;\n }\n }]);\n\n return LoadingMask;\n}(_Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('loading_mask');\n/* harmony default export */ __webpack_exports__[\"default\"] = (LoadingMask);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL0xvYWRpbmdNYXNrLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aWRnZXQvdHlwZS9Mb2FkaW5nTWFzay5qcz8wN2U4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogTGlxdWlkXG4gKiBARGF0ZTogMjAyMS0wMy0wMiAxMzozODo0OFxuICovXG5cbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCB7IERvbVV0aWwgfSBmcm9tICdAZ2QtbW9kdWxlcy91dGlscydcbmltcG9ydCBXaWRnZXQgZnJvbSAnLi4vV2lkZ2V0J1xuXG5jbGFzcyBMb2FkaW5nTWFzayBleHRlbmRzIFdpZGdldCB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKClcbiAgICB0aGlzLl93cmFwcGVyID0gRG9tVXRpbC5jcmVhdGUoJ2RpdicsICdnZC1sb2FkaW5nLW1hc2snKVxuICAgIHRoaXMuX3N0YXRlID0gU3RhdGUuSU5J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QTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUZBO0FBSUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFVQTtBQUNBO0FBQUE7QUFDQTs7OztBQXhDQTtBQUNBO0FBMENBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/widget/type/LoadingMask.js\n");
- /***/ }),
- /***/ "./modules/widget/type/LocationBar.js":
- /*!********************************************!*\
- !*** ./modules/widget/type/LocationBar.js ***!
- \********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-04 18:02:32\n */\n\n\n\n\n\n\nvar LocationBar = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(LocationBar, _Widget);\n\n var _super = _createSuper(LocationBar);\n\n function LocationBar() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, LocationBar);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"DomUtil\"].create('div', 'gd-location-bar');\n _this._mouseEl = undefined;\n _this._cameraEl = undefined;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n _this._lastMouseUpdate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].getTimestamp();\n _this._lastCameraUpdate = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].getTimestamp();\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(LocationBar, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getWidgetType('location_bar');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n Object.defineProperty(this._viewer, 'locationBar', {\n value: this,\n writable: false\n });\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].MOUSE_MOVE, this._moveHandler, this);\n\n this._viewer.on(_gd_modules_event__WEBPACK_IMPORTED_MODULE_8__[\"SceneEventType\"].CAMERA_CHANGED, this._cameraHandler, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_8__[\"MouseEventType\"].MOUSE_MOVE, this._moveHandler, this);\n\n this._viewer.off(_gd_modules_event__WEBPACK_IMPORTED_MODULE_8__[\"SceneEventType\"].CAMERA_CHANGED, this._cameraHandler, this);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n this._mouseEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"DomUtil\"].create('div', 'mouse-location', this._wrapper);\n this._cameraEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"DomUtil\"].create('div', 'camera-location', this._wrapper);\n this._ready = true;\n }\n /**\n *\n * @param e\n * @private\n */\n\n }, {\n key: \"_moveHandler\",\n value: function _moveHandler(e) {\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].getTimestamp();\n\n if (now < this._lastMouseUpdate + 300) {\n return;\n }\n\n this._lastMouseUpdate = now;\n var ellipsoid = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Ellipsoid.WGS84;\n var cartographic = e.surfacePosition ? ellipsoid.cartesianToCartographic(e.surfacePosition) : undefined;\n var lng = +_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toDegrees((cartographic === null || cartographic === void 0 ? void 0 : cartographic.longitude) || 0);\n var lat = +_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Math.toDegrees((cartographic === null || cartographic === void 0 ? void 0 : cartographic.latitude) || 0);\n var alt = cartographic ? +this._viewer.scene.globe.getHeight(cartographic) : 0;\n this._mouseEl.innerHTML = \"\\n <span>\\u7ECF\\u5EA6\\uFF1A\".concat(lng.toFixed(8), \"</span>\\n <span>\\u7EAC\\u5EA6\\uFF1A\").concat(lat.toFixed(8), \"</span>\\n <span>\\u6D77\\u62D4\\uFF1A\").concat(alt.toFixed(2), \" \\u7C73</span>\");\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_cameraHandler\",\n value: function _cameraHandler() {\n var now = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].getTimestamp();\n\n if (now < this._lastCameraUpdate + 300) {\n return;\n }\n\n this._lastCameraUpdate = now;\n var cameraPosition = this._viewer.cameraPosition;\n this._cameraEl.innerHTML = \"\\n <span>\\u89C6\\u89D2\\uFF1A\".concat((+cameraPosition.pitch).toFixed(2), \"</span>\\n <span>\\u89C6\\u9AD8\\uFF1A\").concat((+cameraPosition.alt).toFixed(2), \" \\u7C73</span>\\n \");\n }\n }]);\n\n return LocationBar;\n}(_Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('location_bar');\n/* harmony default export */ __webpack_exports__[\"default\"] = (LocationBar);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL0xvY2F0aW9uQmFyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aWRnZXQvdHlwZS9Mb2NhdGlvbkJhci5qcz82MTM4Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIE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BQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBR0E7QUFJQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBSUE7Ozs7QUEvRkE7QUFDQTtBQWlHQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/widget/type/LocationBar.js\n");
- /***/ }),
- /***/ "./modules/widget/type/MapSplit.js":
- /*!*****************************************!*\
- !*** ./modules/widget/type/MapSplit.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/icons */ \"./modules/icons/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-03-04 15:38:40\n */\n\n\n\n\n\n\nvar MapSplit = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(MapSplit, _Widget);\n\n var _super = _createSuper(MapSplit);\n\n function MapSplit() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MapSplit);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', 'gd-slider');\n _this._baseLayer = undefined;\n _this._moveActive = false;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MapSplit, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getWidgetType('map_split');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n Object.defineProperty(this._viewer, 'mapSplit', {\n value: this,\n writable: false\n });\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n this._viewer.scene.imagerySplitPosition = 0.5;\n this._wrapper.style.left = '50%';\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_unbindEvent\",\n value: function _unbindEvent() {\n if (this._baseLayer) {\n this._viewer.scene.imagerySplitPosition = this._baseLayer.splitDirection > 0 ? 1 : 0;\n } else {\n this._viewer.scene.imagerySplitPosition = 0;\n }\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n var splitter = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].parseDom(_gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__[\"default\"].splitter, true, 'splitter');\n\n this._wrapper.appendChild(splitter);\n\n var handler = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ScreenSpaceEventHandler(splitter);\n var self = this;\n handler.setInputAction(function () {\n self._moveActive = true;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ScreenSpaceEventType.LEFT_DOWN);\n handler.setInputAction(function () {\n self._moveActive = true;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ScreenSpaceEventType.PINCH_START);\n handler.setInputAction(function (movement) {\n self._moveHandler(movement);\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ScreenSpaceEventType.MOUSE_MOVE);\n handler.setInputAction(function (movement) {\n self._moveHandler(movement);\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ScreenSpaceEventType.PINCH_MOVE);\n handler.setInputAction(function () {\n self._moveActive = false;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ScreenSpaceEventType.LEFT_UP);\n handler.setInputAction(function () {\n self._moveActive = false;\n }, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].ScreenSpaceEventType.PINCH_END);\n this._ready = true;\n }\n /**\n *\n * @param movement\n * @private\n */\n\n }, {\n key: \"_moveHandler\",\n value: function _moveHandler(movement) {\n if (!this._moveActive || !this._enable) {\n return;\n }\n\n var relativeOffset = movement.endPosition.x;\n var splitPosition = (this._wrapper.offsetLeft + relativeOffset) / this._wrapper.parentElement.offsetWidth;\n this._wrapper.style.left = 100.0 * splitPosition + '%';\n this._viewer.scene.imagerySplitPosition = splitPosition;\n }\n /**\n *\n * @param baseLayer\n * @param splitDirection\n * @returns {MapSplit}\n */\n\n }, {\n key: \"addBaseLayer\",\n value: function addBaseLayer(baseLayer) {\n var splitDirection = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n if (!this._viewer || !this._enable) {\n return this;\n }\n\n if (baseLayer) {\n this._baseLayer && this._viewer.imageryLayers.remove(this._baseLayer);\n this._baseLayer = this._viewer.imageryLayers.addImageryProvider(baseLayer);\n this._baseLayer.splitDirection = splitDirection || 0;\n this._viewer.scene.imagerySplitPosition = this._wrapper.offsetLeft / this._wrapper.parentElement.offsetWidth;\n }\n\n return this;\n }\n }]);\n\n return MapSplit;\n}(_Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('map_split');\n/* harmony default export */ __webpack_exports__[\"default\"] = (MapSplit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL01hcFNwbGl0LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aWRnZXQvdHlwZS9NYXBTcGxpdC5qcz8xZWM0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlO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ztBQWxIQTtBQUNBO0FBb0hBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/widget/type/MapSplit.js\n");
- /***/ }),
- /***/ "./modules/widget/type/MapSwitch.js":
- /*!******************************************!*\
- !*** ./modules/widget/type/MapSwitch.js ***!
- \******************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-11 18:34:46\n */\n\n\n\n\nvar MapSwitch = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(MapSwitch, _Widget);\n\n var _super = _createSuper(MapSwitch);\n\n function MapSwitch() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, MapSwitch);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__[\"DomUtil\"].create('div', 'gd-map-switch');\n _this._config = undefined;\n _this._cache = [];\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MapSwitch, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getWidgetType('map_switch');\n }\n /**\n * Override the superclass function\n * @private\n */\n\n }, {\n key: \"_enableHook\",\n value: function _enableHook() {\n !this._wrapper.parentNode && this._viewer && this._viewer.gdContainer.appendChild(this._wrapper);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n var _this2 = this;\n\n Object.defineProperty(this._viewer, 'mapSwitch', {\n value: this,\n writable: false\n });\n this.enable = true;\n var self = this;\n\n this._wrapper.onmouseover = function () {\n var width = 80;\n var rightMargin = 5;\n\n if (self._cache.length > 0) {\n width = self._cache.length * (width + rightMargin) - rightMargin;\n }\n\n _this2._wrapper.style.width = \"\".concat(width, \"px\");\n };\n\n this._wrapper.onmouseout = function () {\n self._wrapper.style.width = \"80px\";\n };\n }\n }, {\n key: \"_addItem\",\n value: function _addItem(map) {\n var _this3 = this;\n\n var mapEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__[\"DomUtil\"].create('div', 'map-item', this._wrapper);\n var index = this._cache.length ? this._cache.length - 1 : 0;\n index === 0 && _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__[\"DomUtil\"].addClass(mapEl, 'active');\n mapEl.setAttribute('data-index', String(index));\n\n mapEl.onclick = function (e) {\n var old = document.getElementsByClassName('map-item active');\n\n if (old && old.length) {\n old[0].className = 'map-item';\n }\n\n if (_this3._viewer) {\n e.target.className = 'map-item active';\n\n _this3._viewer.changeBaseLayer(+e.target.getAttribute('data-index') || 0);\n }\n };\n\n if (map.iconUrl) {\n mapEl.style.cssText = \"\\n background:url(\".concat(map.iconUrl, \");\\n \");\n }\n\n var span = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__[\"DomUtil\"].create('span', '', mapEl);\n span.innerHTML = map.name || '地图';\n }\n /**\n * add map\n * @param map\n */\n\n }, {\n key: \"addMap\",\n value: function addMap() {\n var map = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (this._enable) {\n this._cache.push(map);\n\n this._addItem(map);\n\n if (this._cache.length > 1) {\n this._wrapper.style.visibility = 'visible';\n }\n }\n }\n }]);\n\n return MapSwitch;\n}(_Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('map_switch');\n/* harmony default export */ __webpack_exports__[\"default\"] = (MapSwitch);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL01hcFN3aXRjaC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvd2lkZ2V0L3R5cGUvTWFwU3dpdGNoLmpzPzNmNjciXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjAtMDItMTEgMTg6MzQ6NDZcbiAqL1xuXG5pbXBvcnQgU3RhdGUgZnJvbSAnQGdkLW1vZHVsZXMvc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0E7QUFDQTtBQUNBO0FBTEE7QUFNQTtBQUNBOzs7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBR0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBR0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7O0FBbkZBO0FBQ0E7QUFxRkE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/widget/type/MapSwitch.js\n");
- /***/ }),
- /***/ "./modules/widget/type/Popup.js":
- /*!**************************************!*\
- !*** ./modules/widget/type/Popup.js ***!
- \**************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-01-15 19:16:45\n */\n\n\n\n\n\nvar Popup = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Popup, _Widget);\n\n var _super = _createSuper(Popup);\n\n function Popup() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Popup);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"DomUtil\"].create('div', 'gd-popup');\n _this._config = {\n customClass: ''\n };\n _this._position = undefined;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Popup, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_8__[\"default\"].getWidgetType('popup');\n }\n }, {\n key: \"config\",\n set: function set(config) {\n this._config = config;\n config.customClass && this._setCustomClass();\n }\n /**\n * binds event\n * @private\n */\n\n }, {\n key: \"_bindEvent\",\n value: function _bindEvent() {\n if (this._viewer && this._wrapper) {\n var self = this;\n var scene = this._viewer.scene;\n scene.postRender.addEventListener(function () {\n if (self._position && self._enable && self._updateWindowCoord && self._wrapper.style.visibility === 'visible') {\n var windowCoord = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneTransforms.wgs84ToWindowCoordinates(scene, self._position);\n windowCoord && self._updateWindowCoord(windowCoord);\n }\n });\n }\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n this._wrapper.style.visibility = 'hidden';\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n this.enable = true;\n\n this._bindEvent();\n\n Object.defineProperty(this._viewer, 'popup', {\n value: this,\n writable: false\n });\n }\n /**\n *\n * @param windowCoord\n * @private\n */\n\n }, {\n key: \"_updateWindowCoord\",\n value: function _updateWindowCoord(windowCoord) {\n var x = windowCoord.x - this._wrapper.offsetWidth / 2;\n var y = windowCoord.y - this._wrapper.offsetHeight;\n\n if (this._config.position === 'topleft') {\n x = windowCoord.x - this._wrapper.offsetWidth;\n y = windowCoord.y - this._wrapper.offsetHeight;\n } else if (this._config.position === 'topright') {\n x = windowCoord.x;\n y = windowCoord.y - this._wrapper.offsetHeight;\n } else if (this._config.position === 'bottomleft') {\n x = windowCoord.x - this._wrapper.offsetWidth;\n y = windowCoord.y;\n } else if (this._config.position === 'bottomright') {\n x = windowCoord.x;\n y = windowCoord.y;\n }\n\n this._wrapper.style.cssText = \"\\n visibility:visible;\\n z-index:1;\\n transform:translate3d(\".concat(Math.round(x), \"px,\").concat(Math.round(y), \"px, 0);\\n \");\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_setCustomClass\",\n value: function _setCustomClass() {\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"DomUtil\"].setClass(this._wrapper, \"gd-popup \".concat(this._config.customClass));\n }\n /**\n * Setting wrapper\n * @param wrapper\n * @returns {Widget}\n */\n\n }, {\n key: \"setWrapper\",\n value: function setWrapper(wrapper) {\n if (wrapper && wrapper instanceof Element) {\n this._wrapper = wrapper;\n _gd_modules_utils__WEBPACK_IMPORTED_MODULE_7__[\"DomUtil\"].addClass(this._wrapper, 'gd-popup');\n }\n\n return this;\n }\n /**\n *\n * Setting widget position\n * @param {*} position\n *\n */\n\n }, {\n key: \"setPosition\",\n value: function setPosition(position) {\n this._position = position;\n this._wrapper && (this._wrapper.style.cssText = \"\\n visibility:visible;\\n \");\n return this;\n }\n /**\n *\n * @param {*} position\n * @param {*} content\n */\n\n }, {\n key: \"showAt\",\n value: function showAt(position, content) {\n this.setPosition(position).setContent(content);\n return this;\n }\n }]);\n\n return Popup;\n}(_Widget__WEBPACK_IMPORTED_MODULE_8__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_8__[\"default\"].registerType('popup');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Popup);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL1BvcHVwLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aWRnZXQvdHlwZS9Qb3B1cC5qcz83YzgxIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ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0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBSUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7QUExSUE7QUFDQTtBQTRJQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/widget/type/Popup.js\n");
- /***/ }),
- /***/ "./modules/widget/type/Tooltip.js":
- /*!****************************************!*\
- !*** ./modules/widget/type/Tooltip.js ***!
- \****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-02-01 12:07:54\n */\n\n\n\n\nvar Tooltip = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(Tooltip, _Widget);\n\n var _super = _createSuper(Tooltip);\n\n function Tooltip() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Tooltip);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_6__[\"DomUtil\"].create('div', 'gd-tool-tip');\n _this._ready = true;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Tooltip, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"].getWidgetType('tooltip');\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n Object.defineProperty(this._viewer, 'tooltip', {\n value: this,\n writable: false\n });\n }\n /**\n *\n * @param {*} windowCoord\n *\n */\n\n }, {\n key: \"_updateWindowCoord\",\n value: function _updateWindowCoord(windowCoord) {\n var x = windowCoord.x + 10;\n var y = windowCoord.y - this._wrapper.offsetHeight / 2;\n this._wrapper.style.cssText = \"\\n visibility:visible;\\n z-index:1;\\n transform:translate3d(\".concat(Math.round(x), \"px,\").concat(Math.round(y), \"px, 0);\\n \");\n }\n /**\n *\n * @param {*} position\n * @param {*} content\n *\n */\n\n }, {\n key: \"showAt\",\n value: function showAt(position, content) {\n if (!this._enable) {\n return this;\n }\n\n position && this._updateWindowCoord(position);\n this.setContent(content);\n return this;\n }\n }]);\n\n return Tooltip;\n}(_Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_7__[\"default\"].registerType('tooltip');\n/* harmony default export */ __webpack_exports__[\"default\"] = (Tooltip);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL1Rvb2x0aXAuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3dpZGdldC90eXBlL1Rvb2x0aXAuanM/OGZkOSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBBdXRob3I6IENhdmVuXG4gKiBARGF0ZTogMjAyMC0wMi0wMSAxMjowNzo1NFxuICovXG5cbmltcG9ydCBTdGF0ZSBmcm9tICdAZ2QtbW9kdWxlcy9zdGF0ZS9TdGF0ZSdcbmltcG9ydCB7IERvbVV0aWwgfSBmcm9tICdAZ2QtbW9kdWxlcy91dGlscydcblxuaW1wb3J0IFdpZGdldCBmcm9tICcuLi9XaWRnZXQnXG5cbmNsYXNzIFRvb2x0aXAgZXh0ZW5kcyBXaWRnZXQge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpXG4gICAgdGhpcy5fd3JhcHBlciA9IERvbVV0aWwuY3JlYXRlKCdkaXYnLCAnZ2QtdG9vbC10aXAnKVxuICAgIHRoaXMuX3JlYWR5ID0gdHJ1ZVxuICAgIHRoaXMuX3N0YXRlID0gU3RhdGUuSU5JVElBTElaRURcbiAgfVxuXG4gIGdldCB0eXBlKCkge1xuICAgIHJldHVybiBXaWRnZXQuZ2V0V2lkZ2V0VHlwZSgndG9vbHRpcCcpXG4gIH1cblxuICAvKipcbi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0aXBcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUNBOzs7OztBQUNBO0FBQUE7QUFDQTtBQURBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUpBO0FBS0E7QUFDQTs7O0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUtBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7OztBQXBEQTtBQUNBO0FBc0RBO0FBRUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./modules/widget/type/Tooltip.js\n");
- /***/ }),
- /***/ "./modules/widget/type/ZoomController.js":
- /*!***********************************************!*\
- !*** ./modules/widget/type/ZoomController.js ***!
- \***********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/icons */ \"./modules/icons/index.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _Widget__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Widget */ \"./modules/widget/Widget.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2020-05-06 13:25:36\n */\n\n\n\n\n\n\nvar ZoomController = /*#__PURE__*/function (_Widget) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ZoomController, _Widget);\n\n var _super = _createSuper(ZoomController);\n\n function ZoomController() {\n var _this;\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ZoomController);\n\n _this = _super.call(this);\n _this._wrapper = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].create('div', 'gd-zoom-controller');\n _this._zoomInEl = undefined;\n _this._zoomOutEl = undefined;\n _this._refreshEl = undefined;\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_6__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ZoomController, [{\n key: \"type\",\n get: function get() {\n return _Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"].getWidgetType('zoom_controller');\n }\n /**\n *\n * @param scene\n * @returns {Cartesian3}\n * @private\n */\n\n }, {\n key: \"_getCameraFocus\",\n value: function _getCameraFocus(scene) {\n var ray = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Ray(scene.camera.positionWC, scene.camera.directionWC);\n var intersections = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].IntersectionTests.rayEllipsoid(ray, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Ellipsoid.WGS84);\n\n if (intersections) {\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Ray.getPoint(ray, intersections.start);\n } // Camera direction is not pointing at the globe, so use the ellipsoid horizon point as\n // the focal point.\n\n\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].IntersectionTests.grazingAltitudeLocation(ray, _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Ellipsoid.WGS84);\n }\n /**\n *\n * @param camera\n * @param focus\n * @param scalar\n * @returns {Cartesian3}\n * @private\n */\n\n }, {\n key: \"_getCameraPosition\",\n value: function _getCameraPosition(camera, focus, scalar) {\n var cartesian3Scratch = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3();\n var direction = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.subtract(focus, camera.position, cartesian3Scratch);\n var movementVector = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.multiplyByScalar(direction, scalar, cartesian3Scratch);\n return _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].Cartesian3.add(camera.position, movementVector, cartesian3Scratch);\n }\n /**\n *\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_zoomIn\",\n value: function _zoomIn() {\n var scene = this._viewer.scene;\n var camera = scene.camera;\n var sscc = scene.screenSpaceCameraController;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.MORPHING || !sscc.enableInputs || scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.COLUMBUS_VIEW) {\n return true;\n } else if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE2D) {\n camera.zoomIn(camera.positionCartographic.height * 0.5);\n } else if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE3D) {\n var focus = this._getCameraFocus(scene);\n\n var cameraPosition = this._getCameraPosition(camera, focus, 1 / 2);\n\n camera.flyTo({\n destination: cameraPosition,\n orientation: {\n heading: camera.heading,\n pitch: camera.pitch,\n roll: camera.roll\n },\n duration: 0.5,\n convert: false\n });\n }\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_refresh\",\n value: function _refresh() {\n this._viewer.camera.flyHome(1.5);\n }\n /**\n *\n * @returns {boolean}\n * @private\n */\n\n }, {\n key: \"_zoomOut\",\n value: function _zoomOut() {\n var scene = this._viewer.scene;\n var camera = scene.camera;\n var sscc = scene.screenSpaceCameraController;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.MORPHING || !sscc.enableInputs || scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.COLUMBUS_VIEW) {\n return true;\n } else if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE2D) {\n camera.zoomOut(camera.positionCartographic.height);\n } else if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_5__[\"Cesium\"].SceneMode.SCENE3D) {\n var focus = this._getCameraFocus(scene);\n\n var cameraPosition = this._getCameraPosition(camera, focus, -1);\n\n camera.flyTo({\n destination: cameraPosition,\n orientation: {\n heading: camera.heading,\n pitch: camera.pitch,\n roll: camera.roll\n },\n duration: 0.5,\n convert: false\n });\n }\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_installHook\",\n value: function _installHook() {\n Object.defineProperty(this._viewer, 'zoomController', {\n value: this,\n writable: false\n });\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountContent\",\n value: function _mountContent() {\n this._zoomInEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].parseDom(_gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__[\"default\"].increase, true, 'zoom-in');\n this._refreshEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].parseDom(_gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__[\"default\"].refresh, true, 'refresh');\n this._zoomOutEl = _gd_modules_utils__WEBPACK_IMPORTED_MODULE_8__[\"DomUtil\"].parseDom(_gd_modules_icons__WEBPACK_IMPORTED_MODULE_7__[\"default\"].decrease, true, 'zoom-out');\n\n this._wrapper.appendChild(this._zoomInEl);\n\n this._wrapper.appendChild(this._refreshEl);\n\n this._wrapper.appendChild(this._zoomOutEl);\n\n var self = this;\n\n this._zoomInEl.onclick = function () {\n self._zoomIn();\n };\n\n this._refreshEl.onclick = function () {\n self._refresh();\n };\n\n this._zoomOutEl.onclick = function () {\n self._zoomOut();\n };\n\n this._ready = true;\n }\n }]);\n\n return ZoomController;\n}(_Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"]);\n\n_Widget__WEBPACK_IMPORTED_MODULE_9__[\"default\"].registerType('zoom_controller');\n/* harmony default export */ __webpack_exports__[\"default\"] = (ZoomController);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpZGdldC90eXBlL1pvb21Db250cm9sbGVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aWRnZXQvdHlwZS9ab29tQ29udHJvbGxlci5qcz81NjNjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIwLTA1LTA2IDEzOjI1OjM2XG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IEljb25zIGZyb20gJ0BnZC1tb2R1bGVzL2ljb25zJ1xuaW1wb3J0IHsgRG9tVXRpbCB9IGZyb20gJ0BnZC1tb2R1bGVzL3V0aWxzJ1xuaW1wb3J0IFdpZGdldCBmcm9tICcuLi9XaWRnZXQnXG5cbmNsYXNzIFpvb21Db250cm9sbGVyIGV4dGVuZHMgV2lkZ2V0IHtcbiAgY29uc3RydWN0b3IoKSB7XG4gICAgc3VwZXIoKVxuICAgIHRoaXMuX3dyYXBwZXIgPSBEb21VdGlsLmNyZWF0ZSgnZGl2JywgJ2dkLXpvb20tY29udHJvbGxlcicpXG4gICAgdGhpcy5fem9vbUluRWwgPSB1bmRlZmluZWRcbiAgICB0aGlzLl96b29tT3V0RWwgPSB1bmRlZmluZWRcbiAgICB0aGlzLl9yZWZyZXNoRWwgPSB1bmRlZmluZWRcbiAgICB0aGlzLl9zdGF0ZSA9IFN0YXRlLklOSVRJQUxJWkVEXG4gIH1cblxuICBnZXQgdHlwZSgpIHtcbiAgICByZXR1cm4gV2lkZ2V0LmdldFdpZ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BRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBOzs7O0FBOUtBO0FBQ0E7QUFnTEE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/widget/type/ZoomController.js\n");
- /***/ }),
- /***/ "./modules/wind/Field.js":
- /*!*******************************!*\
- !*** ./modules/wind/Field.js ***!
- \*******************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _Vector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Vector */ \"./modules/wind/Vector.js\");\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-01-18 20:13:30\n */\n\n\nvar Field = /*#__PURE__*/function () {\n function Field(params) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Field);\n\n this.grid = [];\n this.xmin = params.xmin;\n this.xmax = params.xmax;\n this.ymin = params.ymin;\n this.ymax = params.ymax;\n this.cols = params.cols; // 列数\n\n this.rows = params.rows; // 行数\n\n this.us = params.us; //\n\n this.vs = params.vs;\n this.deltaX = params.deltaX; // x 方向增量\n\n this.deltaY = params.deltaY; // y方向增量\n\n if (this.deltaY < 0 && this.ymin < this.ymax) {\n // eslint-disable-next-line no-console\n console.warn('[wind-core]: The data is flipY');\n } else {\n this.ymin = Math.min(params.ymax, params.ymin);\n this.ymax = Math.max(params.ymax, params.ymin);\n }\n\n this.isFields = true;\n var cols = Math.ceil((this.xmax - this.xmin) / params.deltaX); // 列\n\n var rows = Math.ceil((this.ymax - this.ymin) / params.deltaY); // 行\n\n if (cols !== this.cols || rows !== this.rows) {\n // eslint-disable-next-line no-console\n console.warn('[wind-core]: The data grid not equal');\n } // Math.floor(ni * Δλ) >= 360;\n\n\n this.isContinuous = Math.floor(this.cols * params.deltaX) >= 360;\n this.wrappedX = 'wrappedX' in params ? params.wrappedX : this.xmax > 180; // [0, 360] --> [-180, 180];\n\n this.grid = this.buildGrid();\n this.range = this.calculateRange();\n } // from https://github.com/sakitam-fdd/wind-layer/blob/95368f9433/src/windy/windy.js#L110\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Field, [{\n key: \"buildGrid\",\n value: function buildGrid() {\n var grid = [];\n var p = 0;\n\n var _a = this,\n rows = _a.rows,\n cols = _a.cols,\n us = _a.us,\n vs = _a.vs;\n\n for (var j = 0; j < rows; j++) {\n var row = [];\n\n for (var i = 0; i < cols; i++, p++) {\n var u = us[p];\n var v = vs[p];\n var valid = this.isValid(u) && this.isValid(v);\n row[i] = valid ? new _Vector__WEBPACK_IMPORTED_MODULE_2__[\"default\"](u, v) : null;\n }\n\n if (this.isContinuous) {\n row.push(row[0]);\n }\n\n grid[j] = row;\n }\n\n return grid;\n }\n /**\n *\n */\n\n }, {\n key: \"release\",\n value: function release() {\n this.grid = [];\n }\n /***\n *\n * @returns {(*)[]}\n */\n\n }, {\n key: \"extent\",\n value: function extent() {\n return [this.xmin, this.ymin, this.xmax, this.ymax];\n }\n /**\n * Bilinear interpolation for Vector\n * https://en.wikipedia.org/wiki/Bilinear_interpolation\n * @param {Number} x\n * @param {Number} y\n * @param {Number[]} g00\n * @param {Number[]} g10\n * @param {Number[]} g01\n * @param {Number[]} g11\n * @returns {Vector}\n */\n\n }, {\n key: \"bilinearInterpolateVector\",\n value: function bilinearInterpolateVector(x, y, g00, g10, g01, g11) {\n var rx = 1 - x;\n var ry = 1 - y;\n var a = rx * ry;\n var b = x * ry;\n var c = rx * y;\n var d = x * y;\n var u = g00.u * a + g10.u * b + g01.u * c + g11.u * d;\n var v = g00.v * a + g10.v * b + g01.v * c + g11.v * d;\n return new _Vector__WEBPACK_IMPORTED_MODULE_2__[\"default\"](u, v);\n }\n /**\n * calculate vector value range\n */\n\n }, {\n key: \"calculateRange\",\n value: function calculateRange() {\n if (!this.grid || !this.grid[0]) {\n return;\n }\n\n var rows = this.grid.length;\n var cols = this.grid[0].length; // const vectors = [];\n\n var min;\n var max; // @from: https://stackoverflow.com/questions/13544476/how-to-find-max-and-min-in-array-using-minimum-comparisons\n\n for (var j = 0; j < rows; j++) {\n for (var i = 0; i < cols; i++) {\n var vec = this.grid[j][i];\n\n if (vec !== null) {\n var val = vec.m || vec.magnitude(); // vectors.push();\n\n if (min === undefined) {\n min = val;\n } else if (max === undefined) {\n max = val; // update min max\n // 1. Pick 2 elements(a, b), compare them. (say a > b)\n\n min = Math.min(min, max);\n max = Math.max(min, max);\n } else {\n // 2. Update min by comparing (min, b)\n // 3. Update max by comparing (max, a)\n min = Math.min(val, min);\n max = Math.max(val, max);\n }\n }\n }\n }\n\n return [min, max];\n }\n /**\n *\n * @param x\n * @private\n */\n\n }, {\n key: \"isValid\",\n value: function isValid(x) {\n return x !== null && x !== undefined;\n }\n }, {\n key: \"getWrappedLongitudes\",\n value: function getWrappedLongitudes() {\n var xmin = this.xmin;\n var xmax = this.xmax;\n\n if (this.wrappedX) {\n if (this.isContinuous) {\n xmin = -180;\n xmax = 180;\n } else {\n xmax = this.xmax - 360;\n xmin = this.xmin - 360;\n }\n }\n\n return [xmin, xmax];\n }\n }, {\n key: \"contains\",\n value: function contains(lon, lat) {\n var _a = this.getWrappedLongitudes(),\n xmin = _a[0],\n xmax = _a[1];\n\n var longitudeIn = lon >= xmin && lon <= xmax;\n var latitudeIn;\n\n if (this.deltaY >= 0) {\n latitudeIn = lat >= this.ymin && lat <= this.ymax;\n } else {\n latitudeIn = lat >= this.ymax && lat <= this.ymin;\n }\n\n return longitudeIn && latitudeIn;\n }\n /**\n *\n * @param a\n * @param n\n * @returns {number}\n */\n\n }, {\n key: \"floorMod\",\n value: function floorMod(a, n) {\n return a - n * Math.floor(a / n);\n }\n /**\n *\n * @param lon\n * @param lat\n */\n\n }, {\n key: \"getDecimalIndexes\",\n value: function getDecimalIndexes(lon, lat) {\n var i = this.floorMod(lon - this.xmin, 360) / this.deltaX; // calculate longitude index in wrapped range [0, 360)\n\n var j = (this.ymax - lat) / this.deltaY; // calculate latitude index in direction +90 to -90\n\n return [i, j];\n }\n /**\n * Nearest value at lon-lat coordinates\n *\n * @param lon\n * @param lat\n */\n\n }, {\n key: \"valueAt\",\n value: function valueAt(lon, lat) {\n if (!this.contains(lon, lat)) {\n return null;\n }\n\n var indexes = this.getDecimalIndexes(lon, lat);\n var ii = Math.floor(indexes[0]);\n var jj = Math.floor(indexes[1]);\n var ci = this.clampColumnIndex(ii);\n var cj = this.clampRowIndex(jj);\n return this.valueAtIndexes(ci, cj);\n }\n /**\n * Get interpolated grid value lon-lat coordinates\n * @param lon\n * @param lat\n */\n\n }, {\n key: \"interpolatedValueAt\",\n value: function interpolatedValueAt(lon, lat) {\n if (!this.contains(lon, lat)) {\n return null;\n }\n\n var _a = this.getDecimalIndexes(lon, lat),\n i = _a[0],\n j = _a[1];\n\n return this.interpolatePoint(i, j);\n }\n }, {\n key: \"hasValueAt\",\n value: function hasValueAt(lon, lat) {\n var value = this.valueAt(lon, lat);\n return value !== null;\n }\n /**\n *\n * @param i\n * @param j\n */\n\n }, {\n key: \"interpolatePoint\",\n value: function interpolatePoint(i, j) {\n // 1 2 After converting λ and φ to fractional grid indexes i and j, we find the\n // fi i ci four points 'G' that enclose point (i, j). These points are at the four\n // | =1.4 | corners specified by the floor and ceiling of i and j. For example, given\n // ---G--|---G--- fj 8 i = 1.4 and j = 8.3, the four surrounding grid points are (1, 8), (2, 8),\n // j ___|_ . | (1, 9) and (2, 9).\n // =8.3 | |\n // ---G------G--- cj 9 Note that for wrapped grids, the first column is duplicated as the last\n // | | column, so the index ci can be used without taking a modulo.\n var indexes = this.getFourSurroundingIndexes(i, j);\n var fi = indexes[0],\n ci = indexes[1],\n fj = indexes[2],\n cj = indexes[3];\n var values = this.getFourSurroundingValues(fi, ci, fj, cj);\n\n if (values) {\n var g00 = values[0],\n g10 = values[1],\n g01 = values[2],\n g11 = values[3]; // @ts-ignore\n\n return this.bilinearInterpolateVector(i - fi, j - fj, g00, g10, g01, g11);\n }\n\n return null;\n }\n /**\n * Check the column index is inside the field,\n * adjusting to min or max when needed\n * @private\n * @param {Number} ii - index\n * @returns {Number} i - inside the allowed indexes\n */\n\n }, {\n key: \"clampColumnIndex\",\n value: function clampColumnIndex(ii) {\n var i = ii;\n\n if (ii < 0) {\n i = 0;\n }\n\n var maxCol = this.cols - 1;\n\n if (ii > maxCol) {\n i = maxCol;\n }\n\n return i;\n }\n /**\n * Check the row index is inside the field,\n * adjusting to min or max when needed\n * @private\n * @param {Number} jj index\n * @returns {Number} j - inside the allowed indexes\n */\n\n }, {\n key: \"clampRowIndex\",\n value: function clampRowIndex(jj) {\n var j = jj;\n\n if (jj < 0) {\n j = 0;\n }\n\n var maxRow = this.rows - 1;\n\n if (jj > maxRow) {\n j = maxRow;\n }\n\n return j;\n }\n /**\n * from: https://github.com/IHCantabria/Leaflet.CanvasLayer.Field/blob/master/src/Field.js#L252\n * @private\n * @param {Number} i - decimal index\n * @param {Number} j - decimal index\n * @returns {Array} [fi, ci, fj, cj]\n */\n\n }, {\n key: \"getFourSurroundingIndexes\",\n value: function getFourSurroundingIndexes(i, j) {\n var fi = Math.floor(i); // 左\n\n var ci = fi + 1; // 右\n // duplicate colum to simplify interpolation logic (wrapped value)\n\n if (this.isContinuous && ci >= this.cols) {\n ci = 0;\n }\n\n ci = this.clampColumnIndex(ci);\n var fj = this.clampRowIndex(Math.floor(j)); // 上 纬度方向索引(取整)\n\n var cj = this.clampRowIndex(fj + 1); // 下\n\n return [fi, ci, fj, cj];\n }\n /**\n * from https://github.com/IHCantabria/Leaflet.CanvasLayer.Field/blob/master/src/Field.js#L277\n * Get four surrounding values or null if not available,\n * from 4 integer indexes\n * @private\n * @param {Number} fi\n * @param {Number} ci\n * @param {Number} fj\n * @param {Number} cj\n * @returns {Array}\n */\n\n }, {\n key: \"getFourSurroundingValues\",\n value: function getFourSurroundingValues(fi, ci, fj, cj) {\n var row;\n\n if (row = this.grid[fj]) {\n var g00 = row[fi]; // << left\n\n var g10 = row[ci]; // right >>\n\n if (this.isValid(g00) && this.isValid(g10) && (row = this.grid[cj])) {\n // lower row vv\n var g01 = row[fi]; // << left\n\n var g11 = row[ci]; // right >>\n\n if (this.isValid(g01) && this.isValid(g11)) {\n return [g00, g10, g01, g11]; // 4 values found!\n }\n }\n }\n\n return null;\n }\n /**\n * Value for grid indexes\n * @param {Number} i - column index (integer)\n * @param {Number} j - row index (integer)\n * @returns {Vector|Number}\n */\n\n }, {\n key: \"valueAtIndexes\",\n value: function valueAtIndexes(i, j) {\n return this.grid[j][i]; // <-- j,i !!\n }\n /**\n * Lon-Lat for grid indexes\n * @param {Number} i - column index (integer)\n * @param {Number} j - row index (integer)\n * @returns {Number[]} [lon, lat]\n */\n\n }, {\n key: \"lonLatAtIndexes\",\n value: function lonLatAtIndexes(i, j) {\n var lon = this.longitudeAtX(i);\n var lat = this.latitudeAtY(j);\n return [lon, lat];\n }\n /**\n * Longitude for grid-index\n * @param {Number} i - column index (integer)\n * @returns {Number} longitude at the center of the cell\n */\n\n }, {\n key: \"longitudeAtX\",\n value: function longitudeAtX(i) {\n var halfXPixel = this.deltaX / 2.0;\n var lon = this.xmin + halfXPixel + i * this.deltaX;\n\n if (this.wrappedX) {\n lon = lon > 180 ? lon - 360 : lon;\n }\n\n return lon;\n }\n /**\n * Latitude for grid-index\n * @param j\n * @returns {number}\n */\n\n }, {\n key: \"latitudeAtY\",\n value: function latitudeAtY(j) {\n var halfYPixel = this.deltaY / 2.0;\n return this.ymax - halfYPixel - j * this.deltaY;\n }\n /**\n *\n * @param o\n * @param width\n * @param height\n * @param unproject\n * @returns {{}}\n */\n\n }, {\n key: \"randomize\",\n value: function randomize(o, width, height, unproject) {\n if (o === void 0) {\n o = {};\n }\n\n var i = Math.random() * (width || this.cols) | 0;\n var j = Math.random() * (height || this.rows) | 0;\n var coords = unproject([i, j]);\n\n if (coords !== null) {\n o.x = coords[0];\n o.y = coords[1];\n } else {\n o.x = this.longitudeAtX(i);\n o.y = this.latitudeAtY(j);\n }\n\n return o;\n }\n /**\n * check is custom field\n */\n\n }, {\n key: \"checkFields\",\n value: function checkFields() {\n return this.isFields;\n }\n }]);\n\n return Field;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Field);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpbmQvRmllbGQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9tb2R1bGVzL3dpbmQvRmllbGQuanM/NjMxNSJ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gMDsgaSA8IGNvbHM7IGkrKykge1xuICAgICAgICBsZXQgdmVjID0gdGhpcy5ncmlkW2pdW2ldXG4gICAgICAgIGlmICh2ZWMgIT09IG51bGwpIHtcbiAgICAgICAgICBsZXQgdmFsID0gdmVjLm0gfHwgdmVjLm1hZ25pdHVkZSgpXG4gICAgICAgICAgLy8gdmVjdG9ycy5wdXNoKCk7XG4gICAgICAgICAgaWYgKG1pbiA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBtaW4gPSB2YWxcbiAgICAgICAgICB9IGVsc2UgaWYgKG1heCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBtYXggPSB2YWxcbiAgICAgICAgICAgIC8vIHVwZGF0ZSBtaW4gbWF4XG4gICAgICAgICAgICAvLyAxLiBQaWNrIDIgZWxlbWVudHMoYSwgYiksIGNvbXBhcmUgdGhlbS4gKHNheSBhID4gYilcbiAgICAgICAgICAgIG1pbiA9IE1hdGgubWluKG1pbiwgbWF4KVxuICAgICAgICAgICAgbWF4ID0gTWF0aC5tYXgobWluLCBtYXgpXG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIC8vIDIuIFVwZGF0ZSBtaW4gYnkgY29tcGFyaW5nIChtaW4sIGIpXG4gICAgICAgICAgICAvLyAzLiBVcGRhdGUgbWF4IGJ5IGNvbXBhcmluZyAobWF4LCBhKVxuICAgICAgICAgICAgbWluID0gTWF0aC5taW4odmFsLCBtaW4pXG4gICAgICAgICAgICBtYXggPSBNYXRoLm1heCh2YWwsIG1heClcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIFttaW4sIG1heF1cbiAgfVxuICAvKipcbiAgICpcbiAgICogQHBhcmFtIHhcbiAgICogQHByaXZhdGVcbiAgICovXG4gIGlzVmFsaWQoeCkge1xuICAgIHJldHVybiB4ICE9PSBudWxsICYmIHggIT09IHVuZGVmaW5lZFxuICB9XG5cbiAgZ2V0V3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QUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBOzs7Ozs7QUFHQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/wind/Field.js\n");
- /***/ }),
- /***/ "./modules/wind/Vector.js":
- /*!********************************!*\
- !*** ./modules/wind/Vector.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-01-18 20:25:48\n */\nvar Vector = /*#__PURE__*/function () {\n function Vector(u, v) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Vector);\n\n this.u = u;\n this.v = v;\n this.m = this.magnitude();\n }\n /**\n * the vector value\n * @returns {Number}\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Vector, [{\n key: \"magnitude\",\n value: function magnitude() {\n return Math.sqrt(this.u * this.u + this.v * this.v);\n }\n /**\n * Angle in degrees (0 to 360º) --> Towards\n * N is 0º and E is 90º\n * @returns {Number}\n */\n\n }, {\n key: \"directionTo\",\n value: function directionTo() {\n var verticalAngle = Math.atan2(this.u, this.v);\n var inDegrees = verticalAngle * (180.0 / Math.PI);\n\n if (inDegrees < 0) {\n inDegrees += 360.0;\n }\n\n return inDegrees;\n }\n /**\n * Angle in degrees (0 to 360º) From x-->\n * N is 0º and E is 90º\n * @returns {Number}\n */\n\n }, {\n key: \"directionFrom\",\n value: function directionFrom() {\n var a = this.directionTo();\n return (a + 180.0) % 360.0;\n }\n }]);\n\n return Vector;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Vector);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpbmQvVmVjdG9yLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aW5kL1ZlY3Rvci5qcz9hYzQ0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTAxLTE4IDIwOjI1OjQ4XG4gKi9cblxuY2xhc3MgVmVjdG9yIHtcbiAgY29uc3RydWN0b3IodSwgdikge1xuICAgIHRoaXMudSA9IHVcbiAgICB0aGlzLnYgPSB2XG4gICAgdGhpcy5tID0gdGh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tBQUNBO0FBQ0E7QUFDQTs7O0FBREE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/wind/Vector.js\n");
- /***/ }),
- /***/ "./modules/wind/WindCanvas.js":
- /*!************************************!*\
- !*** ./modules/wind/WindCanvas.js ***!
- \************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n\n\n\n/**\n * @Author: Caven\n * @Date: 2021-01-18 17:46:40\n */\nvar WindCanvas = /*#__PURE__*/function () {\n function WindCanvas(ctx) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, WindCanvas);\n\n this.options = {};\n this.particles = [];\n this.ctx = ctx;\n this.animationLoop = undefined;\n this.animate = this.animate.bind(this);\n }\n /**\n *\n * @param m\n * @param min\n * @param max\n * @param colorScale\n * @returns {number}\n * @private\n */\n\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WindCanvas, [{\n key: \"_indexFor\",\n value: function _indexFor(m, min, max, colorScale) {\n return Math.max(0, Math.min(colorScale.length - 1, Math.round((m - min) / (max - min) * (colorScale.length - 1))));\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_moveParticles\",\n value: function _moveParticles() {\n if (!this.particles || !this.particles.length) {\n return;\n }\n\n var width = this.ctx.canvas.width;\n var height = this.ctx.canvas.height;\n var particles = this.particles;\n var maxAge = this.options.maxAge;\n var velocityScale = typeof this.options.velocityScale === 'function' ? this.options.velocityScale() : this.options.velocityScale;\n\n for (var i = 0; i < particles.length; i++) {\n var particle = particles[i];\n\n if (particle.age > maxAge) {\n particle.age = 0;\n this.field.randomize(particle, width, height, this.unProject);\n }\n\n var x = particle.x;\n var y = particle.y;\n var vector = this.field.interpolatedValueAt(x, y);\n\n if (vector === null) {\n particle.age = maxAge;\n } else {\n var xt = x + vector.u * velocityScale;\n var yt = y + vector.v * velocityScale;\n\n if (this.field.hasValueAt(xt, yt)) {\n particle.xt = xt;\n particle.yt = yt;\n particle.m = vector.m;\n } else {\n particle.x = xt;\n particle.y = yt;\n particle.age = maxAge;\n }\n }\n\n particle.age++;\n }\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_drawParticles\",\n value: function _drawParticles() {\n if (!this.particles || !this.particles.length) {\n return;\n }\n\n var particles = this.particles;\n var prev = this.ctx.globalCompositeOperation;\n this.ctx.globalCompositeOperation = 'destination-in';\n this.ctx.fillRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.height);\n this.ctx.globalCompositeOperation = prev;\n this.ctx.globalAlpha = this.options.globalAlpha;\n this.ctx.fillStyle = 'rgba(0, 0, 0, ' + this.options.globalAlpha + ')';\n this.ctx.lineWidth = this.options.lineWidth ? this.options.lineWidth : 1;\n this.ctx.strokeStyle = this.options.colorScale ? this.options.colorScale : '#fff';\n var i = 0;\n var len = particles.length;\n\n if (this.field && len > 0) {\n var min = void 0;\n var max = void 0;\n\n if (this.options.minVelocity && this.options.maxVelocity) {\n min = this.options.minVelocity;\n max = this.options.maxVelocity;\n } else {\n var _a = this.field.range;\n min = _a[0];\n max = _a[1];\n }\n\n for (; i < len; i++) {\n this[this.options.useCoordsDraw ? '_drawCoordsParticle' : '_drawPixelParticle'](particles[i], min, max);\n }\n }\n }\n /**\n *\n * @param particle\n * @param min\n * @param max\n */\n\n }, {\n key: \"_drawPixelParticle\",\n value: function _drawPixelParticle(particle, min, max) {\n var pointPrev = [particle.x, particle.y];\n var pointNext = [particle.xt, particle.yt];\n\n if (pointNext && pointPrev && pointNext[0] && pointNext[1] && pointPrev[0] && pointPrev[1] && particle.age <= this.options.maxAge) {\n this._drawStroke(pointPrev, pointNext, particle, min, max);\n }\n }\n /**\n *\n * @param particle\n * @param min\n * @param max\n */\n\n }, {\n key: \"_drawCoordsParticle\",\n value: function _drawCoordsParticle(particle, min, max) {\n var source = [particle.x, particle.y];\n var target = [particle.xt, particle.yt];\n\n if (target && source && target[0] && target[1] && source[0] && source[1] && this.intersectsCoordinate(target) && particle.age <= this.options.maxAge) {\n var pointPrev = this.project(source);\n var pointNext = this.project(target);\n\n this._drawStroke(pointPrev, pointNext, particle, min, max);\n }\n }\n /**\n *\n * @param pointPrev\n * @param pointNext\n * @param particle\n * @param min\n * @param max\n * @private\n */\n\n }, {\n key: \"_drawStroke\",\n value: function _drawStroke(pointPrev, pointNext, particle, min, max) {\n if (pointPrev && pointNext) {\n this.ctx.beginPath();\n this.ctx.moveTo(pointPrev[0], pointPrev[1]);\n this.ctx.lineTo(pointNext[0], pointNext[1]);\n\n if (typeof this.options.colorScale === 'function') {\n this.ctx.strokeStyle = this.options.colorScale(particle.m);\n } else if (Array.isArray(this.options.colorScale)) {\n var colorIdx = this._indexFor(particle.m, min, max, this.options.colorScale);\n\n this.ctx.strokeStyle = this.options.colorScale[colorIdx];\n }\n\n if (typeof this.options.lineWidth === 'function') {\n this.ctx.lineWidth = this.options.lineWidth(particle.m);\n }\n\n particle.x = particle.xt;\n particle.y = particle.yt;\n this.ctx.stroke();\n }\n }\n /**\n *\n * @returns {[]|*[]}\n * @private\n */\n\n }, {\n key: \"_prepareParticlePaths\",\n value: function _prepareParticlePaths() {\n var width = this.ctx.canvas.width;\n var height = this.ctx.canvas.height;\n var particleCount = typeof this.options.paths === 'function' ? this.options.paths(this) : this.options.paths;\n var particles = [];\n\n if (!this.field) {\n return [];\n }\n\n for (var i = 0; i < particleCount; i++) {\n particles.push(this.field.randomize({\n age: Math.floor(Math.random() * this.options.maxAge)\n }, width, height, this.unProject));\n }\n\n return particles;\n }\n /**\n *\n */\n\n }, {\n key: \"project\",\n value: function project() {\n throw new Error('project must be overriden');\n }\n /**\n *\n */\n\n }, {\n key: \"unProject\",\n value: function unProject() {\n throw new Error('unProject must be overriden');\n }\n /**\n *\n * @param coordinates\n */\n\n }, {\n key: \"intersectsCoordinate\",\n value: function intersectsCoordinate(coordinates) {\n throw new Error('must be override');\n }\n /**\n *\n */\n\n }, {\n key: \"prerender\",\n value: function prerender() {\n if (!this.field) {\n return;\n }\n\n this.particles = this._prepareParticlePaths();\n\n if (!this.starting && !this.forceStop) {\n this.starting = true;\n this._then = Date.now();\n this.animate();\n }\n }\n /**\n *\n * @returns {WindCanvas}\n */\n\n }, {\n key: \"render\",\n value: function render() {\n this._moveParticles();\n\n this._drawParticles();\n\n return this;\n }\n }, {\n key: \"clearCanvas\",\n value: function clearCanvas() {\n this.stop();\n this.ctx.clearRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.height);\n this.forceStop = false;\n }\n /**\n *\n */\n\n }, {\n key: \"start\",\n value: function start() {\n this.starting = true;\n this.forceStop = false;\n this._then = Date.now();\n this.animate();\n }\n /**\n *\n */\n\n }, {\n key: \"stop\",\n value: function stop() {\n cancelAnimationFrame(this.animationLoop);\n this.starting = false;\n this.forceStop = true;\n }\n /**\n *\n */\n\n }, {\n key: \"animate\",\n value: function animate() {\n if (this.animationLoop) {\n cancelAnimationFrame(this.animationLoop);\n }\n\n this.animationLoop = requestAnimationFrame(this.animate);\n var now = Date.now();\n var delta = now - this._then;\n\n if (delta > this.options.frameRate) {\n this._then = now - delta % this.options.frameRate;\n this.render();\n }\n }\n /**\n *\n * @param field\n * @returns {WindCanvas}\n */\n\n }, {\n key: \"setData\",\n value: function setData(field) {\n this.field = field;\n return this;\n }\n /**\n *\n * @param options\n * @returns {WindCanvas}\n */\n\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n var _this$options, _this$options2, _this$options3, _this$options4;\n\n this.options = options;\n\n if (!((_this$options = this.options) !== null && _this$options !== void 0 && _this$options.maxAge) && (_this$options2 = this.options) !== null && _this$options2 !== void 0 && _this$options2.particleAge) {\n this.options.maxAge = Number(this.options.particleAge);\n }\n\n if (!((_this$options3 = this.options) !== null && _this$options3 !== void 0 && _this$options3.paths) && (_this$options4 = this.options) !== null && _this$options4 !== void 0 && _this$options4.particleMultiplier) {\n this.options.paths = Math.round(this.options.width * this.options.height * Number(this.options.particleMultiplier));\n }\n\n return this;\n }\n }]);\n\n return WindCanvas;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (WindCanvas);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpbmQvV2luZENhbnZhcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL21vZHVsZXMvd2luZC9XaW5kQ2FudmFzLmpzP2Q3MWIiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAQXV0aG9yOiBDYXZlblxuICogQERhdGU6IDIwMjEtMDEtMTggMTc6NDY6NDBcbiAqL1xuXG5jbGFz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E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBS0E7QUFDQTtBQUFBO0FBQ0E7Ozs7OztBQUdBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./modules/wind/WindCanvas.js\n");
- /***/ }),
- /***/ "./modules/wind/WindLayer.js":
- /*!***********************************!*\
- !*** ./modules/wind/WindLayer.js ***!
- \***********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/state/State */ \"./modules/state/State.js\");\n/* harmony import */ var _gd_modules_layer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/layer */ \"./modules/layer/index.js\");\n/* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Field */ \"./modules/wind/Field.js\");\n/* harmony import */ var _WindCanvas__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./WindCanvas */ \"./modules/wind/WindCanvas.js\");\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this, result); }; }\n\nfunction _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; } }\n\n/**\n * @Author: Caven\n * @Date: 2021-01-18 20:13:30\n */\n\n\n\n\n\nvar DEF_OPTS = {\n globalAlpha: 0.9,\n lineWidth: 1,\n colorScale: '#fff',\n velocityScale: 1 / 25,\n maxAge: 90,\n paths: 800,\n frameRate: 20,\n useCoordsDraw: true,\n gpet: true\n};\n\nvar WindLayer = /*#__PURE__*/function (_Layer) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default()(WindLayer, _Layer);\n\n var _super = _createSuper(WindLayer);\n\n function WindLayer(id) {\n var _this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, WindLayer);\n\n _this = _super.call(this, id);\n _this._options = _objectSpread(_objectSpread({}, DEF_OPTS), options);\n _this._data = undefined;\n _this._canvas = document.createElement('canvas');\n _this._state = _gd_modules_state_State__WEBPACK_IMPORTED_MODULE_7__[\"default\"].INITIALIZED;\n return _this;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(WindLayer, [{\n key: \"type\",\n get: function get() {\n return _gd_modules_layer__WEBPACK_IMPORTED_MODULE_8__[\"Layer\"].getLayerType('wind');\n }\n }, {\n key: \"show\",\n get: function get() {\n return this._show;\n }\n /**\n *\n * @param data\n * @returns {Field|undefined}\n * @private\n */\n ,\n set: function set(show) {\n this._show = show;\n this._canvas.style.visibility = show ? 'visible' : 'hidden';\n }\n }, {\n key: \"_formatData\",\n value: function _formatData(data) {\n var uComp;\n var vComp;\n data.forEach(function (record) {\n switch (record.header.parameterCategory + ',' + record.header.parameterNumber) {\n case '1,2':\n case '2,2':\n uComp = record;\n break;\n\n case '1,3':\n case '2,3':\n vComp = record;\n break;\n }\n });\n\n if (!vComp || !uComp) {\n return undefined;\n }\n\n var header = uComp.header;\n return new _Field__WEBPACK_IMPORTED_MODULE_9__[\"default\"]({\n xmin: header.lo1,\n ymin: header.la1,\n xmax: header.lo2,\n ymax: header.la2,\n deltaX: header.dx,\n deltaY: header.dy,\n cols: header.nx,\n rows: header.ny,\n us: uComp.data,\n vs: vComp.data\n });\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_mountCanvas\",\n value: function _mountCanvas() {\n if (!this._viewer || !this._canvas) {\n return;\n }\n\n this._canvas.style.cssText = 'position:absolute; left:0; top:0;user-select:none;pointer-events: none;';\n this._canvas.className = 'gd-wind-layer';\n var _this$_viewer$canvas = this._viewer.canvas,\n width = _this$_viewer$canvas.width,\n height = _this$_viewer$canvas.height;\n this._canvas.width = width;\n this._canvas.height = height;\n this._canvas.style.width = width + 'px';\n this._canvas.style.height = height + 'px';\n\n this._viewer.gdContainer.appendChild(this._canvas);\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_addedHook\",\n value: function _addedHook() {\n var scene = this._viewer.scene;\n var camera = this._viewer.camera;\n var ellipsoid = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Ellipsoid.WGS84;\n\n this._delegate.intersectsCoordinate = function (coordinate) {\n var occluder = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].EllipsoidalOccluder(ellipsoid, camera.position);\n var point = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.fromDegrees(coordinate[0], coordinate[1]);\n return occluder.isPointVisible(point);\n };\n\n this._delegate.project = function (coordinate) {\n var position = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian3.fromDegrees(coordinate[0], coordinate[1]);\n var coord = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].SceneTransforms.wgs84ToWindowCoordinates(scene, position);\n return [coord.x, coord.y];\n };\n\n this._delegate.unProject = function (pixel) {\n var pick = new _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Cartesian2(pixel[0], pixel[1]);\n var cartesian = undefined;\n\n if (scene.mode === _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].SceneMode.SCENE3D) {\n cartesian = scene.globe.pick(camera.getPickRay(pick), scene);\n } else {\n cartesian = scene.camera.pickEllipsoid(pick, ellipsoid);\n }\n\n if (!cartesian) {\n return null;\n }\n\n var cartographic = ellipsoid.cartesianToCartographic(cartesian);\n var lat = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(cartographic.latitude);\n var lng = _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_6__[\"Cesium\"].Math.toDegrees(cartographic.longitude);\n return [lng, lat];\n };\n }\n /**\n *\n * @param viewer\n * @private\n */\n\n }, {\n key: \"_onAdd\",\n value: function _onAdd(viewer) {\n this._viewer = viewer;\n\n this._mountCanvas();\n\n var ctx = this._canvas.getContext('2d');\n\n if (!this._delegate) {\n this._delegate = new _WindCanvas__WEBPACK_IMPORTED_MODULE_10__[\"default\"](ctx);\n\n this._delegate.setOptions(this._options);\n\n this._addedHook();\n }\n\n if (this._data) {\n this._delegate.setData(this._data);\n\n this._delegate.prerender();\n\n this._delegate.render();\n }\n }\n /**\n *\n * @private\n */\n\n }, {\n key: \"_onRemove\",\n value: function _onRemove() {\n if (this._delegate) {\n this._delegate.stop();\n }\n\n if (this._canvas) {\n this._viewer.gdContainer.removeChild(this._canvas);\n }\n\n delete this._canvas;\n }\n /**\n *\n * @param data\n * @param options\n * @returns {WindLayer}\n */\n\n }, {\n key: \"setData\",\n value: function setData(data, options) {\n if (data && data.checkFields && data.checkFields()) {\n this._data = data;\n } else if (Array.isArray(data)) {\n this._data = this._formatData(data);\n }\n\n if (this._delegate) {\n this._delegate.setData(this._data);\n\n if (options) {\n this._options = _objectSpread(_objectSpread({}, this._options), options);\n\n this._delegate.setOptions(this._options);\n }\n\n this._delegate.prerender();\n\n this._delegate.render();\n }\n\n return this;\n }\n /**\n *\n * @param options\n * @returns {WindLayer}\n */\n\n }, {\n key: \"setOptions\",\n value: function setOptions(options) {\n this._options = _objectSpread(_objectSpread({}, this._options), options);\n\n if (this._delegate) {\n this._delegate.setOptions(this._options);\n\n this._delegate.prerender();\n\n this._delegate.render();\n }\n\n return this;\n }\n }]);\n\n return WindLayer;\n}(_gd_modules_layer__WEBPACK_IMPORTED_MODULE_8__[\"Layer\"]);\n\n_gd_modules_layer__WEBPACK_IMPORTED_MODULE_8__[\"Layer\"].registerType('wind');\n/* harmony default export */ __webpack_exports__[\"default\"] = (WindLayer);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9tb2R1bGVzL3dpbmQvV2luZExheWVyLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbW9kdWxlcy93aW5kL1dpbmRMYXllci5qcz9hYjllIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogQ2F2ZW5cbiAqIEBEYXRlOiAyMDIxLTAxLTE4IDIwOjEzOjMwXG4gKi9cblxuaW1wb3J0IHsgQ2VzaXVtIH0gZnJvbSAnQGdkLW1vZHVsZXMvbmFtZXNwYWNlJ1xuaW1wb3J0IFN0YXRlIGZyb20gJ0BnZC1tb2R1bGVzL3N0YXRlL1N0YXRlJ1xuaW1wb3J0IHsgTGF5ZXIgfSBmcm9tICdAZ2QtbW9kdWxlcy9sYXllcidcbmltcG9ydCBGaWVsZCBmcm9tICcuL0ZpZWxkJ1xuaW1wb3J0IFdpbmRDYW52YXMgZnJvbSAnLi9XaW5kQ2FudmFzJ1xuXG5jb25zdCBERUZfT1BUUyA9IHtcbiAgZ2xvYmFsQWxwaGE6IDAuOSxcbiAgbGluZVdpZHRoOiAxLFxuICBjb2xvclNjYWxlOiAnI2ZmZicsXG4gIHZlbG9jaXR5U2NhbGU6IDEgLyAyNSxcbiAgbWF4QWdlOiA5MCxcbiAgcGF0aHM6IDgwMCxcbiAgZnJhbWVSYXRlOiAyMCxcbiAgdXNlQ29vcmRzRHJhdzogdHJ1ZSxcbiAgZ3BldDogdHJ1ZVxufVxuXG5jbGFzcyBXaW5kTGF5ZXIgZXh0ZW5kcyBMYXllciB7XG4gIGNvbnN0cnVjdG9yKGlkLCBvcHRpb25zID0ge30pIHtcbiAgICBzdXBlcihpZClcbiAgICB0aGlzLl9vcHRpb25zID0ge1xuICAgICAgLi4uREVGX09QVFMsXG4gICAgICAuLi5vcHRpb25zXG4gICAgfVxuICAgIHRoaXMuX2RhdGEgPSB1bmRlZmluZWRcbiAgICB0aGlzLl9jYW52YXMgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdjYW52YXMnKVxuICAgIHRoaXMuX3N0YXRlID0gU3RhdGUuSU5JVElBTElaRURcbiAgfVxuXG4gIGdldCB0eXBlKCkge1xuICAgIHJldHVybiBMYXllci5nZXRMYXllclR5cGUoJ3dpbmQnKVxuICB9XG5cbiAgc2V0IHNob3coc2hvdykge1xuICAgIHRoaXMuX3Nob3cgPSBzaG93XG4gICAgdGhpcy5fY2FudmFzLnN0eWxlLnZpc2liaWxpdHkgPSBzaG93ID8gJ3Zpc2libGUnIDogJ2hpZGRlbidcbiAgfVxuXG4gIGdldCBzaG93KCkge1xuICAgIHJldHVybiB0aGlzLl9zaG93XG4gIH1cblxuICAvKipcbiAgICpcbiAgICogQHBhcmFtIGRhdGFcbiAgICogQHJldHVybnMge0ZpZWxkfHVuZGVmaW5lZH1cbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9mb3JtYXREYXRhKGRhdGEpIHtcbiAgICBsZXQgdUNvbXBcbiAgICBsZXQgdkNvbXBcbiAgICBkYXRhLmZvckVhY2goZnVuY3Rpb24ocmVjb3JkKSB7XG4gICAgICBzd2l0Y2ggKFxuICAgICAgICByZWNvcmQuaGVhZGVyLnBhcmFtZXRlckNhdGVnb3J5ICtcbiAgICAgICAgJywnICtcbiAgICAgICAgcmVjb3JkLmhlYWRlci5wYXJhbWV0ZXJOdW1iZXJcbiAgICAgICkge1xuICAgICAgICBjYXNlICcxLDInOlxuICAgICAgICBjYXNlICcyLDInOlxuICAgICAgICAgIHVDb21wID0gcmVjb3JkXG4gICAgICAgICAgYnJlYWtcbiAgICAgICAgY2FzZSAnMSwzJzpcbiAgICAgICAgY2FzZSAnMiwzJzpcbiAgICAgICAgIC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O0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOzs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7OztBQUFBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBOzs7O0FBOU1BO0FBQ0E7QUFnTkE7QUFFQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./modules/wind/WindLayer.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hcnJheUxpa2VUb0FycmF5LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvYXJyYXlMaWtlVG9BcnJheS5qcz81YTQzIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIF9hcnJheUxpa2VUb0FycmF5KGFyciwgbGVuKSB7XG4gIGlmIChsZW4gPT0gbnVsbCB8fCBsZW4gPiBhcnIubGVuZ3RoKSBsZW4gPSBhcnIubGVuZ3RoO1xuXG4gIGZvciAodmFyIGkgPSAwLCBhcnIyID0gbmV3IEFycmF5KGxlbik7IGkgPCBsZW47IGkrKykge1xuICAgIGFycjJbaV0gPSBhcnJbaV07XG4gIH1cblxuICByZXR1cm4gYXJyMjtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfYXJyYXlMaWtlVG9BcnJheSwgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWUsIG1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":
- /*!******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hcnJheVdpdGhvdXRIb2xlcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2FycmF5V2l0aG91dEhvbGVzLmpzPzIyMzYiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIGFycmF5TGlrZVRvQXJyYXkgPSByZXF1aXJlKFwiLi9hcnJheUxpa2VUb0FycmF5LmpzXCIpO1xuXG5mdW5jdGlvbiBfYXJyYXlXaXRob3V0SG9sZXMoYXJyKSB7XG4gIGlmIChBcnJheS5pc0FycmF5KGFycikpIHJldHVybiBhcnJheUxpa2VUb0FycmF5KGFycik7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX2FycmF5V2l0aG91dEhvbGVzLCBtb2R1bGUuZXhwb3J0cy5fX2VzTW9kdWxlID0gdHJ1ZSwgbW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHM7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js":
- /*!**********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hc3NlcnRUaGlzSW5pdGlhbGl6ZWQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hc3NlcnRUaGlzSW5pdGlhbGl6ZWQuanM/M2M5NiJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfYXNzZXJ0VGhpc0luaXRpYWxpemVkKHNlbGYpIHtcbiAgaWYgKHNlbGYgPT09IHZvaWQgMCkge1xuICAgIHRocm93IG5ldyBSZWZlcmVuY2VFcnJvcihcInRoaXMgaGFzbid0IGJlZW4gaW5pdGlhbGlzZWQgLSBzdXBlcigpIGhhc24ndCBiZWVuIGNhbGxlZFwiKTtcbiAgfVxuXG4gIHJldHVybiBzZWxmO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9hc3NlcnRUaGlzSW5pdGlhbGl6ZWQsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0czsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/assertThisInitialized.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js":
- /*!*****************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hc3luY1RvR2VuZXJhdG9yLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvYXN5bmNUb0dlbmVyYXRvci5qcz9jOTczIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIGFzeW5jR2VuZXJhdG9yU3RlcChnZW4sIHJlc29sdmUsIHJlamVjdCwgX25leHQsIF90aHJvdywga2V5LC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W9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHM7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/asyncToGenerator.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js":
- /*!***************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9jbGFzc0NhbGxDaGVjay5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2NsYXNzQ2FsbENoZWNrLmpzPzk3MGIiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2NsYXNzQ2FsbENoZWNrKGluc3RhbmNlLCBDb25zdHJ1Y3Rvcikge1xuICBpZiAoIShpbnN0YW5jZSBpbnN0YW5jZW9mIENvbnN0cnVjdG9yKSkge1xuICAgIHRocm93IG5ldyBUeXBlRXJyb3IoXCJDYW5ub3QgY2FsbCBhIGNsYXNzIGFzIGEgZnVuY3Rpb25cIik7XG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfY2xhc3NDYWxsQ2hlY2ssIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0czsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/classCallCheck.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/createClass.js":
- /*!************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
- \************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9jcmVhdGVDbGFzcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29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wgbW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHM7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/createClass.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/defineProperty.js":
- /*!***************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9kZWZpbmVQcm9wZXJ0eS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2RlZmluZVByb3BlcnR5LmpzPzk1MjMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2RlZmluZVByb3BlcnR5KG9iaiwga2V5LCB2YWx1ZSkge1xuICBpZiAoa2V5IGluIG9iaikge1xuICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosIGtleSwge1xuICAgICAgdmFsdWU6IHZhbHVlLFxuICAgICAgZW51bWVyYWJsZTogdHJ1ZSxcbiAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZSxcbiAgICAgIHdyaXRhYmxlOiB0cnVlXG4gICAgfSk7XG4gIH0gZWxzZSB7XG4gICAgb2JqW2tleV0gPSB2YWx1ZTtcbiAgfVxuXG4gIHJldHVybiBvYmo7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX2RlZmluZVByb3BlcnR5LCBtb2R1bGUuZXhwb3J0cy5fX2VzTW9kdWxlID0gdHJ1ZSwgbW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHM7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/defineProperty.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js":
- /*!***************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9nZXRQcm90b3R5cGVPZi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2dldFByb3RvdHlwZU9mLmpzPzM2YzYiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2dldFByb3RvdHlwZU9mKG8pIHtcbiAgbW9kdWxlLmV4cG9ydHMgPSBfZ2V0UHJvdG90eXBlT2YgPSBPYmplY3Quc2V0UHJvdG90eXBlT2YgPyBPYmplY3QuZ2V0UHJvdG90eXBlT2YgOiBmdW5jdGlvbiBfZ2V0UHJvdG90eXBlT2Yobykge1xuICAgIHJldHVybiBvLl9fcHJvdG9fXyB8fCBPYmplY3QuZ2V0UHJvdG90eXBlT2Yobyk7XG4gIH0sIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0cztcbiAgcmV0dXJuIF9nZXRQcm90b3R5cGVPZihvKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfZ2V0UHJvdG90eXBlT2YsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0czsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/getPrototypeOf.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/inherits.js":
- /*!*********************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
- \*********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9pbmhlcml0cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2luaGVyaXRzLmpzP2VkNmQiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIHNldFByb3RvdHlwZU9mID0gcmVxdWlyZShcIi4vc2V0UHJvdG90eXBlT2YuanNcIik7XG5cbmZ1bmN0aW9uIF9pbmhlcml0cyhzdWJDbGFzcywgc3VwZXJDbGFzcykge1xuICBpZiAodHlwZW9mIHN1cGVyQ2xhc3MgIT09IFwiZnVuY3Rpb25cIiAmJiBzdXBlckNsYXNzICE9PSBudWxsKSB7XG4gICAgdGhyb3cgbmV3IFR5cGVFcnJvcihcIlN1cGVyIGV4cHJlc3Npb24gbXVzdCBlaXRoZXIgYmUgbnVsbCBvciBhIGZ1bmN0aW9uXCIpO1xuICB9XG5cbiAgc3ViQ2xhc3MucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShzdXBlckNsYXNzICYmIHN1cGVyQ2xhc3MucHJvdG90eXBlLCB7XG4gICAgY29uc3RydWN0b3I6IHtcbiAgICAgIHZhbHVlOiBzdWJDbGFzcyxcbiAgICAgIHdyaXRhYmxlOiB0cnVlLFxuICAgICAgY29uZmlndXJhYmxlOiB0cnVlXG4gICAgfVxuICB9KTtcbiAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHN1YkNsYXNzLCBcInByb3RvdHlwZVwiLCB7XG4gICAgd3JpdGFibGU6IGZhbHNlXG4gIH0pO1xuICBpZiAoc3VwZXJDbGFzcykgc2V0UHJvdG90eXBlT2Yoc3ViQ2xhc3MsIHN1cGVyQ2xhc3MpO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9pbmhlcml0cywgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWUsIG1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/inherits.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/iterableToArray.js":
- /*!****************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
- \****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9pdGVyYWJsZVRvQXJyYXkuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9pdGVyYWJsZVRvQXJyYXkuanM/MTFiMCJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfaXRlcmFibGVUb0FycmF5KGl0ZXIpIHtcbiAgaWYgKHR5cGVvZiBTeW1ib2wgIT09IFwidW5kZWZpbmVkXCIgJiYgaXRlcltTeW1ib2wuaXRlcmF0b3JdICE9IG51bGwgfHwgaXRlcltcIkBAaXRlcmF0b3JcIl0gIT0gbnVsbCkgcmV0dXJuIEFycmF5LmZyb20oaXRlcik7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX2l0ZXJhYmxlVG9BcnJheSwgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWUsIG1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/iterableToArray.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/nonIterableSpread.js":
- /*!******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9ub25JdGVyYWJsZVNwcmVhZC5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL25vbkl0ZXJhYmxlU3ByZWFkLmpzPzA2NzYiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX25vbkl0ZXJhYmxlU3ByZWFkKCkge1xuICB0aHJvdyBuZXcgVHlwZUVycm9yKFwiSW52YWxpZCBhdHRlbXB0IHRvIHNwcmVhZCBub24taXRlcmFibGUgaW5zdGFuY2UuXFxuSW4gb3JkZXIgdG8gYmUgaXRlcmFibGUsIG5vbi1hcnJheSBvYmplY3RzIG11c3QgaGF2ZSBhIFtTeW1ib2wuaXRlcmF0b3JdKCkgbWV0aG9kLlwiKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfbm9uSXRlcmFibGVTcHJlYWQsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0czsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/nonIterableSpread.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
- /*!**************************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("var _typeof = __webpack_require__(/*! ./typeof.js */ \"./node_modules/@babel/runtime/helpers/typeof.js\")[\"default\"];\n\nvar assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9wb3NzaWJsZUNvbnN0cnVjdG9yUmV0dXJuLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvcG9zc2libGVDb25zdHJ1Y3RvclJldHVybi5qcz82YjU4Il0sInNvdXJjZXNDb250ZW50IjpbInZhciBfdHlwZW9mID0gcmVxdWlyZShcIi4vdHlwZW9mLmpzXCIpW1wiZGVmYXVsdFwiXTtcblxudmFyIGFzc2VydFRoaXNJbml0aWFsaXplZCA9IHJlcXVpcmUoXCIuL2Fzc2VydFRoaXNJbml0aWFsaXplZC5qc1wiKTtcblxuZnVuY3Rpb24gX3Bvc3NpYmxlQ29uc3RydWN0b3JSZXR1cm4oc2VsZiwgY2FsbCkge1xuICBpZiAoY2FsbCAmJiAoX3R5cGVvZihjYWxsKSA9PT0gXCJvYmplY3RcIiB8fCB0eXBlb2YgY2FsbCA9PT0gXCJmdW5jdGlvblwiKSkge1xuICAgIHJldHVybiBjYWxsO1xuICB9IGVsc2UgaWYgKGNhbGwgIT09IHZvaWQgMCkge1xuICAgIHRocm93IG5ldyBUeXBlRXJyb3IoXCJEZXJpdmVkIGNvbnN0cnVjdG9ycyBtYXkgb25seSByZXR1cm4gb2JqZWN0IG9yIHVuZGVmaW5lZFwiKTtcbiAgfVxuXG4gIHJldHVybiBhc3NlcnRUaGlzSW5pdGlhbGl6ZWQoc2VsZik7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX3Bvc3NpYmxlQ29uc3RydWN0b3JSZXR1cm4sIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0czsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js":
- /*!***************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
- \***************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9zZXRQcm90b3R5cGVPZi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3NldFByb3RvdHlwZU9mLmpzPzRhNGIiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX3NldFByb3RvdHlwZU9mKG8sIHApIHtcbiAgbW9kdWxlLmV4cG9ydHMgPSBfc2V0UHJvdG90eXBlT2YgPSBPYmplY3Quc2V0UHJvdG90eXBlT2YgfHwgZnVuY3Rpb24gX3NldFByb3RvdHlwZU9mKG8sIHApIHtcbiAgICBvLl9fcHJvdG9fXyA9IHA7XG4gICAgcmV0dXJuIG87XG4gIH0sIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0cztcbiAgcmV0dXJuIF9zZXRQcm90b3R5cGVPZihvLCBwKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfc2V0UHJvdG90eXBlT2YsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0czsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/toConsumableArray.js":
- /*!******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ \"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js\");\n\nvar iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ \"./node_modules/@babel/runtime/helpers/iterableToArray.js\");\n\nvar unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ \"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\");\n\nvar nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ \"./node_modules/@babel/runtime/helpers/nonIterableSpread.js\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy90b0NvbnN1bWFibGVBcnJheS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3RvQ29uc3VtYWJsZUFycmF5LmpzPzQ0OGEiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIGFycmF5V2l0aG91dEhvbGVzID0gcmVxdWlyZShcIi4vYXJyYXlXaXRob3V0SG9sZXMuanNcIik7XG5cbnZhciBpdGVyYWJsZVRvQXJyYXkgPSByZXF1aXJlKFwiLi9pdGVyYWJsZVRvQXJyYXkuanNcIik7XG5cbnZhciB1bnN1cHBvcnRlZEl0ZXJhYmxlVG9BcnJheSA9IHJlcXVpcmUoXCIuL3Vuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5LmpzXCIpO1xuXG52YXIgbm9uSXRlcmFibGVTcHJlYWQgPSByZXF1aXJlKFwiLi9ub25JdGVyYWJsZVNwcmVhZC5qc1wiKTtcblxuZnVuY3Rpb24gX3RvQ29uc3VtYWJsZUFycmF5KGFycikge1xuICByZXR1cm4gYXJyYXlXaXRob3V0SG9sZXMoYXJyKSB8fCBpdGVyYWJsZVRvQXJyYXkoYXJyKSB8fCB1bnN1cHBvcnRlZEl0ZXJhYmxlVG9BcnJheShhcnIpIHx8IG5vbkl0ZXJhYmxlU3ByZWFkKCk7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX3RvQ29uc3VtYWJsZUFycmF5LCBtb2R1bGUuZXhwb3J0cy5fX2VzTW9kdWxlID0gdHJ1ZSwgbW9kdWxlLmV4cG9ydHNbXCJkZWZhdWx0XCJdID0gbW9kdWxlLmV4cG9ydHM7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/toConsumableArray.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/typeof.js":
- /*!*******************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- eval("function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\n\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy90eXBlb2YuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy90eXBlb2YuanM/NzAzNyJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfdHlwZW9mKG9iaikge1xuICBcIkBiYWJlbC9oZWxwZXJzIC0gdHlwZW9mXCI7XG5cbiAgcmV0dXJuIChtb2R1bGUuZXhwb3J0cyA9IF90eXBlb2YgPSBcImZ1bmN0aW9uXCIgPT0gdHlwZW9mIFN5bWJvbCAmJiBcInN5bWJvbFwiID09IHR5cGVvZiBTeW1ib2wuaXRlcmF0b3IgPyBmdW5jdGlvbiAob2JqKSB7XG4gICAgcmV0dXJuIHR5cGVvZiBvYmo7XG4gIH0gOiBmdW5jdGlvbiAob2JqKSB7XG4gICAgcmV0dXJuIG9iaiAmJiBcImZ1bmN0aW9uXCIgPT0gdHlwZW9mIFN5bWJvbCAmJiBvYmouY29uc3RydWN0b3IgPT09IFN5bWJvbCAmJiBvYmogIT09IFN5bWJvbC5wcm90b3R5cGUgPyBcInN5bWJvbFwiIDogdHlwZW9mIG9iajtcbiAgfSwgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWUsIG1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzKSwgX3R5cGVvZihvYmopO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF90eXBlb2YsIG1vZHVsZS5leHBvcnRzLl9fZXNNb2R1bGUgPSB0cnVlLCBtb2R1bGUuZXhwb3J0c1tcImRlZmF1bHRcIl0gPSBtb2R1bGUuZXhwb3J0czsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/typeof.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
- /*!***************************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ \"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy91bnN1cHBvcnRlZEl0ZXJhYmxlVG9BcnJheS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovL0dkQ29yZS8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3Vuc3VwcG9ydGVkSXRlcmFibGVUb0FycmF5LmpzPzY2MTMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIGFycmF5TGlrZVRvQXJyYXkgPSByZXF1aXJlKFwiLi9hcnJheUxpa2VUb0FycmF5LmpzXCIpO1xuXG5mdW5jdGlvbiBfdW5zdXBwb3J0ZWRJdGVyYWJsZVRvQXJyYXkobywgbWluTGVuKSB7XG4gIGlmICghbykgcmV0dXJuO1xuICBpZiAodHlwZW9mIG8gPT09IFwic3RyaW5nXCIpIHJldHVybiBhcnJheUxpa2VUb0FycmF5KG8sIG1pbkxlbik7XG4gIHZhciBuID0gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKG8pLnNsaWNlKDgsIC0xKTtcbiAgaWYgKG4gPT09IFwiT2JqZWN0XCIgJiYgby5jb25zdHJ1Y3RvcikgbiA9IG8uY29uc3RydWN0b3IubmFtZTtcbiAgaWYgKG4gPT09IFwiTWFwXCIgfHwgbiA9PT0gXCJTZXRcIikgcmV0dXJuIEFycmF5LmZyb20obyk7XG4gIGlmIChuID09PSBcIkFyZ3VtZW50c1wiIHx8IC9eKD86VWl8SSludCg/Ojh8MTZ8MzIpKD86Q2xhbXBlZCk/QXJyYXkkLy50ZXN0KG4pKSByZXR1cm4gYXJyYXlMaWtlVG9BcnJheShvLCBtaW5MZW4pO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF91bnN1cHBvcnRlZEl0ZXJhYmxlVG9BcnJheSwgbW9kdWxlLmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWUsIG1vZHVsZS5leHBvcnRzW1wiZGVmYXVsdFwiXSA9IG1vZHVsZS5leHBvcnRzOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js\n");
- /***/ }),
- /***/ "./node_modules/@babel/runtime/regenerator/index.js":
- /*!**********************************************************!*\
- !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("module.exports = __webpack_require__(/*! regenerator-runtime */ \"./node_modules/regenerator-runtime/runtime.js\");\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvcmVnZW5lcmF0b3IvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HZENvcmUvLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvcmVnZW5lcmF0b3IvaW5kZXguanM/YTM0YSJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoXCJyZWdlbmVyYXRvci1ydW50aW1lXCIpO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/regenerator/index.js\n");
- /***/ }),
- /***/ "./node_modules/cesium/Build/Cesium/Widgets/widgets.css":
- /*!**************************************************************!*\
- !*** ./node_modules/cesium/Build/Cesium/Widgets/widgets.css ***!
- \**************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY2VzaXVtL0J1aWxkL0Nlc2l1bS9XaWRnZXRzL3dpZGdldHMuY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbm9kZV9tb2R1bGVzL2Nlc2l1bS9CdWlsZC9DZXNpdW0vV2lkZ2V0cy93aWRnZXRzLmNzcz8zNzg2Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/cesium/Build/Cesium/Widgets/widgets.css\n");
- /***/ }),
- /***/ "./node_modules/regenerator-runtime/runtime.js":
- /*!*****************************************************!*\
- !*** ./node_modules/regenerator-runtime/runtime.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- eval("/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = GeneratorFunctionPrototype;\n define(Gp, \"constructor\", GeneratorFunctionPrototype);\n define(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction);\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n });\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n define(Gp, iteratorSymbol, function() {\n return this;\n });\n\n define(Gp, \"toString\", function() {\n return \"[object Generator]\";\n });\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n true ? module.exports : undefined\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, in modern engines\n // we can explicitly access globalThis. In older engines we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvcmVnZW5lcmF0b3ItcnVudGltZS9ydW50aW1lLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vbm9kZ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gYW5vdGhlciBpbnZvY2F0aW9uLlxuICAgICAgICAgIHN0YXRlID0gY29udGV4dC5kb25lXG4gICAgICAgICAgICA/IEdlblN0YXRlQ29tcGxldGVkXG4gICAgICAgICAgICA6IEdlblN0YXRlU3VzcGVuZGVkWWllbGQ7XG5cbiAgICAgICAgICBpZiAocmVjb3JkLmFyZyA9PT0gQ29udGludWVTZW50aW5lbCkge1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIHZhbHVlOiByZWNvcmQuYXJnLFxuICAgICAgICAgICAgZG9uZTogY29udGV4dC5kb25lXG4gICAgICAgICAgfTtcblxuICAgICAgICB9IGVsc2UgaWYgKHJlY29yZC50eXBlID09PSBcInRocm93XCIpIHtcbiAgICAgICAgICBzdGF0ZSA9IEdlblN0YXRlQ29tcGxldGVkO1xuICAgICAgICAgIC8vIERpc3BhdGNoIHRoZSBleGNlcHRpb24gYnkgbG9vcGluZyBiYWNrIGFyb3VuZCB0byB0aGVcbiAgICAgICAgICAvLyBjb250ZXh0LmRpc3BhdGNoRXhjZXB0aW9uKGNvbnRleHQuYXJnKSBjYWxsIGFib3ZlLlxuICAgICAgICAgIGNvbnRleHQubWV0aG9kID0gXCJ0aHJvd1wiO1xuICAgICAgICAgIGNvbnRleHQuYXJnID0gcmVjb3JkLmFyZztcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH07XG4gIH1cblxuICAvLyBDYWxsIGRlbGVnYXRlLml0ZXJhdG9yW2NvbnRleHQubWV0aG9kXShjb250ZXh0LmFyZykgYW5kIGhhbmRsZSB0aGVcbiAgLy8gcmVzdWx0LCBlaXRoZXIgYnkgcmV0dXJuaW5nIGEgeyB2YWx1ZSwgZG9uZSB9IHJlc3VsdCBmcm9tIHRoZVxuICAvLyBkZWxlZ2F0ZSBpdGVyYXRvciwgb3IgYnkgbW9kaWZ5aW5nIGNvbnRleHQubWV0aG9kIGFuZCBjb250Z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pcFRlbXBSZXNldCkge1xuICAgICAgICBmb3IgKHZhciBuYW1lIGluIHRoaXMpIHtcbiAgICAgICAgICAvLyBOb3Qgc3VyZSBhYm91dCB0aGUgb3B0aW1hbCBvcmRlciBvZiB0aGVzZSBjb25kaXRpb25zOlxuICAgICAgICAgIGlmIChuYW1lLmNoYXJBdCgwKSA9PT0gXCJ0XCIgJiZcbiAgICAgICAgICAgICAgaGFzT3duLmNhbGwodGhpcywgbmFtZSkgJiZcbiAgICAgICAgICAgICAgIWlzTmFOKCtuYW1lLnNsaWNlKDEpKSkge1xuICAgICAgICAgICAgdGhpc1tuYW1lXSA9IHVuZGVmaW5lZDtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9LFxuXG4gICAgc3RvcDogZnVuY3Rpb24oKSB7XG4gICAgICB0aGlzLmRvbmUgPSB0cnVlO1xuXG4gICAgICB2YXIgcm9vdEVudHJ5ID0gdGhpcy50cnlFbnRyaWVzWzBdO1xuICAgICAgdmFyIHJvb3RSZWNvcmQgPSByb290RW50cnkuY29tcGxldGlvbjtcbiAgICAgIGlmIChyb290UmVjb3JkLnR5cGUgPT09IFwidGhyb3dcIikge1xuICAgICAgICB0aHJvdyByb290UmVjb3JkLmFyZztcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIHRoaXMucnZhbDtcbiAgICB9LFxuXG4gICAgZGlzcGF0Y2hFeGNlcHRpb246IGZ1bmN0aW9uKGV4Y2VwdGlvbikge1xuICAgICAgaWYgKHRoaXMuZG9uZSkge1xuICAgICAgICB0aHJvdyBleGNlcHRpb247XG4gICAgICB9XG5cbiAgICAgIHZhciBjb250ZXh0ID0gdGhpcztcbiAgICAgIGZ1bmN0aW9uIGhhbmRsZShsb2MsIGNhdWdodCkge1xuICAgICAgICByZWNvcmQudHlwZSA9IFwidGhyb3dcIjtcbiAgICAgICAgcmVjb3JkLmFyZyA9IGV4Y2VwdGlvbjtcbiAgICAgICAgY29udGV4dC5uZXh0ID0gb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GFzRmluYWxseSA9IGhhc093bi5jYWxsKGVudHJ5LCBcImZpbmFsbHlMb2NcIik7XG5cbiAgICAgICAgICBpZiAoaGFzQ2F0Y2ggJiYgaGFzRmluYWxseSkge1xuICAgICAgICAgICAgaWYgKHRoaXMucHJldiA8IGVudHJ5LmNhdGNoTG9jKSB7XG4gICAgICAgICAgICAgIHJldHVybiBoYW5kbGUoZW50cnkuY2F0Y2hMb2MsIHRydWUpO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLnByZXYgPCBlbnRyeS5maW5hbGx5TG9jKSB7XG4gICAgICAgICAgICAgIHJldHVybiBoYW5kbGUoZW50cnkuZmluYWxseUxvYyk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICB9IGVsc2UgaWYgKGhhc0NhdGNoKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5wcmV2IDwgZW50cnkuY2F0Y2hMb2MpIHtcbiAgICAgICAgICAgICAgcmV0dXJuIGhhbmRsZShlbnRyeS5jYXRjaExvYywgdHJ1ZSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICB9IGVsc2UgaWYgKGhhc0ZpbmFsbHkpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnByZXYgPCBlbnRyeS5maW5hbGx5TG9jKSB7XG4gICAgICAgICAgICAgIHJldHVybiBoYW5kbGUoZW50cnkuZmluYWxseUxvYyk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFwidHJ5IHN0YXRlbWVudCB3aXRob3V0IGNhdGNoIG9yIGZpbmFsbHlcIik7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcblxuICAgIGFicnVwdDogZnVuY3Rpb24odHlwZSwgYXJnKSB7XG4gICAgICBmb3IgKHZhciBpID0gdGhpcy50cnlFbnRyaWVzLmxlbmd0aCAtIDE7IGkgPj0gMDsgLS1pKSB7XG4gICAgIC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bnRpbmVsO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gdGhpcy5jb21wbGV0ZShyZWNvcmQpO1xuICAgIH0sXG5cbiAgICBjb21wbGV0ZTogZnVuY3Rpb24ocmVjb3JkLCBhZnRlckxvYykge1xuICAgICAgaWYgKHJlY29yZC50eXBlID09PSBcInRocm93XCIpIHtcbiAgICAgICAgdGhyb3cgcmVjb3JkLmFyZztcbiAgICAgIH1cblxuICAgICAgaWYgKHJlY29yZC50eXBlID09PSBcImJyZWFrXCIgfHxcbiAgICAgICAgICByZWNvcmQudHlwZSA9PT0gXCJjb250aW51ZVwiKSB7XG4gICAgICAgIHRoaXMubmV4dCA9IHJlY29yZC5hcmc7XG4gICAgICB9IGVsc2UgaWYgKHJlY29yZC50eXBlID09PSBcInJldHVyblwiKSB7XG4gICAgICAgIHRoaXMucnZhbCA9IHRoaXMuYXJnID0gcmVjb3JkLmFyZztcbiAgICAgICAgdGhpcy5tZXRob2QgPSBcInJldHVyblwiO1xuICAgICAgICB0aGlzLm5leHQgPSBcImVuZFwiO1xuICAgICAgfSBlbHNlIGlmIChyZWNvcmQudHlwZSA9PT0gXCJub3JtYWxcIiAmJiBhZnRlckxvYykge1xuICAgICAgICB0aGlzLm5leHQgPSBhZnRlckxvYztcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIENvbnRpbnVlU2VudGluZWw7XG4gICAgfSxcblxuICAgIGZpbmlzaDogZnVuY3Rpb24oZmluYWxseUxvYykge1xuICAgICAgZm9yICh2YXIgaSA9IHRoaXMudHJ5RW50cmllcy5sZW5ndGggLSAxOyBpID49IDA7IC0taSkge1xuICAgICAgICB2YXIgZW50cnkgPSB0aGlzLnRyeUVudHJpZXNbaV07XG4gICAgICAgIGlmIChlbnRyeS5maW5hbGx5TG9jID09PSBmaW5hbGx5TG9jKSB7XG4gICAgICAgICAgdGhpcy5jb21wbGV0ZShlbnRyeS5jb21wbGV0aW9uLCBlbnRyeS5hZnRlckxvYyk7XG4gICAgICAgICAgc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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/regenerator-runtime/runtime.js\n");
- /***/ }),
- /***/ "./packages/core/index.js":
- /*!********************************!*\
- !*** ./packages/core/index.js ***!
- \********************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _gd_modules_global_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @gd-modules/global-api */ \"./modules/global-api/index.js\");\n/**\n * @Author: Liuce\n * @Date: 2022-04-13 09:02:15\n */\n\n\nvar install = function install(GD) {\n if (!GD) {\n throw new Error('Missing GD Base Package');\n }\n\n Object(_gd_modules_global_api__WEBPACK_IMPORTED_MODULE_0__[\"registerLib\"])('Cesium', GD.Namespace.Cesium);\n /**\n * start\n */\n\n GD.ready = function (callback) {\n try {\n if (!GD.Initialized) {\n // load components\n GD.init(function () {\n try {\n GD.mixin(__webpack_require__(/*! ./src/components.js */ \"./packages/core/src/components.js\").default);\n\n if (GD.baseUrl) {\n var Cesium = GD.Namespace.Cesium;\n Cesium && Cesium.buildModuleUrl.setBaseUrl(GD.baseUrl);\n }\n\n GD.Initialized = true;\n callback && callback();\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error(e);\n GD.Initialized = false;\n }\n });\n } else {\n callback && callback();\n }\n } catch (e) {\n // eslint-disable-next-line no-console\n console.error(e);\n GD.Initialized = false;\n throw e;\n }\n };\n};\n/* istanbul ignore if */\n\n\nif (typeof window !== 'undefined' && window.GD) {\n install(window.GD);\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n version: \"1.0.0\",\n compile_time: \"2022-12-07\",\n install: install\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9wYWNrYWdlcy9jb3JlL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vR2RDb3JlLy4vcGFja2FnZXMvY29yZS9pbmRleC5qcz9jMjgyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQEF1dGhvcjogTGl1Y2VcbiAqIEBEYXRlOiAyMDIyLTA0LTEzIDA5OjAyOjE1XG4gKi9cbmltcG9ydCB7IHJlZ2lzdGVyTGliIH0gZnJvbSAnQGdkLW1vZHVsZXMvZ2xvYmFsLWFwaSdcblxuY29uc3QgaW5zdGFsbCA9IGZ1bmN0aW9uKEdEKSB7XG4gIGlmICghR0QpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoJ01pc3NpbmcgR0QgQmFzZSBQYWNrYWdlJylcbiAgfVxuXG4gIHJlZ2lzdGVyTGliKCdDZXNpdW0nLCBHRC5OYW1lc3BhY2UuQ2VzaXVtKVxuICAvKipcbiAgICogc3RhcnRcbiAgICovXG4gIEdELnJlYWR5ID0gY2FsbGJhY2sgPT4ge1xuICAgIHRyeSB7XG4gICAgICBpZiAoIUdELkluaXRpYWxpemVkKSB7XG4gICAgICAgIC8vIGxvYWQgY29tcG9uZW50c1xuICAgICAgICBHRC5pbml0KCgpID0+IHtcbiAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgR0QubWl4aW4ocmVxdWlyZSgnLi9zcmMvY29tcG9uZW50cy5qcycpLmRlZmF1bHQpXG4gICAgICAgICAgICBpZiAoR0QuYmFzZVVybCkge1xuICAgICAgICAgICAgICBjb25zdCB7IENlc2l1bSB9ID0gR0QuTmFtZXNwYWNlXG4gICAgICAgICAgICAgIENlc2l1bSAmJiBDZXNpdW0uYnVpbGRNb2R1bGVVcmwuc2V0QmFzZVVybChHRC5iYXNlVXJsKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgR0QuSW5pdGlhbGl6ZWQgPSB0cnVlXG4gICAgICAgICAgICBjYWxsYmFjayAmJiBjYWxsYmFjaygpXG4gICAgICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIG5vLWNvbnNvbGVcbiAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoZSlcbiAgICAgICAgICAgIEdELkluaXRpYWxpemVkID0gZmFsc2VcbiAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICB9IGVsc2Uge1xuICAgICAgICBjYWxsYmFjayAmJiBjYWxsYmFjaygpXG4gICAgICB9XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIG5vLWNvbnNvbGVcbiAgICAgIGNvbnNvbGUuZXJyb3IoZSlcbiAgICAgIEdELkluaXRpYWxpemVkID0gZmFsc2VcbiAgICAgIHRocm93IGVcbiAgICB9XG4gIH1cbn1cblxuLyogaXN0YW5idWwgaWdub3JlIGlmICovXG5pZiAodHlwZW9mIHdpbmRvdyAhPT0gJ3VuZGVmaW5lZCcgJiYgd2luZG93LkdEKSB7XG4gIGluc3RhbGwod2luZG93LkdEKVxufVxuXG5leHBvcnQgZGVmYXVsdCB7XG4gIHZlcnNpb246IF9fVkVSU0lPTl9fLFxuICBjb21waWxlX3RpbWU6IF9fVElNRV9fLFxuICBpbnN0YWxsXG59XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFEQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSEEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./packages/core/index.js\n");
- /***/ }),
- /***/ "./packages/core/src/components.js":
- /*!*****************************************!*\
- !*** ./packages/core/src/components.js ***!
- \*****************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ \"./node_modules/@babel/runtime/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @gd-modules/namespace */ \"./modules/namespace/index.js\");\n/* harmony import */ var _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @gd-modules/position/Position */ \"./modules/position/Position.js\");\n/* harmony import */ var _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @gd-modules/parse/Parse */ \"./modules/parse/Parse.js\");\n/* harmony import */ var _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @gd-modules/utils */ \"./modules/utils/index.js\");\n/* harmony import */ var _gd_modules_transform__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @gd-modules/transform */ \"./modules/transform/index.js\");\n/* harmony import */ var _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @gd-modules/event */ \"./modules/event/index.js\");\n/* harmony import */ var _gd_modules_option__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @gd-modules/option */ \"./modules/option/index.js\");\n/* harmony import */ var _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @gd-modules/math */ \"./modules/math/index.js\");\n/* harmony import */ var _gd_modules_viewer_Viewer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @gd-modules/viewer/Viewer */ \"./modules/viewer/Viewer.js\");\n/* harmony import */ var _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @gd-modules/imagery */ \"./modules/imagery/index.js\");\n/* harmony import */ var _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @gd-modules/terrain */ \"./modules/terrain/index.js\");\n/* harmony import */ var _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @gd-modules/layer */ \"./modules/layer/index.js\");\n/* harmony import */ var _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @gd-modules/overlay */ \"./modules/overlay/index.js\");\n/* harmony import */ var _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @gd-modules/material */ \"./modules/material/index.js\");\n/* harmony import */ var _gd_modules_effect_Effect__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @gd-modules/effect/Effect */ \"./modules/effect/Effect.js\");\n/* harmony import */ var _gd_modules_animation__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @gd-modules/animation */ \"./modules/animation/index.js\");\n/* harmony import */ var _gd_modules_roaming__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @gd-modules/roaming */ \"./modules/roaming/index.js\");\n/* harmony import */ var _gd_modules_history_track__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @gd-modules/history-track */ \"./modules/history-track/index.js\");\n/* harmony import */ var _gd_modules_weather_Weather__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @gd-modules/weather/Weather */ \"./modules/weather/Weather.js\");\n/* harmony import */ var _gd_modules_plot_Plot__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @gd-modules/plot/Plot */ \"./modules/plot/Plot.js\");\n/* harmony import */ var _gd_modules_wind_WindLayer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @gd-modules/wind/WindLayer */ \"./modules/wind/WindLayer.js\");\n/* harmony import */ var _gd_modules_heat_HeatLayer__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @gd-modules/heat/HeatLayer */ \"./modules/heat/HeatLayer.js\");\n/* harmony import */ var _gd_modules_exts__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @gd-modules/exts */ \"./modules/exts/index.js\");\n/* harmony import */ var _gd_modules_thirdpart__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @gd-modules/thirdpart */ \"./modules/thirdpart/index.js\");\n/* harmony import */ var _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @gd-modules/draw/drawGraphics */ \"./modules/draw/drawGraphics.js\");\n/* harmony import */ var _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @gd-modules/math/mathCalculation */ \"./modules/math/mathCalculation.js\");\n/* harmony import */ var _gd_modules_measure__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @gd-modules/measure */ \"./modules/measure/index.js\");\n/* harmony import */ var _gd_modules_camera__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @gd-modules/camera */ \"./modules/camera/index.js\");\n/* harmony import */ var _gd_modules_cameraAnimation__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @gd-modules/cameraAnimation */ \"./modules/cameraAnimation/index.js\");\n/* harmony import */ var _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @gd-modules/analysis */ \"./modules/analysis/index.js\");\n/* harmony import */ var _gd_modules_clipping__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @gd-modules/clipping */ \"./modules/clipping/index.js\");\n/* harmony import */ var _gd_modules_flat__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @gd-modules/flat */ \"./modules/flat/index.js\");\n/* harmony import */ var _gd_modules_scene__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @gd-modules/scene */ \"./modules/scene/index.js\");\n/* harmony import */ var _gd_modules_domComponent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @gd-modules/domComponent */ \"./modules/domComponent/index.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/**\n * @Author: Liuce\n * @Date: 2022-04-13 11:10:21\n */\n\n/**\n * base\n */\n\n\n\n\n\n\n\n\n\n/**\n * imagery\n */\n\n\n/**\n * terrain\n */\n\n\n/**\n * layer\n */\n\n\n/**\n * overlay\n */\n\n\n/**\n * material\n */\n\n\n/**\n *\n * effect\n */\n\n\n/**\n * animation\n */\n\n\n/**\n *\n * roaming\n */\n\n\n/**\n *\n * history-track\n */\n\n\n/**\n *\n * weather\n */\n\n\n/**\n *\n * plot\n */\n\n\n/**\n *\n * wind\n */\n\n\n/**\n *\n * heat\n */\n\n\n/**\n * exts\n */\n\n\n/**\n * thirdPart\n */\n\n\n/**\n * draw\n */\n\n\n/**\n * mathCalculation\n */\n\n\n/**\n * measure\n */\n\n\n/**\n * camera\n */\n\n\n\n/**\n * analysis\n */\n\n\n\n\n\n\n/**\n * sceneControl\n */\n\n\n/**\n * domComponent\n */\n\n\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.area = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"area\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.bounds = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"bounds\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.center = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"center\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.distance = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"distance\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.heading = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"heading\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.isBetween = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"isBetween\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.midCartesian = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midCartesian\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.mid = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midPosition\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.midPosition = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"midPosition\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.parabola = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"parabola\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.curve = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"curve\"];\n_gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math.isInPolygon = _gd_modules_math__WEBPACK_IMPORTED_MODULE_8__[\"isInPolygon\"];\n\nvar components = _objectSpread(_objectSpread({\n /**\n * base\n */\n Position: _gd_modules_position_Position__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n Parse: _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n P: _gd_modules_parse_Parse__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n Util: _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"Util\"],\n DomUtil: _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"DomUtil\"],\n PlotUtil: _gd_modules_utils__WEBPACK_IMPORTED_MODULE_4__[\"PlotUtil\"],\n Transform: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_5__[\"Transform\"],\n T: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_5__[\"Transform\"],\n CoordTransform: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_5__[\"CoordTransform\"],\n CT: _gd_modules_transform__WEBPACK_IMPORTED_MODULE_5__[\"CoordTransform\"],\n MouseEventType: _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"MouseEventType\"],\n SceneEventType: _gd_modules_event__WEBPACK_IMPORTED_MODULE_6__[\"SceneEventType\"],\n MouseMode: _gd_modules_option__WEBPACK_IMPORTED_MODULE_7__[\"MouseMode\"],\n Math: _gd_modules_namespace__WEBPACK_IMPORTED_MODULE_1__[\"Cesium\"].Math,\n Viewer: _gd_modules_viewer_Viewer__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n World: _gd_modules_viewer_Viewer__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n Map: _gd_modules_viewer_Viewer__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n\n /**\n * imagery\n */\n ImageryType: _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_10__[\"ImageryType\"],\n ImageryLayerFactory: _gd_modules_imagery__WEBPACK_IMPORTED_MODULE_10__[\"ImageryLayerFactory\"],\n\n /**\n * terrain\n */\n TerrainType: _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_11__[\"TerrainType\"],\n TerrainFactory: _gd_modules_terrain__WEBPACK_IMPORTED_MODULE_11__[\"TerrainFactory\"],\n\n /**\n * layer\n */\n LayerType: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"LayerType\"],\n Layer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"Layer\"],\n LayerController: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"LayerController\"],\n ClusterLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"ClusterLayer\"],\n CzmlLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"CzmlLayer\"],\n DynamicLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"DynamicLayer\"],\n FeatureGridLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"FeatureGridLayer\"],\n GeoJsonLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"GeoJsonLayer\"],\n GpxLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"GpxLayer\"],\n HtmlLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"HtmlLayer\"],\n KmlLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"KmlLayer\"],\n LabelLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"LabelLayer\"],\n LayerGroup: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"LayerGroup\"],\n PrimitiveLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"PrimitiveLayer\"],\n TilesetLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"TilesetLayer\"],\n TopoJsonLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"TopoJsonLayer\"],\n VectorLayer: _gd_modules_layer__WEBPACK_IMPORTED_MODULE_12__[\"VectorLayer\"],\n\n /**\n * overlay\n */\n OverlayType: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"OverlayType\"],\n Overlay: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Overlay\"],\n CustomBillboard: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"CustomBillboard\"],\n CustomLabel: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"CustomLabel\"],\n DynamicBillboard: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"DynamicBillboard\"],\n DynamicModel: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"DynamicModel\"],\n Model: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Model\"],\n Tileset: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Tileset\"],\n AttackArrow: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"AttackArrow\"],\n DoubleArrow: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"DoubleArrow\"],\n FineArrow: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"FineArrow\"],\n GatheringPlace: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"GatheringPlace\"],\n TailedAttackArrow: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"TailedAttackArrow\"],\n BillboardPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"BillboardPrimitive\"],\n BounceBillboardPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"BounceBillboardPrimitive\"],\n BounceLabelPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"BounceLabelPrimitive\"],\n CloudPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"CloudPrimitive\"],\n DiffuseWallPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"DiffuseWallPrimitive\"],\n ElecEllipsoidPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"ElecEllipsoidPrimitive\"],\n FlowLinePrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"FlowLinePrimitive\"],\n LabelPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"LabelPrimitive\"],\n ModelCollectionPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"ModelCollectionPrimitive\"],\n ModelPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"ModelPrimitive\"],\n PointPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"PointPrimitive\"],\n PolylinePrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"PolylinePrimitive\"],\n ScanCirclePrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"ScanCirclePrimitive\"],\n TrailLinePrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"TrailLinePrimitive\"],\n VideoPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"VideoPrimitive\"],\n WaterPrimitive: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"WaterPrimitive\"],\n Billboard: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Billboard\"],\n Box: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Box\"],\n Circle: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Circle\"],\n Corridor: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Corridor\"],\n Cylinder: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Cylinder\"],\n DivIcon: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"DivIcon\"],\n Ellipse: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Ellipse\"],\n Ellipsoid: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Ellipsoid\"],\n Label: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Label\"],\n Plane: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Plane\"],\n Point: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Point\"],\n Polygon: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Polygon\"],\n Polyline: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Polyline\"],\n PolylineVolume: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"PolylineVolume\"],\n Rectangle: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Rectangle\"],\n Wall: _gd_modules_overlay__WEBPACK_IMPORTED_MODULE_13__[\"Wall\"],\n\n /**\n * material\n */\n CircleBlurMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"CircleBlurMaterialProperty\"],\n CircleDiffuseMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"CircleDiffuseMaterialProperty\"],\n CircleFadeMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"CircleFadeMaterialProperty\"],\n CirclePulseMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"CirclePulseMaterialProperty\"],\n CircleScanMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"CircleScanMaterialProperty\"],\n CircleSpiralMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"CircleSpiralMaterialProperty\"],\n CircleVaryMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"CircleVaryMaterialProperty\"],\n CircleWaveMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"CircleWaveMaterialProperty\"],\n EllipsoidElectricMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"EllipsoidElectricMaterialProperty\"],\n EllipsoidTrailMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"EllipsoidTrailMaterialProperty\"],\n PolylineFlickerMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"PolylineFlickerMaterialProperty\"],\n PolylineFlowMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"PolylineFlowMaterialProperty\"],\n PolylineImageTrailMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"PolylineImageTrailMaterialProperty\"],\n PolylineLightingMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"PolylineLightingMaterialProperty\"],\n PolylineLightingTrailMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"PolylineLightingTrailMaterialProperty\"],\n PolylineTrailMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"PolylineTrailMaterialProperty\"],\n RadarLineMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"RadarLineMaterialProperty\"],\n RadarSweepMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"RadarSweepMaterialProperty\"],\n RadarWaveMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"RadarWaveMaterialProperty\"],\n WallImageTrailMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"WallImageTrailMaterialProperty\"],\n WallLineTrailMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"WallLineTrailMaterialProperty\"],\n WallTrailMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"WallTrailMaterialProperty\"],\n WaterMaterialProperty: _gd_modules_material__WEBPACK_IMPORTED_MODULE_14__[\"WaterMaterialProperty\"],\n\n /**\n * effect\n */\n Effect: _gd_modules_effect_Effect__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n\n /**\n * animation\n */\n AnimationType: _gd_modules_animation__WEBPACK_IMPORTED_MODULE_16__[\"AnimationType\"],\n AroundView: _gd_modules_animation__WEBPACK_IMPORTED_MODULE_16__[\"AroundView\"],\n AroundPoint: _gd_modules_animation__WEBPACK_IMPORTED_MODULE_16__[\"AroundPoint\"],\n CircleScan: _gd_modules_animation__WEBPACK_IMPORTED_MODULE_16__[\"CircleScan\"],\n Flying: _gd_modules_animation__WEBPACK_IMPORTED_MODULE_16__[\"Flying\"],\n GlobeRotate: _gd_modules_animation__WEBPACK_IMPORTED_MODULE_16__[\"GlobeRotate\"],\n RadarScan: _gd_modules_animation__WEBPACK_IMPORTED_MODULE_16__[\"RadarScan\"],\n\n /**\n *\n * roaming\n */\n KeyboardRoaming: _gd_modules_roaming__WEBPACK_IMPORTED_MODULE_17__[\"KeyboardRoaming\"],\n RoamingController: _gd_modules_roaming__WEBPACK_IMPORTED_MODULE_17__[\"RoamingController\"],\n RoamingPath: _gd_modules_roaming__WEBPACK_IMPORTED_MODULE_17__[\"RoamingPath\"],\n Roaming: _gd_modules_roaming__WEBPACK_IMPORTED_MODULE_17__[\"Roaming\"],\n\n /**\n *\n * track\n */\n TrackController: _gd_modules_history_track__WEBPACK_IMPORTED_MODULE_18__[\"TrackController\"],\n Track: _gd_modules_history_track__WEBPACK_IMPORTED_MODULE_18__[\"Track\"],\n TrackViewMode: _gd_modules_history_track__WEBPACK_IMPORTED_MODULE_18__[\"TrackViewMode\"],\n\n /**\n * weather\n */\n Weather: _gd_modules_weather_Weather__WEBPACK_IMPORTED_MODULE_19__[\"default\"],\n\n /**\n * plot\n */\n Plot: _gd_modules_plot_Plot__WEBPACK_IMPORTED_MODULE_20__[\"default\"],\n\n /**\n * wind\n */\n WindLayer: _gd_modules_wind_WindLayer__WEBPACK_IMPORTED_MODULE_21__[\"default\"],\n\n /**\n * heat\n */\n HeatLayer: _gd_modules_heat_HeatLayer__WEBPACK_IMPORTED_MODULE_22__[\"default\"],\n\n /**\n * exts\n */\n GroundSkyBox: _gd_modules_exts__WEBPACK_IMPORTED_MODULE_23__[\"GroundSkyBox\"]\n}, _gd_modules_thirdpart__WEBPACK_IMPORTED_MODULE_24__[\"default\"]), {}, {\n /**\n * draw\n */\n DrawGraphics: _gd_modules_draw_drawGraphics__WEBPACK_IMPORTED_MODULE_25__[\"default\"],\n\n /**\n * mathCalculation\n */\n MathCalculation: _gd_modules_math_mathCalculation__WEBPACK_IMPORTED_MODULE_26__[\"default\"],\n\n /**\n * analysis\n */\n Measure: _gd_modules_measure__WEBPACK_IMPORTED_MODULE_27__[\"default\"],\n\n /**\n * camera\n */\n CameraController: _gd_modules_camera__WEBPACK_IMPORTED_MODULE_28__[\"CameraController\"],\n AroundPointRotate: _gd_modules_cameraAnimation__WEBPACK_IMPORTED_MODULE_29__[\"AroundPointRotate\"],\n FixedPointRotate: _gd_modules_cameraAnimation__WEBPACK_IMPORTED_MODULE_29__[\"FixedPointRotate\"],\n\n /**\n * analysis\n */\n Shadows: _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__[\"Shadows\"],\n SightLine: _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__[\"SightLine\"],\n ViewShed: _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__[\"ViewShed\"],\n SunshineDuration: _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__[\"SunshineDuration\"],\n SunshineDuration_Shader: _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__[\"SunshineDuration_Shader\"],\n SkyLine: _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__[\"SkyLine\"],\n CutAndFillVolume: _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__[\"CutAndFillVolume\"],\n SceneColor: _gd_modules_analysis__WEBPACK_IMPORTED_MODULE_30__[\"SceneColor\"],\n\n /**\n * clipping\n */\n TilesetClipping: _gd_modules_clipping__WEBPACK_IMPORTED_MODULE_31__[\"TilesetClipping\"],\n\n /**\n * Flat\n */\n TilesetFlat: _gd_modules_flat__WEBPACK_IMPORTED_MODULE_32__[\"TilesetFlat\"],\n\n /**\n * sceneController\n */\n SceneController: _gd_modules_scene__WEBPACK_IMPORTED_MODULE_33__[\"SceneController\"],\n\n /**\n * domComponent\n */\n Hawkeye: _gd_modules_domComponent__WEBPACK_IMPORTED_MODULE_34__[\"Hawkeye\"]\n});\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (components);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjoz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function(module, exports, __webpack_require__) {
- __webpack_require__(/*! theme */"./modules/themes/index.js");
- module.exports = __webpack_require__(/*! entry */"./packages/core/index.js");
- /***/ })
- /******/ })["default"];
- });
|