Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions
+45 -45
View File
@@ -1,9 +1,8 @@
goog.provide('ol.style.Text');
goog.require('ol.style.Fill');
goog.require('ol.style.TextPlacement');
/**
* @module ol/style/Text
*/
import _ol_style_Fill_ from '../style/Fill.js';
import _ol_style_TextPlacement_ from '../style/TextPlacement.js';
/**
* @classdesc
@@ -13,7 +12,7 @@ goog.require('ol.style.TextPlacement');
* @param {olx.style.TextOptions=} opt_options Options.
* @api
*/
ol.style.Text = function(opt_options) {
var _ol_style_Text_ = function(opt_options) {
var options = opt_options || {};
@@ -64,7 +63,7 @@ ol.style.Text = function(opt_options) {
* @type {ol.style.Fill}
*/
this.fill_ = options.fill !== undefined ? options.fill :
new ol.style.Fill({color: ol.style.Text.DEFAULT_FILL_COLOR_});
new _ol_style_Fill_({color: _ol_style_Text_.DEFAULT_FILL_COLOR_});
/**
* @private
@@ -76,7 +75,7 @@ ol.style.Text = function(opt_options) {
* @private
* @type {ol.style.TextPlacement|string}
*/
this.placement_ = options.placement !== undefined ? options.placement : ol.style.TextPlacement.POINT;
this.placement_ = options.placement !== undefined ? options.placement : _ol_style_TextPlacement_.POINT;
//TODO Use options.overflow directly after removing @deprecated exceedLength
var overflow = options.overflow === undefined ? options.exceedLength : options.overflow;
@@ -132,7 +131,7 @@ ol.style.Text = function(opt_options) {
* @const {string}
* @private
*/
ol.style.Text.DEFAULT_FILL_COLOR_ = '#333';
_ol_style_Text_.DEFAULT_FILL_COLOR_ = '#333';
/**
@@ -140,8 +139,8 @@ ol.style.Text.DEFAULT_FILL_COLOR_ = '#333';
* @return {ol.style.Text} The cloned style.
* @api
*/
ol.style.Text.prototype.clone = function() {
return new ol.style.Text({
_ol_style_Text_.prototype.clone = function() {
return new _ol_style_Text_({
font: this.getFont(),
placement: this.getPlacement(),
maxAngle: this.getMaxAngle(),
@@ -165,7 +164,7 @@ ol.style.Text.prototype.clone = function() {
* @return {boolean} Let text overflow the length of the path they follow.
* @api
*/
ol.style.Text.prototype.getOverflow = function() {
_ol_style_Text_.prototype.getOverflow = function() {
return this.overflow_;
};
@@ -175,7 +174,7 @@ ol.style.Text.prototype.getOverflow = function() {
* @return {string|undefined} Font.
* @api
*/
ol.style.Text.prototype.getFont = function() {
_ol_style_Text_.prototype.getFont = function() {
return this.font_;
};
@@ -185,7 +184,7 @@ ol.style.Text.prototype.getFont = function() {
* @return {number} Angle in radians.
* @api
*/
ol.style.Text.prototype.getMaxAngle = function() {
_ol_style_Text_.prototype.getMaxAngle = function() {
return this.maxAngle_;
};
@@ -195,7 +194,7 @@ ol.style.Text.prototype.getMaxAngle = function() {
* @return {ol.style.TextPlacement|string} Text placement.
* @api
*/
ol.style.Text.prototype.getPlacement = function() {
_ol_style_Text_.prototype.getPlacement = function() {
return this.placement_;
};
@@ -205,7 +204,7 @@ ol.style.Text.prototype.getPlacement = function() {
* @return {number} Horizontal text offset.
* @api
*/
ol.style.Text.prototype.getOffsetX = function() {
_ol_style_Text_.prototype.getOffsetX = function() {
return this.offsetX_;
};
@@ -215,7 +214,7 @@ ol.style.Text.prototype.getOffsetX = function() {
* @return {number} Vertical text offset.
* @api
*/
ol.style.Text.prototype.getOffsetY = function() {
_ol_style_Text_.prototype.getOffsetY = function() {
return this.offsetY_;
};
@@ -225,7 +224,7 @@ ol.style.Text.prototype.getOffsetY = function() {
* @return {ol.style.Fill} Fill style.
* @api
*/
ol.style.Text.prototype.getFill = function() {
_ol_style_Text_.prototype.getFill = function() {
return this.fill_;
};
@@ -235,7 +234,7 @@ ol.style.Text.prototype.getFill = function() {
* @return {boolean|undefined} Rotate with map.
* @api
*/
ol.style.Text.prototype.getRotateWithView = function() {
_ol_style_Text_.prototype.getRotateWithView = function() {
return this.rotateWithView_;
};
@@ -245,7 +244,7 @@ ol.style.Text.prototype.getRotateWithView = function() {
* @return {number|undefined} Rotation.
* @api
*/
ol.style.Text.prototype.getRotation = function() {
_ol_style_Text_.prototype.getRotation = function() {
return this.rotation_;
};
@@ -255,7 +254,7 @@ ol.style.Text.prototype.getRotation = function() {
* @return {number|undefined} Scale.
* @api
*/
ol.style.Text.prototype.getScale = function() {
_ol_style_Text_.prototype.getScale = function() {
return this.scale_;
};
@@ -265,7 +264,7 @@ ol.style.Text.prototype.getScale = function() {
* @return {ol.style.Stroke} Stroke style.
* @api
*/
ol.style.Text.prototype.getStroke = function() {
_ol_style_Text_.prototype.getStroke = function() {
return this.stroke_;
};
@@ -275,7 +274,7 @@ ol.style.Text.prototype.getStroke = function() {
* @return {string|undefined} Text.
* @api
*/
ol.style.Text.prototype.getText = function() {
_ol_style_Text_.prototype.getText = function() {
return this.text_;
};
@@ -285,7 +284,7 @@ ol.style.Text.prototype.getText = function() {
* @return {string|undefined} Text align.
* @api
*/
ol.style.Text.prototype.getTextAlign = function() {
_ol_style_Text_.prototype.getTextAlign = function() {
return this.textAlign_;
};
@@ -295,7 +294,7 @@ ol.style.Text.prototype.getTextAlign = function() {
* @return {string|undefined} Text baseline.
* @api
*/
ol.style.Text.prototype.getTextBaseline = function() {
_ol_style_Text_.prototype.getTextBaseline = function() {
return this.textBaseline_;
};
@@ -305,7 +304,7 @@ ol.style.Text.prototype.getTextBaseline = function() {
* @return {ol.style.Fill} Fill style.
* @api
*/
ol.style.Text.prototype.getBackgroundFill = function() {
_ol_style_Text_.prototype.getBackgroundFill = function() {
return this.backgroundFill_;
};
@@ -315,7 +314,7 @@ ol.style.Text.prototype.getBackgroundFill = function() {
* @return {ol.style.Stroke} Stroke style.
* @api
*/
ol.style.Text.prototype.getBackgroundStroke = function() {
_ol_style_Text_.prototype.getBackgroundStroke = function() {
return this.backgroundStroke_;
};
@@ -325,7 +324,7 @@ ol.style.Text.prototype.getBackgroundStroke = function() {
* @return {Array.<number>} Padding.
* @api
*/
ol.style.Text.prototype.getPadding = function() {
_ol_style_Text_.prototype.getPadding = function() {
return this.padding_;
};
@@ -336,7 +335,7 @@ ol.style.Text.prototype.getPadding = function() {
* @param {boolean} overflow Let text overflow the path that it follows.
* @api
*/
ol.style.Text.prototype.setOverflow = function(overflow) {
_ol_style_Text_.prototype.setOverflow = function(overflow) {
this.overflow_ = overflow;
};
@@ -347,7 +346,7 @@ ol.style.Text.prototype.setOverflow = function(overflow) {
* @param {string|undefined} font Font.
* @api
*/
ol.style.Text.prototype.setFont = function(font) {
_ol_style_Text_.prototype.setFont = function(font) {
this.font_ = font;
};
@@ -358,7 +357,7 @@ ol.style.Text.prototype.setFont = function(font) {
* @param {number} maxAngle Angle in radians.
* @api
*/
ol.style.Text.prototype.setMaxAngle = function(maxAngle) {
_ol_style_Text_.prototype.setMaxAngle = function(maxAngle) {
this.maxAngle_ = maxAngle;
};
@@ -369,7 +368,7 @@ ol.style.Text.prototype.setMaxAngle = function(maxAngle) {
* @param {number} offsetX Horizontal text offset.
* @api
*/
ol.style.Text.prototype.setOffsetX = function(offsetX) {
_ol_style_Text_.prototype.setOffsetX = function(offsetX) {
this.offsetX_ = offsetX;
};
@@ -380,7 +379,7 @@ ol.style.Text.prototype.setOffsetX = function(offsetX) {
* @param {number} offsetY Vertical text offset.
* @api
*/
ol.style.Text.prototype.setOffsetY = function(offsetY) {
_ol_style_Text_.prototype.setOffsetY = function(offsetY) {
this.offsetY_ = offsetY;
};
@@ -391,7 +390,7 @@ ol.style.Text.prototype.setOffsetY = function(offsetY) {
* @param {ol.style.TextPlacement|string} placement Placement.
* @api
*/
ol.style.Text.prototype.setPlacement = function(placement) {
_ol_style_Text_.prototype.setPlacement = function(placement) {
this.placement_ = placement;
};
@@ -402,7 +401,7 @@ ol.style.Text.prototype.setPlacement = function(placement) {
* @param {ol.style.Fill} fill Fill style.
* @api
*/
ol.style.Text.prototype.setFill = function(fill) {
_ol_style_Text_.prototype.setFill = function(fill) {
this.fill_ = fill;
};
@@ -413,7 +412,7 @@ ol.style.Text.prototype.setFill = function(fill) {
* @param {number|undefined} rotation Rotation.
* @api
*/
ol.style.Text.prototype.setRotation = function(rotation) {
_ol_style_Text_.prototype.setRotation = function(rotation) {
this.rotation_ = rotation;
};
@@ -424,7 +423,7 @@ ol.style.Text.prototype.setRotation = function(rotation) {
* @param {number|undefined} scale Scale.
* @api
*/
ol.style.Text.prototype.setScale = function(scale) {
_ol_style_Text_.prototype.setScale = function(scale) {
this.scale_ = scale;
};
@@ -435,7 +434,7 @@ ol.style.Text.prototype.setScale = function(scale) {
* @param {ol.style.Stroke} stroke Stroke style.
* @api
*/
ol.style.Text.prototype.setStroke = function(stroke) {
_ol_style_Text_.prototype.setStroke = function(stroke) {
this.stroke_ = stroke;
};
@@ -446,7 +445,7 @@ ol.style.Text.prototype.setStroke = function(stroke) {
* @param {string|undefined} text Text.
* @api
*/
ol.style.Text.prototype.setText = function(text) {
_ol_style_Text_.prototype.setText = function(text) {
this.text_ = text;
};
@@ -457,7 +456,7 @@ ol.style.Text.prototype.setText = function(text) {
* @param {string|undefined} textAlign Text align.
* @api
*/
ol.style.Text.prototype.setTextAlign = function(textAlign) {
_ol_style_Text_.prototype.setTextAlign = function(textAlign) {
this.textAlign_ = textAlign;
};
@@ -468,7 +467,7 @@ ol.style.Text.prototype.setTextAlign = function(textAlign) {
* @param {string|undefined} textBaseline Text baseline.
* @api
*/
ol.style.Text.prototype.setTextBaseline = function(textBaseline) {
_ol_style_Text_.prototype.setTextBaseline = function(textBaseline) {
this.textBaseline_ = textBaseline;
};
@@ -479,7 +478,7 @@ ol.style.Text.prototype.setTextBaseline = function(textBaseline) {
* @param {ol.style.Fill} fill Fill style.
* @api
*/
ol.style.Text.prototype.setBackgroundFill = function(fill) {
_ol_style_Text_.prototype.setBackgroundFill = function(fill) {
this.backgroundFill_ = fill;
};
@@ -490,7 +489,7 @@ ol.style.Text.prototype.setBackgroundFill = function(fill) {
* @param {ol.style.Stroke} stroke Stroke style.
* @api
*/
ol.style.Text.prototype.setBackgroundStroke = function(stroke) {
_ol_style_Text_.prototype.setBackgroundStroke = function(stroke) {
this.backgroundStroke_ = stroke;
};
@@ -501,6 +500,7 @@ ol.style.Text.prototype.setBackgroundStroke = function(stroke) {
* @param {!Array.<number>} padding Padding.
* @api
*/
ol.style.Text.prototype.setPadding = function(padding) {
_ol_style_Text_.prototype.setPadding = function(padding) {
this.padding_ = padding;
};
export default _ol_style_Text_;