Spaces:
Paused
Paused
Download node_modules/@plotly/mapbox-gl/src/util/debug.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/util/debug.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/mapbox-gl/src/util/debug.js
-
curl -L -o debug.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/mapbox-gl/src/util/debug.js
665 Bytes
| // @flow | |
| import {extend} from './util'; | |
| import window from './window'; | |
| /** | |
| * This is a private namespace for utility functions that will get automatically stripped | |
| * out in production builds. | |
| * | |
| * @private | |
| */ | |
| export const Debug = { | |
| extend(dest: Object, ...sources: Array<?Object>): Object { | |
| return extend(dest, ...sources); | |
| }, | |
| run(fn: () => any) { | |
| fn(); | |
| }, | |
| logToElement(message: string, overwrite: boolean = false, id: string = "log") { | |
| const el = window.document.getElementById(id); | |
| if (el) { | |
| if (overwrite) el.innerHTML = ''; | |
| el.innerHTML += `<br>${message}`; | |
| } | |
| } | |
| }; | |