Pārlūkot izejas kodu

3dModeling buildingCreate.js 李欣儒 commit at 2021-02-26

李欣儒 4 gadi atpakaļ
vecāks
revīzija
d8345ce801
1 mainītis faili ar 32 papildinājumiem un 0 dzēšanām
  1. 32 0
      3dModeling/tjby13/buildingCreate.js

+ 32 - 0
3dModeling/tjby13/buildingCreate.js

@@ -426,3 +426,35 @@ function registerEvent() {
             if (fpsCtrl != null) {
             if (fpsCtrl != null) {
                 exitFps();
                 exitFps();
                 restarRotate();
                 restarRotate();
+            }
+            checkBtnActives(['#mapBg', '#sceneSetting']);
+        }
+    });
+    window.onresize = function () {
+        if (!checkFull()) {
+            //要执行的动作
+            if (fullScreenState == true) {
+                $('.btn-full-screen').css('display', 'block');
+                $('.btn-narrow').css('display', 'none');
+                $('#fullScreen span').text('全屏');
+                fullScreenState = false;
+            }
+        }
+    }
+}
+
+
+//====设备闪烁提示====
+function flash(objArray) {
+    objArray.forEach(function (obj) {
+        obj.on('update', function () {
+            obj.style.color = '#FFF000'
+            obj.style.opacity = 0.5 + 0.5 * Math.sin(2 * app.elapsedTime / 500);
+        }, '每帧改变透明度');
+    })
+}
+function queryDeviceStatus(evt) {
+    objArray = evt.data;
+    // objArray.forEach(function (deviceobj) {
+    //     obj = app.query("#" + deviceobj.ownerCode)[0];
+    //     obj.on('update', function () {