File tree Expand file tree Collapse file tree
lb-annotation/src/core/toolOperation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import MathUtils from '@/utils/MathUtils';
44import AxisUtils from '@/utils/tool/AxisUtils' ;
55import RectUtils from '@/utils/tool/RectUtils' ;
66import TagUtils from '@/utils/tool/TagUtils' ;
7+ import { i18n } from '@labelbee/lb-utils' ;
78import { DEFAULT_TEXT_SHADOW , EDragStatus , ESortDirection } from '../../constant/annotation' ;
89import { EDragTarget , EOperationMode } from '../../constant/tool' ;
910import EKeyCode from '../../constant/keyCode' ;
@@ -19,7 +20,6 @@ import uuid from '../../utils/uuid';
1920import { BasicToolOperation , IBasicToolOperationProps } from './basicToolOperation' ;
2021import TextAttributeClass from './textAttributeClass' ;
2122import Selection , { SetDataList } from './Selection' ;
22- import { i18n } from '@labelbee/lb-utils' ;
2323
2424interface IRectOperationProps extends IBasicToolOperationProps {
2525 drawOutSideTarget ?: boolean ; // 是否可以在边界外进行标注
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import MarkdownView from '@/components/markdownView';
1212import LatexEditor from '@/components/latexEditor' ;
1313import styles from './index.module.scss' ;
1414import LongText from '@/components/longText' ;
15+ import { convertLatexFormat } from '@/utils/LLM' ;
1516
1617interface IProps {
1718 newAnswer ?: string ;
@@ -141,7 +142,7 @@ const TextEditor = (props: IProps) => {
141142 < div className = { styles . outputDisplay } >
142143 < div className = { styles . title } > { t ( 'OutputDisplay' ) } </ div >
143144 < div className = { styles . content } >
144- { inputValue ? < MarkdownView value = { markdownText } /> : '' }
145+ { inputValue ? < MarkdownView value = { convertLatexFormat ( markdownText ) } /> : '' }
145146 </ div >
146147 </ div >
147148 ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import LatexEditor from '@/components/latexEditor';
88import styles from './index.module.scss' ;
99import MarkdownView from '@/components/markdownView' ;
1010import LongText from '@/components/longText' ;
11+ import { convertLatexFormat } from '@/utils/LLM' ;
1112
1213interface IProps {
1314 textAttribute : ITextList [ ] ;
@@ -184,7 +185,11 @@ const TextInputBox = (props: IProps) => {
184185 < div className = { styles . outputDisplay } >
185186 < div className = { styles . title } > { t ( 'OutputDisplay' ) } </ div >
186187 < div className = { styles . content } >
187- { inputValue ? < MarkdownView value = { markdownText } /> : '' }
188+ { inputValue ? (
189+ < MarkdownView value = { convertLatexFormat ( markdownText ) } />
190+ ) : (
191+ ''
192+ ) }
188193 </ div >
189194 </ div >
190195 ) ;
You can’t perform that action at this time.
0 commit comments