Function generatePointId

  • Namespace

    InternalUtils

    Generates a unique ID string from the given point data (x, y).

    Type Parameters

    Parameters

    • data: T

      The point data with 'x' and 'y' properties.

    Returns GraphNodeId

    A unique ID string representing the point.

    Function

    Example

    const pointData = { x: 3, y: 5 };
    const pointId = InternalUtils.generatePointId(pointData);
    console.log(pointId); // Output: "3,5"

Generated using TypeDoc