UNPKG

sigma

Version:

A JavaScript library aimed at visualizing graphs of thousands of nodes and edges.

11 lines (10 loc) 464 B
/** * Sigma.js Canvas Renderer Label Component * ========================================= * * Function used by the canvas renderer to display a single node's label. * @module */ import { Settings } from "../../settings"; import { NodeDisplayData, PartialButFor } from "../../types"; export default function drawLabel(context: CanvasRenderingContext2D, data: PartialButFor<NodeDisplayData, "x" | "y" | "size" | "label" | "color">, settings: Settings): void;