@noya-app/noya-geometry
Advanced tools
Comparing version 0.1.5 to 0.1.6
# @noya-app/noya-geometry | ||
## 0.1.6 | ||
### Patch Changes | ||
- Updated dependencies [6d31d22] | ||
- @noya-app/noya-utils@0.1.3 | ||
## 0.1.5 | ||
@@ -4,0 +11,0 @@ |
@@ -104,4 +104,3 @@ "use strict"; | ||
applyTo(obj) { | ||
if (!obj) | ||
return obj; | ||
if (!obj) return obj; | ||
if ("minX" in obj) { | ||
@@ -270,4 +269,3 @@ const min = this.applyTo({ x: obj.minX, y: obj.minY }); | ||
static multiply(...[first, ...rest]) { | ||
if (!first) | ||
return _AffineTransform.identity; | ||
if (!first) return _AffineTransform.identity; | ||
return rest.reduce((result, item) => result.prepend(item), first); | ||
@@ -352,4 +350,3 @@ } | ||
function getCompassDirectionCursor(direction, type = "bidirectional") { | ||
if (!direction) | ||
return void 0; | ||
if (!direction) return void 0; | ||
if (type === "unidirectional") { | ||
@@ -678,4 +675,3 @@ return `${direction}-resize`; | ||
const rectangleArea = areaOfTriangle(a, b, c) + areaOfTriangle(a, c, d); | ||
if ((0, import_noya_utils3.isNumberEqual)(triangleArea, rectangleArea)) | ||
return true; | ||
if ((0, import_noya_utils3.isNumberEqual)(triangleArea, rectangleArea)) return true; | ||
return !(triangleArea > rectangleArea); | ||
@@ -682,0 +678,0 @@ } |
{ | ||
"name": "@noya-app/noya-geometry", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"main": "./dist/index.js", | ||
@@ -12,4 +12,4 @@ "module": "./dist/index.mjs", | ||
"dependencies": { | ||
"@noya-app/noya-utils": "0.1.2" | ||
"@noya-app/noya-utils": "0.1.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
212162
3286
+ Added@noya-app/noya-utils@0.1.3(transitive)
- Removed@noya-app/noya-utils@0.1.2(transitive)
Updated@noya-app/noya-utils@0.1.3