colinmeinke / svg-points

A specification for storing SVG shape data in Javascript, and some handy conversion functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`m` as initial path command throws `toPoints` error

colinmeinke opened this issue · comments

prevPoint doesn't exist if initial command

switch (command) {
  case 'm':
    relative = true;

  case 'M':
    var x = (relative ? prevPoint.x : 0) + commandParams.shift();