define("editor/assert/js/utils/textfiledstyle",[],function(require,exports){var a=function(){this.__property=null,this.__that=null};a.left=function(_this){_this.dom.textAlign="left",_this.canvas.renderAll()},a.center=function(_this){_this.dom.textAlign="center",_this.canvas.renderAll()},a.right=function(_this){_this.dom.textAlign="right",_this.canvas.renderAll()},a.size=function(_this){_this.dom.fontSize=12,_this.canvas.renderAll()},a.family=function(_this){_this.dom.fontFamily="黑体",_this.canvas.renderAll()},a.color=function(_this){_this.dom.textBackgroundColor="#ff0000",_this.canvas.renderAll()},a.prototype.showProperty=function(){this.hideProperty();var b=this;this.__property='<div id="text_style_font" class="text-style-align"><ul><li><a href="javascript:void(0)"></a></li><li><a href="javascript:void(0)"></a></li><li><a href="javascript:void(0)"></a></li><li><a href="javascript:void(0)"></a></li><li><a href="javascript:void(0)"></a></li></ul></div>',$("#propertyArea").html(this.__property),a.setActive(b.dom),$("#text_style_font li:nth-of-type(1)>a").on("click",function(c){a.size(b),a.active(c.target)}),$("#text_style_font li:nth-of-type(2)>a").on("click",function(c){a.color(b),a.active(c.target)}),$("#text_style_font li:nth-of-type(3)>a").on("click",function(c){a.center(b),a.active(c.target)}),$("#text_style_font li:nth-of-type(4)>a").on("click",function(c){a.left(b),a.active(c.target)}),$("#text_style_font li:nth-of-type(5)>a").on("click",function(c){a.right(b),a.active(c.target)}),PAGECURRENT.c.activeObject=b},a.setActive=function(){},a.active=function(a){for(var b=$(a).closest("ul").find("li"),c=0;c<b.length;c++)$(b[c]).find("a").removeClass("text-style-a-hover");$(a).addClass("text-style-a-hover")},a.prototype.hideProperty=function(){$("#propertyArea").html("")},a.prototype.precut=function(){},a.prototype.getProperty=function(){return this.__property},exports.instance=a});