12345678910111213141516171819202122232425 |
- ;(function(undefined) {
- 'use strict';
- if (typeof sigma === 'undefined')
- throw 'sigma is not declared';
- // Initialize packages:
- sigma.utils.pkg('sigma.canvas.edges.labels');
- /**
- * This label renderer will just display the label on the curve of the edge.
- * The label is rendered at half distance of the edge extremities, and is
- * always oriented from left to right on the top side of the curve.
- *
- * @param {object} edge The edge object.
- * @param {object} source node The edge source node.
- * @param {object} target node The edge target node.
- * @param {CanvasRenderingContext2D} context The canvas context.
- * @param {configurable} settings The settings function.
- */
- sigma.canvas.edges.labels.curvedArrow =
- function(edge, source, target, context, settings) {
- sigma.canvas.edges.labels.curve(edge, source, target, context, settings);
- };
- }).call(this);
|