@types/leaflet.awesome-markers
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,62 +9,74 @@ // Type definitions for Leaflet.awesome-markers plugin v2.0 with Leaflet 0.x | ||
declare global { namespace L { | ||
namespace AwesomeMarkers { | ||
var version: string; | ||
declare global { | ||
namespace L { | ||
namespace AwesomeMarkers { | ||
var version: string; | ||
function icon(options: AwesomeMarkers.IconOptions): AwesomeMarkers.Icon; | ||
function icon(options: AwesomeMarkers.IconOptions): AwesomeMarkers.Icon; | ||
interface IconStatic extends Leaflet.IconStatic { | ||
/** | ||
* Creates an icon instance with the given options. | ||
*/ | ||
new (options: IconOptions): Icon; | ||
Default: { | ||
interface IconStatic extends Leaflet.IconStatic { | ||
/** | ||
* Creates a default icon instance with the given options. | ||
*/ | ||
new (options?: IconOptions): Icon.Default; | ||
* Creates an icon instance with the given options. | ||
*/ | ||
new(options: IconOptions): Icon; | ||
imagePath: string; | ||
}; | ||
} | ||
Default: { | ||
/** | ||
* Creates a default icon instance with the given options. | ||
*/ | ||
new(options?: IconOptions): Icon.Default; | ||
interface Icon extends Leaflet.Icon { | ||
options: AwesomeMarkers.IconOptions; | ||
} | ||
imagePath: string; | ||
}; | ||
} | ||
interface IconOptions extends Leaflet.IconOptions { | ||
/** | ||
* Name of the icon. See glyphicons or font-awesome. | ||
*/ | ||
icon?: string | undefined; | ||
interface Icon extends Leaflet.Icon { | ||
options: AwesomeMarkers.IconOptions; | ||
} | ||
/** | ||
* Select de icon library. 'fa' for font-awesome or 'glyphicon' for bootstrap 3. | ||
*/ | ||
prefix?: 'fa' | 'glyphicon' | undefined; | ||
interface IconOptions extends Leaflet.IconOptions { | ||
/** | ||
* Name of the icon. See glyphicons or font-awesome. | ||
*/ | ||
icon?: string | undefined; | ||
/** | ||
* Color of the marker | ||
*/ | ||
markerColor?: 'red' | 'darkred' | 'orange' | 'green' | 'darkgreen' | 'blue' | 'purple' | 'darkpurple' | 'cadetblue' | undefined; | ||
/** | ||
* Select de icon library. 'fa' for font-awesome or 'glyphicon' for bootstrap 3. | ||
*/ | ||
prefix?: "fa" | "glyphicon" | undefined; | ||
/** | ||
* Color of the icon. 'white', 'black' or css code (hex, rgba etc). | ||
*/ | ||
iconColor?: 'white' | 'black' | string | undefined; | ||
/** | ||
* Color of the marker | ||
*/ | ||
markerColor?: | ||
| "red" | ||
| "darkred" | ||
| "orange" | ||
| "green" | ||
| "darkgreen" | ||
| "blue" | ||
| "purple" | ||
| "darkpurple" | ||
| "cadetblue" | ||
| undefined; | ||
/** | ||
* Make the icon spin. true or false. Font-awesome required | ||
*/ | ||
spin?: boolean | undefined; | ||
/** | ||
* Color of the icon. 'white', 'black' or css code (hex, rgba etc). | ||
*/ | ||
iconColor?: "white" | "black" | string | undefined; | ||
/** | ||
* Additional classes in the created tag | ||
*/ | ||
extraClasses?: string | undefined; | ||
/** | ||
* Make the icon spin. true or false. Font-awesome required | ||
*/ | ||
spin?: boolean | undefined; | ||
/** | ||
* Additional classes in the created tag | ||
*/ | ||
extraClasses?: string | undefined; | ||
} | ||
var Icon: AwesomeMarkers.IconStatic; | ||
} | ||
var Icon: AwesomeMarkers.IconStatic; | ||
} | ||
} } | ||
} |
{ | ||
"name": "@types/leaflet.awesome-markers", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "TypeScript definitions for Leaflet.awesome-markers plugin v2.0 with Leaflet", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.awesome-markers", | ||
}, | ||
"typesPublisherContentHash": "ca212fcbcadb440934126af5904946fac55c2cdd1cc9985493edc1255cfcbb77", | ||
"typesPublisherContentHash": "1484670fd9a699cf50222daecdbd8cd8478215231b63f760b9022b4514bbdd6c", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -9,78 +9,5 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.awesome-markers/v0. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.awesome-markers/v0/index.d.ts) | ||
````ts | ||
// Type definitions for Leaflet.awesome-markers plugin v2.0 with Leaflet 0.x | ||
// Project: https://github.com/sigma-geosistemas/Leaflet.awesome-markers#properties | ||
// Definitions by: Egor Komarov <https://github.com/Odrin>, Marcel Sebek <https://github.com/sebek64> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
import * as Leaflet from "leaflet"; | ||
declare global { namespace L { | ||
namespace AwesomeMarkers { | ||
var version: string; | ||
function icon(options: AwesomeMarkers.IconOptions): AwesomeMarkers.Icon; | ||
interface IconStatic extends Leaflet.IconStatic { | ||
/** | ||
* Creates an icon instance with the given options. | ||
*/ | ||
new (options: IconOptions): Icon; | ||
Default: { | ||
/** | ||
* Creates a default icon instance with the given options. | ||
*/ | ||
new (options?: IconOptions): Icon.Default; | ||
imagePath: string; | ||
}; | ||
} | ||
interface Icon extends Leaflet.Icon { | ||
options: AwesomeMarkers.IconOptions; | ||
} | ||
interface IconOptions extends Leaflet.IconOptions { | ||
/** | ||
* Name of the icon. See glyphicons or font-awesome. | ||
*/ | ||
icon?: string | undefined; | ||
/** | ||
* Select de icon library. 'fa' for font-awesome or 'glyphicon' for bootstrap 3. | ||
*/ | ||
prefix?: 'fa' | 'glyphicon' | undefined; | ||
/** | ||
* Color of the marker | ||
*/ | ||
markerColor?: 'red' | 'darkred' | 'orange' | 'green' | 'darkgreen' | 'blue' | 'purple' | 'darkpurple' | 'cadetblue' | undefined; | ||
/** | ||
* Color of the icon. 'white', 'black' or css code (hex, rgba etc). | ||
*/ | ||
iconColor?: 'white' | 'black' | string | undefined; | ||
/** | ||
* Make the icon spin. true or false. Font-awesome required | ||
*/ | ||
spin?: boolean | undefined; | ||
/** | ||
* Additional classes in the created tag | ||
*/ | ||
extraClasses?: string | undefined; | ||
} | ||
var Icon: AwesomeMarkers.IconStatic; | ||
} | ||
} } | ||
```` | ||
### Additional Details | ||
* Last updated: Fri, 25 Aug 2023 17:33:45 GMT | ||
* Last updated: Wed, 30 Aug 2023 19:34:56 GMT | ||
* Dependencies: [@types/leaflet](https://npmjs.com/package/@types/leaflet) | ||
@@ -87,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67
5529
17