Flip

Prevent edges from 'flipping' when upside-down, allowing labels to maintain their position and orientation:

canvas.nodes([1, 2, 3, 4, 5]).add()

const edges = [[1, 2], [2, 3], [3, 4], [4, 5], [5, 1]]
canvas.edges(edges).add({
    flip: false,
    labels: {
        1: { text: 'inner' },
        2: { text: 'outer' }
    }
})