diff --git a/src/layouts/JustifiedLayout.js b/src/layouts/JustifiedLayout.js index fbc6f6e2f..9efc66afe 100644 --- a/src/layouts/JustifiedLayout.js +++ b/src/layouts/JustifiedLayout.js @@ -88,7 +88,6 @@ class JustifiedLayout { const pos1Name = style.pos1; const size1Name = style.size1; const pos2Name = style.pos2; - const endPos2Name = style.endPos2; const size2Name = style.size2; const length = path.length; const margin = this._options.margin; @@ -116,7 +115,6 @@ class JustifiedLayout { item.rect = { [pos1Name]: pos1, [pos2Name]: pos2, - [endPos2Name]: pos2 + size2, [size1Name]: size1, [size2Name]: size2, };