2025年12月5日
摘要: 在项目中使用iframe内嵌同源第三方页面,获取到页面高度,将获取到的高度给iframe设置成功后,避免页面出现两个滚动条。 <template> <!-- ref 用于获取 iframe 实例,src 为同域页面地址 --> <iframe ref="iframeRef" :src="url" f 阅读全文
posted @ 2025-12-05 09:35 刘世涛6192 阅读(3) 评论(0) 推荐(0)
  2025年4月30日
摘要: 1:添加点击事件 window.addEventListener('click', this.onMouseClick, false); 2:在点击事件中获取具体信息 // 监听鼠标点击事件 onMouseClick(event) { event.preventDefault(); this.cur 阅读全文
posted @ 2025-04-30 09:13 刘世涛6192 阅读(40) 评论(0) 推荐(0)
摘要: 备住:添加pcd模型想要根据模型 不同高度 设置不同颜色 利用ShaderMaterial实现自定义 // 添加pcd addPcd(url){ // 加载 PCD 文件 // loader.load('http://youid:60022/112233/partition/050.pcd', (l 阅读全文
posted @ 2025-04-30 09:07 刘世涛6192 阅读(28) 评论(0) 推荐(0)
  2024年10月8日
摘要: 页面 <template> <div> <input type="file" @change="handleFileUpload" accept=".pcd" /> <input type="file" @change="changeFile" /> <div @click="stringToFil 阅读全文
posted @ 2024-10-08 09:22 刘世涛6192 阅读(224) 评论(0) 推荐(0)
摘要: three.js 创建模型后,想要实现点击模型获取模型对象触发相应事件。可以使用它提供的API THREE.Raycaster() https://threejs.org/docs/index.html?q=Raycaster#api/en/core/Raycaster //监听点击事件 windo 阅读全文
posted @ 2024-10-08 09:19 刘世涛6192 阅读(630) 评论(0) 推荐(0)
  2024年8月19日
摘要: demo案例:https://techbrood.com/threejs/examples/#misc_controls_transform TransformControls 是 Three.js 中的一个类,用于在网页中进行 3D 场景中物体的交互式操作。让我们来详细讲解它的输入参数、输出、属性 阅读全文
posted @ 2024-08-19 11:53 刘世涛6192 阅读(353) 评论(0) 推荐(0)
  2024年8月16日
摘要: camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 10000); camera.position.z = 2900; //关键就是设置camera的up为y轴 camera.up 阅读全文
posted @ 2024-08-16 14:57 刘世涛6192 阅读(104) 评论(0) 推荐(0)
  2023年9月14日
摘要: const query = wx.createSelectorQuery() query.select('#box-body').boundingClientRect() query.selectViewport().scrollOffset(); query.exec(function (res) 阅读全文
posted @ 2023-09-14 11:01 刘世涛6192 阅读(2282) 评论(0) 推荐(0)
  2023年6月13日
摘要: const getRangeDate = function (startDate: Date, endDate: Date) { const targetArr = [] const start = new Date(startDate) const end = new Date(endDate) 阅读全文
posted @ 2023-06-13 14:02 刘世涛6192 阅读(153) 评论(0) 推荐(0)
  2022年12月23日
摘要: <div style={{ flex: '1.3', marginRight: '10px', position: 'relative', height: '230px', }} > <Image layout="fill" objectFit="cover" height="230" src="/ 阅读全文
posted @ 2022-12-23 14:58 刘世涛6192 阅读(277) 评论(0) 推荐(0)