mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
backport fixes from PR#10452 missing in merge e839b6307
This commit is contained in:
2
modules/globals.d.ts
vendored
2
modules/globals.d.ts
vendored
@@ -2,7 +2,7 @@ import type { FetchMockStatic } from 'fetch-mock';
|
|||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
declare var iD: typeof import('.');
|
declare var iD: typeof import('.');
|
||||||
declare var d3: import('d3');
|
declare var d3: typeof import('d3');
|
||||||
declare var fetchMock: FetchMockStatic;
|
declare var fetchMock: FetchMockStatic;
|
||||||
declare var before: typeof beforeEach;
|
declare var before: typeof beforeEach;
|
||||||
declare var after: typeof afterEach;
|
declare var after: typeof afterEach;
|
||||||
|
|||||||
@@ -131,10 +131,11 @@ cached.deprecated = [];
|
|||||||
// Initializing `coreContext` initializes `_uploader`, which tries loading:
|
// Initializing `coreContext` initializes `_uploader`, which tries loading:
|
||||||
cached.discarded = {};
|
cached.discarded = {};
|
||||||
|
|
||||||
|
// @ts-expect-error
|
||||||
window.d3 = iD.d3; // Remove this if we can avoid exporting all of d3.js
|
window.d3 = iD.d3; // Remove this if we can avoid exporting all of d3.js
|
||||||
|
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
delete window.PointerEvent; // force the browser to use mouse events
|
delete window.PointerEvent; // force the browser to use mouse events
|
||||||
|
|
||||||
// some sticky fallbacks
|
// some sticky fallbacks
|
||||||
const capabilities = `<?xml version="1.0" encoding="UTF-8"?>
|
const capabilities = `<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|||||||
Reference in New Issue
Block a user