📜  节点 base64 svg 到 png - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:49.333000             🧑  作者: Mango

代码示例3
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('');
});