first tries on adding MORE shapes to represent true gost fsa

This commit is contained in:
Gregory Bednov 2025-01-16 06:19:32 +03:00
commit 392aebe0df
15 changed files with 577 additions and 79 deletions

View file

@ -17,7 +17,7 @@ function PalettePlugin (create: Create,
title: 'Hand Tool',
action: {
click: function() {
console.log("Hello");
//console.log("Hello");
}
}
},
@ -52,9 +52,26 @@ function PalettePlugin (create: Create,
}
}
},
'create-device': {
group: 'create',
className: 'icon-create-shape',
title: 'Create Device',
action: {
click: function() {
var shape = elementFactory.createShape({
width: 100,
height: 80,
canStartConnection:true,
type: 'custom:circle'
});
console.log(shape.canStartConnection);
create.start(event, shape);
}
}
},
'create-connection': {
group: 'create',
className: 'connection-create-shape',
className: 'icon-connect',
title: 'Create Connection',
action: {
click: (event) => {