Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
nodes = document.querySelector(querySelector);
}
if (!nodes) {
return null;
}
if (fixPseudo) {
fixPseudoElements();
}
if (removePreviewMargin) {
removeShowMainMargin();
}
const layer = nodeTreeToSketchGroup(nodes, {
getGroupName: getNodeName,
getRectangleName: getNodeName
});
const symbol = new SymbolMaster({ x, y });
symbol.setName(name);
symbol.addLayer(layer);
return symbol.toJSON();
};