webgl_rxdz_test_all.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <div class="map" style="position: absolute;width: 100%;height: 100%;z-index: 1;">
  2. <mynavbar :barData='navbar'/>
  3. <!-- 提交按钮 -->
  4. <!-- <div class="submit-btn" @click="submitHouse" v-if="styleType==1">提交</div> -->
  5. <div class="area-view">
  6. <!-- <div>总面积:{{layoutArea}}<span style="font-weight: 700;">㎡</span></div> -->
  7. <div class="rows style1">
  8. <div v-if="changeArea" class="reduce">
  9. <div>{{changeArea < 0 ? '减少':'增加'}}</div>
  10. <div class="style2" >{{Math.abs(changeArea)}}<span class="style3">㎡</span></div>
  11. </div>
  12. <div>
  13. <div>初始面积:{{fixedArea}}<span style="font-weight: 700;">㎡</span></div>
  14. <div>当前面积:{{sumArea}}<span style="font-weight: 700;">㎡</span></div>
  15. </div>
  16. </div>
  17. </div>
  18. <!-- 定位视图 -->
  19. <div class="location-view rows justify-center" @click.stop="locationHandle">
  20. <span class="iconfont icon-pipei" style="color: #000;font-size: 44rpx;"></span>
  21. </div>
  22. <div id="mapDiv" ref="webgl"></div>
  23. <canvas id="glcanvas" width="100vw" height="100vh" ref="glcanvas"
  24. :style="{'height':canvasHeight+'px'}">
  25. 你的浏览器似乎不支持或者禁用了 HTML5 <code>&lt;canvas&gt;</code> 元素。
  26. </canvas>
  27. <!-- 主要操作视图 -->
  28. <viewShell ref="viewShell" pageType="1" :overChange="overChange" :houseObj="curHouseObj" :floorList="floorList"
  29. @curSpaceChange="curSpaceChange" @curHouseFloorChange="curHouseFloorChange"></viewShell>
  30. <!-- @click="goRoam(gltf)" -->
  31. <div v-show="showLables && gltf.text.length>0 && gltf.transform" v-for="(gltf,index) in lableItem" :key="index" class="word-view"
  32. :style="{'transform':gltf.transform}" >
  33. <div @click="selectSpaceHandle(gltf)" v-if="styleType==2" user-select="false" :class="['number-view ',(index+1)>9?'number-more':'',currentChangeSpaceId==gltf.spaceId?' active':'']">{{gltf.spaceIndex+1}}</div>
  34. <div @click="selectSpaceHandle(gltf)" v-else user-select="false" class="word" :class="currentChangeSpaceId==gltf.spaceId?'active':''">{{gltf.text}}></div>
  35. <!-- 更改功能按钮 -->
  36. <!-- <div class="change-view rows justify-center" @click="enterPlot(gltf)" v-if="selectSpace && selectSpace.spaceId==gltf.spaceId">更改功能</div> -->
  37. </div>
  38. <!-- <contrastImg c-style="width: 100%;height: 500px;overflow: hidden;position: absolute;"
  39. mode="aspectFill" type="2" leftSrc="https://elab-marketing-web.oss-accelerate.aliyuncs.com/aiBeauty/1748401728858.png"
  40. ></contrastImg> -->
  41. <!-- <div id="labels"></div> -->
  42. <!-- 左侧操作区域 -->
  43. <!-- <left-operate-comp @operateHandle="operateHandle"></left-operate-comp> -->
  44. <!-- 生成截屏的画布对象 -->
  45. <canvas id="canvas" type="2d" :style="{'height':'200px','top':'200px'}"></canvas>
  46. </div>