MCPcopy Create free account
hub / github.com/StevenLyt/mapf-visualizer / uploadMap

Method uploadMap

src/components/UploadMap.jsx:28–35  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

26 }
27
28 uploadMap(e) {
29 var file = e.target.files[0];
30 var reader = new FileReader();
31 reader.readAsText(file, "UTF-8");
32 reader.onload = (event) => {
33 this.parseMap(event.target.result);
34 };
35 }
36
37 parseMap(text) {
38 if (!this.verifyMap(text)) {

Callers 1

renderMethod · 0.95

Calls 1

parseMapMethod · 0.95

Tested by

no test coverage detected