Closed jonobr1 closed 1 year ago
This patch fixes the following scenario:
const two = new Two({ type: Two.Types.svg, fullscreen: true, autostart: true }).appendTo(document.body); const d = 'M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z'; const path = Two.Utils.read.path.call(two, d); two.add(path);
By adding null checks on Two.Utils.applySvgAttributes method
Two.Utils.applySvgAttributes
This patch fixes the following scenario:
By adding null checks on
Two.Utils.applySvgAttributes
method