Rename reverseInstructions_ function to reverseHitDetectionInstructions_
This commit is contained in:
@@ -298,7 +298,8 @@ ol.render.canvas.Replay.prototype.replayBackward =
|
|||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.render.canvas.Replay.prototype.reverseInstructions_ = function() {
|
ol.render.canvas.Replay.prototype.reverseHitDetectionInstructions_ =
|
||||||
|
function() {
|
||||||
var hitDetectionInstructions = this.hitDetectionInstructions;
|
var hitDetectionInstructions = this.hitDetectionInstructions;
|
||||||
// step 1 - reverse array
|
// step 1 - reverse array
|
||||||
hitDetectionInstructions.reverse();
|
hitDetectionInstructions.reverse();
|
||||||
@@ -548,7 +549,7 @@ ol.render.canvas.ImageReplay.prototype.drawMultiPointGeometry =
|
|||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.render.canvas.ImageReplay.prototype.finish = function() {
|
ol.render.canvas.ImageReplay.prototype.finish = function() {
|
||||||
this.reverseInstructions_();
|
this.reverseHitDetectionInstructions_();
|
||||||
// FIXME this doesn't really protect us against further calls to draw*Geometry
|
// FIXME this doesn't really protect us against further calls to draw*Geometry
|
||||||
this.anchorX_ = undefined;
|
this.anchorX_ = undefined;
|
||||||
this.anchorY_ = undefined;
|
this.anchorY_ = undefined;
|
||||||
@@ -750,7 +751,7 @@ ol.render.canvas.LineStringReplay.prototype.finish = function() {
|
|||||||
if (state.lastStroke != this.coordinates.length) {
|
if (state.lastStroke != this.coordinates.length) {
|
||||||
this.instructions.push([ol.render.canvas.Instruction.STROKE]);
|
this.instructions.push([ol.render.canvas.Instruction.STROKE]);
|
||||||
}
|
}
|
||||||
this.reverseInstructions_();
|
this.reverseHitDetectionInstructions_();
|
||||||
this.state_ = null;
|
this.state_ = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -954,7 +955,7 @@ ol.render.canvas.PolygonReplay.prototype.drawMultiPolygonGeometry =
|
|||||||
*/
|
*/
|
||||||
ol.render.canvas.PolygonReplay.prototype.finish = function() {
|
ol.render.canvas.PolygonReplay.prototype.finish = function() {
|
||||||
goog.asserts.assert(!goog.isNull(this.state_));
|
goog.asserts.assert(!goog.isNull(this.state_));
|
||||||
this.reverseInstructions_();
|
this.reverseHitDetectionInstructions_();
|
||||||
this.state_ = null;
|
this.state_ = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user