UNPKG

sigma

Version:

A JavaScript library dedicated to graph drawing.

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