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

Typescript conversion of core/Util.js and core/LOUtil.js #11009

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

Conversation

dennisfrancis
Copy link
Member

@dennisfrancis dennisfrancis commented Jan 24, 2025

Typescript conversion of core/Util.js and core/LOUtil.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 converts core/LOUtil.js to app/LOUtil.ts. In this case the js file is completely replaced by the typescript file.

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.

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
@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
@dennisfrancis dennisfrancis force-pushed the private/dennisf/typescript-conversion branch from eefb34c to 1c0faa3 Compare February 3, 2025 09:43
@dennisfrancis dennisfrancis changed the title Incremental typescript conversion of core/Util.js Typescript conversion of core/Util.js and core/LOUtil.js Feb 3, 2025
@dennisfrancis dennisfrancis force-pushed the private/dennisf/typescript-conversion branch 2 times, most recently from 2a8c277 to cdb3154 Compare February 4, 2025 09:30
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
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I38e9ed1880fe965eb87af7dbd15634399bb0d77c
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I4e498d790ae88a1a1c363c98f5aff8e9204d751f
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I3c66e0a53b5a6dc697db7fe04acc2690758bec20
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I9aa332be5ce8bb9d40a9f51f11a2a12017225b2d
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: Ic7e4bfec7e751669b01ef29e151ce127da8334b1
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I97334911b9c3a826d6084ab2c79cf0eb6104760b
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I6810a413d693bd834c7993290772e3fff4c23f52
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I7445a2c3fa90effb958798f2f4e870f2c9acbcf9
Signed-off-by: Dennis Francis <[email protected]>
Change-Id: I2668d65f2c07a65df07dbd4cb7de3f1be0debbc0
@dennisfrancis dennisfrancis force-pushed the private/dennisf/typescript-conversion branch from cdb3154 to 8aeb459 Compare February 5, 2025 08:16
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