@@ -109,10 +109,9 @@ export class CreateFloorComponent implements AfterViewInit {
109109 }
110110
111111 /**
112- * The **loadData()** function resets the whole map layer by removing all the D3 elements inside the
113- * {@link SVGElement} and then reloading all the elements with D3 floorplan.
112+ * The **loadData()** function resets the object layer of the {@link GuidoMap} and then redraws them accordingly.
114113 *
115- * @param floor The {@link Floor} who needs to be reloaded .
114+ * @param floor The {@link Floor} which needs to be redrawn .
116115 */
117116 loadData ( floor : Floor ) : void {
118117 let svg = d3 . select ( "#demo" + this . floorNumber ) . select ( "svg" ) ;
@@ -137,7 +136,7 @@ export class CreateFloorComponent implements AfterViewInit {
137136
138137 /**
139138 * The **setEventListeners()** function adds {@link EventListener}s to update and remove {@link Polygon}s and
140- * {@link GuidoNode}s.
139+ * {@link GuidoNode}s. The { @link MutationObserver} is also setup here.
141140 *
142141 * @param floor The {@link Floor} for which the {@link EventListener}s need to be added.
143142 */
@@ -329,8 +328,8 @@ export class CreateFloorComponent implements AfterViewInit {
329328 }
330329
331330 /**
332- * The **removeElement()** function removes the {@link Polygon}, {@link GuidoNode} or { @link Label} from the
333- * {@link jsonData} and then reloads the floorplan again with the new {@link Overlays}.
331+ * The **removeElement()** function removes the {@link Polygon}, {@link GuidoNode} (points of interests, doors and
332+ * nodes) or { @link Label} from the {@link jsonData} and then reloads the floorplan again with the new {@link Overlays}.
334333 *
335334 * @param event The {@link Event} that triggered the delete action.
336335 */
@@ -479,7 +478,8 @@ export class CreateFloorComponent implements AfterViewInit {
479478
480479 /**
481480 * The **changeVerticeCountOfPolygon()** function adds an extra vertice between the nearest {@link Polygon} point
482- * and the neighboring point that is the closest to the {@link MouseEvent} click OR removes the clicked vertice.
481+ * and the neighboring point that is the closest to the {@link MouseEvent} click OR removes the nearest vertice of
482+ * the {@link Polygon} that has been clicked.
483483 *
484484 * @param event The {@link MouseEvent} that triggered this function.
485485 * @param isAdding The `boolean` indicating if a vertice needs to be added or removed.
@@ -629,7 +629,7 @@ export class CreateFloorComponent implements AfterViewInit {
629629 }
630630
631631 /**
632- * The **getDoorDimensions()** function returns the door dimensions given his corners.
632+ * The **getDoorDimensions()** function returns the door dimensions given its corners.
633633 *
634634 * @param doorCoords The {@link Array} containing the {@link Point}s of the door.
635635 * @return A map containing the length and width of the door.
@@ -651,7 +651,6 @@ export class CreateFloorComponent implements AfterViewInit {
651651 * @param neighbors The {@link Array} of id's of all the neighbors.
652652 * @param self The instance of the {@link CreateFloorComponent}.
653653 */
654-
655654 setNeighbors ( id : number , neighbors : [ string , boolean ] [ ] , self : CreateFloorComponent = this ) : void {
656655 let newNeighbors : number [ ] = [ ] ;
657656 for ( const neighbor of neighbors ) {
@@ -764,8 +763,8 @@ export class CreateFloorComponent implements AfterViewInit {
764763 * @param name The name of the {@link Polygon}.
765764 * @param amountOfVertices The amount of vertices of the {@link Polygon}.
766765 * @param description The description of {@link Polygon}s purpose.
767- * @param color The color of the {@link Polygon}, it is represented as an {@link Array} of `integers` between 0 and
768- * 255.
766+ * @param color The color of the {@link Polygon}, it is represented as an {@link Array} of `integers` between
767+ * `0- 255` .
769768 * @param self The instance of the {@link CreateFloorComponent}.
770769 */
771770 createPolygon ( id : number | null = null , name : string , amountOfVertices : number , description : string , color : [ number , number , number ] = [ 204 , 204 , 204 ] , self : CreateFloorComponent = this ) : void {
@@ -880,7 +879,7 @@ export class CreateFloorComponent implements AfterViewInit {
880879 * {@link setNeighborMode}.
881880 *
882881 * @param id The unique identifier of the {@link Point} that needs to be found.
883- * @return The point to which the line needs to be connected.
882+ * @return The { @link Point} to which the line needs to be connected.
884883 */
885884 getConnectablePoint ( id : number ) : Point {
886885 let elem = d3 . select ( `[id='${ id } ']` ) ;
0 commit comments