增加测量窗口
This commit is contained in:
@@ -1,52 +1,95 @@
|
||||
import { TranslationDictionary } from './types';
|
||||
import {TranslationDictionary} from './types';
|
||||
|
||||
export const enUS: TranslationDictionary = {
|
||||
common: {
|
||||
title: 'BimEngine',
|
||||
description: 'This is a BIM-ENGINE demo.',
|
||||
openTestDialog: 'Open Test Dialog',
|
||||
openInfoDialog: 'Open Info Dialog (Wrapped)',
|
||||
},
|
||||
toolbar: {
|
||||
home: 'Home',
|
||||
info: 'Info',
|
||||
location: 'Location',
|
||||
setting: 'Settings',
|
||||
walk: 'Walk',
|
||||
walkPerson: 'Person',
|
||||
walkBird: 'Bird Eye',
|
||||
walkMenu: 'Menu',
|
||||
tree: 'Tree',
|
||||
},
|
||||
dialog: {
|
||||
testTitle: 'Test Dialog',
|
||||
testContent: '<div style="padding: 10px;">This is a <b>draggable</b> and <b>resizable</b> dialog.<br><br>Try dragging the title bar or resizing from the bottom-right corner.</div>',
|
||||
},
|
||||
menu: {
|
||||
info: 'Info',
|
||||
home: 'Home',
|
||||
},
|
||||
tree: {
|
||||
searchPlaceholder: 'Please enter content to search',
|
||||
},
|
||||
common: {
|
||||
title: 'BimEngine',
|
||||
description: 'This is a BIM-ENGINE demo.',
|
||||
openTestDialog: 'Open Test Dialog',
|
||||
openInfoDialog: 'Open Info Dialog (Wrapped)',
|
||||
},
|
||||
toolbar: {
|
||||
home: 'Home',
|
||||
measure: 'Measure',
|
||||
info: 'Info',
|
||||
location: 'Location',
|
||||
setting: 'Settings',
|
||||
walk: 'Walk',
|
||||
walkPerson: 'Person',
|
||||
walkBird: 'Bird Eye',
|
||||
walkMenu: 'Menu',
|
||||
tree: 'Tree',
|
||||
},
|
||||
dialog: {
|
||||
testTitle: 'Test Dialog',
|
||||
testContent: '<div style="padding: 10px;">This is a <b>draggable</b> and <b>resizable</b> dialog.<br><br>Try dragging the title bar or resizing from the bottom-right corner.</div>',
|
||||
},
|
||||
menu: {
|
||||
info: 'Info',
|
||||
home: 'Home',
|
||||
},
|
||||
tree: {
|
||||
searchPlaceholder: 'Please enter content to search',
|
||||
},
|
||||
constructTree: {
|
||||
title: 'Construct Tree',
|
||||
},
|
||||
tab: {
|
||||
component: 'Component',
|
||||
system: 'System',
|
||||
space: 'Space',
|
||||
},
|
||||
panel: {
|
||||
property: {
|
||||
title: 'Component Details',
|
||||
base: 'Basic Info',
|
||||
material: 'Material',
|
||||
advanced: 'Advanced',
|
||||
tab: {
|
||||
props: 'Properties',
|
||||
material: 'Material'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
tab: {
|
||||
component: 'Component',
|
||||
system: 'System',
|
||||
space: 'Space',
|
||||
},
|
||||
panel: {
|
||||
property: {
|
||||
title: 'Component Details',
|
||||
base: 'Basic Info',
|
||||
material: 'Material',
|
||||
advanced: 'Advanced',
|
||||
tab: {
|
||||
props: 'Properties',
|
||||
material: 'Material'
|
||||
}
|
||||
}
|
||||
},
|
||||
measure: {
|
||||
btnName: 'Measure',
|
||||
dialogTitle: 'Measure',
|
||||
modes: {
|
||||
distance: 'Distance',
|
||||
minDistance: 'Min Distance',
|
||||
angle: 'Angle',
|
||||
elevation: 'Elevation',
|
||||
volume: 'Volume',
|
||||
laserDistance: 'Laser Distance',
|
||||
slope: 'Slope',
|
||||
spaceVolume: 'Space Volume',
|
||||
},
|
||||
actions: {
|
||||
expand: 'Expand',
|
||||
collapse: 'Collapse',
|
||||
clearAll: 'Clear All',
|
||||
settings: 'Settings',
|
||||
},
|
||||
labels: {
|
||||
currentMode: 'Mode:',
|
||||
x: 'X:',
|
||||
y: 'Y:',
|
||||
z: 'Z:',
|
||||
value: {
|
||||
distance: 'Distance:',
|
||||
minDistance: 'Min Distance:',
|
||||
angle: 'Angle:',
|
||||
elevation: 'Elevation:',
|
||||
volume: 'Volume:',
|
||||
laserDistance: 'Laser Distance:',
|
||||
slope: 'Slope:',
|
||||
spaceVolume: 'Space Volume:',
|
||||
}
|
||||
},
|
||||
units: {
|
||||
mm: 'mm',
|
||||
deg: '°',
|
||||
m3: 'm³',
|
||||
percent: '%',
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
/**
|
||||
* 翻译字典接口
|
||||
* 定义所有可用的翻译键值对结构,保证类型安全
|
||||
@@ -11,6 +12,7 @@ export interface TranslationDictionary {
|
||||
};
|
||||
toolbar: {
|
||||
home: string;
|
||||
measure: string;
|
||||
info: string;
|
||||
location: string;
|
||||
setting: string;
|
||||
@@ -51,9 +53,67 @@ export interface TranslationDictionary {
|
||||
system: string;
|
||||
space: string;
|
||||
};
|
||||
measure: {
|
||||
btnName: string;
|
||||
dialogTitle: string;
|
||||
|
||||
/**
|
||||
* 8 种测量方式名称(用于 UI 按钮 tooltip、当前方式显示等)
|
||||
*/
|
||||
modes: {
|
||||
distance: string;
|
||||
minDistance: string;
|
||||
angle: string;
|
||||
elevation: string;
|
||||
volume: string;
|
||||
laserDistance: string;
|
||||
slope: string;
|
||||
spaceVolume: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* 操作按钮文案
|
||||
*/
|
||||
actions: {
|
||||
expand: string;
|
||||
collapse: string;
|
||||
clearAll: string;
|
||||
settings: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* 结果区标签
|
||||
*/
|
||||
labels: {
|
||||
currentMode: string;
|
||||
x: string;
|
||||
y: string;
|
||||
z: string;
|
||||
value: {
|
||||
distance: string;
|
||||
minDistance: string;
|
||||
angle: string;
|
||||
elevation: string;
|
||||
volume: string;
|
||||
laserDistance: string;
|
||||
slope: string;
|
||||
spaceVolume: string;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* 单位(也走国际化,避免硬编码)
|
||||
*/
|
||||
units: {
|
||||
mm: string;
|
||||
deg: string;
|
||||
m3: string;
|
||||
percent: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 语言<E8AFAD><E8A880>码类型
|
||||
*/
|
||||
export type LocaleType = 'zh-CN' | 'en-US';
|
||||
export type LocaleType = 'zh-CN' | 'en-US';
|
||||
|
||||
@@ -9,6 +9,7 @@ export const zhCN: TranslationDictionary = {
|
||||
},
|
||||
toolbar: {
|
||||
home: '首页',
|
||||
measure: '测量',
|
||||
info: '信息',
|
||||
location: '定位',
|
||||
setting: '设置',
|
||||
@@ -24,7 +25,7 @@ export const zhCN: TranslationDictionary = {
|
||||
},
|
||||
menu: {
|
||||
info: '信息',
|
||||
home: '首页',
|
||||
home: '首页'
|
||||
},
|
||||
tree: {
|
||||
searchPlaceholder: '请输入要搜索的内容',
|
||||
@@ -48,5 +49,47 @@ export const zhCN: TranslationDictionary = {
|
||||
material: '材质'
|
||||
}
|
||||
}
|
||||
},
|
||||
measure: {
|
||||
btnName: '测量',
|
||||
dialogTitle: '测量',
|
||||
modes: {
|
||||
distance: '距离',
|
||||
minDistance: '最小距离',
|
||||
angle: '角度',
|
||||
elevation: '标高',
|
||||
volume: '体积',
|
||||
laserDistance: '激光测距',
|
||||
slope: '坡度',
|
||||
spaceVolume: '空间体积',
|
||||
},
|
||||
actions: {
|
||||
expand: '展开',
|
||||
collapse: '收起',
|
||||
clearAll: '删除全部',
|
||||
settings: '设置',
|
||||
},
|
||||
labels: {
|
||||
currentMode: '当前测量方式:',
|
||||
x: 'X:',
|
||||
y: 'Y:',
|
||||
z: 'Z:',
|
||||
value: {
|
||||
distance: '距离:',
|
||||
minDistance: '最小距离:',
|
||||
angle: '角度:',
|
||||
elevation: '标高:',
|
||||
volume: '体积:',
|
||||
laserDistance: '激光测距:',
|
||||
slope: '坡度:',
|
||||
spaceVolume: '空间体积:',
|
||||
}
|
||||
},
|
||||
units: {
|
||||
mm: 'mm',
|
||||
deg: '°',
|
||||
m3: 'm³',
|
||||
percent: '%',
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user