text: import MenuItem from "./MenuItem";
  import icon from "@icon/icon";
  import { EVENT } from "@core/UIElement";
   
  export default class AddText extends MenuItem {
    getIconString() {
      return icon.title;
    }
    getTitle() { 
      return this.props.title || "Text";
    }
  
    getClassName() {
      return 'text'
    }
  
    clickButton(e) {
      this.emit('addLayerView', 'text');
    }
  
    [EVENT('addLayerView')] (type) {
      this.setSelected(type === 'text');
    }    
  
  }
  