diff options
Diffstat (limited to 'src/modules/core/pointed.js')
-rw-r--r-- | src/modules/core/pointed.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/core/pointed.js b/src/modules/core/pointed.js index 540e5f8..0d4ef7a 100644 --- a/src/modules/core/pointed.js +++ b/src/modules/core/pointed.js @@ -3,23 +3,23 @@ import PointArray from '../../types/PointArray.js' export const MorphArray = PointArray // Move by left top corner over x-axis -export function x (x) { +export function x(x) { return x == null ? this.bbox().x : this.move(x, this.bbox().y) } // Move by left top corner over y-axis -export function y (y) { +export function y(y) { return y == null ? this.bbox().y : this.move(this.bbox().x, y) } // Set width of element -export function width (width) { +export function width(width) { const b = this.bbox() return width == null ? b.width : this.size(width, b.height) } // Set height of element -export function height (height) { +export function height(height) { const b = this.bbox() return height == null ? b.height : this.size(b.width, height) } |