MCPcopy
hub / github.com/opentrace/opentrace / updateNodeColors

Method updateNodeColors

ui/src/components/pixi/PixiRenderer.ts:1171–1183  ·  view source on GitHub ↗
(nodeColors: Map<string, string>)

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls 2

getCircleTextureFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected