Make icons easier to click
This commit is contained in:
@@ -1253,11 +1253,13 @@ function toSvg(shape, fillColor, strokeColor, strokeWidth, scale) {
|
||||
return svg;
|
||||
}
|
||||
|
||||
|
||||
let svg = '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="' + shape.viewBox + '" '
|
||||
+ (shape.noAspect ? 'preserveAspectRatio="none" ' : '')
|
||||
+ 'width="' + wi + '" height="' + he + '">'
|
||||
+ '<g' + (shape.transform ? (' transform="' + shape.transform + '"') : '') + '>';
|
||||
+ '<g' + (shape.transform ? (' transform="' + shape.transform + '"') : '') + '>'
|
||||
+ '<rect x="' + shape.viewBox.split(' ')[0] + '" y="' + shape.viewBox.split(' ')[1]
|
||||
+ '" width="' + shape.viewBox.split(' ')[2] + '" height="' + shape.viewBox.split(' ')[3]
|
||||
+ '" fill="transparent" stroke="none"/>';
|
||||
|
||||
if (shape.path) {
|
||||
let path = shape.path;
|
||||
|
||||
Reference in New Issue
Block a user