Skip to content

Commit 769c1bc

Browse files
authored
fix: update JSDoc comments to improve TypeScript definitions (#269)
1 parent 4a551cd commit 769c1bc

File tree

9 files changed

+9
-11
lines changed

9 files changed

+9
-11
lines changed

src/control/buffer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import bufferSVG from '../../img/buffer.svg';
1515

1616
/**
1717
* Control for creating buffers.
18-
* @extends {ole.Control}
18+
* @extends {Control}
1919
* @alias ole.BufferControl
2020
*/
2121
class BufferControl extends Control {

src/control/cad.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626

2727
/**
2828
* Control with snapping functionality for geometry alignment.
29-
* @extends {ole.Control}
29+
* @extends {Control}
3030
* @alias ole.CadControl
3131
*/
3232
class CadControl extends Control {

src/control/difference.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import diffSVG from '../../img/difference.svg';
1414

1515
/**
1616
* Control for creating a difference of geometries.
17-
* @extends {ole.Control}
17+
* @extends {Control}
1818
* @alias ole.Difference
1919
*/
2020
class Difference extends TopologyControl {

src/control/draw.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import drawLineSVG from '../../img/draw_line.svg';
66

77
/**
88
* Control for drawing features.
9-
* @extends {ole.Control}
9+
* @extends {Control}
1010
* @alias ole.DrawControl
1111
*/
1212
class DrawControl extends Control {
@@ -41,7 +41,6 @@ class DrawControl extends Control {
4141

4242
/**
4343
* @type {ol.interaction.Draw}
44-
* @private
4544
*/
4645
this.drawInteraction = new Draw({
4746
type: options?.type || 'Point',

src/control/intersection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import intersectionSVG from '../../img/intersection.svg';
1414

1515
/**
1616
* Control for intersection geometries.
17-
* @extends {ole.Control}
17+
* @extends {Control}
1818
* @alias ole.Intersection
1919
*/
2020
class Intersection extends TopologyControl {

src/control/modify.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Delete from '../interaction/delete';
99

1010
/**
1111
* Control for modifying geometries.
12-
* @extends {ole.Control}
12+
* @extends {Control}
1313
* @alias ole.ModifyControl
1414
*/
1515
class ModifyControl extends Control {
@@ -126,7 +126,6 @@ class ModifyControl extends Control {
126126
/**
127127
* Select interaction to modify features.
128128
* @type {ol.interaction.Select}
129-
* @private
130129
*/
131130
this.selectModify = new SelectModify({
132131
filter: this.selectFilter,

src/control/rotate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import rotateMapSVG from '../../img/rotate_map.svg';
99

1010
/**
1111
* Tool with for rotating geometries.
12-
* @extends {ole.Control}
12+
* @extends {Control}
1313
* @alias ole.RotateControl
1414
*/
1515
class RotateControl extends Control {

src/control/topology.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import delSVG from '../../img/buffer.svg';
44

55
/**
66
* Control for deleting geometries.
7-
* @extends {ole.Control}
7+
* @extends {Control}
88
* @alias ole.TopologyControl
99
*/
1010
class TopologyControl extends Control {

src/control/union.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import unionSVG from '../../img/union.svg';
1414

1515
/**
1616
* Control for creating a union of geometries.
17-
* @extends {ole.Control}
17+
* @extends {Control}
1818
* @alias ole.Union
1919
*/
2020
class Union extends TopologyControl {

0 commit comments

Comments
 (0)