📅  最后修改于: 2022-03-11 15:01:49.333000             🧑  作者: Mango
var fabric = require('fabric').fabric;
var canvas = new fabric.createCanvasForNode(100, 100);
var svgStr = '';
fabric.loadSVGFromString(svgStr, function(objects, options) {
var obj = new fabric.PathGroup(objects, options);
canvas.add(obj);
console.log('');
});