嘉禾二期设备管理
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

!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 a=i[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.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 a=r(2),n=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),I=r(30),b=r(14),x=r(15),T=r(44),C=r(47),S=r(49),w=r(9),A=r(28),B=S.f,R=w.f,P=C.f,D=a.Symbol,O=a.JSON,L=O&&O.stringify,N="prototype",H=m("_hidden"),F=m("toPrimitive"),k={}.propertyIsEnumerable,U=c("symbol-registry"),G=c("symbols"),_=c("op-symbols"),z=Object[N],V="function"==typeof D,j=a.QObject,W=!j||!j[N]||!j[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(z,t);r&&delete z[t],R(e,t,i),r&&e!==z&&R(z,t,r)}:R,Z=function(e){var t=G[e]=T(D[N]);return t._k=e,t},Q=V&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},J=function(e,t,i){return e===z&&J(_,t,i),E(e),t=b(t,!0),E(i),n(G,t)?(i.enumerable?(n(e,H)&&e[H][t]&&(e[H][t]=!1),i=T(i,{enumerable:x(0,!1)})):(n(e,H)||R(e,H,x(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=I(t)),a=0,n=r.length;n>a;)J(e,i=r[a++],t[i]);return e},K=function(e){var t=k.call(this,e=b(e,!0));return!(this===z&&n(G,e)&&!n(_,e))&&(!(t||!n(this,e)||!n(G,e)||n(this,H)&&this[H][e])||t)},q=function(e,t){if(e=I(e),t=b(t,!0),e!==z||!n(G,t)||n(_,t)){var i=B(e,t);return!i||!n(G,t)||n(e,H)&&e[H][t]||(i.enumerable=!0),i}},$=function(e){for(var t,i=P(I(e)),r=[],a=0;i.length>a;)n(G,t=i[a++])||t==H||t==d||r.push(t);return r},ee=function(e){for(var t,i=e===z,r=P(i?_:I(e)),a=[],s=0;r.length>s;)!n(G,t=r[s++])||i&&!n(z,t)||a.push(G[t]);return a};V||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:i),t=function(i){this===z&&t.call(_,i),n(this,H)&&n(this[H],e)&&(this[H][e]=!1),Y(this,e,x(1,i))};return s&&W&&Y(z,e,{configurable:!0,set:t}),Z(e)},l(D[N],"toString",(function(){return this._k})),S.f=q,w.f=J,r(48).f=C.f=$,r(42).f=K,r(41).f=ee,s&&!r(26)&&l(z,"propertyIsEnumerable",K,!0),f.f=function(e){return Z(m(e))}),o(o.G+o.W+o.F*!V,{Symbol:D});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*!V,"Symbol",{for:function(e){return n(U,e+="")?U[e]:U[e]=D(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*!V,"Object",{create:f
var i=this.getCamera(),r=this.camera.direction();r.normalize();var a=i.up,n=r.cross(a).normalize();let s;n=n.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,n),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();n.copy(i).invert();var r=this.camera.position.clone();r.applyMatrix4(n),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 a=t?t.distance-this.manHeight:this.distanceToGround-this.manHeight;if(a/=this.scene.getGlobalScaleFactor(),Math.abs(a)<.1)return;this.gravity=a}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,a=this.scene.getMatrixGlobal();if(n.copy(a).invert(),null!=i){var s=i.point.clone();s.applyMatrix4(n),s.z+=r,s.applyMatrix4(a),this.manHeight=Math.abs(i.point.y-s.y)}else{var o=e?e.box.min.clone():this.camera.position.clone();o.applyMatrix4(n),o.z=0;var l=o.clone();l.z+=r,o.applyMatrix4(a),l.applyMatrix4(a),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 a=r.length();r.y=0,r.normalize(),r.multiplyScalar(a),e.position.subVectors(i,r),e.target.addVectors(e.position,r.normalize().multiplyScalar(t));var n=new THREE.Vector3(0,1,0);e.up.copy(n),e.realUp.copy(n),this.dirtyCamera(!0),this.setCameraChanging(!0),this.update(!0)}updateFlyMove(e,t){var i=this.camera;this.dirtyCamera(!0),this.setCameraChanging(!0);var a=r.MoveDirection;e&a.FORWARD&&i.translateZ(-t),e&a.BACK&&i.translateZ(t),e&a.LEFT&&i.translateX(-t),e&a.RIGHT&&i.translateX(t),e&a.UP&&i.translateY(t),e&a.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),a.copy(t.quaternion)}rotateForFly(e,t,i,a){var n=this.camera,s=n.position,o=n.target,l=o.clone().sub(s),d=new THREE.Vector3(0,1,0),h=n.realUp||n.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<=a&&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 a=new THREE.Vector3(0,1,0);this.camera.up=a,this.camera.realUp=a.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,a=this.getCamera(),n=i.drawingToWorld(a.position),s=n.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