Please refer to this forum post for details on the latest suggestion platform.
Javascript API to access the drawing canvas from a javascript script to draw 2D lines, eg draw_line(x1, y1, x2, y2).