Skip to content
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

Merged
merged 4 commits into from
Sep 26, 2017
Merged

Improve jsdoc documentation. #738

merged 4 commits into from
Sep 26, 2017

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Sep 20, 2017

This fixes the jsdoc linting errors for several files and improves the auto-generated documentation.

This fixes the jsdoc linting errors for several files and improves the auto-generated documentation.
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
Copy link
Member

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?

Copy link
Member

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?

*/
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.
Copy link
Member

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.
Copy link
Member

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].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

teh = the?

Copy link
Member

@aashish24 aashish24 left a 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

Copy link
Member

@aashish24 aashish24 left a 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 👍

@manthey manthey merged commit 9adb694 into master Sep 26, 2017
@manthey manthey deleted the improve-docs branch September 26, 2017 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants