Rename sub-sub-namespace typedefs to sub-namespace
These sub-sub-namespace typedefs are only used internally; some of them cause problems by creating a form of circular dependency. For example, ol.style.Atlas is created in style/atlasmanager.js; if ol.style.Atlas.Block is in a separate file, ol.style.Atlas is dependent on it, so the new file must precede ol.style.Atlas. However if it precedes it then it has to create the ol.style.Atlas namespace which should be created by atlasmanager.js. To get round this, these typedefs are renamed to remove the sub-sub-namespace. Fortunately they are all non-api, so the rename should not affect anything.
This commit is contained in:
@@ -71,31 +71,31 @@ ol.render.canvas.Immediate = function(context, pixelRatio, extent, transform, vi
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.render.canvas.FillState}
|
||||
* @type {?ol.render.canvasFillState}
|
||||
*/
|
||||
this.contextFillState_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.render.canvas.StrokeState}
|
||||
* @type {?ol.render.canvasStrokeState}
|
||||
*/
|
||||
this.contextStrokeState_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.render.canvas.TextState}
|
||||
* @type {?ol.render.canvasTextState}
|
||||
*/
|
||||
this.contextTextState_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.render.canvas.FillState}
|
||||
* @type {?ol.render.canvasFillState}
|
||||
*/
|
||||
this.fillState_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.render.canvas.StrokeState}
|
||||
* @type {?ol.render.canvasStrokeState}
|
||||
*/
|
||||
this.strokeState_ = null;
|
||||
|
||||
@@ -203,19 +203,19 @@ ol.render.canvas.Immediate = function(context, pixelRatio, extent, transform, vi
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.render.canvas.FillState}
|
||||
* @type {?ol.render.canvasFillState}
|
||||
*/
|
||||
this.textFillState_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.render.canvas.StrokeState}
|
||||
* @type {?ol.render.canvasStrokeState}
|
||||
*/
|
||||
this.textStrokeState_ = null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {?ol.render.canvas.TextState}
|
||||
* @type {?ol.render.canvasTextState}
|
||||
*/
|
||||
this.textState_ = null;
|
||||
|
||||
@@ -700,7 +700,7 @@ ol.render.canvas.Immediate.prototype.drawMultiPolygon = function(geometry) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.render.canvas.FillState} fillState Fill state.
|
||||
* @param {ol.render.canvasFillState} fillState Fill state.
|
||||
* @private
|
||||
*/
|
||||
ol.render.canvas.Immediate.prototype.setContextFillState_ = function(fillState) {
|
||||
@@ -720,7 +720,7 @@ ol.render.canvas.Immediate.prototype.setContextFillState_ = function(fillState)
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.render.canvas.StrokeState} strokeState Stroke state.
|
||||
* @param {ol.render.canvasStrokeState} strokeState Stroke state.
|
||||
* @private
|
||||
*/
|
||||
ol.render.canvas.Immediate.prototype.setContextStrokeState_ = function(strokeState) {
|
||||
@@ -772,7 +772,7 @@ ol.render.canvas.Immediate.prototype.setContextStrokeState_ = function(strokeSta
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.render.canvas.TextState} textState Text state.
|
||||
* @param {ol.render.canvasTextState} textState Text state.
|
||||
* @private
|
||||
*/
|
||||
ol.render.canvas.Immediate.prototype.setContextTextState_ = function(textState) {
|
||||
|
||||
Reference in New Issue
Block a user