UNPKG

sigma

Version:

A JavaScript library dedicated to graph drawing.

10 lines (9 loc) 378 B
/** * Sigma.js Canvas Renderer Node Component * ======================================== * * Function used by the canvas renderer to display a single node. * @module */ import { NodeAttributes, PartialButFor } from "../../types"; export default function drawNode(context: CanvasRenderingContext2D, data: PartialButFor<NodeAttributes, "x" | "y" | "size" | "color">): void;