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

[docsprint] Add inline examples for Point & PointLike types #9577

Merged
merged 2 commits into from
Apr 20, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2582,10 +2582,15 @@ function removeNode(node) {
* `x` and `y` properties representing screen coordinates in pixels.
*
* @typedef {Object} Point
* @example
* var point = Point(-77, 38);
adrianababakanian marked this conversation as resolved.
Show resolved Hide resolved
*/

/**
* A {@link Point} or an array of two numbers representing `x` and `y` screen coordinates in pixels.
*
* @typedef {(Point | Array<number>)} PointLike
* @example
* var p1 = Point(-77, 38); // a PointLike which is a Point
adrianababakanian marked this conversation as resolved.
Show resolved Hide resolved
* var p2 = [-77, 38]; // a PointLike which is an array of two numbers
*/