胶州空管前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
3.1 MiB

3 years ago
!function(){"use strict";var e,t,i,r=window.CLOUD=window.CLOUD||{};e=1,t=1,function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var i={};t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){i(1),i(50),i(51),i(52),i(54),i(55),i(58),i(59),i(60),i(61),i(62),i(63),i(64),i(65),i(66),i(68),i(70),i(72),i(74),i(77),i(78),i(79),i(83),i(86),i(87),i(88),i(89),i(91),i(92),i(93),i(94),i(95),i(97),i(99),i(100),i(101),i(103),i(104),i(105),i(107),i(108),i(109),i(111),i(112),i(113),i(114),i(115),i(116),i(117),i(118),i(119),i(120),i(121),i(122),i(123),i(124),i(126),i(130),i(131),i(132),i(133),i(137),i(139),i(140),i(141),i(142),i(143),i(144),i(145),i(146),i(147),i(148),i(149),i(150),i(151),i(152),i(158),i(159),i(161),i(162),i(163),i(167),i(168),i(169),i(170),i(171),i(173),i(174),i(175),i(176),i(179),i(181),i(182),i(183),i(185),i(187),i(189),i(190),i(191),i(193),i(194),i(195),i(196),i(203),i(206),i(207),i(209),i(210),i(211),i(212),i(213),i(214),i(215),i(216),i(217),i(218),i(219),i(220),i(222),i(223),i(224),i(225),i(226),i(227),i(228),i(229),i(231),i(234),i(235),i(237),i(238),i(239),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(249),i(250),i(251),i(252),i(253),i(254),i(255),i(256),i(258),i(259),i(261),i(262),i(263),i(264),i(267),i(268),i(269),i(270),i(271),i(272),i(273),i(274),i(276),i(277),i(278),i(279),i(280),i(281),i(282),i(283),i(284),i(285),i(286),i(287),i(288),i(291),i(156),i(293),i(292),i(294),i(295),i(296),i(297),i(298),i(300),i(301),i(302),i(304),e.exports=i(305)},function(e,t,r){var n=r(2),a=r(3),s=r(4),o=r(6),l=r(16),d=r(20).KEY,h=r(5),c=r(21),u=r(22),p=r(17),m=r(23),f=r(24),g=r(25),v=r(27),y=r(40),M=r(43),E=r(10),b=r(30),x=r(14),I=r(15),T=r(44),C=r(47),w=r(49),S=r(9),A=r(28),B=w.f,R=S.f,D=C.f,O=n.Symbol,L=n.JSON,P=L&&L.stringify,N="prototype",H=m("_hidden"),F=m("toPrimitive"),k={}.propertyIsEnumerable,U=c("symbol-registry"),G=c("symbols"),z=c("op-symbols"),V=Object[N],j="function"==typeof O,_=n.QObject,W=!_||!_[N]||!_[N].findChild,Y=s&&h((function(){return 7!=T(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,i){var r=B(V,t);r&&delete V[t],R(e,t,i),r&&e!==V&&R(V,t,r)}:R,Z=function(e){var t=G[e]=T(O[N]);return t._k=e,t},Q=j&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},J=function(e,t,i){return e===V&&J(z,t,i),E(e),t=x(t,!0),E(i),a(G,t)?(i.enumerable?(a(e,H)&&e[H][t]&&(e[H][t]=!1),i=T(i,{enumerable:I(0,!1)})):(a(e,H)||R(e,H,I(1,{})),e[H][t]=!0),Y(e,t,i)):R(e,t,i)},X=function(e,t){E(e);for(var i,r=y(t=b(t)),n=0,a=r.length;a>n;)J(e,i=r[n++],t[i]);return e},K=function(e){var t=k.call(this,e=x(e,!0));return!(this===V&&a(G,e)&&!a(z,e))&&(!(t||!a(this,e)||!a(G,e)||a(this,H)&&this[H][e])||t)},q=function(e,t){if(e=b(e),t=x(t,!0),e!==V||!a(G,t)||a(z,t)){var i=B(e,t);return!i||!a(G,t)||a(e,H)&&e[H][t]||(i.enumerable=!0),i}},$=function(e){for(var t,i=D(b(e)),r=[],n=0;i.length>n;)a(G,t=i[n++])||t==H||t==d||r.push(t);return r},ee=function(e){for(var t,i=e===V,r=D(i?z:b(e)),n=[],s=0;r.length>s;)!a(G,t=r[s++])||i&&!a(V,t)||n.push(G[t]);return n};j||(l((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:i),t=function(i){this===V&&t.call(z,i),a(this,H)&&a(this[H],e)&&(this[H][e]=!1),Y(this,e,I(1,i))};return s&&W&&Y(V,e,{configurable:!0,set:t}),Z(e)})[N],"toString",(function(){return this._k})),w.f=q,S.f=J,r(48).f=C.f=$,r(42).f=K,r(41).f=ee,s&&!r(26)&&l(V,"propertyIsEnumerable",K,!0),f.f=function(e){return Z(m(e))}),o(o.G+o.W+o.F*!j,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;te.length>ie;)m(te[ie++]);for(te=A(m.store),ie=0;te.length>ie;)g(te[ie++]);o(o.S+o.F*!j,"Symbol",{for:function(e){return a(U,e+="")?U[e]:U[e]=O(e)},keyFor:function(e){if(Q(e))return v(U,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!j,"Object",{create:f
var i=this.getCamera(),r=this.camera.direction();r.normalize();var n=i.up,a=r.cross(n).normalize();let s;a=a.multiplyScalar(e);let o=[];var l=this.getIntersectContext(null);if(t)o=this.intersector.intersectByBox(l,t);else{s=i.position.clone();const e=new THREE.Ray(s,a),t=this.intersector.intersect(l,e,!1);t&&o.push(t)}return o}computeGravity(e){this.gravity=0;var t=this.hitTestWithGround(e);if(null==t){var i=this.scene.getMatrixGlobal();a.copy(i).invert();var r=this.camera.position.clone();r.applyMatrix4(a),r.z=0,r.applyMatrix4(i),this.distanceToGround=Math.abs(this.camera.position.y-r.y),null!=this.hitNullCount&&0!=this.hitNullCount||(this.hitNullCount=1)}else this.hitNullCount=0;if(1!=this.hitNullCount)if(void 0===this.manHeight)this.computeManHeight(e);else{var n=t?t.distance-this.manHeight:this.distanceToGround-this.manHeight;if(n/=this.scene.getGlobalScaleFactor(),Math.abs(n)<.1)return;this.gravity=n}else this.gravity=0}computeManHeight(e){let t;if(t=this.viewer.modelManager.isMeterUnit()?.001:1,!this.manHeight){var i=this.hitTestWithGround(e),r=e?.94*e.box.getSize(d).z:1650*t,n=this.scene.getMatrixGlobal();if(a.copy(n).invert(),null!=i){var s=i.point.clone();s.applyMatrix4(a),s.z+=r,s.applyMatrix4(n),this.manHeight=Math.abs(i.point.y-s.y)}else{var o=e?e.box.min.clone():this.camera.position.clone();o.applyMatrix4(a),o.z=0;var l=o.clone();l.z+=r,o.applyMatrix4(n),l.applyMatrix4(n),this.manHeight=Math.abs(l.y-o.y)}}}walkWithParallelEye(){var e=this.camera,t=this.camera.direction().length(),i=this.scene.getBoundingBox().getCenter(d),r=new THREE.Vector3;r.subVectors(i,e.position);var n=r.length();r.y=0,r.normalize(),r.multiplyScalar(n),e.position.subVectors(i,r),e.target.addVectors(e.position,r.normalize().multiplyScalar(t));var a=new THREE.Vector3(0,1,0);e.up.copy(a),e.realUp.copy(a),this.dirtyCamera(!0),this.setCameraChanging(!0),this.update(!0)}updateFlyMove(e,t){var i=this.camera;this.dirtyCamera(!0),this.setCameraChanging(!0);var n=r.MoveDirection;e&n.FORWARD&&i.translateZ(-t),e&n.BACK&&i.translateZ(t),e&n.LEFT&&i.translateX(-t),e&n.RIGHT&&i.translateX(t),e&n.UP&&i.translateY(t),e&n.DOWN&&i.translateY(-t),this.flyOnWorld()}flyOnWorld(e){var t=this.camera,r=t.up.clone();(e=!1!==e)&&t.realUp&&(t.up.copy(t.realUp),t.lookAt(t.target),t.up.copy(r)),this._changeCallBack(),this.dirtyCamera(!1),i.copy(t.position),n.copy(t.quaternion)}rotateForFly(e,t,i,n){var a=this.camera,s=a.position,o=a.target,l=o.clone().sub(s),d=new THREE.Vector3(0,1,0),h=a.realUp||a.up,c=l.clone().cross(h).normalize();if(this.dirtyCamera(!0),this.setCameraChanging(!0),r.EditorConfig.LockAxisZ&&(t=0),0!=t){var u=(new THREE.Quaternion).setFromAxisAngle(c,-t),p=l.clone();p.applyQuaternion(u);var m=p.angleTo(d);(m-=.5*Math.PI)>=i&&m<=n&&l.applyQuaternion(u)}if(0!=e){var f=(new THREE.Quaternion).setFromAxisAngle(d,-e);l.applyQuaternion(f)}o.addVectors(s,l),this.flyOnWorld()}fitAndRotateBySelection(){this.viewer.zoomToSelection()}flyToPointWithParallelEye(e){var t=this.camera.direction(),i=t.length(),r=t.clone();r.y=0,r.normalize(),r.setLength(i);var n=new THREE.Vector3(0,1,0);this.camera.up=n,this.camera.realUp=n.clone(),this.camera.position.copy(e),this.camera.target.addVectors(this.camera.position,r),this.update(!0)}flyToPoint(e){var t=this.camera.direction();this.camera.position.copy(e),this.camera.target.addVectors(this.camera.position,t),this.update(!0)}setCameraHeight(e,t){this.cameraAbsoluteHeightEnabled=!1,this.cameraRelativeHeight=t,void 0===this.cameraConstraintHeights?this.cameraConstraintHeights=[]:this.cameraConstraintHeights.length=0;for(var i=0,r=e.length;i<r;++i)this.cameraConstraintHeights[i]=e[i]}updateCameraHeight(){var e,t,i=this.scene,n=this.getCamera(),a=i.drawingToWorld(n.position),s=a.z;if(this.cameraAbsoluteHeightEnabled)void 0===this.cameraAbsoluteHeight&&(this.cameraAbsoluteHeight=s),e=this.cameraAbsoluteHeight;else if(void 0===this.cameraConstraintHeights)e=s;else{var o=r.Utils.findRange(this.cameraConstraintHeights,s);if(e=this.cameraConstraintHeights[o],e+=this.cameraRelativeHeight,o<this.cameraConstraintHeights.length-1){va