Rename _ol_render_webgl_ImageReplay_ to WebGLImageReplay
This commit is contained in:
@@ -12,7 +12,7 @@ import _ol_webgl_Buffer_ from '../../webgl/Buffer.js';
|
||||
* @param {ol.Extent} maxExtent Max extent.
|
||||
* @struct
|
||||
*/
|
||||
const _ol_render_webgl_ImageReplay_ = function(tolerance, maxExtent) {
|
||||
const WebGLImageReplay = function(tolerance, maxExtent) {
|
||||
_ol_render_webgl_TextureReplay_.call(this, tolerance, maxExtent);
|
||||
|
||||
/**
|
||||
@@ -41,13 +41,13 @@ const _ol_render_webgl_ImageReplay_ = function(tolerance, maxExtent) {
|
||||
|
||||
};
|
||||
|
||||
inherits(_ol_render_webgl_ImageReplay_, _ol_render_webgl_TextureReplay_);
|
||||
inherits(WebGLImageReplay, _ol_render_webgl_TextureReplay_);
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_render_webgl_ImageReplay_.prototype.drawMultiPoint = function(multiPointGeometry, feature) {
|
||||
WebGLImageReplay.prototype.drawMultiPoint = function(multiPointGeometry, feature) {
|
||||
this.startIndices.push(this.indices.length);
|
||||
this.startIndicesFeature.push(feature);
|
||||
const flatCoordinates = multiPointGeometry.getFlatCoordinates();
|
||||
@@ -60,7 +60,7 @@ _ol_render_webgl_ImageReplay_.prototype.drawMultiPoint = function(multiPointGeom
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_render_webgl_ImageReplay_.prototype.drawPoint = function(pointGeometry, feature) {
|
||||
WebGLImageReplay.prototype.drawPoint = function(pointGeometry, feature) {
|
||||
this.startIndices.push(this.indices.length);
|
||||
this.startIndicesFeature.push(feature);
|
||||
const flatCoordinates = pointGeometry.getFlatCoordinates();
|
||||
@@ -73,7 +73,7 @@ _ol_render_webgl_ImageReplay_.prototype.drawPoint = function(pointGeometry, feat
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_render_webgl_ImageReplay_.prototype.finish = function(context) {
|
||||
WebGLImageReplay.prototype.finish = function(context) {
|
||||
const gl = context.getGL();
|
||||
|
||||
this.groupIndices.push(this.indices.length);
|
||||
@@ -105,7 +105,7 @@ _ol_render_webgl_ImageReplay_.prototype.finish = function(context) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_render_webgl_ImageReplay_.prototype.setImageStyle = function(imageStyle) {
|
||||
WebGLImageReplay.prototype.setImageStyle = function(imageStyle) {
|
||||
const anchor = imageStyle.getAnchor();
|
||||
const image = imageStyle.getImage(1);
|
||||
const imageSize = imageStyle.getImageSize();
|
||||
@@ -157,7 +157,7 @@ _ol_render_webgl_ImageReplay_.prototype.setImageStyle = function(imageStyle) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_render_webgl_ImageReplay_.prototype.getTextures = function(opt_all) {
|
||||
WebGLImageReplay.prototype.getTextures = function(opt_all) {
|
||||
return opt_all ? this.textures_.concat(this.hitDetectionTextures_) : this.textures_;
|
||||
};
|
||||
|
||||
@@ -165,7 +165,7 @@ _ol_render_webgl_ImageReplay_.prototype.getTextures = function(opt_all) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_render_webgl_ImageReplay_.prototype.getHitDetectionTextures = function() {
|
||||
WebGLImageReplay.prototype.getHitDetectionTextures = function() {
|
||||
return this.hitDetectionTextures_;
|
||||
};
|
||||
export default _ol_render_webgl_ImageReplay_;
|
||||
export default WebGLImageReplay;
|
||||
|
||||
@@ -8,7 +8,7 @@ import _ol_obj_ from '../../obj.js';
|
||||
import _ol_render_replay_ from '../replay.js';
|
||||
import ReplayGroup from '../ReplayGroup.js';
|
||||
import WebGLCircleReplay from '../webgl/CircleReplay.js';
|
||||
import _ol_render_webgl_ImageReplay_ from '../webgl/ImageReplay.js';
|
||||
import WebGLImageReplay from '../webgl/ImageReplay.js';
|
||||
import _ol_render_webgl_LineStringReplay_ from '../webgl/LineStringReplay.js';
|
||||
import _ol_render_webgl_PolygonReplay_ from '../webgl/PolygonReplay.js';
|
||||
import _ol_render_webgl_TextReplay_ from '../webgl/TextReplay.js';
|
||||
@@ -318,7 +318,7 @@ WebGLReplayGroup.HIT_DETECTION_SIZE_ = [1, 1];
|
||||
*/
|
||||
WebGLReplayGroup.BATCH_CONSTRUCTORS_ = {
|
||||
'Circle': WebGLCircleReplay,
|
||||
'Image': _ol_render_webgl_ImageReplay_,
|
||||
'Image': WebGLImageReplay,
|
||||
'LineString': _ol_render_webgl_LineStringReplay_,
|
||||
'Polygon': _ol_render_webgl_PolygonReplay_,
|
||||
'Text': _ol_render_webgl_TextReplay_
|
||||
|
||||
Reference in New Issue
Block a user