geojs 1.12.1 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +103 -0
- package/commitlint.config.js +6 -0
- package/geo.js +15 -3
- package/geo.lean.js +15 -3
- package/geo.lean.min.js +1 -1
- package/geo.min.js +1 -1
- package/package.json +1 -1
- package/src/mapInteractor.js +1 -0
- package/src/util/common.js +12 -1
package/package.json
CHANGED
package/src/mapInteractor.js
CHANGED
|
@@ -1665,6 +1665,7 @@ var mapInteractor = function (args) {
|
|
|
1665
1665
|
// add information about the button state to the event information
|
|
1666
1666
|
var details = m_this.mouse();
|
|
1667
1667
|
details.buttonsDown = m_clickMaybe.buttons;
|
|
1668
|
+
details.evt = evt;
|
|
1668
1669
|
|
|
1669
1670
|
// reset click detector variable
|
|
1670
1671
|
m_this._setClickMaybe(false);
|
package/src/util/common.js
CHANGED
|
@@ -971,11 +971,22 @@ var util = {
|
|
|
971
971
|
* @memberof geo.util
|
|
972
972
|
*/
|
|
973
973
|
escapeUnicodeHTML: function (text) {
|
|
974
|
-
return text.replace(
|
|
974
|
+
return text.replace(/[^- 0-9A-Za-z~`!@#$%^&*()_+={}|[\]\\:";'<>?,./]/g, function (k, pos) {
|
|
975
975
|
var code = k.charCodeAt(0);
|
|
976
976
|
if (code < 127) {
|
|
977
977
|
return k;
|
|
978
978
|
}
|
|
979
|
+
/* decode utf016 surrogate pairs */
|
|
980
|
+
if (code >= 0xD800 && code <= 0xE000) {
|
|
981
|
+
if (code < 0xDC00 || pos) {
|
|
982
|
+
return '';
|
|
983
|
+
}
|
|
984
|
+
var code0 = text.charCodeAt(pos - 1);
|
|
985
|
+
if (code0 < 0xD800 || code0 >= 0xDC00) {
|
|
986
|
+
return '';
|
|
987
|
+
}
|
|
988
|
+
code = (code0 - 0xD800) * 0x400 + (code - 0xDC00);
|
|
989
|
+
}
|
|
979
990
|
return '&#' + code.toString(10) + ';';
|
|
980
991
|
});
|
|
981
992
|
},
|