| widgets/BOXTailoring/Widget.js | ●●●●● patch | view | raw | blame | history | |
| widgets/Layermanagement/css/style.css | ●●●●● patch | view | raw | blame | history | |
| widgets/LeftNavigationBar/css/style.css | ●●●●● patch | view | raw | blame | history | |
| widgets/instructions/css/style.css | ●●●●● patch | view | raw | blame | history |
widgets/BOXTailoring/Widget.js
@@ -135,7 +135,7 @@ , Nowheight = that.Nowheight , Nowrotate = that.Nowrotate; var tooltip = window.MYcreateTooltip(document.body); var handler = new Cesium.ScreenSpaceEventHandler(scene.canvas); that.handler = new Cesium.ScreenSpaceEventHandler(scene.canvas); var isBegin = false;//设置不重复添加盒子 $('#beginBOXTailoringG').click(() => { @@ -229,11 +229,11 @@ handler.setInputAction(function (evt) { that.handler.setInputAction(function (evt) { tooltip.showAt(evt.endPosition, '<p>点击模型,添加裁剪盒子</p>'); }, Cesium.ScreenSpaceEventType.MOUSE_MOVE); handler.setInputAction(function (evt) { that.handler.setInputAction(function (evt) { var clipMode = $clipMode.val(); var length = Number(Nowlength); var width = Number(Nowwidth); @@ -261,8 +261,8 @@ }); setAllLayersClipOptions(boxOption); tooltip.setVisible(false); handler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE); handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK); that.handler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE); that.handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK); }, Cesium.ScreenSpaceEventType.LEFT_CLICK); }) @@ -277,15 +277,15 @@ }); return false; } handler.setInputAction( that.handler.setInputAction( function (movement) { tooltip.showAt(movement.endPosition, '<p>点击模型,移动裁剪盒子</p>'); var cartesian = viewer.scene.pickPosition(movement.startPosition); boxEntity.position = cartesian; handler.setInputAction(function (evt) { that.handler.setInputAction(function (evt) { setClipBox(); tooltip.setVisible(false); handler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE); that.handler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE); }, Cesium.ScreenSpaceEventType.LEFT_CLICK); }, Cesium.ScreenSpaceEventType.MOUSE_MOVE ); @@ -306,9 +306,10 @@ that.closesBOXTailoring(); }); handler.setInputAction(function () { that.handler.setInputAction(function () { setClipBox(); handler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE); that.handler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE); that.handler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK); }, Cesium.ScreenSpaceEventType.RIGHT_CLICK); $clipMode.change(function () { setClipBox(); @@ -350,6 +351,7 @@ }, promise: 'null', handler: 'null', closesBOXTailoring: function (froms) { // console.log(`${this.name}--guanbi`); var that = this; @@ -362,6 +364,11 @@ that.defaultLayui(); }) } if (that.handler != 'null') { that.handler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE); that.handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK); that.handler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK); } }, onOpen: function () { widgets/Layermanagement/css/style.css
@@ -4,7 +4,7 @@ .jimu-widget-Layermanagement .layer-tab { position: fixed; top: 72px; top: 112px; right: 10px; } @@ -30,9 +30,7 @@ } .jimu-widget-Layermanagement .layer-tab button:focus { outline: none !important; } .jimu-widget-Layermanagement .layer-tab button img { @@ -42,7 +40,7 @@ .jimu-widget-Layermanagement .layer-list { display: none; position: fixed; top: 72px; top: 112px; right: 60px; width: 320px; min-height: 80px; @@ -100,12 +98,11 @@ border: none; } .jimu-widget-Layermanagement .layer-list .control-btn img{ .jimu-widget-Layermanagement .layer-list .control-btn img { margin: auto; width: 16px; height: 16px; } .jimu-widget-Layermanagement .tree-layer-opcity { display: none; @@ -117,31 +114,30 @@ background: #Fff; border-radius: 5px; box-shadow: 0 0 8px #fff; } .jimu-widget-Layermanagement .tree-layer-opcity h3 { } .jimu-widget-Layermanagement .tree-layer-opcity h3 { margin: 0; height: 36px; line-height: 36px; text-align: center; } .jimu-widget-Layermanagement .tree-layer-opcity .close { } .jimu-widget-Layermanagement .tree-layer-opcity .close { position: absolute; top: 4px; right: 4px; } .jimu-widget-Layermanagement .tree-layer-opcity li>div:first-child { } .jimu-widget-Layermanagement .tree-layer-opcity li>div:first-child { padding: 0 10px; line-height: 28px; overflow: hidden; text-overflow:ellipsis; text-overflow: ellipsis; white-space: nowrap; } .jimu-widget-Layermanagement .tree-layer-opcity li>div:last-child { } .jimu-widget-Layermanagement .tree-layer-opcity li>div:last-child { margin: 10px 10px; width: calc(100% - 20px); } } widgets/LeftNavigationBar/css/style.css
@@ -65,41 +65,44 @@ overflow: hidden; user-select: none; top: 72px; left: 10px; /* left: 10px; */ right: 10px; z-index: 16 !important; } .jimu-widget-LeftNavigationBar .left-navigation-bar-but img { width: 30px; } .jimu-widget-LeftNavigationBar #l-n-b-m-search-closeOUR { position: absolute; right: 5px; top: 5px; cursor: pointer; font-size: 18px; font-size: 18px; } .jimu-widget-LeftNavigationBar #l-n-b-m-search-closeOUR:hover { color: red; } .jimu-widget-LeftNavigationBar .left-navigation-bar-main { position: fixed; width: 0px; height: 0px; /* height: 200px; */ /* max-height: 1000px; */ padding: 0px; background-color: #fff; z-index: 15 !important; top: 72px; left: 60px; /* left: 10px; */ right: 60px; /* top: 72px; */ /* left: 60px; */ border-radius: 5px; box-shadow: 0 0 8px #fff; transition: all 0.5s; /* transition: all 0.5s; */ display: none; /* border: 1px saddlebrown solid; */ } widgets/instructions/css/style.css
@@ -6,7 +6,7 @@ /* min-width: 160px !important; */ right: auto !important; bottom: auto !important; left: 60px !important; left: 10px !important; top: 72px !important; /* 240px */ background: rgba(255, 255, 255, 1);