Open lexeii opened 5 years ago
When fill is absent (fill="none") then fill-* attributes has no sense:
fill
fill="none"
fill-*
Now:
fill:none;fill-rule:evenodd
Desired:
fill:none
Additionally, when stroke not defined then stroke-* attributes are excessive:
stroke
stroke-*
fill:#333;stroke-width:2;stroke-linecap:round;stroke-linejoin:round
fill:#333
Added: if path contains only individual segments (or arcs):
m 13.5,18.5 1,-2 m -6,2 1,-2 m 6.5,2 1,-2 m -6,2 1,-2 m -6,2 1,-2
I.e. it don't contains joined lines, then long definition like stroke-linejoin="round" may be removed.
stroke-linejoin="round"
Still using old svgcleaner 0.9.1, I apologize if this has already been improved in newer versions.
svgcleaner 0.9.1
When
fill
is absent (fill="none"
) thenfill-*
attributes has no sense:Now:
Desired:
Additionally, when
stroke
not defined thenstroke-*
attributes are excessive:Now:
Desired:
Added: if path contains only individual segments (or arcs):
I.e. it don't contains joined lines, then long definition like
stroke-linejoin="round"
may be removed.Still using old
svgcleaner 0.9.1
, I apologize if this has already been improved in newer versions.