define("editor/assert/js/utils/object",[],function(require,exports){var a=function(){};a.prototype.remove=function(){r,delete this},a.prototype.init=function(){},a.prototype.update=function(a,b){this.phtml?this.dom._element.src=a:Global.CurrentSlide.c.add(this.dom,b),setTimeout(function(){Global.CurrentSlide.c._canvas.renderAll()},50)},a.prototype.print=function(a){var b=new Image;b.src=a;var c=new fabric.Image(b,{left:50,top:100,width:Global.CurrentSlide.c._canvas.width-100});return c},a.prototype.addProperty=function(a){this.dom.toObject=function(b){return function(){for(var c={},d=0;d<a.length;d++)for(var e in a[d])c[e]=a[d][e];return fabric.util.object.extend(b.call(this),c)}}(this.dom.toObject)},a.prototype.showEditorBtn=function(){function a(a){return{left:a.left+Global.CurrentSlide.c._canvas._offset.left,top:a.top+Global.CurrentSlide.c._canvas._offset.top,width:a.width*a.scaleX,height:a.height*a.scaleY,angle:a.angle}}function b(){var b=a(d.dom);c.css("left",b.left-c.width()+b.width+"px"),c.css("top",b.top-c.height()+"px")}Global.CurrentSlide.c.activeObject=this;var c=$('<input type="button" value="编辑" id="inline-btn" style="position: absolute; left: 216px; top: 323px;">');$("body").append(c);var d=this;this.dom.on("moving",function(){b()}),$("#inline-btn").off(),$("#inline-btn").on("click",function(){d.render()}),b()},a.prototype.hideEditorBtn=function(){$("#inline-btn").remove()},exports.instance=a});