MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / labelPosition

Function labelPosition

tensorboard/plugins/graph/tf_graph_common/node.ts:540–546  ·  view source on GitHub ↗

* Set label position of a given node group

(nodeGroup, cx: number, cy: number, yOffset: number)

Source from the content-addressed store, hash-verified

538 * Set label position of a given node group
539 */
540function labelPosition(nodeGroup, cx: number, cy: number, yOffset: number) {
541 tf_graph_scene
542 .selectChild(nodeGroup, 'text', Class.Node.LABEL)
543 .transition()
544 .attr('x', cx)
545 .attr('y', cy + yOffset);
546}
547/**
548 * Select or append/insert shape for a node and assign renderNode
549 * as the shape's data.

Callers 1

positionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…