Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yandex/ymaps3-types

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yandex/ymaps3-types - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

imperative/utils/allowed-custom-layer-implementations.d.ts

5

common/types/projection.d.ts
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;

7

imperative/index.d.ts

@@ -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";

2

imperative/utils/projections/index.d.ts

@@ -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>;

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