@mathigon/euclid
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -21,2 +21,3 @@ import { Point } from './point'; | ||
get yRange(): [number, number]; | ||
extend(top: number, right?: number, bottom?: number, left?: number): Bounds; | ||
get rect(): Rectangle; | ||
@@ -23,0 +24,0 @@ get center(): Point; |
@@ -1750,2 +1750,5 @@ "use strict"; | ||
} | ||
extend(top, right = top, bottom = top, left = right) { | ||
return new Bounds(this.xMin - left, this.xMax + right, this.yMin - top, this.yMax + bottom); | ||
} | ||
get rect() { | ||
@@ -1752,0 +1755,0 @@ return new Rectangle(new Point(this.xMin, this.yMin), this.dx, this.dy); |
@@ -1685,2 +1685,5 @@ // src/angle.ts | ||
} | ||
extend(top, right = top, bottom = top, left = right) { | ||
return new Bounds(this.xMin - left, this.xMax + right, this.yMin - top, this.yMax + bottom); | ||
} | ||
get rect() { | ||
@@ -1687,0 +1690,0 @@ return new Rectangle(new Point(this.xMin, this.yMin), this.dx, this.dy); |
{ | ||
"name": "@mathigon/euclid", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://mathigon.io/euclid", |
@@ -61,2 +61,6 @@ // ============================================================================= | ||
extend(top: number, right = top, bottom = top, left = right) { | ||
return new Bounds(this.xMin - left, this.xMax + right, this.yMin - top, this.yMax + bottom); | ||
} | ||
get rect() { | ||
@@ -63,0 +67,0 @@ return new Rectangle(new Point(this.xMin, this.yMin), this.dx, this.dy); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
527984
7137