Remove ol.style.Text.equals
This commit is contained in:
@@ -54,32 +54,6 @@ ol.style.Text = function(opt_options) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {ol.style.Text} textStyle1 Text style 1.
|
|
||||||
* @param {ol.style.Text} textStyle2 Text style 2.
|
|
||||||
* @return {boolean} Equals.
|
|
||||||
*/
|
|
||||||
ol.style.Text.equals = function(textStyle1, textStyle2) {
|
|
||||||
if (!goog.isNull(textStyle1)) {
|
|
||||||
if (!goog.isNull(textStyle2)) {
|
|
||||||
return textStyle1 === textStyle2 || (
|
|
||||||
textStyle1.getFont() == textStyle2.getFont() &&
|
|
||||||
textStyle1.getText() == textStyle2.getText() &&
|
|
||||||
textStyle1.getTextAlign() == textStyle2.getTextAlign() &&
|
|
||||||
textStyle1.getTextBaseline() == textStyle2.getTextBaseline());
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (!goog.isNull(textStyle2)) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {string|undefined} Font.
|
* @return {string|undefined} Font.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user