suyiScreen/public/htWeb/lib/ht-init-config.js

52 lines
2.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 初始化ht必须在引入ht.js之前
htconfig = {
Color: {
toolTipBackground: '#EAF3FA', // 鼠标悬停提示文字背景色
// transparent: "rgba(0,0,0,0)",
},
Default: {
toolTipLabelColor: 'black', // 鼠标悬停提示文字颜色
toolTipDelay: 100,
toolTipContinual: true,
"zoomIncrement": "1.3",
zoomMax:20,
zoomMin:19,
// graph3dViewCenter
// graph3dViewEye: [0, 10000, 5000], // 设置初始镜头位置
// graph3dViewUp
},
Style: {
'select.color': 'red',
'select.width': 3,
'select.brightness': 1.3, // 选中图元的亮度1为不变化小于1变暗大于1变亮
'shape3d.reverse.cull': true, // 模型反面可视(开双面)
// 设置背景虚化
// 'shape3d.transparent': true,
// 'shape3d.opacity': .3,
'shape3d.color': 'lightgrey', // 没有贴图时的颜色,默认为#3498DB
// "all.reverse.cull": true,
// "all.transparent": true,
// 'color.empty': [0, 0, 0, 0],
// 'shape3d.light': false,
// 'bloom': true,
// "wf.color": '#1ABC9C',
// 'wf.loadQuadWireframe': true,
// 'wf.combineTriangle': false,
}
};
// tooltip属性与方法
// toolTipBackground: '#EAF3FA', // ToolTip的背景颜色
// toolTipLabelFont: "12px arial, sans-serif", // ToolTip的文字字体
// toolTipDelay: 100, // 决定组件的ToolTip显示的延迟间隔
// toolTipContinual: true, // 决定组件的ToolTip显示的情况下如果鼠标移动到新的位置时ToolTip是否实时持续跟进
// toolTipShadowColor: rgba(0,0,0,0.35), // ToolTip的阴影颜色
// toolTipLabelColor: "#00F", // ToolTip的文字颜色
// getToolTipDiv()函数返回ToolTip的相应div组件可获取进行风格自定义
// isToolTipShowing()函数判断当前ToolTip是否正在显示状态返回true|false
// updateToolTipContent: [[[function(L,G){if(e.isToolTipShowing()&&(G||(G=Sr&&Sr.view),L===W&&G&&Sr.e&&(L=G.getToolTip(Sr.e)),L!=v)){var O;L.html?(L=L.html,O=cn):O=ao,O.innerHTML=L}}]]]
// hideToolTip()函数隐藏正在显示的ToolTip
// showToolTip(eventOrPoint, innerHTML)显示ToolTip第一个参数可为交互事件或指定坐标点第二个参数为文字内容"