- added own provider for drive methods
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s

- renamed middleware Role and Can to role_middleware and can_middleware
- added some typing for inertia vue3 components
- npm updates
This commit is contained in:
Kaimbacher 2024-04-23 19:36:45 +02:00
parent cb51a4136f
commit 296c8fd46e
67 changed files with 2515 additions and 1913 deletions

View file

@ -1,6 +1,7 @@
// import * as util from '../core/utilities';
import { EventEmitter } from './EventEmitter.js';
import type { Map } from 'leaflet/src/map/index';
import type { Map } from 'leaflet/src/map/index.js';
// import type { Map } from 'leaflet';
export abstract class Control<T> extends EventEmitter<T> {
// @section
@ -8,7 +9,7 @@ export abstract class Control<T> extends EventEmitter<T> {
public options = {
position: 'topright',
};
protected _map;
protected _map: Map;
protected _container;
// constructor(defaults?) {
@ -28,7 +29,7 @@ export abstract class Control<T> extends EventEmitter<T> {
return this._container;
}
public abstract onRemove(map): void;
public abstract onRemove(map: Map): void;
public abstract onAdd(map: any): HTMLElement;
@ -51,7 +52,7 @@ export abstract class Control<T> extends EventEmitter<T> {
return this;
}
public removeFrom(map) {
public removeFrom(map: Map) {
let pos = this.getPosition();
let corner = map._controlCorners[pos];