(nodeColors: Map<string, string>)
| 1169 | } |
| 1170 | |
| 1171 | updateNodeColors(nodeColors: Map<string, string>): void { |
| 1172 | if (!this.app) return; |
| 1173 | for (const [id, color] of nodeColors) { |
| 1174 | const node = this.nodes.get(id); |
| 1175 | if (!node) continue; |
| 1176 | node.color = color; |
| 1177 | node.sprite.texture = getCircleTexture( |
| 1178 | this.app, |
| 1179 | color, |
| 1180 | this.textureCache, |
| 1181 | ); |
| 1182 | } |
| 1183 | } |
| 1184 | |
| 1185 | /** Update link colors and re-group for batched rendering. */ |
| 1186 | updateLinkColors(linkColors: Map<string, string>): void { |
no test coverage detected