Skip to content

Commit

Permalink
Handling removed resources icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Oct 25, 2024
2 parents c179140 + 8f4f33c commit ef9b044
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ function clearMap() {
messageJsonOutput.value = "";
messageTextArea.value = "";
geometries = [];
geoResourceLocation.k8s = [];
geoResourceLocation.sg = [];
geoResourceLocation.sshKey = [];
geoResourceLocation.vnet = [];


map.render();
}
window.clearMap = clearMap;
Expand Down Expand Up @@ -602,8 +608,8 @@ function returnAdjustmentPoint(num) {
ax = Math.random() - Math.random();
ay = Math.random() - Math.random();
}
ax = Math.random() * 0.1 + ax;
ay = Math.random() * 0.1 + ay;
ax = Math.random() * 0.01 + ax;
ay = Math.random() * 0.01 + ay;
ay = ay * 0.78;

return { ax, ay };
Expand Down Expand Up @@ -2135,6 +2141,7 @@ function releaseResources() {
})
.finally(function () {
removeSpinnerTask(spinnerId);
clearMap();
});
}
window.releaseResources = releaseResources;
Expand Down

0 comments on commit ef9b044

Please sign in to comment.