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

Incremental typescript conversion of core/Util.js #11009

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

dennisfrancis
Copy link
Member

Typescript conversion of core/Util.js.

  • Target version: master

Summary

This PR contains an incremental approch to typescript conversion of core/Util.js. The goal is to remove L.Util as soon as the usages of its legacy leaflet js content is removed and rename core/CoolUtil.ts to core/Util.ts.

This PR also includes one functional change of unconditionally using window.requestAnimationFrame inside the wrapper L.Util.requestAnimFrame() as we are assuming the availability of window.requestAnimationFrame in canvas section container anyway.

TODO

[x] mocha tests for testable functions in CoolUtil.js

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

browser/Makefile.am Outdated Show resolved Hide resolved
@dennisfrancis dennisfrancis marked this pull request as draft January 27, 2025 10:29
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: If0b099eceab932b4a52ce0a68269fcd7d810bd9f
inside L.Util.requestAnimFrame unconditionally as we have already assuming the
availability of window.requestAnimationFrame inside canvas-section container.

Signed-off-by: Dennis Francis <[email protected]>
Change-Id: Ifdf885452135346e1df5f3196d49f76b8d1f983a
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: If77f50074b002c8a7566daf61cac3b14474aa838
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I31b5328976c6b46a62542e5b1b69bc1148893db9
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I07fb6b479c93789f773857e15041c8c35ee8328a
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I56f870121ed2141f3ca3bb234531505d45f624df
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I18311f09a63e793fb58b4de44c0f6c58c69f0883
@dennisfrancis dennisfrancis force-pushed the private/dennisf/typescript-conversion branch from 99223b2 to eefb34c Compare January 28, 2025 07:59
@dennisfrancis dennisfrancis marked this pull request as ready for review January 28, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Review
Development

Successfully merging this pull request may close these issues.

2 participants