Skip to content

Instantly share code, notes, and snippets.

View mirkomorati's full-sized avatar

Mirko Morati mirkomorati

View GitHub Profile
Draw.loadPlugin(function(ui) {
// Adds action
ui.actions.addAction('helloWorldAction', function() {
var ran = Math.floor((Math.random() * 100) + 1);
mxUtils.alert('A random number is ' + ran);
});
ui.actions.addAction('debugShapesAction', function() {
mxLog.show();
mxLog.debug("DEBUG");