Closed Tarrowren closed 4 months ago
Please provide us with clear steps to reproduce or we cannot help you. As it stands this report is not actionable for us.
https://github.com/weolar/miniblink49/releases/download/2019.10.15/miniblink-191015.rar
I'm developing on an older platform, version Chrome 60, which doesn't support dataset fields. Currently I'm using this shim to temporarily solve this problem:
let line: SVGLineElement | null = document.createElementNS(
"http://www.w3.org/2000/svg",
"line",
);
if (!line.dataset) {
(SVGElement.prototype as any).dataset = {};
}
line = null;
Describe the Bug
if (!attrs) { attrs = {}; }
const line = svgCreate("path", attrs);
if (isNumber(radius)) { line.dataset.cornerRadius = String(radius); }
return updateLine(line, points); }
/**
@return {SVGElement} */ export function updateLine(gfx, points) { const cornerRadius = parseInt(gfx.dataset.cornerRadius, 10) || 0;
svgAttr(gfx, { d: componentsToPath(drawPath(points, cornerRadius)), });
return gfx; }
Steps to Reproduce
Steps to reproduce the behavior:
If possible, try to build a test case that reproduces your problem.
Expected Behavior
use
svgAttr
Environment