added line drawings to pdf

This commit is contained in:
bckmnn
2021-02-14 17:25:41 +01:00
parent 26329b000b
commit ea40f1cc7a

View File

@@ -23,6 +23,9 @@ function vec2_angle(v) {
function render_vector_drawing(a, padding) {
var shape = a.shape || "";
var path = [];
if(typeof a.control_points == 'string'){
a.control_points = JSON.parse(a.control_points);
}
var p = a.control_points[0];
if (!p) return "";