UNPKG

sigma

Version:

A JavaScript library dedicated to graph drawing.

11 lines (10 loc) 462 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 { NodeAttributes, PartialButFor } from "../../types"; export default function drawLabel(context: CanvasRenderingContext2D, data: PartialButFor<NodeAttributes, "x" | "y" | "size" | "label" | "color">, settings: Settings): void;