-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve jsdoc documentation. #738
Conversation
This fixes the jsdoc linting errors for several files and improves the auto-generated documentation.
6832fbd
to
86c6590
Compare
src/camera.js
Outdated
@@ -649,6 +655,14 @@ | |||
|
|||
/** | |||
* Public exposure of the viewFromCenterSizeRotation function. | |||
* @param {object} center | |||
* @param {number} center.x | |||
* @param {number} center.y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make a note of units for size (pixels) and center?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the private function has the explanation of what the function does but not the public function. The API docs generated shows only one line. thoughts?
src/featureLayer.js
Outdated
*/ | ||
this._exit = function () { | ||
m_this.clear(); | ||
s_exit(); | ||
}; | ||
|
||
/** | ||
* Draw | ||
* Draw. If the layer is visible, call the parent class's draw function and | ||
* the renderer's _render function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking that mentioning a private method might be less useful. We could just state the this calls the renderer render function.
src/layer.js
Outdated
@@ -428,7 +454,7 @@ var layer = function (arg) { | |||
}; | |||
|
|||
/** | |||
* Clean up resouces | |||
* Clean up resouces. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resources?
src/layer.js
Outdated
*/ | ||
this.height = function () { | ||
return m_this.map().size().height; | ||
}; | ||
|
||
/** | ||
* Get or set the current layer opacity. | ||
* Get or set the current layer opacity. The opacity is in teh range [0-1]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
teh = the?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great..mostly has some minor suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe all the comments are addressed 👍
This fixes the jsdoc linting errors for several files and improves the auto-generated documentation.