Skip to content

Commit d87a016

Browse files
committed
feat(masonry): standardize SVG origin in path
Signed-off-by: Justin Charles <[email protected]>
1 parent 80c9cc4 commit d87a016

File tree

1 file changed

+2
-1
lines changed
  • modules/masonry/src/brick/utils

1 file changed

+2
-1
lines changed

modules/masonry/src/brick/utils/path.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ export function generatePath(config: TInputType1 | TInputType2 | TInputType3): {
391391
rightVertical: rightVertical,
392392
});
393393

394+
const segments = [...top, ...right, ...bottom, ...left];
394395
return {
395-
path: [...top, ...right, ...bottom, ...left].join(' '),
396+
path: ['M 0,0', ...segments].join(' '),
396397
};
397398
}

0 commit comments

Comments
 (0)