@yandex/ymaps3-types
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -44,6 +44,13 @@ import type { WorldCoordinates } from "./coordinates"; | ||
type Hotspot = WorldHotspot | RenderedHotspot; | ||
interface FetchedTile { | ||
interface FetchedCommonTile { | ||
destroy?(): void; | ||
} | ||
interface FetchedRasterTile extends FetchedCommonTile { | ||
image: HTMLImageElement | HTMLCanvasElement | ImageBitmap; | ||
} | ||
type FetchTileFunction = (x: number, y: number, z: number, scale: number, signal: AbortSignal) => Promise<FetchedTile>; | ||
/** | ||
* @deprecated Use FetchedRasterTile instead | ||
*/ | ||
type FetchedTile = FetchedRasterTile; | ||
type FetchTileFunction = (x: number, y: number, z: number, scale: number, signal: AbortSignal) => Promise<FetchedCommonTile | FetchedRasterTile>; | ||
type ComposeTileUrlFunction = (x: number, y: number, z: number, scale: number, signal: AbortSignal) => string; | ||
@@ -131,2 +138,3 @@ /** | ||
richModelEnabled?: boolean; | ||
richPointEnabled?: boolean; | ||
allObjectsInteractive?: boolean; | ||
@@ -141,2 +149,2 @@ /** Forces tiles to wait for the icons, disables hiding icons by zoom diff */ | ||
} | ||
export { VectorCustomizationTypes, VectorCustomizationElements, VectorCustomizationItem, VectorCustomization, RasterTileDataSourceDescription, FetchHotspotsFunction, VectorTileDataSourceDescription, VectorTileSize, VectorObjectsCollisionPriority, VectorDataSourcePriority, HotspotsOptions, FetchTileFunction, ComposeTileUrlFunction, Hotspot, WorldHotspot, RenderedHotspot, FetchedTile, MapTheme }; | ||
export { VectorCustomizationTypes, VectorCustomizationElements, VectorCustomizationItem, VectorCustomization, RasterTileDataSourceDescription, FetchHotspotsFunction, VectorTileDataSourceDescription, VectorTileSize, VectorObjectsCollisionPriority, VectorDataSourcePriority, HotspotsOptions, FetchTileFunction, ComposeTileUrlFunction, Hotspot, WorldHotspot, RenderedHotspot, FetchedRasterTile, FetchedTile, FetchedCommonTile, MapTheme }; |
@@ -23,1 +23,2 @@ export * from "./coordinates"; | ||
export * from "./matrix"; | ||
export * from "./tilt-range"; |
@@ -94,2 +94,14 @@ type ContextWatcherFn = () => void; | ||
protected _consumeContext<T>(consumer: Context<T>): T | undefined; | ||
/** | ||
* Subscribes to changes in a context | ||
* @param context - The context that provides access to the context value. | ||
* @param watcher - Callback function that is called when the context value is changed. | ||
* @param params - Params for watcher. | ||
* @param params.immediate - Calls watcher immediately. For most handlers it allows to inline watcher function. | ||
* @returns Function to unsubscribe from changes context. | ||
* For most handlers it can be, because it is called automatically on detach. | ||
*/ | ||
protected _watchContext<T>(context: Context<T>, watcher: ContextWatcherFn, params?: { | ||
immediate: boolean; | ||
}): () => void; | ||
} | ||
@@ -96,0 +108,0 @@ interface ComplexOptions<Root extends GenericRootEntity<unknown> = GenericRootEntity<unknown>> { |
@@ -17,3 +17,3 @@ import * as projections_ from "./utils/projections"; | ||
export { YMapTileDataSource, YMapTileDataSourceProps } from "./YMapTileDataSource"; | ||
export { YMapControls, YMapControlsProps } from "./YMapControls"; | ||
export * from "./YMapControls"; | ||
export { YMapControl, YMapControlProps, YMapControlButton, YMapControlButtonProps, YMapControlCommonButton } from "./YMapControl"; | ||
@@ -20,0 +20,0 @@ export { YMapCollection } from "./YMapCollection"; |
@@ -1,2 +0,2 @@ | ||
import type { BehaviorType, LngLat, MapMode, Margin, PixelCoordinates, Projection, ReadonlyLngLat, LngLatBounds, ZoomRange, ZoomRounding, WorldOptions, ZoomStrategy, EasingFunctionDescription } from "../../common/types"; | ||
import type { BehaviorType, LngLat, MapMode, Margin, PixelCoordinates, Projection, ReadonlyLngLat, LngLatBounds, ZoomRange, ZoomRounding, WorldOptions, ZoomStrategy, EasingFunctionDescription, TiltRange } from "../../common/types"; | ||
import type { YMapEntity } from "../YMapEnities"; | ||
@@ -236,2 +236,3 @@ import { GenericRootEntity } from "../Entities"; | ||
get zoomRange(): Readonly<ZoomRange>; | ||
get tiltRange(): Readonly<TiltRange>; | ||
/** | ||
@@ -238,0 +239,0 @@ * getter for {@link YMapProps}.projection prop |
@@ -0,9 +1,20 @@ | ||
import { Context } from "../Entities"; | ||
import { YMapEntity, YMapGroupEntity } from "../YMapEnities"; | ||
type VerlicalPosition = "top" | "bottom"; | ||
type VerticalPosition = "top" | "bottom"; | ||
type ComputedVerticalPosition = "top" | "center" | "bottom"; | ||
type HorizontalPosition = "left" | "right"; | ||
type ComputedHorizontalPosition = "left" | "center" | "right"; | ||
type Orientation = "horizontal" | "vertical"; | ||
export type YMapControlContext = { | ||
position: [ | ||
ComputedVerticalPosition, | ||
ComputedHorizontalPosition, | ||
Orientation | ||
]; | ||
}; | ||
export declare const ControlContext: Context<YMapControlContext>; | ||
/** | ||
* Describes controls position. | ||
*/ | ||
type Position = VerlicalPosition | HorizontalPosition | `${VerlicalPosition} ${HorizontalPosition}` | `${HorizontalPosition} ${VerlicalPosition}`; | ||
type Position = VerticalPosition | HorizontalPosition | `${VerticalPosition} ${HorizontalPosition}` | `${HorizontalPosition} ${VerticalPosition}`; | ||
/** | ||
@@ -10,0 +21,0 @@ * YMapControls props |
@@ -55,2 +55,3 @@ import type { DrawingStyle, GenericGeometry, LngLat, HideOutsideRule } from "../../common/types"; | ||
private _defaultPropsId?; | ||
get id(): string; | ||
constructor(props: YMapFeatureProps); | ||
@@ -57,0 +58,0 @@ get properties(): Record<string, unknown> | undefined; |
@@ -7,3 +7,4 @@ import "../import"; | ||
(pkg: "@yandex/ymaps3-vuefy"): Promise<typeof import("./vuefy")>; | ||
(pkg: "@yandex/ymaps3-analytics"): Promise<typeof import("./analytics")>; | ||
} | ||
} |
{ | ||
"name": "@yandex/ymaps3-types", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "Types for ymaps3 maps library", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -61,4 +61,4 @@ import type { YMapEntity } from "../../.."; | ||
maxZoom?: number | undefined; | ||
tickTimeout?: number | undefined; | ||
method: IClusterMethod; | ||
tickTimeout?: number | undefined; | ||
onRender?: ((clusters: ClustererObject[]) => false | void) | undefined; | ||
@@ -70,4 +70,4 @@ marker: (feature: Feature) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
maxZoom?: number | undefined; | ||
tickTimeout?: number | undefined; | ||
method: IClusterMethod; | ||
tickTimeout?: number | undefined; | ||
onRender?: ((clusters: ClustererObject[]) => false | void) | undefined; | ||
@@ -91,3 +91,4 @@ marker: (feature: Feature) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
/** | ||
* Compare feature coordinates with bounds | ||
* Compare feature coordinates with bounds. | ||
* Visible in x2 bounds. | ||
* | ||
@@ -94,0 +95,0 @@ * @param feature |
import type { EasingFunctionDescription } from "../../../common/types"; | ||
import type { YMapControlCommonButton } from "../../../imperative/YMapControl"; | ||
import type { YMapListener } from "../../../imperative/YMapListener"; | ||
import type { DomDetach } from "../../../imperative"; | ||
import type { CustomVuefyOptions } from "../../../modules/vuefy"; | ||
@@ -31,22 +28,13 @@ /** | ||
*/ | ||
declare class YMapZoomControl extends ymaps3.YMapGroupEntity<YMapZoomControlProps> { | ||
declare class YMapZoomControl extends ymaps3.YMapComplexEntity<YMapZoomControlProps> { | ||
static [ymaps3.optionsKeyVuefy]: CustomVuefyOptions<YMapZoomControl>; | ||
static defaultProps: Readonly<{ | ||
duration: 200; | ||
}>; | ||
static [ymaps3.optionsKeyVuefy]: CustomVuefyOptions<YMapZoomControl>; | ||
protected _zoomIn: YMapControlCommonButton; | ||
protected _zoomOut: YMapControlCommonButton; | ||
protected _listener: YMapListener; | ||
private _currentZoom; | ||
protected _detachDom?: DomDetach; | ||
protected _element?: HTMLElement; | ||
private _unwatchThemeContext?; | ||
constructor(props: YMapZoomControlProps); | ||
private _onMapUpdate; | ||
private _changeZoom; | ||
private _control; | ||
private _zoom; | ||
protected _onAttach(): void; | ||
protected _onUpdate(props: YMapZoomControlProps): void; | ||
protected _onDetach(): void; | ||
protected _onUpdate(): void; | ||
private _updateTheme; | ||
} | ||
export { YMapZoomControl, YMapZoomControlProps }; |
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
185195
183
4699