Comparing version 0.0.26 to 0.0.27
{ | ||
"name": "2gl", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "WebGL library for 2GIS projects", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -182,3 +182,3 @@ 'use strict'; | ||
if (state.renderer.sortObjects) { | ||
this._sortObjects(state, renderObjects); | ||
renderObjects.sort(this._renderOrderSort); | ||
} | ||
@@ -209,22 +209,6 @@ | ||
}, { | ||
key: '_sortObjects', | ||
value: function _sortObjects(_ref, renderObjects) { | ||
var camera = _ref.camera; | ||
var sorter = this._painterSortStable.bind(this, camera); | ||
renderObjects.sort(sorter); | ||
key: '_renderOrderSort', | ||
value: function _renderOrderSort(a, b) { | ||
return a.renderOrder - b.renderOrder; | ||
} | ||
}, { | ||
key: '_painterSortStable', | ||
value: function _painterSortStable(camera, a, b) { | ||
if (a.renderOrder !== b.renderOrder) { | ||
return a.renderOrder - b.renderOrder; | ||
} | ||
var aZ = camera.project(a.getWorldPosition())[2]; | ||
var bZ = camera.project(b.getWorldPosition())[2]; | ||
return aZ - bZ; | ||
} | ||
}]); | ||
@@ -258,2 +242,2 @@ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZW5kZXJlci9SZW5kZXJlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBZ0JNO0FBQ0YsYUFERSxRQUNGLENBQVksT0FBWixFQUFxQjs4QkFEbkIsVUFDbUI7O0FBQ2pCLGFBQUssVUFBTCxHQUFrQixPQUFPLFFBQVEsU0FBUixLQUFzQixRQUE3QixHQUNkLFNBQVMsY0FBVCxDQUF3QixRQUFRLFNBQVIsQ0FEVixHQUMrQixRQUFRLFNBQVIsQ0FGaEM7O0FBSWpCLGFBQUssV0FBTCxHQUFtQixRQUFRLFVBQV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KlxuICog0J7QsdGK0LXQutGCINC40YHQv9C+0LvRjNC30YPQtdGC0YHRjyDQtNC70Y8g0YDQsNGB0L/RgNC10LTQtdC70LXQvdC40Y8g0L7QsdGK0LXQutGC0L7QsiDQv9C+INGC0LjQv9Cw0Lwg0YDQtdC90LTQtdGA0L7QsixcbiAqINGCLtC6LiDQv9GA0L7Qt9GA0LDRh9C90YvQtSDQvtCx0YrQtdC60YLRiyDQuCDRgdC/0YDQsNC50YLRiyDRgNC10L3QtNC10YDRj9GC0YHRjyDQvtGC0LTQtdC70YzQvdC+LlxuICpcbiAqIEB0eXBlZGVmIHtPYmplY3R9IFR5cGVkT2JqZWN0c1xuICogQHByb3BlcnR5IHtBcnJheX0gY29tbW9uINCh0Y7QtNCwINGB0LrQu9Cw0LTRi9Cy0LDRjtGC0YHRjyDQstGB0LUg0L7QsdGK0LXQutGC0YssINC00LvRjyDQutC+0YLQvtGA0YvRhSDQvdC10YIg0YHQv9C10YbQuNCw0LvRjNC90YvRhSDRgNC10L3QtNC10YDQvtCyXG4gKiBAcHJvcGVydHkge0FycmF5fSB0cmFuc3BhcmVudCDQn9GA0L7Qt9GA0LDRh9C90YvQtSDQvtCx0YrQtdC60YLRi1xuICogQHByb3BlcnR5IHtBcnJheX0gc3ByaXRlcyDQodC/0YDQsNC50YLRi1xuICovXG4iXX0= |
Sorry, the diff of this file is too big to display
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
549135
3175