We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7da53f commit 5162d41Copy full SHA for 5162d41
src/firefly/js/visualize/Point.js
@@ -1,5 +1,5 @@
1
2
-import {isString} from 'lodash';
+import {isString, isNil} from 'lodash';
3
import CoordinateSys from './CoordSys.js';
4
import Resolver, {parseResolver} from '../astro/net/Resolver.js';
5
import validator from 'validator';
@@ -199,6 +199,9 @@ export const makeOffsetPt= function(x,y) {
199
};
200
201
export const pointEquals= function(p1,p2) {
202
+ if (isNil(p1) && isNil(p2)) return true;
203
+ else if (isNil(p1) || isNil(p2)) return false;
204
+
205
return (p1.x===p2.x && p1.y===p2.y && p1.type===p2.type && p1.csys===p2.csys);
206
207
0 commit comments