src/app/canvas-graph/canvas-graph.component.ts
File canvas-graph.component.ts
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
ElementRef,
EventEmitter,
Input,
Function addNode
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addNode() {
// mothod 1 for keep current context
let self = this;
// this function is referenced from lightgraph src.
Function afterClick
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
afterClick(e, node) {
if (!node || !node.properties)
return;
let self = this;
Function ngOnInit
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ngOnInit() {
if (this.editable) {
this.graphTaskService.getAll()
.subscribe(allTasks => {
this.taskInjectableNames = allTasks.map(function (item) {
Function drawNodes
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawNodes() {
if (!this.workflow) return;
this.graph.clear();