Skip to content

Commit

Permalink
feat: Scribble tool hotKey-field modification
Browse files Browse the repository at this point in the history
  • Loading branch information
lixinghua123 committed Nov 30, 2023
1 parent 70e53b2 commit f2fb5ec
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import DrawUtils from '@/utils/tool/DrawUtils';
import { EScribblePattern, EToolName } from '@/constant/tool';
import CommonToolUtils from '@/utils/tool/CommonToolUtils';
import AttributeUtils from '@/utils/tool/AttributeUtils';
import { BasicToolOperation, IBasicToolOperationProps } from './basicToolOperation';
import EKeyCode from '@/constant/keyCode';
import { BasicToolOperation, IBasicToolOperationProps } from './basicToolOperation';

interface IProps extends IBasicToolOperationProps {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@ import {
// changeSpecialLine,
saveResult,
// dargWithLeftClick,
hidden
hidden,
} from '../common';

export const scribbleImg = {
name: 'scribble',
name: 'Scribble',
icon: scribbleSvg,
shortCut: ['Q'],
};
export const eraseImg = {
name: 'erase',
name: 'Erase',
icon: eraserSvg,
shortCut: ['W'],
};

export const scribbleLine = {
name: 'scribbleLine',
name: 'ScribbleLine',
icon: IconLineStatic,
shortCut: ['Ctrl', DragWithLeftClickSvg],
};

export const strokeEnlarge = {
name: 'strokeEnlarge',
name: 'StrokeEnlarge',
icon: strokeEnlargeSvg,
shortCut: ['F'],
};
export const strokeReduction = {
name: 'strokeReduction',
name: 'StrokeReduction',
icon: strokeReductionSvg,
shortCut: ['G'],
};
Expand All @@ -68,7 +68,7 @@ const scribbleShortCutTable = [
forward,
dargWithRightClick,
setValid,
hidden
hidden,
// copyBackwardResult,
];

Expand Down
20 changes: 10 additions & 10 deletions packages/lb-utils/src/i18n/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@
"ReGenerate": "Re-generate",
"AnswerTextEdit": "Answer text edit",
"ShowEditingResultDifferencesInTextModeOnly": "Show editing result differences in text mode only",
"scribble": "Scribble",
"erase": "Erase",
"scribbleLine": "Scribble (Connect)",
"strokeEnlarge": "Stroke to enlarge",
"strokeReduction": "Stroke reduction"
"Scribble": "Scribble",
"Erase": "Erase",
"ScribbleLine": "Scribble (Connect)",
"StrokeEnlarge": "Stroke to enlarge",
"StrokeReduction": "Stroke reduction"
},
"cn": {
"TextInput": "文本输入",
Expand Down Expand Up @@ -543,10 +543,10 @@
"ReGenerate": "重新生成",
"AnswerTextEdit": "回答文本编辑",
"ShowEditingResultDifferencesInTextModeOnly": "仅文本模式下显示编辑结果差异",
"scribble": "涂抹",
"erase": "擦除",
"scribbleLine": "涂抹(连线)",
"strokeEnlarge": "笔触放大",
"strokeReduction": "笔触缩小"
"Scribble": "涂抹",
"Erase": "擦除",
"ScribbleLine": "涂抹(连线)",
"StrokeEnlarge": "笔触放大",
"StrokeReduction": "笔触缩小"
}
}

0 comments on commit f2fb5ec

Please sign in to comment.