Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

dc.overlay.min.js 30KB

1
  1. !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){var r=function(t){if(!t||!t.init)throw new Error("Plot: Missing DC Base");if(!t.ready)throw new Error("Plot: Missing DC Core");t.init((function(){n(2)}))};"undefined"!=typeof window&&window.DC&&r(window.DC),t.exports={install:r}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.r(e);var f=DC,p=f.Overlay,y=f.Util,h=f.State,b=f.Transform,_=DC.Namespace.Cesium,O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(g,t);var e,n,r,f,O=(e=g,function(){var t,n=l(e);if(a()){var r=l(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return s(this,t)});function g(t,e,n,r){var o;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),!y.checkPosition(t))throw new Error("Box: the position invalid");return(o=O.call(this))._position=t,o._length=e,o._width=n,o._height=r,o._delegate=new _.Entity,o.type=p.getOverlayType("box"),o._state=h.INITIALIZED,o}return n=g,(r=[{key:"_mountedHook",value:function(){var t=this;this._delegate.position=new _.CallbackProperty((function(e){return b.transformWGS84ToCartesian(t._position)})),this._delegate.orientation=new _.CallbackProperty((function(e){return _.Transforms.headingPitchRollQuaternion(b.transformWGS84ToCartesian(t._position),new _.HeadingPitchRoll(_.Math.toRadians(t._position.heading),_.Math.toRadians(t._position.pitch),_.Math.toRadians(t._position.roll)))})),this._delegate.box=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this._style,{dimensions:new _.CallbackProperty((function(e){return new _.Cartesian3(t._length,t._width,t._height)}))})}},{key:"setStyle",value:function(t){return 0==Object.keys(t).length||(this._style=t,this._delegate.box&&y.merge(this._delegate.box,this._style)),this}},{key:"position",set:function(t){if(!y.checkPosition(t))throw new Error("Box: the position invalid");this._position=t},get:function(){return this._position}},{key:"length",set:function(t){this._length=t},get:function(){return this._length}},{key:"width",set:function(t){this._width=t},get:function(){return this._width}},{key:"height",set:function(t){this._height=t},get:function(){return this._height}}])&&c(n.prototype,r),f&&c(n,f),g}(p);p.registerType("box");var g=O;function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=DC,C=R.Overlay,E=R.Util,D=R.State,T=R.Transform,x=R.Parse,M=DC.Namespace.Cesium,I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(c,t);var e,n,r,o,i=(e=c,function(){var t,n=S(e);if(k()){var r=S(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return j(this,t)});function c(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),!E.checkPositions(t))throw new Error("Corridor: the positions invalid");return(e=i.call(this))._positions=x.parsePositions(t),e._delegate=new M.Entity,e.type=C.getOverlayType("corridor"),e._state=D.INITIALIZED,e}return n=c,(r=[{key:"_mountedHook",value:function(){var t=this;this._delegate.corridor=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this._style,{positions:new M.CallbackProperty((function(e){return T.transformWGS84ArrayToCartesianArray(t._positions)}))})}},{key:"setStyle",value:function(t){return 0==Object.keys(t).length||(this._style=t,this._delegate.corridor&&E.merge(this._delegate.corridor,this._style)),this}},{key:"positions",set:function(t){if(!E.checkPositions(t))throw new Error("Corridor: the positions invalid");this._positions=x.parsePositions(t)},get:function(){return this._positions}}])&&v(n.prototype,r),o&&v(n,o),c}(C);C.registerType("corridor");var A=I;function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function U(t,e){return!e||"object"!==N(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Z(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Q=DC,B=Q.Overlay,q=Q.Util,z=Q.State,F=Q.Transform,J=DC.Namespace.Cesium,K=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(c,t);var e,n,r,o,i=(e=c,function(){var t,n=V(e);if(Z()){var r=V(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return U(this,t)});function c(t,e,n,r){var o;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),!q.checkPosition(t))throw new Error("Cylinder: the position invalid");return(o=i.call(this))._position=t,o._length=e,o._topRadius=n,o._bottomRadius=r,o._delegate=new J.Entity,o.type=B.getOverlayType("cylinder"),o._state=z.INITIALIZED,o}return n=c,(r=[{key:"_mountedHook",value:function(){var t=this;this._delegate.position=new J.CallbackProperty((function(e){return F.transformWGS84ToCartesian(t._position)})),this._delegate.orientation=new J.CallbackProperty((function(e){return J.Transforms.headingPitchRollQuaternion(F.transformWGS84ToCartesian(t._position),new J.HeadingPitchRoll(J.Math.toRadians(t._position.heading),J.Math.toRadians(t._position.pitch),J.Math.toRadians(t._position.roll)))})),this._delegate.cylinder=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?W(Object(n),!0).forEach((function(e){G(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this._style,{topRadius:new J.CallbackProperty((function(e){return t._topRadius})),bottomRadius:new J.CallbackProperty((function(e){return t._bottomRadius})),length:new J.CallbackProperty((function(e){return t._length}))})}},{key:"setStyle",value:function(t){return 0==Object.keys(t).length||(this._style=t,this._delegate.cylinder&&q.merge(this._delegate.cylinder,this._style)),this}},{key:"position",set:function(t){if(!q.checkPosition(t))throw new Error("Cylinder: the position invalid");this._position=t},get:function(){return this._position}},{key:"length",set:function(t){this._length=t},get:function(){return this._length}},{key:"topRadius",set:function(t){this._topRadius=t},get:function(){return this._topRadius}},{key:"bottomRadius",set:function(t){this._bottomRadius=t},get:function(){return this._bottomRadius}}])&&H(n.prototype,r),o&&H(n,o),c}(B);B.registerType("cylinder");var X=K;function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nt(t,e){return(nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rt(t,e){return!e||"object"!==Y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ot(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function it(t){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ct=DC,ut=ct.Overlay,st=ct.Util,at=ct.State,lt=ct.Transform,ft=DC.Namespace.Cesium,pt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nt(t,e)}(c,t);var e,n,r,o,i=(e=c,function(){var t,n=it(e);if(ot()){var r=it(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return rt(this,t)});function c(t,e,n){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),!st.checkPosition(t))throw new Error("Ellipse: the position invalid");return(r=i.call(this))._position=t,r._semiMajorAxis=e||0,r._semiMinorAxis=n||0,r._delegate=new ft.Entity,r.type=ut.getOverlayType("ellipse"),r._state=at.INITIALIZED,r}return n=c,(r=[{key:"_mountedHook",value:function(){var t=this;this._delegate.position=new ft.CallbackProperty((function(e){return lt.transformWGS84ToCartesian(t._position)})),this._delegate.orientation=new ft.CallbackProperty((function(e){return ft.Transforms.headingPitchRollQuaternion(lt.transformWGS84ToCartesian(t._position),new ft.HeadingPitchRoll(ft.Math.toRadians(t._position.heading),ft.Math.toRadians(t._position.pitch),ft.Math.toRadians(t._position.roll)))})),this._delegate.ellipse=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach((function(e){tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this._style,{semiMajorAxis:new ft.CallbackProperty((function(e){return t._semiMajorAxis})),semiMinorAxis:new ft.CallbackProperty((function(e){return t._semiMinorAxis}))})}},{key:"setStyle",value:function(t){return 0==Object.keys(t).length||(this._style=t,this._delegate.ellipse&&st.merge(this._delegate.ellipse,this._style)),this}},{key:"position",set:function(t){if(!st.checkPosition(t))throw new Error("Ellipse: the position invalid");this._position=t},get:function(){return this._position}},{key:"semiMajorAxis",set:function(t){this._semiMajorAxis=t},get:function(){return this._semiMajorAxis}},{key:"semiMinorAxis",set:function(t){this._semiMinorAxis=t},get:function(){return this._semiMinorAxis}}])&&et(n.prototype,r),o&&et(n,o),c}(ut);ut.registerType("ellipse");var yt=pt;function ht(t){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gt(t,e){return(gt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dt(t,e){return!e||"object"!==ht(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function mt(t){return(mt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var vt=DC,Pt=vt.Overlay,jt=vt.Util,kt=vt.State,St=vt.Transform,Rt=DC.Namespace.Cesium,Ct=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gt(t,e)}(c,t);var e,n,r,o,i=(e=c,function(){var t,n=mt(e);if(wt()){var r=mt(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return dt(this,t)});function c(t,e){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),!jt.checkPosition(t))throw new Error("Ellipsoid: the position invalid");return(n=i.call(this))._position=t,n._radius=e||0,n._delegate=new Rt.Entity,n.type=Pt.getOverlayType("ellipsoid"),n._state=kt.INITIALIZED,n}return n=c,(r=[{key:"_mountedHook",value:function(){var t=this;this._delegate.position=new Rt.CallbackProperty((function(e){return St.transformWGS84ToCartesian(t._position)})),this._delegate.orientation=new Rt.CallbackProperty((function(e){return Rt.Transforms.headingPitchRollQuaternion(St.transformWGS84ToCartesian(t._position),new Rt.HeadingPitchRoll(Rt.Math.toRadians(t._position.heading),Rt.Math.toRadians(t._position.pitch),Rt.Math.toRadians(t._position.roll)))})),this._delegate.ellipsoid=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(n),!0).forEach((function(e){_t(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this._style,{radii:new Rt.CallbackProperty((function(e){return t._radius}))})}},{key:"setStyle",value:function(t){return 0==Object.keys(t).length||(this._style=t,this._delegate.ellipsoid&&jt.merge(this._delegate.ellipsoid,this._style)),this}},{key:"position",set:function(t){if(!jt.checkPosition(t))throw new Error("Ellipsoid: the position invalid");this._position=t},get:function(){return this._position}},{key:"radius",set:function(t){this._radius=t},get:function(){return this._redius}}])&&Ot(n.prototype,r),o&&Ot(n,o),c}(Pt);Pt.registerType("ellipsoid");var Et=Ct;function Dt(t){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function It(t,e){return(It=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function At(t,e){return!e||"object"!==Dt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Wt(t){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gt=DC,Ht=Gt.Overlay,Lt=Gt.Util,Ut=Gt.State,Zt=Gt.Transform,Vt=DC.Namespace.Cesium,Qt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&It(t,e)}(c,t);var e,n,r,o,i=(e=c,function(){var t,n=Wt(e);if(Nt()){var r=Wt(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return At(this,t)});function c(t,e,n,r){var o;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),!Lt.checkPosition(t))throw new Error("Plane: the position invalid");return(o=i.call(this))._position=t,o._width=e,o._height=n,o._plane=new Vt.Plane(Vt.Cartesian3.clone(r),0),o._delegate=new Vt.Entity,o.type=Ht.getOverlayType("plane"),o._state=Ut.INITIALIZED,o}return n=c,(r=[{key:"_mountedHook",value:function(){var t=this;this._delegate.position=new Vt.CallbackProperty((function(e){return Zt.transformWGS84ToCartesian(t._position)})),this._delegate.orientation=new Vt.CallbackProperty((function(e){return Vt.Transforms.headingPitchRollQuaternion(Zt.transformWGS84ToCartesian(t._center),new Vt.HeadingPitchRoll(Vt.Math.toRadians(t._position.heading),Vt.Math.toRadians(t._position.pitch),Vt.Math.toRadians(t._position.roll)))})),this._delegate.plane=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(n),!0).forEach((function(e){xt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this._style,{plane:new Vt.CallbackProperty((function(e){return t._plane})),dimensions:new Vt.CallbackProperty((function(e){return{x:t._width,y:t._height}}))})}},{key:"setStyle",value:function(t){return 0===Object.keys(t).length||(this._style=t,this._delegate.plane&&Lt.merge(this._delegate.plane,this._style)),this}},{key:"position",set:function(t){if(!Lt.checkPosition(t))throw new Error("Plane: the position invalid");this._position=t},get:function(){return this._position}},{key:"width",set:function(t){this._width=t},get:function(){return this._width}},{key:"height",set:function(t){this._height=t},get:function(){return this._height}},{key:"direction",set:function(t){this._plane=new Vt.Plane(t,0)}}])&&Mt(n.prototype,r),o&&Mt(n,o),c}(Ht);Ht.registerType("plane");var Bt=Qt;function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kt(t,e){return(Kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xt(t,e){return!e||"object"!==qt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function $t(t){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var te=DC,ee=te.Overlay,ne=te.Util,re=te.State,oe=te.Transform,ie=te.Parse,ce=DC.Namespace.Cesium,ue=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kt(t,e)}(c,t);var e,n,r,o,i=(e=c,function(){var t,n=$t(e);if(Yt()){var r=$t(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Xt(this,t)});function c(t,e){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),!ne.checkPositions(t))throw new Error("PolylineVolume: the positions invalid");return(n=i.call(this))._positions=ie.parsePositions(t),n._shape=e,n._delegate=new ce.Entity,n.type=ee.getOverlayType("polyline_volume"),n._state=re.INITIALIZED,n}return n=c,(r=[{key:"_mountedHook",value:function(){var t=this;this._delegate.polylineVolume=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zt(Object(n),!0).forEach((function(e){Ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this._style,{positions:new ce.CallbackProperty((function(e){return oe.transformWGS84ArrayToCartesianArray(t._positions)})),shape:new ce.CallbackProperty((function(e){return t._shape}))})}},{key:"setStyle",value:function(t){return 0==Object.keys(t).length||(this._style=t,this._delegate.polylineVolume&&ne.merge(this._delegate.polylineVolume,this._style)),this}},{key:"positions",set:function(t){if(!ne.checkPositions(t))throw new Error("PolylineVolume: the positions invalid");this._positions=ie.parsePositions(t)},get:function(){return this._positions}},{key:"shape",set:function(t){if(!t||!Array.isArray(t))throw new Error("PolylineVolume: the shape invalid");this._shape=t},get:function(){return this._shape}}])&&Jt(n.prototype,r),o&&Jt(n,o),c}(ee);ee.registerType("polyline_volume");var se=ue;function ae(t){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ye(t,e){return(ye=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function he(t,e){return!e||"object"!==ae(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function be(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _e(t){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Oe=DC,ge=Oe.Overlay,de=Oe.Util,we=Oe.State,me=Oe.Transform,ve=Oe.Parse,Pe=DC.Namespace.Cesium,je=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ye(t,e)}(c,t);var e,n,r,o,i=(e=c,function(){var t,n=_e(e);if(be()){var r=_e(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return he(this,t)});function c(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),!de.checkPositions(t))throw new Error("Wall: the positions invalid");return(e=i.call(this))._positions=ve.parsePositions(t),e._delegate=new Pe.Entity,e.type=ge.getOverlayType("wall"),e._state=we.INITIALIZED,e}return n=c,(r=[{key:"_mountedHook",value:function(){var t=this;this._delegate.wall=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?le(Object(n),!0).forEach((function(e){fe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},this._style,{positions:new Pe.CallbackProperty((function(e){return me.transformWGS84ArrayToCartesianArray(t._positions)}))})}},{key:"setStyle",value:function(t){return 0==Object.keys(t).length||(this._style=t,this._delegate.wall&&de.merge(this._delegate.wall,this._style)),this}},{key:"positions",set:function(t){if(!de.checkPositions(t))throw new Error("Wall: the positions invalid");this._positions=ve.parsePositions(t)},get:function(){return this._positions}}])&&pe(n.prototype,r),o&&pe(n,o),c}(ge);ge.registerType("wall");var ke=je;DC.mixin({Box:g,Corridor:A,Cylinder:X,Ellipse:yt,Ellipsoid:Et,Plane:Bt,PolylineVolume:se,Wall:ke})}]);