@yandex/ymaps3-types
Advanced tools
Comparing version 0.0.20 to 0.0.21
import type { LngLat } from "./lng-lat"; | ||
import type { WorldCoordinates } from "./coordinates"; | ||
interface GenericProjection<TSource> { | ||
/** Projection identity type. It may be: | ||
* - EPSG-code (e.g. [EPSG:3857](https://epsg.io/3857)) | ||
* - any other string to identify (e.g. 'cartesian') | ||
**/ | ||
readonly type?: string; | ||
toWorldCoordinates(point: TSource): WorldCoordinates; | ||
@@ -5,0 +10,0 @@ fromWorldCoordinates(coordinates: WorldCoordinates): TSource; |
@@ -0,1 +1,2 @@ | ||
import * as projections_ from "./utils/projections"; | ||
export { YMap, YMapProps, YMapCenterLocation, YMapZoomLocation, YMapBoundsLocation, YMapCenterZoomLocation, YMapLocationRequest, YMapCameraRequest } from "./YMap"; | ||
@@ -28,5 +29,9 @@ export { YMapThemeContext, ThemeContext, YMapTheme } from "./ThemeContext"; | ||
export { fetchConfig, FetchConfigOptions } from "./fetchConfig"; | ||
export * as projections from "./utils/projections"; | ||
/** @deprecated Use ymaps3 packages instead */ | ||
export declare const projections: { | ||
/** @deprecated Use [Web Mercator package](https://www.npmjs.com/package/@yandex/ymaps3-web-mercator-projection) instead. */ | ||
sphericalMercator: projections_.WebMercator; | ||
}; | ||
/** Toggle this to enable/disable strict mode. */ | ||
export declare let strictMode: boolean; | ||
export type { LngLat, ReadonlyLngLat, LngLatBounds, BehaviorType, MapMode, Margin, ZoomRange, ZoomStrategy, ZoomRounding, VectorCustomizationTypes, VectorCustomizationElements, VectorCustomizationItem, VectorCustomization, RasterTileDataSourceDescription, VectorTileDataSourceDescription, RasterLayerOptions, EasingFunctionDescription, EasingPresetName, EasingBezierPreset, EasingFunction, DrawingStyle, DrawingStyleIcon, VectorTileSize, VectorObjectsCollisionPriority, VectorDataSourcePriority } from "../common/types"; |
@@ -1,1 +0,1 @@ | ||
export * from "./spherical-mercator"; | ||
export * from "./web-mercator"; |
@@ -82,4 +82,2 @@ import type { VectorCustomization } from "../../common/types"; | ||
protected _onUpdate(propsDiff: Partial<YMapDefaultSchemeLayerProps>): void; | ||
private _createTileUrl; | ||
private _getProjectionQuery; | ||
private _getDataSourceDescription; | ||
@@ -86,0 +84,0 @@ private _updateTheme; |
{ | ||
"name": "@yandex/ymaps3-types", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "Types for ymaps3 maps library", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"keywords": [ | ||
"ymaps3", | ||
"api", | ||
"map", | ||
"ymaps", | ||
"types", | ||
"js api" | ||
], | ||
"keywords": ["ymaps3", "api", "map", "ymaps", "types", "js api"], | ||
"publishConfig": { | ||
@@ -23,7 +16,12 @@ "registry": "https://registry.npmjs.org" | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@types/react": "*", | ||
"@types/react-dom": "*", | ||
"@vue/runtime-core": "*" | ||
"peerDependencies": { | ||
"@types/react": "16-18", | ||
"@types/react-dom": "16-18", | ||
"@vue/runtime-core": "3" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@types/react": {"optional": true}, | ||
"@types/react-dom": {"optional": true}, | ||
"@vue/runtime-core": {"optional": true} | ||
} | ||
} |
@@ -40,2 +40,3 @@ import type { Projection, LngLat, WorldCoordinates } from "../../common/types"; | ||
private _yRange; | ||
readonly type = "cartesian"; | ||
constructor(bounds: [ | ||
@@ -42,0 +43,0 @@ LngLat, |
@@ -59,5 +59,5 @@ import type { YMapEntity } from "../../.."; | ||
static [ymaps3.overrideKeyReactify]: import("../../../reactify/reactify").CustomReactify<YMapClusterer, import("react").ForwardRefExoticComponent<{ | ||
features: Feature[]; | ||
tickTimeout?: number | undefined; | ||
method: IClusterMethod; | ||
features: Feature[]; | ||
onRender?: ((clusters: ClustererObject[]) => false | void) | undefined; | ||
@@ -68,5 +68,5 @@ maxZoom?: number | undefined; | ||
ref?: import("react").Ref<YMapEntity<{ | ||
features: Feature[]; | ||
tickTimeout?: number | undefined; | ||
method: IClusterMethod; | ||
features: Feature[]; | ||
onRender?: ((clusters: ClustererObject[]) => false | void) | undefined; | ||
@@ -73,0 +73,0 @@ maxZoom?: number | undefined; |
@@ -8,5 +8,6 @@ import type { Projection } from "../../common/types"; | ||
* @static | ||
* @deprecated Use [Web Mercator package](https://www.npmjs.com/package/@yandex/ymaps3-web-mercator-projection) instead. | ||
* @example | ||
* ```js | ||
* const { SphericalMercator } = await ymaps3.import('@yandex/ymaps3-spherical-mercator-projection@0.0.1'); | ||
* const {SphericalMercator} = await ymaps3.import('@yandex/ymaps3-spherical-mercator-projection@0.0.1'); | ||
* // Create a map in the spherical Mercator projection | ||
@@ -13,0 +14,0 @@ * const map = new ymaps3.YMap(document.getElementById('YMapsID'), { |
@@ -41,3 +41,3 @@ import type TReact from "react"; | ||
export type ReactifiedModule<TModule extends BaseModule> = { | ||
[Property in keyof TModule]: TModule[Property] extends EntityConstructor<GenericEntity<unknown>> ? ReturnType<InternalReactifyEntity<TModule[Property]>> : TModule[Property] extends typeof Context ? ReturnType<GetReactContext<TModule[Property]>> : TModule[Property]; | ||
[Property in keyof TModule]: TModule[Property] extends EntityConstructor<GenericEntity<unknown>> ? ReturnType<InternalReactifyEntity<TModule[Property]>> : TModule[Property] extends Context<any> ? ReturnType<GetReactContext<TModule[Property]>> : TModule[Property]; | ||
}; | ||
@@ -44,0 +44,0 @@ export type BaseModule = Record<string | symbol, unknown>; |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
151477
151
3875
0
- Removed@types/react@*
- Removed@types/react-dom@*
- Removed@vue/runtime-core@*
- Removed@types/react@19.0.1(transitive)
- Removed@types/react-dom@19.0.2(transitive)
- Removedcsstype@3.1.3(transitive)