Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
target: { x:300, y:100 },
attrs: { path: { title:'Коннектор комментария (Note Connector)' } }
});
var linkDependency = new Dependency({
startPoint:{ x:100, y:150 },
endPoint: { x:300, y:150 },
source: { x:100, y:150 },
target: { x:300, y:150 },
labels:[{
attrs: { text: { text: 'Dependency' } }
}],
attrs: { path: { title:'Переход (Dependency)' } }
});
var linkConnection = new Connection({
startPoint:{ x:100, y:200 },
endPoint: { x:300, y:200 },
source: { x:100, y:200 },
target: { x:300, y:200 },
labels:[{
attrs: { text: { text: 'Connection' } }
}],
attrs: { path: { title:'Связь (Connection)' } }
});
_this.graph.addCell([linkNoteConnector, linkDependency, linkConnection]);
var component = new Component({
position: { x: 450, y: 100 },
size: { width: 80, height: 40 },
name: ['StateName'],
target: { x:300, y:100 },
attrs: { path: { title:'Коннектор комментария (Note Connector)' } }
});
var linkEventMessage = new Dependency({
startPoint:{ x:100, y:150 },
endPoint: { x:300, y:150 },
source: { x:100, y:150 },
target: { x:300, y:150 },
labels:[{
attrs: { text: { text: 'EventMessage' } }
}],
attrs: { path: { title:'Сообщение (Event Message)' } }
});
var linkTransition = new Connection({
startPoint:{ x:100, y:250 },
endPoint: { x:300, y:250 },
source: { x:100, y:250 },
target: { x:300, y:250 },
labels:[{
attrs: { text: { text: 'Transition' } }
}],
attrs: { path: { title:'Переход (Transition)' } }
});
_this.graph.addCell([linkNoteConnector, linkEventMessage, linkTransition]);
let state = new State({
position: { x: 450, y: 100 },
size: { width: 100, height: 40 },
name: 'StateName',