code refactor

This commit is contained in:
MaysWind
2025-01-06 21:42:36 +08:00
parent f56bef40d8
commit 166fae425d
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export interface ClipboardEvent {
export class ClipboardTextHolder {
private text: string;
constructor(text: string) {
public constructor(text: string) {
this.text = text;
}
+1 -1
View File
@@ -64,7 +64,7 @@ export class AmapMapInstance implements MapInstance {
private amapCenterPosition: unknown = null;
private amapCenterMarker: unknown | null;
constructor() {
public constructor() {
this.dependencyLoaded = !!AmapMapProvider.AMap;
}
+1 -1
View File
@@ -54,7 +54,7 @@ export class BaiduMapInstance implements MapInstance {
private baiduMapCenterPosition: unknown = null;
private baiduMapCenterMarker: unknown | null;
constructor() {
public constructor() {
this.dependencyLoaded = !!BaiduMapProvider.BMap;
}
+1 -1
View File
@@ -47,7 +47,7 @@ export class GoogleMapInstance implements MapInstance {
private googleMapInstance: unknown = null;
private googleMapCenterMarker: unknown | null;
constructor() {
public constructor() {
this.dependencyLoaded = !!GoogleMapProvider.GoogleMap;
}
+1 -1
View File
@@ -71,7 +71,7 @@ export class LeafletMapInstance implements MapInstance {
private leafletAttribution: unknown | null;
private leafletCenterMarker: unknown | null;
constructor(mapProvider: string, mapTileSource: LeafletTileSource) {
public constructor(mapProvider: string, mapTileSource: LeafletTileSource) {
this.dependencyLoaded = !!LeafletMapProvider.Leaflet;
this.mapProvider = mapProvider;
+1 -1
View File
@@ -149,7 +149,7 @@ export class TransactionAmountsRequest {
public readonly useTransactionTimezone: boolean;
public readonly query: string;
constructor(useTransactionTimezone: boolean, query: string) {
public constructor(useTransactionTimezone: boolean, query: string) {
this.useTransactionTimezone = useTransactionTimezone;
this.query = query;
}