define(["ember","./style"],function(a){return a.Object.extend({page:null,title:null,type:null,properties:null,data:null,style:null,selected:!1,mode:"preview",zIndex:function(){return this.get("style.zIndex")}.property("style.zIndex"),isText:function(){return"text"==this.get("type")||"Text"==this.get("properties.TopictypeCode")?!0:!1}.property(),isTextEditable:function(){return"text"==this.get("type")}.property(),isTopic:function(){return"topic"==this.get("type")}.property(),setProperties:function(a){a&&("style"in a&&(this.get("style").setProperties(a.style),delete a.style),this._super(a))},rotate:function(a){this.set("style.rotate",this.get("style.rotate")+a)},layerUp:function(){this.get("page").trigger("layerUp",this)},layerDown:function(){this.get("page").trigger("layerDown",this)}})});