Previous Projects/Goal-Bilby-master/SourceCode&WARfile/WebContent/scripts/main.js
/**
 * Turning on/off the edit mode
 */
Turning on/off the edit mode
Turning on / off the edit mode
function edit() {
	const self = this;
	this.graph.getCells().forEach(function (cell) {
		const c = cell.findView(self.paper);
		if (editMode == false) {
			c.setInteractivity(true);
			editMode = true;
		} else {
			c.setInteractivity(false);
			editMode = false;
		}
	})
}
function edit ( ) { const self = this ; this . graph . getCells ( ) . forEach ( function ( cell ) { const c = cell . findView ( self . paper ) ; if ( editMode == false ) { c . setInteractivity ( true ) ; editMode = true ; } else { c . setInteractivity ( false ) ; editMode = false ; } } ) }
Turning on/off the edit mode
Turning on / off the edit mode