code refactor
This commit is contained in:
@@ -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
@@ -64,7 +64,7 @@ export class AmapMapInstance implements MapInstance {
|
||||
private amapCenterPosition: unknown = null;
|
||||
private amapCenterMarker: unknown | null;
|
||||
|
||||
constructor() {
|
||||
public constructor() {
|
||||
this.dependencyLoaded = !!AmapMapProvider.AMap;
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ export class BaiduMapInstance implements MapInstance {
|
||||
private baiduMapCenterPosition: unknown = null;
|
||||
private baiduMapCenterMarker: unknown | null;
|
||||
|
||||
constructor() {
|
||||
public constructor() {
|
||||
this.dependencyLoaded = !!BaiduMapProvider.BMap;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ export class GoogleMapInstance implements MapInstance {
|
||||
private googleMapInstance: unknown = null;
|
||||
private googleMapCenterMarker: unknown | null;
|
||||
|
||||
constructor() {
|
||||
public constructor() {
|
||||
this.dependencyLoaded = !!GoogleMapProvider.GoogleMap;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user