import {position_curve_to_canvas} from "../draw/position_curve_to_canvas.js";

export function updateMarkerPosition(graph, frame, margin, keyframe, vContainerMarker) {
    const canvasCoordinates = position_curve_to_canvas(
        graph.size,
        frame,
        margin,
        keyframe.time,
        keyframe.value
    );
    vContainerMarker.position.copy(canvasCoordinates);
}