mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-22 15:17:23 +01:00
Fix: add getPin function and improve code formatting in draw-markers (#1349)
* feat: add getPin function and improve code formatting in draw-markers * style: improve code formatting in draw-markers.ts for better readability
This commit is contained in:
parent
6e26f49423
commit
afe89eff43
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ interface Marker {
|
|||
declare global {
|
||||
var drawMarkers: () => void;
|
||||
var drawMarker: (marker: Marker, rescale?: number) => string;
|
||||
var getPin: (shape?: string, fill?: string, stroke?: string) => string;
|
||||
}
|
||||
|
||||
type PinShapeFunction = (fill: string, stroke: string) => string;
|
||||
|
|
@ -103,3 +104,4 @@ const markersRenderer = (): void => {
|
|||
|
||||
window.drawMarkers = markersRenderer;
|
||||
window.drawMarker = markerRenderer;
|
||||
window.getPin = getPin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue