Skip to content

fix bounding box, force 1st absolute M #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/svg-path-commander.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/svg-path-commander.cjs.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/svg-path-commander.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export declare type sSegment = [sCommand, number, number, number, number];
* @author thednp <https://github.com/thednp/svg-path-commander>
* @returns a new SVGPathCommander instance
*/
declare class SVGPathCommander_2 {
declare class SVGPathCommander {
static CSSMatrix: typeof default_2;
static pathToAbsolute: (pathInput: string | PathArray) => AbsoluteArray_2;
static pathToRelative: (pathInput: string | PathArray) => RelativeArray_2;
Expand Down Expand Up @@ -699,7 +699,7 @@ declare class SVGPathCommander_2 {
*/
dispose(): void;
}
export default SVGPathCommander_2;
export default SVGPathCommander;

export declare type TCommand = "T";

Expand Down
2 changes: 1 addition & 1 deletion dist/svg-path-commander.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/svg-path-commander.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/svg-path-commander.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ const D = (e) => {
Dt(t);
if (t != null && t.err.length)
throw TypeError(t.err);
return t.segments;
return t.segments[0][0] = "M", t.segments;
}, at = (e, t, s, r) => {
const [n] = e, i = n.toUpperCase();
if (t === 0 || i === n) return e;
Expand Down
2 changes: 1 addition & 1 deletion dist/svg-path-commander.mjs.map

Large diffs are not rendered by default.

Loading