UNPKG

owl-bt

Version:

owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a way, that it supports special node items like decorators and services. This makes trees smaller and much more readable.

31 lines (24 loc) 823 B
'use strict'; (function() { class CommandContextMenuCfg { constructor() { this.menuItems = []; } /** * register context menu action for services * @param {Object} itemDesc * @param {String} itemDesc.command - name of the command in command palette, that handles the specified menu action * @param {String} itemDesc.title - (optional) display title. Command name by default * @param {String} itemDesc.icon - (optional) command icon by default * @param {String} itemDesc.order - (optional) order (0=first) of the item in the menu. 0 by default */ addMenuItem(itemDesc) { this.menuItems.push(itemDesc); } $get() { return this; } } angular.module('editorApp') .provider('CommandContextMenuCfg', CommandContextMenuCfg); })();