modern-path2d 0.1.18 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -70,10 +70,10 @@ parsedPaths.forEach((parsedPath) => {
70
70
  })
71
71
 
72
72
  // export path data
73
- console.log(path.getData())
73
+ console.log(path.toData())
74
74
 
75
75
  // export path commands
76
- console.log(path.getCommands())
76
+ console.log(path.toCommands())
77
77
 
78
78
  // export to ctx
79
79
  path.drawTo(document.getElementById('canvas').getContext('2d'))