Socket
Socket
Sign inDemoInstall

@agm/core

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agm/core - npm Package Compare versions

Comparing version 1.0.0-beta.7 to 1.0.0

agm-core.d.ts

17

core.module.d.ts
import { ModuleWithProviders } from '@angular/core';
import { AgmMap } from './directives/map';
import { AgmBicyclingLayer } from './directives/bicycling-layer';
import { AgmCircle } from './directives/circle';
import { AgmRectangle } from './directives/rectangle';
import { AgmDataLayer } from './directives/data-layer';
import { AgmFitBounds } from './directives/fit-bounds';
import { AgmInfoWindow } from './directives/info-window';
import { AgmKmlLayer } from './directives/kml-layer';
import { AgmMap } from './directives/map';
import { AgmMarker } from './directives/marker';
import { AgmPolygon } from './directives/polygon';
import { AgmPolyline } from './directives/polyline';
import { AgmPolylineIcon } from './directives/polyline-icon';
import { AgmPolylinePoint } from './directives/polyline-point';
import { AgmKmlLayer } from './directives/kml-layer';
import { AgmDataLayer } from './directives/data-layer';
import { AgmRectangle } from './directives/rectangle';
import { AgmTransitLayer } from './directives/transit-layer';
import { LazyMapsAPILoaderConfigLiteral } from './services/maps-api-loader/lazy-maps-api-loader';
import { AgmFitBounds } from './directives/fit-bounds';
import { AgmPolylineIcon } from './directives/polyline-icon';
import { AgmTransitLayer } from './directives/transit-layer';
/**
* @internal
*/
export declare function coreDirectives(): (typeof AgmCircle | typeof AgmRectangle | typeof AgmMarker | typeof AgmInfoWindow | typeof AgmPolygon | typeof AgmPolylinePoint | typeof AgmPolylineIcon | typeof AgmPolyline | typeof AgmKmlLayer | typeof AgmDataLayer | typeof AgmTransitLayer | typeof AgmMap | typeof AgmFitBounds)[];
export declare function coreDirectives(): (typeof AgmTransitLayer | typeof AgmBicyclingLayer | typeof AgmCircle | typeof AgmDataLayer | typeof AgmFitBounds | typeof AgmMarker | typeof AgmInfoWindow | typeof AgmKmlLayer | typeof AgmPolygon | typeof AgmPolylineIcon | typeof AgmPolylinePoint | typeof AgmPolyline | typeof AgmRectangle | typeof AgmMap)[];
/**

@@ -21,0 +22,0 @@ * The angular-google-maps core module. Contains all Directives/Services/Pipes

@@ -1,13 +0,14 @@

export { AgmMap } from './directives/map';
export { AgmBicyclingLayer } from './directives/bicycling-layer';
export { AgmCircle } from './directives/circle';
export { AgmRectangle } from './directives/rectangle';
export { AgmDataLayer } from './directives/data-layer';
export { AgmFitBounds } from './directives/fit-bounds';
export { AgmInfoWindow } from './directives/info-window';
export { AgmKmlLayer } from './directives/kml-layer';
export { AgmDataLayer } from './directives/data-layer';
export { AgmTransitLayer } from './directives/transit-layer';
export { AgmMap } from './directives/map';
export { AgmMarker } from './directives/marker';
export { AgmPolygon } from './directives/polygon';
export { AgmPolyline } from './directives/polyline';
export { AgmPolylineIcon } from './directives/polyline-icon';
export { AgmPolylinePoint } from './directives/polyline-point';
export { AgmFitBounds } from './directives/fit-bounds';
export { AgmPolylineIcon } from './directives/polyline-icon';
export { AgmRectangle } from './directives/rectangle';
export { AgmTransitLayer } from './directives/transit-layer';

@@ -1,2 +0,2 @@

import { EventEmitter, OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core';
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { DataMouseEvent } from './../services/google-maps-types';

@@ -3,0 +3,0 @@ import { DataLayerManager } from './../services/managers/data-layer-manager';

@@ -1,3 +0,3 @@

import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
import { FitBoundsService, FitBoundsAccessor } from '../services/fit-bounds';
import { OnChanges, OnDestroy, OnInit } from '@angular/core';
import { FitBoundsAccessor, FitBoundsService } from '../services/fit-bounds';
/**

@@ -23,3 +23,3 @@ * Adds the given directive to the auto fit bounds feature when the value is true.

*/
ngOnChanges(changes: SimpleChanges): void;
ngOnChanges(): void;
/**

@@ -26,0 +26,0 @@ * @internal

@@ -1,7 +0,6 @@

import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, NgZone } from '@angular/core';
import { ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { MouseEvent } from '../map-types';
import { FitBoundsService } from '../services/fit-bounds';
import { GoogleMapsAPIWrapper } from '../services/google-maps-api-wrapper';
import { FullscreenControlOptions, LatLngLiteral, MapTypeControlOptions, MapTypeId, PanControlOptions, MapRestriction, RotateControlOptions, ScaleControlOptions, StreetViewControlOptions, ZoomControlOptions } from '../services/google-maps-types';
import { LatLngBounds, LatLngBoundsLiteral, MapTypeStyle } from '../services/google-maps-types';
import { FitBoundsService } from '../services/fit-bounds';
import { FullscreenControlOptions, LatLngBounds, LatLngBoundsLiteral, LatLngLiteral, MapRestriction, MapTypeControlOptions, MapTypeId, MapTypeStyle, Padding, PanControlOptions, RotateControlOptions, ScaleControlOptions, StreetViewControlOptions, ZoomControlOptions } from '../services/google-maps-types';
/**

@@ -137,2 +136,6 @@ * AgmMap renders a Google Map.

/**
* Padding amount for the bounds.
*/
fitBoundsPadding: number | Padding;
/**
* The initial enabled/disabled state of the Scale control. This is disabled by default.

@@ -268,2 +271,6 @@ */

mapReady: EventEmitter<any>;
/**
* This event is fired when the visible tiles have finished loading.
*/
tilesLoaded: EventEmitter<void>;
constructor(_elem: ElementRef, _mapsWrapper: GoogleMapsAPIWrapper, _fitBoundsService: FitBoundsService, _zone: NgZone);

@@ -287,3 +294,3 @@ /** @internal */

private _subscribeToFitBoundsUpdates;
protected _updateBounds(bounds: LatLngBounds | LatLngBoundsLiteral): void;
protected _updateBounds(bounds: LatLngBounds | LatLngBoundsLiteral, padding?: number | Padding): void;
private _isLatLngBoundsLiteral;

@@ -295,3 +302,4 @@ private _handleMapCenterChange;

private _handleIdleEvent;
private _handleTilesLoadedEvent;
private _handleMapMouseEvents;
}

@@ -89,3 +89,3 @@ import { AfterContentInit, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChange } from '@angular/core';

*/
animationChange: EventEmitter<"BOUNCE" | "DROP">;
animationChange: EventEmitter<Animation>;
/**

@@ -92,0 +92,0 @@ * This event emitter gets emitted when the user clicks on the marker.

import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
import { Observable } from 'rxjs';
import { LatLngLiteral } from '../../core/services/google-maps-types';
import { FitBoundsAccessor, FitBoundsDetails } from '../services/fit-bounds';
/**

@@ -7,3 +9,3 @@ * AgmPolylinePoint represents one element of a polyline within a {@link

*/
export declare class AgmPolylinePoint implements OnChanges {
export declare class AgmPolylinePoint implements OnChanges, FitBoundsAccessor {
/**

@@ -23,2 +25,4 @@ * The latitude position of the point.

ngOnChanges(changes: SimpleChanges): any;
/** @internal */
getFitBoundsDetails$(): Observable<FitBoundsDetails>;
}
import { AfterContentInit, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core';
import { PolyMouseEvent, LatLng } from '../services/google-maps-types';
import { LatLng, PolyMouseEvent } from '../services/google-maps-types';
import { PolylineManager } from '../services/managers/polyline-manager';
import { AgmPolylineIcon } from './polyline-icon';
import { AgmPolylinePoint } from './polyline-point';
import { AgmPolylineIcon } from './polyline-icon';
/**

@@ -7,0 +7,0 @@ * AgmPolyline renders a polyline on a {@link AgmMap}

import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { TransitLayerManager } from '../services/managers/transit-layer-manager';
import { LayerManager } from '../services/managers/layer-manager';
export declare class AgmTransitLayer implements OnInit, OnChanges, OnDestroy {

@@ -7,3 +7,2 @@ private _manager;

private _id;
private static _transitLayerOptions;
/**

@@ -13,6 +12,5 @@ * Hide/show transit layer

visible: boolean;
constructor(_manager: TransitLayerManager);
constructor(_manager: LayerManager);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
private _updateTransitLayerOptions;
/** @internal */

@@ -19,0 +17,0 @@ id(): string;

export * from './directives';
export * from './services';
export * from './map-types';
export { LatLngBounds, LatLng, LatLngLiteral, MapTypeStyle, PolyMouseEvent } from './services/google-maps-types';
export { LatLngBounds, LatLng, LatLngLiteral, MapTypeStyle, Padding, PolyMouseEvent } from './services/google-maps-types';
export { AgmCoreModule } from './core.module';
{
"name": "@agm/core",
"version": "1.0.0-beta.7",
"description": "Angular components for Google Maps",
"repository": {
"type": "git",
"url": "https://github.com/SebastianM/angular-google-maps.git"
},
"author": "Sebastian Holstein <info@sebastian-holstein.de>",
"keywords": [

@@ -18,3 +14,24 @@ "angular",

],
"author": "Sebastian Holstein <info@sebastian-holstein.de>",
"peerDependencies": {
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
"@angular/core": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
},
"main": "bundles/agm-core.umd.js",
"module": "fesm5/agm-core.js",
"es2015": "fesm2015/agm-core.js",
"esm5": "esm5/agm-core.js",
"esm2015": "esm2015/agm-core.js",
"fesm5": "fesm5/agm-core.js",
"fesm2015": "fesm2015/agm-core.js",
"typings": "agm-core.d.ts",
"metadata": "agm-core.metadata.json",
"sideEffects": false,
"dependencies": {
"tslib": "^1.9.0"
},
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/SebastianM/angular-google-maps.git"
},
"license": "MIT",

@@ -24,15 +41,3 @@ "bugs": {

},
"homepage": "https://angular-maps.com",
"peerDependencies": {
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0",
"@angular/core": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"jspm": {
"jspmNodeConversion": false,
"dependencies": {
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0",
"@angular/core": "^6.0.0 || ^7.0.0 || ^8.0.0"
}
},
"dependencies": {}
"homepage": "https://angular-maps.com"
}

@@ -0,14 +1,14 @@

export { CircleManager } from './services/managers/circle-manager';
export { DataLayerManager } from './services/managers/data-layer-manager';
export { FitBoundsAccessor, FitBoundsDetails } from './services/fit-bounds';
export { GoogleMapsAPIWrapper } from './services/google-maps-api-wrapper';
export { CircleManager } from './services/managers/circle-manager';
export { RectangleManager } from './services/managers/rectangle-manager';
export { GoogleMapsScriptProtocol, LAZY_MAPS_API_CONFIG, LazyMapsAPILoader, LazyMapsAPILoaderConfigLiteral, } from './services/maps-api-loader/lazy-maps-api-loader';
export { InfoWindowManager } from './services/managers/info-window-manager';
export { KmlLayerManager } from './services/managers/kml-layer-manager';
export { LayerManager } from './services/managers/layer-manager';
export { MapsAPILoader } from './services/maps-api-loader/maps-api-loader';
export { MarkerManager } from './services/managers/marker-manager';
export { NoOpMapsAPILoader } from './services/maps-api-loader/noop-maps-api-loader';
export { PolygonManager } from './services/managers/polygon-manager';
export { PolylineManager } from './services/managers/polyline-manager';
export { KmlLayerManager } from './services/managers/kml-layer-manager';
export { DataLayerManager } from './services/managers/data-layer-manager';
export { GoogleMapsScriptProtocol, LAZY_MAPS_API_CONFIG, LazyMapsAPILoader, LazyMapsAPILoaderConfigLiteral } from './services/maps-api-loader/lazy-maps-api-loader';
export { MapsAPILoader } from './services/maps-api-loader/maps-api-loader';
export { NoOpMapsAPILoader } from './services/maps-api-loader/noop-maps-api-loader';
export { FitBoundsAccessor, FitBoundsDetails } from './services/fit-bounds';
export { TransitLayerManager } from './services/managers/transit-layer-manager';
export { RectangleManager } from './services/managers/rectangle-manager';
import { NgZone } from '@angular/core';
import { Observable } from 'rxjs';
import * as mapTypes from './google-maps-types';
import { Polyline } from './google-maps-types';
import { PolylineOptions } from './google-maps-types';
import { Polyline, PolylineOptions } from './google-maps-types';
import { MapsAPILoader } from './maps-api-loader/maps-api-loader';

@@ -39,4 +38,4 @@ /**

/**
* Creates a Google Map transit layer instance add it to map
* @param {TransitLayerOptions} options - TransitLayerOptions options
* Creates a TransitLayer instance for a map
* @param {TransitLayerOptions} options - used for setting layer options
* @returns {Promise<TransitLayer>} a new transit layer object

@@ -46,2 +45,8 @@ */

/**
* Creates a BicyclingLayer instance for a map
* @param {BicyclingLayerOptions} options - used for setting layer options
* @returns {Promise<BicyclingLayer>} a new bicycling layer object
*/
createBicyclingLayer(options: mapTypes.BicyclingLayerOptions): Promise<mapTypes.BicyclingLayer>;
/**
* Determines if given coordinates are insite a Polygon path.

@@ -60,4 +65,4 @@ */

panBy(x: number, y: number): Promise<void>;
fitBounds(latLng: mapTypes.LatLngBounds | mapTypes.LatLngBoundsLiteral): Promise<void>;
panToBounds(latLng: mapTypes.LatLngBounds | mapTypes.LatLngBoundsLiteral): Promise<void>;
fitBounds(latLng: mapTypes.LatLngBounds | mapTypes.LatLngBoundsLiteral, padding?: number | mapTypes.Padding): Promise<void>;
panToBounds(latLng: mapTypes.LatLngBounds | mapTypes.LatLngBoundsLiteral, padding?: number | mapTypes.Padding): Promise<void>;
/**

@@ -64,0 +69,0 @@ * Returns the native Google Maps Map instance. Be careful when using this instance directly.

export declare var google: any;
export interface MVCObject {
addListener(eventName: string, handler: Function): MapsEventListener;
}
export interface MVCArray<T> extends MVCObject {
clear(): void;
getArray(): Array<T>;
getAt(i: number): T;
getLength(): number;
insertAt(i: number, elem: T): void;
pop(): T;
push(elem: T): number;
removeAt(i: number): T;
setAt(i: number, elem: T): void;
forEach(callback: (elem: T, i: number) => void): void;
}
export interface GoogleMap extends MVCObject {

@@ -13,4 +28,4 @@ data?: Data;

setOptions(options: MapOptions): void;
panToBounds(latLngBounds: LatLngBounds | LatLngBoundsLiteral): void;
fitBounds(bounds: LatLngBounds | LatLngBoundsLiteral): void;
panToBounds(latLngBounds: LatLngBounds | LatLngBoundsLiteral, padding?: number | Padding): void;
fitBounds(bounds: LatLngBounds | LatLngBoundsLiteral, padding?: number | Padding): void;
}

@@ -132,2 +147,8 @@ export interface LatLng {

}
export interface Padding {
top: number;
left: number;
right: number;
bottom: number;
}
export interface LatLngBoundsLiteral {

@@ -210,17 +231,2 @@ east: number;

}
export interface MVCObject {
addListener(eventName: string, handler: Function): MapsEventListener;
}
export interface MVCArray<T> extends MVCObject {
clear(): void;
getArray(): Array<T>;
getAt(i: number): T;
getLength(): number;
insertAt(i: number, elem: T): void;
pop(): T;
push(elem: T): number;
removeAt(i: number): T;
setAt(i: number, elem: T): void;
forEach(callback: (elem: T, i: number) => void): void;
}
export interface MapsEventListener {

@@ -395,3 +401,2 @@ remove(): void;

setMap(map: GoogleMap): void;
setOptions(options: TransitLayerOptions): void;
}

@@ -401,2 +406,9 @@ export interface TransitLayerOptions {

}
export interface BicyclingLayer extends MVCObject {
getMap(): GoogleMap;
setMap(map: GoogleMap): void;
}
export interface BicyclingLayerOptions {
visible: boolean;
}
export interface Data extends MVCObject {

@@ -403,0 +415,0 @@ features: Feature[];

@@ -25,3 +25,4 @@ import { NgZone } from '@angular/core';

setRadius(circle: AgmCircle): Promise<void>;
getNativeCircle(circle: AgmCircle): Promise<mapTypes.Circle>;
createEventObservable<T>(eventName: string, circle: AgmCircle): Observable<T>;
}

@@ -0,3 +1,3 @@

import { NgZone } from '@angular/core';
import { Observable } from 'rxjs';
import { NgZone } from '@angular/core';
import { AgmInfoWindow } from '../../directives/info-window';

@@ -4,0 +4,0 @@ import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';

@@ -1,3 +0,3 @@

import { MVCArray, MapsEventListener } from '../services/google-maps-types';
import { Observable } from 'rxjs';
import { MapsEventListener, MVCArray } from '../services/google-maps-types';
export declare function createMVCEventObservable<T>(array: MVCArray<T>): Observable<MVCEvent<T>>;

@@ -4,0 +4,0 @@ export interface MVCEvent<T> {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc