Skip to content

fix: rename feature path functions and update global declarations#1303

Merged
Azgaar merged 2 commits intoAzgaar:masterfrom
SheepFromHeaven:fix/renderer-global-definitions
Feb 3, 2026
Merged

fix: rename feature path functions and update global declarations#1303
Azgaar merged 2 commits intoAzgaar:masterfrom
SheepFromHeaven:fix/renderer-global-definitions

Conversation

@SheepFromHeaven
Copy link
Collaborator

Description

Type of change

  • Bug fix
  • New feature
  • Refactoring / style
  • Documentation update / chore
  • Other (please describe)

Versioning

  • Version is updated
  • Changed files hash is updated
    NOT NEEDED IN TS FILES <3

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit 3bf4e31
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/698216d2768d46000810125f
😎 Deploy Preview https://deploy-preview-1303--afmg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors two renderer modules to align with the established TypeScript migration pattern in the codebase. Internal function names are updated to use the *Renderer suffix while maintaining backward compatibility by exposing them globally with their original names.

Changes:

  • Renamed internal drawMarker to markerRenderer in draw-markers.ts and exposed it as window.drawMarker
  • Renamed internal getFeaturePath to featurePathRenderer in draw-features.ts and exposed it as window.getFeaturePath
  • Added corresponding global type declarations for both functions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/renderers/draw-markers.ts Renamed internal function to markerRenderer following the *Renderer pattern, added global declaration and window assignment for drawMarker
src/renderers/draw-features.ts Renamed internal function to featurePathRenderer following the *Renderer pattern, added global declaration and window assignment for getFeaturePath

@Azgaar Azgaar merged commit 86fc62d into Azgaar:master Feb 3, 2026
13 checks passed
@SheepFromHeaven SheepFromHeaven deleted the fix/renderer-global-definitions branch February 3, 2026 16:00
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