257 lines
63 KiB
HTML
257 lines
63 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>graphify - graphify-out/graph.html</title>
|
|
<script src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
|
|
<style>
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body { background: #0f0f1a; color: #e0e0e0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: flex; height: 100vh; overflow: hidden; }
|
|
#graph { flex: 1; }
|
|
#sidebar { width: 280px; background: #1a1a2e; border-left: 1px solid #2a2a4e; display: flex; flex-direction: column; overflow: hidden; }
|
|
#search-wrap { padding: 12px; border-bottom: 1px solid #2a2a4e; }
|
|
#search { width: 100%; background: #0f0f1a; border: 1px solid #3a3a5e; color: #e0e0e0; padding: 7px 10px; border-radius: 6px; font-size: 13px; outline: none; }
|
|
#search:focus { border-color: #4E79A7; }
|
|
#search-results { max-height: 140px; overflow-y: auto; padding: 4px 12px; border-bottom: 1px solid #2a2a4e; display: none; }
|
|
.search-item { padding: 4px 6px; cursor: pointer; border-radius: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.search-item:hover { background: #2a2a4e; }
|
|
#info-panel { padding: 14px; border-bottom: 1px solid #2a2a4e; min-height: 140px; }
|
|
#info-panel h3 { font-size: 13px; color: #aaa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
#info-content { font-size: 13px; color: #ccc; line-height: 1.6; }
|
|
#info-content .field { margin-bottom: 5px; }
|
|
#info-content .field b { color: #e0e0e0; }
|
|
#info-content .empty { color: #555; font-style: italic; }
|
|
.neighbor-link { display: block; padding: 2px 6px; margin: 2px 0; border-radius: 3px; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid #333; }
|
|
.neighbor-link:hover { background: #2a2a4e; }
|
|
#neighbors-list { max-height: 160px; overflow-y: auto; margin-top: 4px; }
|
|
#legend-wrap { flex: 1; overflow-y: auto; padding: 12px; }
|
|
#legend-wrap h3 { font-size: 13px; color: #aaa; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
.legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; border-radius: 4px; font-size: 12px; }
|
|
.legend-item:hover { background: #2a2a4e; padding-left: 4px; }
|
|
.legend-item.dimmed { opacity: 0.35; }
|
|
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
|
|
.legend-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.legend-count { color: #666; font-size: 11px; }
|
|
#stats { padding: 10px 14px; border-top: 1px solid #2a2a4e; font-size: 11px; color: #555; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="graph"></div>
|
|
<div id="sidebar">
|
|
<div id="search-wrap">
|
|
<input id="search" type="text" placeholder="Search nodes..." autocomplete="off">
|
|
<div id="search-results"></div>
|
|
</div>
|
|
<div id="info-panel">
|
|
<h3>Node Info</h3>
|
|
<div id="info-content"><span class="empty">Click a node to inspect it</span></div>
|
|
</div>
|
|
<div id="legend-wrap">
|
|
<h3>Communities</h3>
|
|
<div id="legend"></div>
|
|
</div>
|
|
<div id="stats">77 nodes · 113 edges · 6 communities</div>
|
|
</div>
|
|
<script>
|
|
const RAW_NODES = [{"id": "app_js", "label": "app.js", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 22.0, "font": {"size": 12, "color": "#ffffff"}, "title": "app.js", "community": 4, "community_name": "Legacy app.js", "source_file": "app.js", "file_type": "code", "degree": 6}, {"id": "app_dmstodecimal", "label": "dmsToDecimal()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "dmsToDecimal()", "community": 4, "community_name": "Legacy app.js", "source_file": "app.js", "file_type": "code", "degree": 1}, {"id": "app_meterstolat", "label": "metersToLat()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "metersToLat()", "community": 4, "community_name": "Legacy app.js", "source_file": "app.js", "file_type": "code", "degree": 2}, {"id": "app_meterstolon", "label": "metersToLon()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "metersToLon()", "community": 4, "community_name": "Legacy app.js", "source_file": "app.js", "file_type": "code", "degree": 2}, {"id": "app_saveimage", "label": "saveImage()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "saveImage()", "community": 4, "community_name": "Legacy app.js", "source_file": "app.js", "file_type": "code", "degree": 1}, {"id": "app_downloadfile", "label": "downloadFile()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "downloadFile()", "community": 4, "community_name": "Legacy app.js", "source_file": "app.js", "file_type": "code", "degree": 2}, {"id": "app_capturenexttile", "label": "captureNextTile()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "captureNextTile()", "community": 4, "community_name": "Legacy app.js", "source_file": "app.js", "file_type": "code", "degree": 4}, {"id": "server_js", "label": "server.js", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 34.0, "font": {"size": 12, "color": "#ffffff"}, "title": "server.js", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 12}, {"id": "server_meterstolat", "label": "metersToLat()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "metersToLat()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 2}, {"id": "server_meterstolon", "label": "metersToLon()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "metersToLon()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 2}, {"id": "server_dmstodecimal", "label": "dmsToDecimal()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "dmsToDecimal()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 1}, {"id": "server_parsecoordinatepair", "label": "parseCoordinatePair()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "parseCoordinatePair()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 2}, {"id": "server_getboundsfromsettings", "label": "getBoundsFromSettings()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "getBoundsFromSettings()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 4}, {"id": "server_decimaltodms", "label": "decimalToDMS()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "decimalToDMS()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 2}, {"id": "server_normalizesettings", "label": "normalizeSettings()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "normalizeSettings()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 2}, {"id": "server_computegrid", "label": "computeGrid()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "computeGrid()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 2}, {"id": "server_generatecoordinates", "label": "generateCoordinates()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 22.0, "font": {"size": 12, "color": "#ffffff"}, "title": "generateCoordinates()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 6}, {"id": "server_dataurltobuffer", "label": "dataUrlToBuffer()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "dataUrlToBuffer()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 1}, {"id": "server_sanitizenamesegment", "label": "sanitizeNameSegment()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "sanitizeNameSegment()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 2}, {"id": "server_getscenepath", "label": "getScenePath()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "getScenePath()", "community": 3, "community_name": "Coordinate Math Helpers", "source_file": "server.js", "file_type": "code", "degree": 2}, {"id": "ui_js", "label": "ui.js", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "ui.js", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 1}, {"id": "ui_sandcastleui", "label": "SandCastleUI", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "SandCastleUI", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 15}, {"id": "ui_sandcastleui_constructor", "label": ".constructor()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".constructor()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 5}, {"id": "ui_sandcastleui_initializeelements", "label": ".initializeElements()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".initializeElements()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 2}, {"id": "ui_sandcastleui_attacheventlisteners", "label": ".attachEventListeners()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".attachEventListeners()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 2}, {"id": "ui_sandcastleui_log", "label": ".log()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".log()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 5}, {"id": "ui_sandcastleui_updatestatus", "label": ".updateStatus()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".updateStatus()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 4}, {"id": "ui_sandcastleui_dmstodecimal", "label": ".dmsToDecimal()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".dmsToDecimal()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 1}, {"id": "ui_sandcastleui_parsecoordinatepair", "label": ".parseCoordinatePair()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".parseCoordinatePair()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 2}, {"id": "ui_sandcastleui_updateinfo", "label": ".updateInfo()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".updateInfo()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 5}, {"id": "ui_sandcastleui_collectsettings", "label": ".collectSettings()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".collectSettings()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 5}, {"id": "ui_sandcastleui_loadsettingsfromserver", "label": ".loadSettingsFromServer()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".loadSettingsFromServer()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 5}, {"id": "ui_sandcastleui_savesettings", "label": ".saveSettings()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".saveSettings()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 5}, {"id": "ui_sandcastleui_createfolders", "label": ".createFolders()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".createFolders()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 5}, {"id": "ui_sandcastleui_renderfolders", "label": ".renderFolders()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".renderFolders()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 2}, {"id": "ui_sandcastleui_startcapture", "label": ".startCapture()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".startCapture()", "community": 1, "community_name": "UI Controller (ui.js)", "source_file": "ui.js", "file_type": "code", "degree": 4}, {"id": "readme_sandcastle", "label": "SandCastle", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "SandCastle", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 3}, {"id": "readme_uav_geoloc", "label": "UAV-GeoLoc", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "UAV-GeoLoc", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_google_3d_tiles", "label": "Google Photorealistic 3D Tiles", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Google Photorealistic 3D Tiles", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_cesium", "label": "Cesium", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Cesium", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 4}, {"id": "readme_cesium_ion_token", "label": "Cesium Ion Token (asset 2275207)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Cesium Ion Token (asset 2275207)", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_db_crop", "label": "DB crop (ortho crop)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "DB crop (ortho crop)", "community": 5, "community_name": "UAV-GeoLoc Dataset Tree", "source_file": "README.md", "file_type": "document", "degree": 3}, {"id": "readme_drone_frame", "label": "Drone frame (query)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Drone frame (query)", "community": 5, "community_name": "UAV-GeoLoc Dataset Tree", "source_file": "README.md", "file_type": "document", "degree": 3}, {"id": "readme_trajectory", "label": "Camera trajectory JSON", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Camera trajectory JSON", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 4}, {"id": "readme_control_panel", "label": "Control Panel (index.html)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 28.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Control Panel (index.html)", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 9}, {"id": "readme_capture_html", "label": "capture.html (Cesium Viewer)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "capture.html (Cesium Viewer)", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 4}, {"id": "readme_mapview_html", "label": "mapview.html (Leaflet map)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "mapview.html (Leaflet map)", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 3}, {"id": "readme_server_js", "label": "server.js (Express backend)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 28.0, "font": {"size": 12, "color": "#ffffff"}, "title": "server.js (Express backend)", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 9}, {"id": "readme_ui_js", "label": "ui.js (UI controller)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "ui.js (UI controller)", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_start_bat", "label": "start.bat", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "start.bat", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_package_json", "label": "package.json", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "package.json", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_settings_json", "label": "settings.json", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "settings.json", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_output_tree", "label": "output/ directory tree", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "output/ directory tree", "community": 5, "community_name": "UAV-GeoLoc Dataset Tree", "source_file": "README.md", "file_type": "document", "degree": 5}, {"id": "readme_db_position_txt", "label": "db_postion.txt", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "db_postion.txt", "community": 5, "community_name": "UAV-GeoLoc Dataset Tree", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_region_txt", "label": "{region}.txt (bounds)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "{region}.txt (bounds)", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_dataset_country_city_region", "label": "Dataset/Country/City/Region tree", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Dataset/Country/City/Region tree", "community": 5, "community_name": "UAV-GeoLoc Dataset Tree", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_broadcastchannel", "label": "BroadcastChannel('sandcastle-map')", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "BroadcastChannel('sandcastle-map')", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_dms_coords", "label": "DMS coordinates", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "DMS coordinates", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_ecef_position", "label": "ECEF position (Cartesian3.fromDegrees)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "ECEF position (Cartesian3.fromDegrees)", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_camera_frames", "label": "cameraFrames", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "cameraFrames", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 5}, {"id": "readme_fov_vertical", "label": "fovVertical", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "fovVertical", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_rotation", "label": "rotation (pitch/heading/roll)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "rotation (pitch/heading/roll)", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_coordinate", "label": "coordinate (geodetic)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "coordinate (geodetic)", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_api_get_settings", "label": "GET /api/get-settings", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "GET /api/get-settings", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_api_save_settings", "label": "POST /api/save-settings", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "POST /api/save-settings", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 3}, {"id": "readme_api_create_folders", "label": "POST /api/create-folders", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "POST /api/create-folders", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 4}, {"id": "readme_api_start_capture", "label": "POST /api/start-capture", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "POST /api/start-capture", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_api_save_db_crop", "label": "POST /api/save-db-crop", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "POST /api/save-db-crop", "community": 5, "community_name": "UAV-GeoLoc Dataset Tree", "source_file": "README.md", "file_type": "document", "degree": 3}, {"id": "readme_api_save_drone_frame", "label": "POST /api/save-drone-frame", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "POST /api/save-drone-frame", "community": 5, "community_name": "UAV-GeoLoc Dataset Tree", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_api_save_trajectory", "label": "POST /api/save-trajectory", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "POST /api/save-trajectory", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_leaflet", "label": "Leaflet", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Leaflet", "community": 2, "community_name": "Cesium Capture Pipeline", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_express", "label": "Express", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Express", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_nodejs", "label": "Node.js 14+", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Node.js 14+", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 2}, {"id": "readme_grid_step", "label": "Grid step (meters)", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Grid step (meters)", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_heights", "label": "Heights 100/125/150", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Heights 100/125/150", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_skip_empty_zones", "label": "Skip empty zones", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Skip empty zones", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}, {"id": "readme_tile_preload", "label": "Tile preload", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Tile preload", "community": 0, "community_name": "REST API + Control Panel", "source_file": "README.md", "file_type": "document", "degree": 1}];
|
|
const RAW_EDGES = [{"from": "app_js", "to": "app_dmstodecimal", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_js", "to": "app_meterstolat", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_js", "to": "app_meterstolon", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_js", "to": "app_saveimage", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_js", "to": "app_downloadfile", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_js", "to": "app_capturenexttile", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_meterstolat", "to": "app_capturenexttile", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_meterstolon", "to": "app_capturenexttile", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_downloadfile", "to": "app_capturenexttile", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_meterstolat", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_meterstolon", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_dmstodecimal", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_parsecoordinatepair", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_getboundsfromsettings", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_decimaltodms", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_normalizesettings", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_computegrid", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_generatecoordinates", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_dataurltobuffer", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_sanitizenamesegment", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_js", "to": "server_getscenepath", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_meterstolat", "to": "server_generatecoordinates", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_meterstolon", "to": "server_generatecoordinates", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_parsecoordinatepair", "to": "server_getboundsfromsettings", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_getboundsfromsettings", "to": "server_normalizesettings", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_getboundsfromsettings", "to": "server_generatecoordinates", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_decimaltodms", "to": "server_generatecoordinates", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_computegrid", "to": "server_generatecoordinates", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "server_sanitizenamesegment", "to": "server_getscenepath", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_js", "to": "ui_sandcastleui", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_constructor", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_initializeelements", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_attacheventlisteners", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_log", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_updatestatus", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_dmstodecimal", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_parsecoordinatepair", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_updateinfo", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_collectsettings", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_loadsettingsfromserver", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_savesettings", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_createfolders", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_renderfolders", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui", "to": "ui_sandcastleui_startcapture", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_constructor", "to": "ui_sandcastleui_initializeelements", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_constructor", "to": "ui_sandcastleui_attacheventlisteners", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_constructor", "to": "ui_sandcastleui_loadsettingsfromserver", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_constructor", "to": "ui_sandcastleui_updateinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_log", "to": "ui_sandcastleui_loadsettingsfromserver", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_log", "to": "ui_sandcastleui_savesettings", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_log", "to": "ui_sandcastleui_createfolders", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_log", "to": "ui_sandcastleui_startcapture", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_updatestatus", "to": "ui_sandcastleui_savesettings", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_updatestatus", "to": "ui_sandcastleui_createfolders", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_updatestatus", "to": "ui_sandcastleui_startcapture", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_parsecoordinatepair", "to": "ui_sandcastleui_updateinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_updateinfo", "to": "ui_sandcastleui_loadsettingsfromserver", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_updateinfo", "to": "ui_sandcastleui_savesettings", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_collectsettings", "to": "ui_sandcastleui_loadsettingsfromserver", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_collectsettings", "to": "ui_sandcastleui_savesettings", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_collectsettings", "to": "ui_sandcastleui_createfolders", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_collectsettings", "to": "ui_sandcastleui_startcapture", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "ui_sandcastleui_createfolders", "to": "ui_sandcastleui_renderfolders", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_sandcastle", "to": "readme_uav_geoloc", "label": "produces_dataset_format", "title": "produces_dataset_format [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_sandcastle", "to": "readme_google_3d_tiles", "label": "captures", "title": "captures [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_sandcastle", "to": "readme_cesium", "label": "uses", "title": "uses [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_uav_geoloc", "to": "readme_trajectory", "label": "conforms_to_format", "title": "conforms_to_format [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_google_3d_tiles", "to": "readme_cesium", "label": "renders", "title": "renders [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_cesium", "to": "readme_capture_html", "label": "embeds", "title": "embeds [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_cesium", "to": "readme_ecef_position", "label": "computed_via", "title": "computed_via [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_cesium_ion_token", "to": "readme_capture_html", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_db_crop", "to": "readme_api_save_db_crop", "label": "writes", "title": "writes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_db_crop", "to": "readme_drone_frame", "label": "paired_with", "title": "paired_with [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "readme_db_crop", "to": "readme_output_tree", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_drone_frame", "to": "readme_api_save_drone_frame", "label": "writes", "title": "writes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_drone_frame", "to": "readme_output_tree", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_trajectory", "to": "readme_api_save_trajectory", "label": "writes", "title": "writes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_trajectory", "to": "readme_camera_frames", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_trajectory", "to": "readme_output_tree", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_control_panel", "to": "readme_ui_js", "label": "controlled_by", "title": "controlled_by [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "readme_control_panel", "to": "readme_api_save_settings", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "readme_control_panel", "to": "readme_api_create_folders", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "readme_control_panel", "to": "readme_api_start_capture", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "readme_control_panel", "to": "readme_dms_coords", "label": "accepts", "title": "accepts [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_control_panel", "to": "readme_grid_step", "label": "configures", "title": "configures [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_control_panel", "to": "readme_heights", "label": "configures", "title": "configures [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_control_panel", "to": "readme_skip_empty_zones", "label": "configures", "title": "configures [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_control_panel", "to": "readme_tile_preload", "label": "configures", "title": "configures [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_capture_html", "to": "readme_mapview_html", "label": "communicates_via", "title": "communicates_via [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_capture_html", "to": "readme_broadcastchannel", "label": "uses", "title": "uses [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_mapview_html", "to": "readme_leaflet", "label": "uses", "title": "uses [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "readme_mapview_html", "to": "readme_broadcastchannel", "label": "uses", "title": "uses [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_express", "label": "uses", "title": "uses [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_api_get_settings", "label": "exposes", "title": "exposes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_api_save_settings", "label": "exposes", "title": "exposes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_api_create_folders", "label": "exposes", "title": "exposes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_api_start_capture", "label": "exposes", "title": "exposes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_api_save_db_crop", "label": "exposes", "title": "exposes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_api_save_drone_frame", "label": "exposes", "title": "exposes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_api_save_trajectory", "label": "exposes", "title": "exposes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_server_js", "to": "readme_start_bat", "label": "starts", "title": "starts [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_start_bat", "to": "readme_nodejs", "label": "requires", "title": "requires [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_package_json", "to": "readme_nodejs", "label": "declares_runtime", "title": "declares_runtime [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "readme_settings_json", "to": "readme_api_save_settings", "label": "writes", "title": "writes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_settings_json", "to": "readme_api_get_settings", "label": "reads", "title": "reads [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_output_tree", "to": "readme_api_create_folders", "label": "creates", "title": "creates [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_output_tree", "to": "readme_dataset_country_city_region", "label": "structured_by", "title": "structured_by [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_db_position_txt", "to": "readme_api_save_db_crop", "label": "appends_to", "title": "appends_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_region_txt", "to": "readme_api_create_folders", "label": "writes", "title": "writes [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_ecef_position", "to": "readme_camera_frames", "label": "includes_field", "title": "includes_field [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_camera_frames", "to": "readme_rotation", "label": "includes_field", "title": "includes_field [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_camera_frames", "to": "readme_coordinate", "label": "includes_field", "title": "includes_field [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_camera_frames", "to": "readme_fov_vertical", "label": "includes_field", "title": "includes_field [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}];
|
|
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "REST API + Control Panel", "count": 18}, {"cid": 1, "color": "#F28E2B", "label": "UI Controller (ui.js)", "count": 16}, {"cid": 2, "color": "#E15759", "label": "Cesium Capture Pipeline", "count": 16}, {"cid": 3, "color": "#76B7B2", "label": "Coordinate Math Helpers", "count": 13}, {"cid": 4, "color": "#59A14F", "label": "Legacy app.js", "count": 7}, {"cid": 5, "color": "#EDC948", "label": "UAV-GeoLoc Dataset Tree", "count": 7}];
|
|
|
|
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
|
function esc(s) {
|
|
return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');
|
|
}
|
|
|
|
// Build vis datasets
|
|
const nodesDS = new vis.DataSet(RAW_NODES.map(n => ({
|
|
id: n.id, label: n.label, color: n.color, size: n.size,
|
|
font: n.font, title: n.title,
|
|
_community: n.community, _community_name: n.community_name,
|
|
_source_file: n.source_file, _file_type: n.file_type, _degree: n.degree,
|
|
})));
|
|
|
|
const edgesDS = new vis.DataSet(RAW_EDGES.map((e, i) => ({
|
|
id: i, from: e.from, to: e.to,
|
|
label: '',
|
|
title: e.title,
|
|
dashes: e.dashes,
|
|
width: e.width,
|
|
color: e.color,
|
|
arrows: { to: { enabled: true, scaleFactor: 0.5 } },
|
|
})));
|
|
|
|
const container = document.getElementById('graph');
|
|
const network = new vis.Network(container, { nodes: nodesDS, edges: edgesDS }, {
|
|
physics: {
|
|
enabled: true,
|
|
solver: 'forceAtlas2Based',
|
|
forceAtlas2Based: {
|
|
gravitationalConstant: -60,
|
|
centralGravity: 0.005,
|
|
springLength: 120,
|
|
springConstant: 0.08,
|
|
damping: 0.4,
|
|
avoidOverlap: 0.8,
|
|
},
|
|
stabilization: { iterations: 200, fit: true },
|
|
},
|
|
interaction: {
|
|
hover: true,
|
|
tooltipDelay: 100,
|
|
hideEdgesOnDrag: true,
|
|
navigationButtons: false,
|
|
keyboard: false,
|
|
},
|
|
nodes: { shape: 'dot', borderWidth: 1.5 },
|
|
edges: { smooth: { type: 'continuous', roundness: 0.2 }, selectionWidth: 3 },
|
|
});
|
|
|
|
network.once('stabilizationIterationsDone', () => {
|
|
network.setOptions({ physics: { enabled: false } });
|
|
});
|
|
|
|
function showInfo(nodeId) {
|
|
const n = nodesDS.get(nodeId);
|
|
if (!n) return;
|
|
const neighborIds = network.getConnectedNodes(nodeId);
|
|
const neighborItems = neighborIds.map(nid => {
|
|
const nb = nodesDS.get(nid);
|
|
const color = nb ? nb.color.background : '#555';
|
|
return `<span class="neighbor-link" style="border-left-color:${esc(color)}" onclick="focusNode(${JSON.stringify(nid)})">${esc(nb ? nb.label : nid)}</span>`;
|
|
}).join('');
|
|
document.getElementById('info-content').innerHTML = `
|
|
<div class="field"><b>${esc(n.label)}</b></div>
|
|
<div class="field">Type: ${esc(n._file_type || 'unknown')}</div>
|
|
<div class="field">Community: ${esc(n._community_name)}</div>
|
|
<div class="field">Source: ${esc(n._source_file || '-')}</div>
|
|
<div class="field">Degree: ${n._degree}</div>
|
|
${neighborIds.length ? `<div class="field" style="margin-top:8px;color:#aaa;font-size:11px">Neighbors (${neighborIds.length})</div><div id="neighbors-list">${neighborItems}</div>` : ''}
|
|
`;
|
|
}
|
|
|
|
function focusNode(nodeId) {
|
|
network.focus(nodeId, { scale: 1.4, animation: true });
|
|
network.selectNodes([nodeId]);
|
|
showInfo(nodeId);
|
|
}
|
|
|
|
// Track hovered node — hover detection is more reliable than click params
|
|
let hoveredNodeId = null;
|
|
network.on('hoverNode', params => {
|
|
hoveredNodeId = params.node;
|
|
container.style.cursor = 'pointer';
|
|
});
|
|
network.on('blurNode', () => {
|
|
hoveredNodeId = null;
|
|
container.style.cursor = 'default';
|
|
});
|
|
container.addEventListener('click', () => {
|
|
if (hoveredNodeId !== null) {
|
|
showInfo(hoveredNodeId);
|
|
network.selectNodes([hoveredNodeId]);
|
|
}
|
|
});
|
|
network.on('click', params => {
|
|
if (params.nodes.length > 0) {
|
|
showInfo(params.nodes[0]);
|
|
} else if (hoveredNodeId === null) {
|
|
document.getElementById('info-content').innerHTML = '<span class="empty">Click a node to inspect it</span>';
|
|
}
|
|
});
|
|
|
|
const searchInput = document.getElementById('search');
|
|
const searchResults = document.getElementById('search-results');
|
|
searchInput.addEventListener('input', () => {
|
|
const q = searchInput.value.toLowerCase().trim();
|
|
searchResults.innerHTML = '';
|
|
if (!q) { searchResults.style.display = 'none'; return; }
|
|
const matches = RAW_NODES.filter(n => n.label.toLowerCase().includes(q)).slice(0, 20);
|
|
if (!matches.length) { searchResults.style.display = 'none'; return; }
|
|
searchResults.style.display = 'block';
|
|
matches.forEach(n => {
|
|
const el = document.createElement('div');
|
|
el.className = 'search-item';
|
|
el.textContent = n.label;
|
|
el.style.borderLeft = `3px solid ${n.color.background}`;
|
|
el.style.paddingLeft = '8px';
|
|
el.onclick = () => {
|
|
network.focus(n.id, { scale: 1.5, animation: true });
|
|
network.selectNodes([n.id]);
|
|
showInfo(n.id);
|
|
searchResults.style.display = 'none';
|
|
searchInput.value = '';
|
|
};
|
|
searchResults.appendChild(el);
|
|
});
|
|
});
|
|
document.addEventListener('click', e => {
|
|
if (!searchResults.contains(e.target) && e.target !== searchInput)
|
|
searchResults.style.display = 'none';
|
|
});
|
|
|
|
const hiddenCommunities = new Set();
|
|
const legendEl = document.getElementById('legend');
|
|
LEGEND.forEach(c => {
|
|
const item = document.createElement('div');
|
|
item.className = 'legend-item';
|
|
item.innerHTML = `<div class="legend-dot" style="background:${c.color}"></div>
|
|
<span class="legend-label">${c.label}</span>
|
|
<span class="legend-count">${c.count}</span>`;
|
|
item.onclick = () => {
|
|
if (hiddenCommunities.has(c.cid)) {
|
|
hiddenCommunities.delete(c.cid);
|
|
item.classList.remove('dimmed');
|
|
} else {
|
|
hiddenCommunities.add(c.cid);
|
|
item.classList.add('dimmed');
|
|
}
|
|
const updates = RAW_NODES
|
|
.filter(n => n.community === c.cid)
|
|
.map(n => ({ id: n.id, hidden: hiddenCommunities.has(c.cid) }));
|
|
nodesDS.update(updates);
|
|
};
|
|
legendEl.appendChild(item);
|
|
});
|
|
</script>
|
|
<script>
|
|
// Render hyperedges as shaded regions
|
|
const hyperedges = [{"id": "hyper_capture_flow", "label": "Capture pipeline", "nodes": ["readme_control_panel", "readme_capture_html", "readme_mapview_html", "readme_broadcastchannel", "readme_server_js"], "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "README.md", "source_location": "## \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441"}, {"id": "hyper_trajectory_schema", "label": "Trajectory schema fields", "nodes": ["readme_camera_frames", "readme_ecef_position", "readme_rotation", "readme_coordinate", "readme_fov_vertical"], "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "README.md", "source_location": "## \u0424\u043e\u0440\u043c\u0430\u0442 \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438 (UAV-GeoLoc)"}, {"id": "hyper_output_layout", "label": "UAV-GeoLoc output layout", "nodes": ["readme_output_tree", "readme_db_crop", "readme_db_position_txt", "readme_drone_frame", "readme_trajectory", "readme_region_txt"], "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "README.md", "source_location": "## \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430"}];
|
|
// afterDrawing passes ctx already transformed to network coordinate space.
|
|
// Draw node positions raw — no manual pan/zoom/DPR math needed.
|
|
network.on('afterDrawing', function(ctx) {
|
|
hyperedges.forEach(h => {
|
|
const positions = h.nodes
|
|
.map(nid => network.getPositions([nid])[nid])
|
|
.filter(p => p !== undefined);
|
|
if (positions.length < 2) return;
|
|
ctx.save();
|
|
ctx.globalAlpha = 0.12;
|
|
ctx.fillStyle = '#6366f1';
|
|
ctx.strokeStyle = '#6366f1';
|
|
ctx.lineWidth = 2;
|
|
ctx.beginPath();
|
|
// Centroid and expanded hull in network coordinates
|
|
const cx = positions.reduce((s, p) => s + p.x, 0) / positions.length;
|
|
const cy = positions.reduce((s, p) => s + p.y, 0) / positions.length;
|
|
const expanded = positions.map(p => ({
|
|
x: cx + (p.x - cx) * 1.15,
|
|
y: cy + (p.y - cy) * 1.15
|
|
}));
|
|
ctx.moveTo(expanded[0].x, expanded[0].y);
|
|
expanded.slice(1).forEach(p => ctx.lineTo(p.x, p.y));
|
|
ctx.closePath();
|
|
ctx.fill();
|
|
ctx.globalAlpha = 0.4;
|
|
ctx.stroke();
|
|
// Label
|
|
ctx.globalAlpha = 0.8;
|
|
ctx.fillStyle = '#4f46e5';
|
|
ctx.font = 'bold 11px sans-serif';
|
|
ctx.textAlign = 'center';
|
|
ctx.fillText(h.label, cx, cy - 5);
|
|
ctx.restore();
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |