Skip to content

Impossible to set output presision to 0 (no fractional part) #110

Closed
@puzrin

Description

@puzrin

On big images (1000x1000) there are no needs to have fractional part in paths. But SVGO allow only 1 digit minimum after dot.

I did a quick test with regexp:

glyph.d = glyph.d.replace(
  /\d+\.\d+/g,
  function (match) { return Math.round(match) + ''; }
);

~20% profit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions