@eturnity/eturnity_maths 7.24.0 → 7.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/objects/Line.js +3 -0
package/package.json
CHANGED
package/src/objects/Line.js
CHANGED
|
@@ -205,6 +205,9 @@ export class Line {
|
|
|
205
205
|
}
|
|
206
206
|
const polygon0 = polygons.find((p) => p.id == this.belongsTo[0].polygonId)
|
|
207
207
|
const polygon1 = polygons.find((p) => p.id == this.belongsTo[1].polygonId)
|
|
208
|
+
if(!polygon0 || !polygon1){
|
|
209
|
+
return false
|
|
210
|
+
}
|
|
208
211
|
let A, B, C, D
|
|
209
212
|
if (this.belongsTo[0].index !== null) {
|
|
210
213
|
A = polygon0.outline[this.belongsTo[0].index]
|