-
-
Notifications
You must be signed in to change notification settings - Fork 754
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
Migrate JSDocs to TSDocs #2756
Migrate JSDocs to TSDocs #2756
Conversation
* Fix some controls * Replace jsdoc with tsdocs lint * Fix control's jsdocs * Improve the looks of the controls * Fix lint and CI * Remove the last jsdoc comments in geolocation control
…2674) * rendering test: implement cropping of png result This is useful for renderer results that are too large to be handled by puppeteer * mock webgl: update drawing buffer size when viewport changes * Round down painter and canvas dimensions so they're consistent * add veryhigh pixel ratio test This test draws a black square, The pixel ratio and width were chosen to exceed the maximum texture value, which is set to 8192 in the CI environment. The result is cropped due to the limits of the intercommunication between chromium and puppeteer. * introduce maxCanvasSize option A canvas size over GL MAX_TEXTURE_SIZE can cause distortions and an excessive canvas size can cause hangs or crashes. Limiting canvas size can fix these issues. Add an option to let the users alter this limit. The default value is [4096, 4096] as MAX_TEXTURE_SIZE is usally at least 4096px. In CI max_texture_size is 8192, so we set maxCanvasSize to that value in tests. * Resize map after setting pixel ratio This has two benefits: 1. The map is immediately re-rendered with the new pixel ratio 2. We avoid duplicating pixel ratio clamping logic * further clamp pixel ratio after hitting gl limits Althoug setting maxCanvasSize to a value <= GL.MAX_TEXTURE_SIZE solves most problems, there is no guarantee that we cannot exceed other GL limits. To handle these cases, we check that the drawing buffer is of the requested size, if it isn't we scale down pixel ratio further * map test: move webgl error in its own section * add a unit test for webgl drawing buffer limits * update maxCanvasSize type and change comment type * update maxCanvasSize after hitting gl limits This is an optimization to avoid failing the overlimit check multiple times. * update changelog
* Added handlers to the docs * Fix lint
* Changes to docs contribution * don't link for better review
* Migrated marker and popup * Fix lint * Code review fixes * Added missing marker options object * Fix lint and tests * Fix typo * remove unneeded lint comment.
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.5 to 5.1.6. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix sources * Added typedoc * Fix custom style layer
* insets, lnglat+bounds * mercator * transform * draw_terrain * line_atlas * terrain * tile, styel_image * actore * ajax * image request queue * struct array * Remove returns objects * typedef * remove function * Removed some prperties * Fix lint * Fix tests * Lint, cr fixes
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2756 +/- ##
==========================================
+ Coverage 73.90% 73.93% +0.03%
==========================================
Files 238 238
Lines 18980 18968 -12
Branches 4282 4281 -1
==========================================
- Hits 14027 14024 -3
+ Misses 4953 4944 -9
☔ View full report in Codecov by Sentry. |
This is ready for review, basically most if not all of the content here was reviewed in the PRs that where merged to this branch. |
Should #2802 be merged in first? |
* Added comments to reduce warnings * Fix most of the warnings in the build process
Yes, and also the CI part, as part of the #2776 bounty. |
Would you do the |
IDK, I might as part of enabling the tsdocs lint stuff.. |
I've finished with most of the tsdoc errors. |
* Move all examples to be tripple slash, hypen, remove @Private * delimiter fix * More fixes * Fix lint * Remove unneeded rule * Code review changes. * Fix var let bad replacenment * Fix typo * Fix bwc address
I'm struggling with what appears to be a bug with the markdown plugin: I'll leave this for now as I would like to have more groups in the main intro file and currently something doesn't like me there... |
The following might also be a solution to the above issue if I don't get any feedback on the issue I opened: |
If it's appear to be completely impossible to repair the markdown/mkdocs flow, there is also a potential option to explore if any of the other typedoc plugins work (docusaurus or even hugo) to figure if it's the tsdocs output that's off. Don't know how much adaption of examples that would be though. |
The problem is with the markdown plugin, as you can see in the linked issue. |
Since converting the json file to markdown files shouldn't be complicated, and there is already some code that does that, it might be a possible solution. But's let's wait a bit to see if there's a response. |
* Added Geography and Geometry * Fix lint
With current version the events are now defined in two tables with the |
All the links inside of the module, like: Was before found at: Is there a migration strategy for that? |
The main links that I believe we will be able to keep are the examples bybredirecting maplibre-gl-js-docs to maplibre-gl-js/docs |
* Fix main readme links * make links relative * More readme fixes * Adding build to CI * Simplify docker commend * Change site url in the config to match the expected production site. * Added CI part
I'll merge this and create a pre-release to see that everything is working asv expected. |
Sounds good. I did btw. try the |
Resolves #2150
Resolves #2776
This will be a PR that will be merged when the branch is ready and all comments are migrated.
Please open PRs against this PR/branch.
@param
hyphen?)@memberof
@instanceof
@inherits
,@typedef
,@name
,@function
,@instance
,@property