You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
881 B
41 lines
881 B
const Constract = Object.freeze({
|
|
// 光标相关
|
|
CursorModeNormal: 'normal',
|
|
|
|
// 关联相关
|
|
CursorModeALink: 'ALink',
|
|
CursorModeSLink: 'SLink',
|
|
CursorModePointCallback: 'PointCallback',
|
|
CursorModePointAdd: 'PointAdd',
|
|
CursorModeLinkAdd: 'LinkAdd',
|
|
CursorModeLinkAdd2: 'LinkAdd2',
|
|
|
|
Mode2D: '2D',
|
|
Mode3D: '3D',
|
|
|
|
// 测量相关的光标模式
|
|
CursorModeMeasure: 'measure',
|
|
CursorModeWay: 'way',
|
|
CursorModeGstore: 'gstore',
|
|
CursorModeRack: 'rack',
|
|
|
|
// 选择模式
|
|
CursorModeSelectByRec: 'selectByRec',
|
|
|
|
// 黄选扩展包围盒的大小
|
|
RED_EXPAND_AMOUNT: 0.02,
|
|
YELLOW_EXPAND_AMOUNT: 0.1,
|
|
|
|
HEIGHT_GSTORE: 0.03,
|
|
HEIGHT_MEASURE: 0.02,
|
|
HEIGHT_RACK: 0,
|
|
HEIGHT_WAY: 0.01,
|
|
HEIGHT_WAY_LABEL: 0.03,
|
|
HEIGHT_WAY_LINE: 0.02,
|
|
|
|
// 鼠标点击延迟
|
|
MOUSE_CLICK_DELAY: 200,
|
|
|
|
WAY_ID_LABEL: 'way_id_label',
|
|
})
|
|
export default Constract
|
|
|