Skip to content

Commit

Permalink
https://jira.2gis.ru/browse/TILES-6588 change node to node v20
Browse files Browse the repository at this point in the history
  • Loading branch information
Nortren committed Nov 13, 2024
1 parent 949ea60 commit b7391ac
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
9 changes: 6 additions & 3 deletions src/control/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export class RulerControl extends Control {
* @param map The map instance.
* @param options Ruler control initialization options.
*/
constructor(private map: mapgl.Map, options: RulerControlOptions) {
constructor(
private map: mapgl.Map,
options: RulerControlOptions,
) {
super(map, '', options);
const mode = options.mode ?? DEFAULT_RULER_MODE;
this.isEnabled = options.enabled ?? true;
Expand Down Expand Up @@ -114,8 +117,8 @@ export class RulerControl extends Control {
this.getContainer().innerHTML = `
<div class=${styles.root}>
<button class="${styles.button}${this.isEnabled ? ' ' + styles.enabled : ''}"> ${
this.icon
}</button>
this.icon
}</button>
</div>
`;

Expand Down
12 changes: 10 additions & 2 deletions src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
color: #667799;
user-select: none;
font-family: SuisseIntl, Helvetica, Arial, sans-serif;
text-shadow: 1px 0 1px #fff, -1px 0 1px #fff, 0 1px 1px #fff, 0 -1px 1px #fff;
text-shadow:
1px 0 1px #fff,
-1px 0 1px #fff,
0 1px 1px #fff,
0 -1px 1px #fff;
white-space: nowrap;
cursor: pointer;
}
Expand Down Expand Up @@ -40,7 +44,11 @@
}

.snap {
text-shadow: 1px 0 1px #fff, -1px 0 1px #fff, 0 1px 1px #fff, 0 -1px 1px #fff;
text-shadow:
1px 0 1px #fff,
-1px 0 1px #fff,
0 1px 1px #fff,
0 -1px 1px #fff;
user-select: none;
color: #667799;
font-family: SuisseIntl, Helvetica, Arial, sans-serif;
Expand Down
5 changes: 4 additions & 1 deletion src/snapPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export class SnapPoint {
private point: GeoPoint = [0, 0];
private distance = 0;

constructor(private readonly map: mapgl.Map, private showLabel: boolean) {}
constructor(
private readonly map: mapgl.Map,
private showLabel: boolean,
) {}

update(
info: SnapInfo | undefined,
Expand Down
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down

0 comments on commit b7391ac

Please sign in to comment.