three-render-objects 1.37.0 → 1.38.0

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.
@@ -1,4 +1,4 @@
1
- // Version 1.37.0 three-render-objects - https://github.com/vasturiano/three-render-objects
1
+ // Version 1.38.0 three-render-objects - https://github.com/vasturiano/three-render-objects
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
4
4
  typeof define === 'function' && define.amd ? define(['three'], factory) :
@@ -77727,9 +77727,6 @@ var<${access}> ${name} : ${structName};`;
77727
77727
  triggerUpdate: false
77728
77728
  },
77729
77729
  hoverOrderComparator: {
77730
- "default": function _default() {
77731
- return -1;
77732
- },
77733
77730
  triggerUpdate: false
77734
77731
  },
77735
77732
  // keep existing order by default
@@ -77779,7 +77776,8 @@ var<${access}> ${name} : ${structName};`;
77779
77776
  if (state.hoverDuringDrag || !state.isPointerDragging) {
77780
77777
  var intersects = this.intersectingObjects(state.pointerPos.x, state.pointerPos.y).filter(function (d) {
77781
77778
  return state.hoverFilter(d.object);
77782
- }).sort(function (a, b) {
77779
+ });
77780
+ state.hoverOrderComparator && intersects.sort(function (a, b) {
77783
77781
  return state.hoverOrderComparator(a.object, b.object);
77784
77782
  });
77785
77783
  var topIntersect = intersects.length ? intersects[0] : null;