Skip to content

Fork this repo if you want to customize the diagram designers

Notifications You must be signed in to change notification settings

webgme/diagram-designers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains the Panels, Controllers and Widgets making up the ModelEditor, SetEditor and Crosscut visualizers from the generic UI.

The idea of this repository is to enable modifications of the aforementioned visualizers without keeping a fork of webgme repo (which is a highly volatile) and instead forking off from this repo and import the visualizers from that fork into your own domain repo.

Note that not all dependencies of the visualizers are checked in here. For instance the DragHelper is referred to at 'js/Dialogs/ImportModel/ImportModelDialog' (that is it's coming from the webgme-repo). In order to switch out components like this, you just change the path in the code.

Importing the visualizers

To import the visualizers from the particular repository (for a fork simply replace the webgme/diagram-designers with your git repository) using webgme-cli.

Model Editor

webgme import viz ModelEditorDD webgme/diagram-designers

Set Editor

webgme import viz SetEditorDD webgme/diagram-designers

Crosscut

webgme import viz CrosscutDD webgme/diagram-designers

By default the ModelEditor from the webgme repository is the default visualizer to display. This can be changed by adding the key-value-pair "default": true to the desired visualizer descriptor in your src/visualizers/Visualizers.json.

Component Settings

By default the component-settings are the same as for the ones in the generic UI. However this can easily be changed by changing the componentId (typically returned from getComponentId()) and any type of default configuration.

How this repo is kept in sync with webgme

We will make sure to maintain this repo at new webgme releases (at a minimum). In order to keep your forked in sync (which is highly recommended) see syncing-a-fork.

For webgme devs

When there are changes to any of the corresponding files in the webgme repo - the files here need to be updated. Copy the entire folders and change the requirejs paths pointing to js/Widgets/* and js/Panels/* to point to widgets/* and panels/* where applicable.

About

Fork this repo if you want to customize the diagram designers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published