vue-cesium
Version:
Vue 3.x components for CesiumJS.
25 lines (20 loc) • 730 B
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
var platform = require('../platform.js');
;
function clearSelection() {
if (window.getSelection !== void 0) {
const selection = window.getSelection();
if ((selection == null ? void 0 : selection.empty) !== void 0) {
selection.empty();
} else if ((selection == null ? void 0 : selection.removeAllRanges) !== void 0) {
selection.removeAllRanges();
platform.platform().isPhone !== true && selection.addRange(document.createRange());
}
} else if (document.selection !== void 0) {
;
document.selection.empty();
}
}
exports.clearSelection = clearSelection;
//# sourceMappingURL=selection.js.map
;