UNPKG

webgme-rosmod

Version:

This repository contains ROSMOD developed for WebGME. ROSMOD is a web-based, collaborative, modeling and execution environment for distributed embedded applications built using ROS http://rosmod.rcps.isis.vanderbilt.edu

42 lines (31 loc) 1.3 kB
/*globals define, _*/ /*jshint browser: true, camelcase: false*/ /** * @author rkereskenyi / https://github.com/rkereskenyi */ define([ 'js/Decorators/DecoratorBase', './DiagramDesigner/DocumentDecorator.DiagramDesignerWidget', './PartBrowser/DocumentDecorator.PartBrowserWidget' ], function (DecoratorBase, DocumentDecoratorDiagramDesignerWidget, DocumentDecoratorPartBrowserWidget) { 'use strict'; var DocumentDecorator, __parent__ = DecoratorBase, __parent_proto__ = DecoratorBase.prototype, DECORATOR_ID = 'DocumentDecorator'; DocumentDecorator = function (params) { var opts = _.extend({loggerName: this.DECORATORID}, params); __parent__.apply(this, [opts]); this.logger.debug('DocumentDecorator ctor'); }; _.extend(DocumentDecorator.prototype, __parent_proto__); DocumentDecorator.prototype.DECORATORID = DECORATOR_ID; /*********************** OVERRIDE DecoratorBase MEMBERS **************************/ DocumentDecorator.prototype.initializeSupportedWidgetMap = function () { this.supportedWidgetMap = { DiagramDesigner: DocumentDecoratorDiagramDesignerWidget, PartBrowser: DocumentDecoratorPartBrowserWidget }; }; return DocumentDecorator; });