Rename _ol_structs_RBush_ to RBush
This commit is contained in:
@@ -16,7 +16,7 @@ import _ol_render_webgl_Replay_ from '../webgl/Replay.js';
|
||||
import _ol_render_webgl_ from '../webgl.js';
|
||||
import _ol_style_Stroke_ from '../../style/Stroke.js';
|
||||
import _ol_structs_LinkedList_ from '../../structs/LinkedList.js';
|
||||
import _ol_structs_RBush_ from '../../structs/RBush.js';
|
||||
import RBush from '../../structs/RBush.js';
|
||||
import _ol_webgl_ from '../../webgl.js';
|
||||
import _ol_webgl_Buffer_ from '../../webgl/Buffer.js';
|
||||
|
||||
@@ -77,7 +77,7 @@ _ol_render_webgl_PolygonReplay_.prototype.drawCoordinates_ = function(
|
||||
flatCoordinates, holeFlatCoordinates, stride) {
|
||||
// Triangulate the polygon
|
||||
var outerRing = new _ol_structs_LinkedList_();
|
||||
var rtree = new _ol_structs_RBush_();
|
||||
var rtree = new RBush();
|
||||
// Initialize the outer ring
|
||||
this.processFlatCoordinates_(flatCoordinates, stride, outerRing, rtree, true);
|
||||
var maxCoords = this.getMaxCoords_(outerRing);
|
||||
@@ -90,7 +90,7 @@ _ol_render_webgl_PolygonReplay_.prototype.drawCoordinates_ = function(
|
||||
var holeList = {
|
||||
list: new _ol_structs_LinkedList_(),
|
||||
maxCoords: undefined,
|
||||
rtree: new _ol_structs_RBush_()
|
||||
rtree: new RBush()
|
||||
};
|
||||
holeLists.push(holeList);
|
||||
this.processFlatCoordinates_(holeFlatCoordinates[i],
|
||||
@@ -554,7 +554,7 @@ _ol_render_webgl_PolygonReplay_.prototype.splitPolygon_ = function(list, rtree)
|
||||
s0.p1, s1.p0, s1.p1);
|
||||
var p = this.createPoint_(intersection[0], intersection[1], n);
|
||||
var newPolygon = new _ol_structs_LinkedList_();
|
||||
var newRtree = new _ol_structs_RBush_();
|
||||
var newRtree = new RBush();
|
||||
this.insertItem_(p, s0.p1, newPolygon, newRtree);
|
||||
s0.p1 = p;
|
||||
rtree.update([Math.min(s0.p0.x, p.x), Math.min(s0.p0.y, p.y),
|
||||
|
||||
Reference in New Issue
Block a user