设计器快捷调整间距去掉部分日志
This commit is contained in:
parent
0de36d27d1
commit
c83e12d889
@ -121,7 +121,6 @@ Designer.addFunction("selectVertical", function() {
|
|||||||
cursor: 'move'
|
cursor: 'move'
|
||||||
});
|
});
|
||||||
container.bind('mousemove.drag',function (e) {
|
container.bind('mousemove.drag',function (e) {
|
||||||
console.log('move......')
|
|
||||||
Designer.op.destroy()
|
Designer.op.destroy()
|
||||||
var newPos = Utils.getRelativePos(e.pageX, e.pageY, canvas);
|
var newPos = Utils.getRelativePos(e.pageX, e.pageY, canvas);
|
||||||
if (newPos.y >= sublinePos) { // 增加
|
if (newPos.y >= sublinePos) { // 增加
|
||||||
@ -161,12 +160,11 @@ Designer.addFunction("selectVertical", function() {
|
|||||||
function(e) {
|
function(e) {
|
||||||
var height1 = subline1.height()
|
var height1 = subline1.height()
|
||||||
var height2 = subline2.height()
|
var height2 = subline2.height()
|
||||||
if (height1 != 0 && height2 == 0) { // 增加
|
if (height1 != 0) { // 增加
|
||||||
moveShapeAndFile('y',sublinePos,height1)
|
moveShapeAndFile('y',sublinePos,height1)
|
||||||
} else if (height1 == 0 && height2 != 0) { // 减少
|
} else if (height2 != 0) { // 减少
|
||||||
moveShapeAndFile('y',sublinePos,0-height2)
|
moveShapeAndFile('y',sublinePos,0-height2)
|
||||||
}
|
}
|
||||||
console.log('鼠标抬起,完成间距调节')
|
|
||||||
subline1.css({
|
subline1.css({
|
||||||
borderColor: '#333',
|
borderColor: '#333',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
@ -713,7 +711,6 @@ Designer.addFunction("selectHorizontal", function() {
|
|||||||
});
|
});
|
||||||
container.bind('mousemove.drag',function (e) {
|
container.bind('mousemove.drag',function (e) {
|
||||||
Designer.op.destroy()
|
Designer.op.destroy()
|
||||||
console.log('move......')
|
|
||||||
var newPos = Utils.getRelativePos(e.pageX, e.pageY, canvas);
|
var newPos = Utils.getRelativePos(e.pageX, e.pageY, canvas);
|
||||||
if (newPos.x >= sublinePos) { // 增加
|
if (newPos.x >= sublinePos) { // 增加
|
||||||
subline1.css({
|
subline1.css({
|
||||||
@ -752,12 +749,11 @@ Designer.addFunction("selectHorizontal", function() {
|
|||||||
function(e) {
|
function(e) {
|
||||||
var width1 = subline1.width()
|
var width1 = subline1.width()
|
||||||
var width2 = subline2.width()
|
var width2 = subline2.width()
|
||||||
if(width1 != 0 && width2 == 0) { // 增加
|
if(width1 != 0) { // 增加
|
||||||
moveShapeAndFile('x',sublinePos,width1)
|
moveShapeAndFile('x',sublinePos,width1)
|
||||||
} else if(width1 == 0 && width2 != 0) { // 减少
|
} else if(width2 != 0) { // 减少
|
||||||
moveShapeAndFile('x',sublinePos,0-width2)
|
moveShapeAndFile('x',sublinePos,0-width2)
|
||||||
}
|
}
|
||||||
console.log('鼠标抬起,完成间距调节')
|
|
||||||
|
|
||||||
subline1.css({
|
subline1.css({
|
||||||
borderColor: '#333',
|
borderColor: '#333',
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user