-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e3c9ff
commit 495c6b0
Showing
12 changed files
with
247 additions
and
36 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...es/lb-components/src/assets/annotation/pointCloudTool/changePointCloudValid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
packages/lb-components/src/assets/annotation/pointCloudTool/copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
packages/lb-components/src/assets/annotation/pointCloudTool/nextBox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
packages/lb-components/src/assets/annotation/pointCloudTool/patse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
packages/lb-components/src/assets/annotation/pointCloudTool/prevBox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
packages/lb-components/src/assets/annotation/pointCloudTool/rotate180_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
packages/lb-components/src/assets/annotation/pointCloudTool/selectAll.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
packages/lb-components/src/assets/annotation/pointCloudTool/selectMultiple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export interface IShortcut { | ||
name: string; | ||
icon: any; | ||
shortCut: string[]; | ||
icon?: any; | ||
shortCut?: string[]; | ||
noticeInfo?: string; | ||
linkSymbol?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
156 changes: 156 additions & 0 deletions
156
...es/lb-components/src/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
import _ from 'lodash'; | ||
import { backward, forward, fullScreen, scale } from '../common'; | ||
import dragIcon from '@/assets/annotation/toolHotKeyIcon/icon_move_kj.svg'; | ||
import leftClick from '@/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg'; | ||
import rightClick from '@/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg'; | ||
import changePointCloudValid from '@/assets/annotation/pointCloudTool/changePointCloudValid.svg'; | ||
import copy from '@/assets/annotation/pointCloudTool/copy.svg'; | ||
import nextBox from '@/assets/annotation/pointCloudTool/nextBox.svg'; | ||
import patse from '@/assets/annotation/pointCloudTool/patse.svg'; | ||
import prevBox from '@/assets/annotation/pointCloudTool/prevBox.svg'; | ||
import rotate180_black from '@/assets/annotation/pointCloudTool/rotate180_black.svg'; | ||
import selectAll from '@/assets/annotation/pointCloudTool/selectAll.svg'; | ||
import selectMultiple from '@/assets/annotation/pointCloudTool/selectMultiple.svg'; | ||
import TabChangeSelectedSvg from '@/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg'; | ||
|
||
import { IShortcut } from '@/types/tool'; | ||
import React from 'react'; | ||
import { ReloadOutlined, RotateLeftOutlined, RotateRightOutlined } from '@ant-design/icons'; | ||
|
||
const changePointSize: IShortcut = { | ||
name: '点的显示粗细', | ||
icon: ( | ||
<span | ||
style={{ | ||
display: ' inline-block', | ||
width: 14, | ||
height: 14, | ||
borderRadius: '50%', | ||
border: '1px solid', | ||
}} | ||
/> | ||
), | ||
shortCut: ['+', '-'], | ||
linkSymbol: '', | ||
}; | ||
|
||
const rotateRoundCenter: IShortcut = { | ||
name: '绕中心点旋转画面', | ||
icon: <ReloadOutlined />, | ||
shortCut: [leftClick], | ||
noticeInfo: '拖动', | ||
}; | ||
|
||
const Drag3D = { | ||
name: '点云平移', | ||
icon: dragIcon, | ||
shortCut: ['Shift', leftClick], | ||
}; | ||
|
||
const DragTopView = { | ||
name: '俯视图平移', | ||
icon: dragIcon, | ||
shortCut: [rightClick], | ||
noticeInfo: '拖动', | ||
}; | ||
|
||
const ChangeInvalid = { | ||
name: '切换点云有效性', | ||
icon: changePointCloudValid, | ||
shortCut: ['V'], | ||
}; | ||
|
||
const CopyBox = { | ||
name: '复制框', | ||
icon: copy, | ||
shortCut: ['Ctrl', 'C'], | ||
}; | ||
|
||
const PasteBox = { | ||
name: '粘贴框', | ||
icon: patse, | ||
shortCut: ['Ctrl', 'V'], | ||
}; | ||
|
||
const LeftRotate = { | ||
name: '向左旋转微调', | ||
icon: <RotateLeftOutlined />, | ||
shortCut: ['Q'], | ||
}; | ||
|
||
const RightRotate = { | ||
name: '向右旋转微调', | ||
icon: <RotateRightOutlined />, | ||
shortCut: ['E'], | ||
}; | ||
|
||
const PrevBox = { | ||
name: '上一框', | ||
icon: prevBox, | ||
shortCut: ['Z'], | ||
}; | ||
|
||
const NextBox = { | ||
name: '下一框', | ||
icon: nextBox, | ||
shortCut: ['C'], | ||
}; | ||
|
||
const Rotate180 = { | ||
name: '旋转180°', | ||
icon: rotate180_black, | ||
shortCut: ['G'], | ||
noticeInfo: '选中时', | ||
}; | ||
|
||
const CopyPrevPage = { | ||
name: '复制上一页', | ||
icon: copy, | ||
shortCut: ['Alt', 'C'], | ||
}; | ||
|
||
const ChangeBoxInvalid = { | ||
name: '切换标注框有效性', | ||
icon: TabChangeSelectedSvg, | ||
shortCut: ['F'], | ||
noticeInfo: '选中时', | ||
}; | ||
|
||
const SelectMulti = { | ||
name: '多选', | ||
icon: selectMultiple, | ||
shortCut: ['Ctrl', rightClick], | ||
}; | ||
|
||
const SelectAll = { | ||
name: '全选', | ||
icon: selectAll, | ||
shortCut: ['Ctrl', 'A'], | ||
}; | ||
|
||
const pointCloudShortCutTable: IShortcut[] = [ | ||
{ name: '通用' }, | ||
backward, | ||
forward, | ||
changePointSize, | ||
scale, | ||
rotateRoundCenter, | ||
Drag3D, | ||
DragTopView, | ||
ChangeInvalid, | ||
{ name: '拉框模式' }, | ||
CopyBox, | ||
PasteBox, | ||
LeftRotate, | ||
RightRotate, | ||
PrevBox, | ||
NextBox, | ||
Rotate180, | ||
CopyPrevPage, | ||
ChangeBoxInvalid, | ||
SelectMulti, | ||
SelectAll, | ||
fullScreen, | ||
]; | ||
|
||
export default pointCloudShortCutTable; |