摘要:
首先安装 html2Canvas 和 jspdf npm i html2canvas -S npm i jspdf -S 然后在vue页面引入 import html2Canvas from 'html2canvas' import JsPDF from 'jspdf' 最后实现: html2Can 阅读全文
摘要:
cesium里面没有指南针 需要安装其他的插件: cesium-navigation-es6 npm i cesium-navigation-es6 -S 安装好之后在mainjs里引入 import CesiumNavigation from 'cesium-navigation-es6' 配置一 阅读全文
摘要:
computed: { handler() { return new this.Cesium.ScreenSpaceEventHandler(this.viewer.scene.canvas) } } 在事件的外面先定义一下 const _this = this (因为在setInputAction 阅读全文