Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let endState = new FinalState({
position: { x: 150, y: 200 },
attrs: {
text: { text: 'End State' }
}
});
var сomplexTransitionHorizon = new ComplexTransitionH({
size: { width: 200 },
position: { x: 100, y: 300 },
attrs: {
text: { text: 'Some text' },
'.rotatable': { title:'Синхронизатор/разветвитель (Complex Transition)' } }
});
var сomplexTransitionVertical = new ComplexTransitionV({
size: { height: 200 },
position: { x: 100, y: 350 },
attrs: {
text: { text: 'Some text' },
'.rotatable': { title:'Синхронизатор/разветвитель (Complex Transition)' } }
});
var history = new History({
position: { x: 250, y: 200 },
});
var deepHistory = new DeepHistory({
position: { x: 280, y: 200 },
});
var compositeState = new CompositeState({
target: { x:300, y:250 },
labels:[{
attrs: { text: { text: 'Label' } }
}],
attrs: { path: { title:'Переход (Transition)' } }
});
var сomplexTransitionHorizon = new ComplexTransitionH({
size: { width: 100 },
position: { x: 100, y: 300 },
attrs: {
text: { text: 'Some text' },
'.rotatable': { title:'Синхронизатор/разветвитель (Complex Transition)' } }
});
var сomplexTransitionVertical = new ComplexTransitionV({
size: { height: 100 },
position: { x: 100, y: 350 },
attrs: {
text: { text: 'Some text' },
'.rotatable': { title:'Синхронизатор/разветвитель (Complex Transition)' } }
});
_this.graph.addCell([linkNoteConnector, linkObjectFlow, linkTransition, сomplexTransitionHorizon, сomplexTransitionVertical]);
let note = new Note({
position: { x: 450, y: 100 },
size: { width: 100, height: 50 },
name: 'note',
attrs: { '.rotatable': { title:'Комментарий (Note)' } }
});