飞行漫游录制功能
This commit is contained in:
2
src/renderer/public/sdk/YJEarth.min.js
vendored
2
src/renderer/public/sdk/YJEarth.min.js
vendored
File diff suppressed because one or more lines are too long
@ -816,8 +816,8 @@
|
|||||||
|
|
||||||
.fly-roam>.content .table .tr .th:nth-child(2),
|
.fly-roam>.content .table .tr .th:nth-child(2),
|
||||||
.fly-roam>.content .table .tr .td:nth-child(2) {
|
.fly-roam>.content .table .tr .td:nth-child(2) {
|
||||||
flex: 0 0 100px;
|
flex: 0 0 180px;
|
||||||
width: 100px;
|
width: 180px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fly-roam>.content .table .tr .th:last-child,
|
.fly-roam>.content .table .tr .th:last-child,
|
||||||
|
|||||||
1
src/renderer/src/icons/svg/video.svg
Normal file
1
src/renderer/src/icons/svg/video.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 16 KiB |
@ -3,7 +3,7 @@
|
|||||||
ref="baseDialog"
|
ref="baseDialog"
|
||||||
class="fly-roam"
|
class="fly-roam"
|
||||||
title="飞行漫游"
|
title="飞行漫游"
|
||||||
width="382px"
|
width="460px"
|
||||||
left="180px"
|
left="180px"
|
||||||
top="100px"
|
top="100px"
|
||||||
:closeCallback="closeCallBack"
|
:closeCallback="closeCallBack"
|
||||||
@ -197,6 +197,9 @@
|
|||||||
<button class="cease" style="margin-left: 10px">
|
<button class="cease" style="margin-left: 10px">
|
||||||
<svg-icon name="stop" :size="12" color="rgba(255, 255, 255, 1)"></svg-icon>结束
|
<svg-icon name="stop" :size="12" color="rgba(255, 255, 255, 1)"></svg-icon>结束
|
||||||
</button>
|
</button>
|
||||||
|
<button class="video" style="margin-left: 10px" @click="startVideo">
|
||||||
|
<svg-icon name="video" :size="12"></svg-icon>录制
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<button class="saveRoam" @click="draw">保存</button>
|
<button class="saveRoam" @click="draw">保存</button>
|
||||||
<button @click="close">取消</button>
|
<button @click="close">取消</button>
|
||||||
@ -213,6 +216,7 @@ import { app } from 'electron'
|
|||||||
import { TreeApi } from '@/api/tree'
|
import { TreeApi } from '@/api/tree'
|
||||||
import { useTreeNode } from '../tree/hooks/treeNode'
|
import { useTreeNode } from '../tree/hooks/treeNode'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
|
import { $sendElectronChanel } from '@/utils/communication'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const { cusAddNodes } = useTreeNode()
|
const { cusAddNodes } = useTreeNode()
|
||||||
@ -271,6 +275,24 @@ const draw = (data) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const startVideo = () => {
|
||||||
|
document.getElementById('earthContainer').style.zIndex = 100
|
||||||
|
$sendElectronChanel('startRecoder')
|
||||||
|
ElMessage({
|
||||||
|
message: '按ESC结束录制',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
|
||||||
|
const handleKeyDown = (e) => {
|
||||||
|
if (e.key === 'Escape') {
|
||||||
|
$sendElectronChanel('endRecoder')
|
||||||
|
window.removeEventListener('keydown', handleKeyDown)
|
||||||
|
document.getElementById('earthContainer').style.zIndex = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
window.addEventListener('keydown', handleKeyDown)
|
||||||
|
}
|
||||||
|
|
||||||
const clangeViewPointHeight = () => {}
|
const clangeViewPointHeight = () => {}
|
||||||
const viewPointHeightInput = () => {
|
const viewPointHeightInput = () => {
|
||||||
let dom: any = document.getElementById('viewPointHeight')
|
let dom: any = document.getElementById('viewPointHeight')
|
||||||
@ -321,6 +343,18 @@ defineExpose({
|
|||||||
fill: rgba(241, 108, 85, 1) !important;
|
fill: rgba(241, 108, 85, 1) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.video {
|
||||||
|
background:
|
||||||
|
linear-gradient(
|
||||||
|
180deg,
|
||||||
|
rgba(71, 27, 5, 0.3) 0%,
|
||||||
|
rgba(71, 27, 5, 0.3) 0%,
|
||||||
|
rgba(255, 143, 87, 0) 100%
|
||||||
|
),
|
||||||
|
rgba(0, 0, 0, 0.5) !important;
|
||||||
|
border: 1px solid rgba(255, 165, 92, 1) !important;
|
||||||
|
color: rgba(255, 165, 92, 1) !important;
|
||||||
|
}
|
||||||
::v-deep .content input.YJ-custom-checkbox[type='checkbox'] {
|
::v-deep .content input.YJ-custom-checkbox[type='checkbox'] {
|
||||||
border: 1px solid rgba(var(--color-base1), 1) !important;
|
border: 1px solid rgba(var(--color-base1), 1) !important;
|
||||||
background-color: unset !important;
|
background-color: unset !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user