Commit 137bba90 authored by xiaowenjie's avatar xiaowenjie

修改拓扑图

parent 896cdede
......@@ -161,7 +161,7 @@ function TopologyEditor() {
linkFont: '12px Consolas', // 节点字体
linkFontColor: 'red', // 连线文字颜色,如"255,255,0"
linkArrowsRadius: 0, // 线条箭头半径
linkDefaultWidth: 3, // 连线宽度
linkDefaultWidth: 2, // 连线宽度
linkOffsetGap: 80, // 折线拐角处的长度
linkDirection: 'horizontal', // 折线的方向
// Container属性
......@@ -840,9 +840,11 @@ TopologyEditor.prototype.init = function (topologyGuid, backImg, topologyJson) {
// 按下ctrl进入多选模式,此时选择节点不能画线
$(document).keydown(function (e) {
console.log('键盘事件')
if (e.shiftKey) { // 组合键模式
console.log('in')
switch (e.which) {
// 放大 ctrl+=
// 放大 shift+=
case 187:
case 61:
// 单个节点可以撤销操作
......@@ -855,7 +857,7 @@ TopologyEditor.prototype.init = function (topologyGuid, backImg, topologyJson) {
editor.utils.scalingBig()
}
break
// 缩小 ctrl+-
// 缩小 shift+-
case 189:
case 173:
if (editor.currentNode instanceof JTopo.Node) {
......@@ -868,7 +870,7 @@ TopologyEditor.prototype.init = function (topologyGuid, backImg, topologyJson) {
}
break
case 70:
// ctrl+f 全屏显示
// shift+f 全屏显示
editor.utils.showInFullScreen(editor.stage.canvas, 'RequestFullScreen')
break
case 72:
......@@ -876,7 +878,7 @@ TopologyEditor.prototype.init = function (topologyGuid, backImg, topologyJson) {
// alert('帮助文档')
break
case 71:
// ctrl+g 居中显示
// shift+g 居中显示
editor.utils.showInCenter()
break
case 73:
......@@ -891,7 +893,7 @@ TopologyEditor.prototype.init = function (topologyGuid, backImg, topologyJson) {
editor.utils.cloneSelectedNodes()
break
case 80:
// ctrl + p
// shif + p
editor.utils.showPic()
break
case 82:
......@@ -901,7 +903,7 @@ TopologyEditor.prototype.init = function (topologyGuid, backImg, topologyJson) {
}
break
case 83:
// ctrl+s 保存
// shif+s 保存
editor.saveTopology(true)
break
case 85:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment