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

jsDoc corrections #186

Merged
merged 4 commits into from
Mar 13, 2017
Merged

jsDoc corrections #186

merged 4 commits into from
Mar 13, 2017

Conversation

trych
Copy link
Contributor

@trych trych commented Mar 9, 2017

Making attributes consistent and improving function descriptions as discussed in #171.
Please review, if this was done correctly.

Closes #174.

@ff6347
Copy link
Member

ff6347 commented Mar 10, 2017

Hi @trych I'll review this weekend. Thank you

@trych
Copy link
Contributor Author

trych commented Mar 12, 2017

Aaaand updated the bundle as well (oops...)

Copy link
Member

@ff6347 ff6347 left a comment

Choose a reason for hiding this comment

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

Hi @trych I found some minor things that should be changed. All in all it is great. Thanks.

basil.js Outdated
*
* @cat Document
* @subcat Primitives
* @method beginShape
* @param shapeMode Set b.CLOSE if the new Path should be auto-closed.
* @param {String} shapeMode Set tob.CLOSE if the new Path should be auto-closed.
Copy link
Member

Choose a reason for hiding this comment

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

Missing whitespace. "tob" should be "to b"

*
* @cat Document
* @subcat Primitives
* @method beginShape
* @param shapeMode Set b.CLOSE if the new Path should be auto-closed.
* @param {String} shapeMode Set tob.CLOSE if the new Path should be auto-closed.
Copy link
Member

Choose a reason for hiding this comment

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

should be to b.CLOSE

* <b>ellipseMode()</b> function.
* The <b>start</b> and <b>stop</b> parameters specify the angles
* at which to draw the arc.
* The arc() function draws an arc. Arcs are drawn along the outer edge of an ellipse
Copy link
Member

Choose a reason for hiding this comment

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

If HTML tags are used it needs the @description tag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I will take the HTML tags out for now, as they are not used throughout the docs consistently. We can later decide if we should use HTML tags for certain things, but if we do so, we should do it consistently and not in a few random functions.

* @param {PageItem|String} pageItemOrName A page item whose style to return or the name of the object style to return.
* @param {Object} [props] Optional: An object of property name/value pairs to set the style's properties.
* @return {ObjectStyle} The object style instance.
* @param {PageItem|String} itemOrName A page item whose style to return or the name of the object style to return.
Copy link
Member

Choose a reason for hiding this comment

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

Why itemOrName?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because that is what the argument is called in the function itself. Not sure, if that needs to be consistent, in other places it looked like it was consistent. Should I rename it to pageItemOrName? Then it would also go ahead and rename in the function itself, right?

Copy link
Member

Choose a reason for hiding this comment

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

Oh. Okay. I got confused. If the parameter is named like that keep it.

@trych
Copy link
Contributor Author

trych commented Mar 13, 2017

Ok, fixed.

(Is there any GitHub way to mark your review comments as fixed?)

@ff6347
Copy link
Member

ff6347 commented Mar 13, 2017

I think I have to review them mark them as approved.

@trych trych merged commit 1c8f20e into basiljs:develop Mar 13, 2017
@trych trych deleted the jsDocComments branch March 13, 2017 17:07
@trych trych mentioned this pull request Mar 13, 2017
4 tasks
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