Browse Source

fix: rename same function and variable names in containerGeometry

pull/1258/head
Luc Patiny 2 years ago
parent
commit
8860134884
No account linked to committer's email address
1 changed files with 16 additions and 16 deletions
  1. 16
    16
      src/modules/core/containerGeometry.js

+ 16
- 16
src/modules/core/containerGeometry.js View File

@@ -30,17 +30,17 @@ export function dmove (dx, dy) {
return this
}

export function dx (dx) {
return this.dmove(dx, 0)
export function dx (dxValue) {
return this.dmove(dxValue, 0)
}

export function dy (dy) {
return this.dmove(0, dy)
export function dy (dyValue) {
return this.dmove(0, dyValue)
}

export function height (height, box = this.bbox()) {
if (height == null) return box.height
return this.size(box.width, height, box)
export function height (heightValue, box = this.bbox()) {
if (heightValue == null) return box.height
return this.size(box.width, heightValue, box)
}

export function move (x = 0, y = 0, box = this.bbox()) {
@@ -63,17 +63,17 @@ export function size (width, height, box = this.bbox()) {
return this
}

export function width (width, box = this.bbox()) {
if (width == null) return box.width
return this.size(width, box.height, box)
export function width (widthValue, box = this.bbox()) {
if (widthValue == null) return box.width
return this.size(widthValue, box.height, box)
}

export function x (x, box = this.bbox()) {
if (x == null) return box.x
return this.move(x, box.y, box)
export function x (xValue, box = this.bbox()) {
if (xValue == null) return box.x
return this.move(xValue, box.y, box)
}

export function y (y, box = this.bbox()) {
if (y == null) return box.y
return this.move(box.x, y, box)
export function y (yValue, box = this.bbox()) {
if (yValue == null) return box.y
return this.move(box.x, yValue, box)
}

Loading…
Cancel
Save