svg-path-commander 2.0.0-alpha1 → 2.0.0-alpha2

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "svg-path-commander",
3
3
  "author": "thednp",
4
4
  "license": "MIT",
5
- "version": "2.0.0-alpha1",
5
+ "version": "2.0.0-alpha2",
6
6
  "description": "TypeScript tools for SVG processing and converting path data",
7
7
  "source": "src/index.ts",
8
8
  "main": "dist/svg-path-commander.js",
@@ -8,7 +8,7 @@ import pathLengthFactory from './pathLengthFactory';
8
8
  * @param path the shape `pathArray`
9
9
  * @returns the length of the cubic-bezier segment
10
10
  */
11
- const getPathBBox = (path?: PathArray): PathBBox => {
11
+ const getPathBBox = (path?: PathArray | string): PathBBox => {
12
12
  if (!path) {
13
13
  return {
14
14
  x: 0,