Skip to content

Commit

Permalink
fix: update JSDoc comments to improve TypeScript definitions (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff authored Mar 5, 2024
1 parent 4a551cd commit 769c1bc
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/control/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import bufferSVG from '../../img/buffer.svg';

/**
* Control for creating buffers.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.BufferControl
*/
class BufferControl extends Control {
Expand Down
2 changes: 1 addition & 1 deletion src/control/cad.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {

/**
* Control with snapping functionality for geometry alignment.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.CadControl
*/
class CadControl extends Control {
Expand Down
2 changes: 1 addition & 1 deletion src/control/difference.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import diffSVG from '../../img/difference.svg';

/**
* Control for creating a difference of geometries.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.Difference
*/
class Difference extends TopologyControl {
Expand Down
3 changes: 1 addition & 2 deletions src/control/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import drawLineSVG from '../../img/draw_line.svg';

/**
* Control for drawing features.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.DrawControl
*/
class DrawControl extends Control {
Expand Down Expand Up @@ -41,7 +41,6 @@ class DrawControl extends Control {

/**
* @type {ol.interaction.Draw}
* @private
*/
this.drawInteraction = new Draw({
type: options?.type || 'Point',
Expand Down
2 changes: 1 addition & 1 deletion src/control/intersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import intersectionSVG from '../../img/intersection.svg';

/**
* Control for intersection geometries.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.Intersection
*/
class Intersection extends TopologyControl {
Expand Down
3 changes: 1 addition & 2 deletions src/control/modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Delete from '../interaction/delete';

/**
* Control for modifying geometries.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.ModifyControl
*/
class ModifyControl extends Control {
Expand Down Expand Up @@ -126,7 +126,6 @@ class ModifyControl extends Control {
/**
* Select interaction to modify features.
* @type {ol.interaction.Select}
* @private
*/
this.selectModify = new SelectModify({
filter: this.selectFilter,
Expand Down
2 changes: 1 addition & 1 deletion src/control/rotate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import rotateMapSVG from '../../img/rotate_map.svg';

/**
* Tool with for rotating geometries.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.RotateControl
*/
class RotateControl extends Control {
Expand Down
2 changes: 1 addition & 1 deletion src/control/topology.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import delSVG from '../../img/buffer.svg';

/**
* Control for deleting geometries.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.TopologyControl
*/
class TopologyControl extends Control {
Expand Down
2 changes: 1 addition & 1 deletion src/control/union.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import unionSVG from '../../img/union.svg';

/**
* Control for creating a union of geometries.
* @extends {ole.Control}
* @extends {Control}
* @alias ole.Union
*/
class Union extends TopologyControl {
Expand Down

0 comments on commit 769c1bc

Please sign in to comment.