Example #1
0
 var shapes = contours.map(function (contour) {
     return {
         id: guid('shape'),
         type: 'path',
         points: contour
     };
 });
Example #2
0
 this.setShapes(contours.map(function(contour){
     return {
         id: guid('shape'),
         type: 'path',
         points: contour
     };
 }));
Example #3
0
            shapes.forEach(function (shape) {
                pathAdjust(shape.points, scale, -scale);
                pathAdjust(shape.points, 1, 1, origin.x, origin.y);

                if (shapeIdList[shape.id]) {
                    shape.id = guid('shape');
                }

                fontLayer.addShape(shape);
            });