Newer
Older
this.key = key;
this.warnings = false;
}
getName() {
return this.name;
}
getKey() {
return this.key;
}
onToolActivate() {
if (this.warnings) {
console.warn('Method "onToolActivate" not implemented.');
}
}
onToolDeactivate(nextTool) {
if (this.warnings) {
console.warn('Method "onToolDeactivate" not implemented.');
}
}
onNodeClick(node) {
if (this.warnings) {
console.warn('Method "onNodeClick" not implemented.');
}
}
onLinkClick(link) {
if (this.warnings) {
console.warn('Method "onLinkClick" not implemented.');
}
}
onKeyDown(key) {
if (this.warnings) {
console.warn('Method "onKeyDown" not implemented.');
}
}
onKeyUp(key) {
if (this.warnings) {
console.warn('Method "onKeyUp" not implemented.');
}
}
nodeCanvasObject(node, ctx, globalScale) {
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
if (this.warnings) {
console.warn('Method "nodeCanvasObject" not implemented.');
}
}
nodeCanvasObjectMode(node) {
if (this.warnings) {
console.warn('Method "nodeCanvasObjectMode" not implemented.');
}
}
nodePointerAreaPaint(node, color, ctx) {
if (this.warnings) {
console.warn('Method "nodePointerAreaPaint" not implemented.');
}
}
linkWidth(link) {
if (this.warnings) {
console.warn('Method "linkWidth" not implemented.');
}
}
linkDirectionalParticles() {
if (this.warnings) {
console.warn('Method "linkDirectionalParticles" not implemented.');
}
}
linkDirectionalParticleWidth(link) {
if (this.warnings) {
console.warn(
'Method "linkDirectionalParticleWidth" not implemented.'
);
}
}
linkColor(link) {
if (this.warnings) {
console.warn(
'Method "linkColor" not implemented.'
);
}
}
nodeColor(node) {
if (this.warnings) {
console.warn(
'Method "nodeColor" not implemented.'
);
}
}
onBackgroundClick(event, positions) {
if (this.warnings) {
console.warn('Method "onBackgroundClick" not implemented.');