webgme
Version:
Web-based Generic Modeling Environment
40 lines (31 loc) • 1.13 kB
JavaScript
/*globals define */
/*jshint browser: true*/
/**
* @author rkereskenyi / https://github.com/rkereskenyi
*/
define(['js/Constants',
'js/NodePropertyNames',
'js/RegistryKeys'
], function (CONSTANTS,
nodePropertyNames,
REGISTRY_KEYS) {
'use strict';
var FCO_REGISTRY = {},
FCO_ATTRIBUTES = {};
//fill default FCO attributes
FCO_ATTRIBUTES[nodePropertyNames.Attributes.name] = 'FCO';
//fill default FCO registry
FCO_REGISTRY[REGISTRY_KEYS.DECORATOR] = '';
FCO_REGISTRY[REGISTRY_KEYS.IS_PORT] = false;
FCO_REGISTRY[REGISTRY_KEYS.IS_ABSTRACT] = false;
FCO_REGISTRY[REGISTRY_KEYS.SVG_ICON] = '';
FCO_REGISTRY[REGISTRY_KEYS.PORT_SVG_ICON] = '';
FCO_REGISTRY[REGISTRY_KEYS.DISPLAY_FORMAT] = CONSTANTS.DISPLAY_FORMAT_ATTRIBUTE_MARKER +
nodePropertyNames.Attributes.name;
FCO_REGISTRY[REGISTRY_KEYS.VALID_VISUALIZERS] = 'ModelEditor SetEditor Crosscut GraphViz';
//return utility functions
return {
FCO_ATTRIBUTES: FCO_ATTRIBUTES,
FCO_REGISTRY: FCO_REGISTRY
};
});