lz.Cursor.setCursorGlobal("arrow_rotate_panel_cursor"); lz.Cursor.unlock(); this.doMoveDragPoint(); this.doMoveDragPoint(); if (!this.dragStarted) { return; } parent.doMoveDragPoint(this.x+12,this.y+12); this.dragStarted = true; parent.doStartDragPoint(); this.dragger.apply(); this.dragStarted = false; this.dragger.remove(); parent.endDrawClipArtDrag(); lz.Cursor.unlock(); //Debug.write("removeIt +**********",this.isinited); this.whiteboardRef.setAttribute('boundingIsActive',false); if (this.rs) this.rs.remove(); if (this.dragger) this.dragger.remove(); this.destroy(); this.whiteboardRef.deleteItemByName(this.objRef.name); //Debug.write("__LZRemoveItem"); = 0){ if ($debug) Debug.write("this.objRef._innerRect ",this.objRef._innerRect); if ($debug) Debug.write("strokeStyle: ",this.objRef._innerRect.strokeStyle); if (this.objRef._innerRect.strokeStyle == '#000000') { if ($debug) Debug.write("strokeStyle EMPTY "); this.whiteboardRef.currentrectanglestrokeDis = -1; } else { this.whiteboardRef.currentrectanglestroke = this.objRef._innerRect.strokeStyle; this.whiteboardRef.currentrectanglestrokeDis = 1; } if ($debug) Debug.write("fillStyle: ",this.objRef._innerRect.fillStyle); if (this.objRef._innerRect.fillStyle == '#000000') { if ($debug) Debug.write("fillStyle EMPTY "); this.whiteboardRef.currentrectanglestrokeFillDis = -1; } else { this.whiteboardRef.currentrectanglestrokeFill = this.objRef._innerRect.fillStyle; this.whiteboardRef.currentrectanglestrokeFillDis = 1; } if ($debug) Debug.write("lineWidth: ",this.objRef._innerRect.lineWidth); this.whiteboardRef.currentrectangleineWidth = this.objRef._innerRect.lineWidth; } else if (this.objRef.name.indexOf('swf') >= 0) { this.setAttribute("innerInsetScrollbars",16); } else if (this.objRef.name.indexOf('clipart') >= 0) { this.canBeResized = false; this._gripperNoResize.setAttribute("visibility","visible"); this._gripperResize.setAttribute("visibility","hidden"); new lz.boundingBoxAllRotationMarger(this,{ x:this.objRef.clipart.clipArtEndx-12, y:this.objRef.clipart.clipArtEndy-12 }); } this.whiteboardRef.parent.parent._propertyPanel.loadPanelByBoundingBox(this.whiteboardRef,this.objRef); this.doUpdateAction(); ]]> this.whiteboardRef.setStartPoint(this.objRef.clipart.x+this.x,this.objRef.clipart.y+this.y); this.whiteboardRef.trackDrawClipArtDraw(this.x+x,this.y+y,this.objRef.clipart); this.whiteboardRef.endDrawClipArtDrag(this.objRef); this.whiteboardRef.reselectShowObjectBounds(this.objRef.name); this.ex = this.objRef.x; this.ey = this.objRef.y; this.ewidth = this.objRef.width; this.eheight = this.objRef.height; this.setAttribute('x',this.objRef.x); this.setAttribute('y',this.objRef.y); this.setAttribute('width',this.objRef.width); this.setAttribute('height',this.objRef.height); this.setStartValues(); this.setAttribute('doHandlerUpdates',true); if (this.boundingDoUpdateOnInit) { this._innerDrag.onmousedown.sendEvent(); } if(this.doHandlerUpdates){ this.objRef.setAttribute('height',this.height); } if(this.doHandlerUpdates){ this.objRef.setAttribute('width',this.width); } if(this.doHandlerUpdates){ var tx = this.getAttributeRelative('x',objRef); if(this.objRef.parent.isSnapToGrid){ tx = Math.round(tx/this.objRef.parent.gridWidth)*this.objRef.parent.gridWidth; this.setAttribute("x",Math.round(this.x/this.objRef.parent.gridWidth)*this.objRef.parent.gridWidth) } this.objRef.setAttribute('x',tx); } if(this.doHandlerUpdates){ var ty = this.getAttributeRelative('y',objRef); if(this.objRef.parent.isSnapToGrid){ ty = Math.round(ty/this.objRef.parent.gridWidth)*this.objRef.parent.gridWidth; this.setAttribute("y",Math.round(this.y/this.objRef.parent.gridWidth)*this.objRef.parent.gridWidth) } this.objRef.setAttribute('y',ty); } if ($debug) Debug.write("onkeydown ",key); //this.objRef.parent.UpdateByObject(this.objRef); if (key == 46) { this.__LZRemoveItem(this.objRef); } else if (key == 40) { var shiftPressed = lz.Keys.isKeyDown("shift"); if ($debug) Debug.write("shiftPressed ",shiftPressed); this.doHandlerUpdates = true; this.setAttribute("y",this.y+(shiftPressed ? 20 : 2)); this.doHandlerUpdates = false; this.objRef.parent.UpdateByObject(this.objRef); this.setStartValues(); } else if (key == 38) { var shiftPressed = lz.Keys.isKeyDown("shift"); this.doHandlerUpdates = true; this.setAttribute("y",this.y-(shiftPressed ? 20 : 2)); this.doHandlerUpdates = false; this.objRef.parent.UpdateByObject(this.objRef); this.setStartValues(); } else if (key == 39) { var shiftPressed = lz.Keys.isKeyDown("shift"); this.doHandlerUpdates = true; this.setAttribute("x",this.x+(shiftPressed ? 20 : 2)); this.doHandlerUpdates = false; this.objRef.parent.UpdateByObject(this.objRef); this.setStartValues(); } else if (key == 37) { var shiftPressed = lz.Keys.isKeyDown("shift"); this.doHandlerUpdates = true; this.setAttribute("x",this.x-(shiftPressed ? 20 : 2)); this.doHandlerUpdates = false; this.objRef.parent.UpdateByObject(this.objRef); this.setStartValues(); } this.startdragX = this.x; this.startdragY = this.y; this.startdragWidth = this.width; this.startdragHeight = this.height; lz.Focus.setFocus(this, true); if ($debug) Debug.write("Apply resize State"); if (!this.canBeResized) { return; } this.setStartValues(); this.rs.apply() lz.Focus.setFocus(this, true); if (!this.canBeDragged) { return; } this.setStartValues(); this.dragger.apply() this._inner._inner.setAttribute('width',w); this._inner._inner.setAttribute('height',h); if (this.objRef.typeOfObject == 'swf'){ //Well disable, you can always disable without any problem //and in case you do exactly switch the moderation now //it will remove it in any case disableCurrentMouseWheelObject(); } //Debug.write("ondblclick: ",this.parent.objRef.typeOfObject); if (this.parent.objRef.typeOfObject == "text") { var x = this.parent.objRef.x; //this.parent.objRef.getAttributeRelative('x', canvas); var y = this.parent.objRef.y; //this.parent.objRef.getAttributeRelative('y', canvas); //Debug.write("x,y ",x,y); this.parent.whiteboardRef .editTextByValues(this.parent.objRef, this.parent.objRef.name, this.parent.objRef.text, x, y, this.parent.objRef.width, this.parent.objRef.height); } if (this.parent.objRef.typeOfObject != "swf") { lz.Cursor.setCursorGlobal("arrow_draw_panel_cursor"); } lz.Cursor.unlock(); this.parent.whiteboardRef .editTextByValues(this.parent.objRef, this.parent.objRef.name, this.parent.objRef.text, this.parent.x, this.parent.y, this.parent.objRef.width, this.parent.objRef.height); lz.Cursor.restoreCursor(); lz.Cursor.showHandCursor(true); lz.Cursor.showHandCursor(false); lz.Cursor.unlock(); //Debug.write("this.parent.objRef.name: ",this.parent.objRef.name); //this.parent.whiteboardRef.deleteItemByName(this.parent.objRef.name); parent.__LZRemoveItem(this.parent.objRef); lz.Cursor.restoreCursor(); lz.Cursor.showHandCursor(true); lz.Cursor.showHandCursor(false); lz.Cursor.unlock(); lz.Cursor.setCursorGlobal("arrow_resize_panel_cursor"); lz.Cursor.unlock();