@yandex/ymaps3-types
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -141,2 +141,4 @@ import type { WorldCoordinates } from "./coordinates"; | ||
iconsOnlyTiles?: boolean; | ||
/** Milliseconds */ | ||
cameraIdleThrottling?: number; | ||
richModelDecoderWorkerUrl?: string; | ||
@@ -143,0 +145,0 @@ customization?: VectorCustomization; |
@@ -13,2 +13,6 @@ import type { GenericGeometry } from "./geojson"; | ||
} | ||
export { HotspotFeature, HotspotObject }; | ||
interface RawHotspotObject { | ||
type: 'raw-hotspot'; | ||
feature: HotspotFeature<LngLat>; | ||
} | ||
export { HotspotFeature, HotspotObject, RawHotspotObject }; |
@@ -7,3 +7,3 @@ import type { Matrix4 } from "./matrix"; | ||
import type { GenericProjection } from "./projection"; | ||
import type { PixelCoordinates } from "./coordinates"; | ||
import type { PixelCoordinates, WorldCoordinates } from "./coordinates"; | ||
interface WorldOffset { | ||
@@ -25,2 +25,6 @@ readonly left: number; | ||
render(props: RasterLayerImplementationRenderProps): void; | ||
findObjectInPosition?(coords: { | ||
readonly worldCoordinates: WorldCoordinates; | ||
readonly screenCoordinates: PixelCoordinates; | ||
}): unknown | undefined | null; | ||
} | ||
@@ -27,0 +31,0 @@ interface RasterLayerImplementationConstructorProps { |
@@ -29,2 +29,3 @@ type ContextWatcherFn = () => void; | ||
* class YMapSomeEntity extends GenericEntity<YMapSomeEntityProps, typeof defaultProps> { | ||
* static defaultProps = defaultProps; | ||
* public isAttached: boolean; | ||
@@ -54,2 +55,8 @@ * constructor(props: YMapSomeEntityProps) { | ||
/** | ||
* The method provides the default values for the properties of an Entity. | ||
* @param _props - Input props value for the Entity. | ||
* @returns Props with default values. | ||
*/ | ||
protected _getDefaultProps(_props: Props): DefaultProps | undefined; | ||
/** | ||
* Method for updating props of Entity. | ||
@@ -127,2 +134,3 @@ * @param changedProps - New props values. | ||
* class YMapSomeComplexEntity extends GenericComplexEntity<YMapSomeComplexEntityProps, typeof defaultProps> { | ||
* static defaultProps = defaultProps; | ||
* private _someEntity?: YMapSomeEntity; // YMapSomeEntity extends GenericEntity | ||
@@ -193,2 +201,3 @@ * protected _onAttach(): void { | ||
* class YMapSomeGroupEntity extends GenericGroupEntity<YMapSomeGroupEntityProps, typeof defaultProps> { | ||
* static defaultProps = defaultProps; | ||
* // ... | ||
@@ -222,2 +231,3 @@ * } | ||
* class YMapSomeEntity extends GenericEntity<YMapSomeEntityProps, typeof defaultProps, YMap> { | ||
* static defaultProps = defaultProps; | ||
* // ... | ||
@@ -224,0 +234,0 @@ * } |
@@ -16,2 +16,3 @@ import type { YMap } from "./YMap"; | ||
* class YMapSomeEntity extends YMapEntity<YMapSomeEntityProps, typeof defaultProps> { | ||
* static defaultProps = defaultProps; | ||
* public isAttached: boolean; | ||
@@ -49,2 +50,3 @@ * constructor(props: YMapSomeEntityProps) { | ||
* class YMapSomeComplexEntity extends YMapComplexEntity<YMapSomeComplexEntityProps, typeof defaultProps> { | ||
* static defaultProps = defaultProps; | ||
* private _someEntity?: YMapSomeEntity; // YMapSomeEntity extends GenericEntity | ||
@@ -78,2 +80,3 @@ * protected _onAttach(): void { | ||
* class YMapSomeGroupEntity extends YMapGroupEntity<YMapSomeGroupEntityProps, typeof defaultProps> { | ||
* static defaultProps = defaultProps; | ||
* // ... | ||
@@ -80,0 +83,0 @@ * } |
@@ -62,2 +62,3 @@ import type { DrawingStyle, GenericGeometry, LngLat, HideOutsideRule } from "../../common/types"; | ||
protected _onUpdate({ id, source }: Partial<YMapFeatureProps>): void; | ||
protected _getDefaultProps(): DefaultProps; | ||
private __onDragStart; | ||
@@ -64,0 +65,0 @@ private __onDragMove; |
@@ -7,2 +7,4 @@ import type { GenericGeometry, LngLat } from "../../common/types"; | ||
declare class YMapHotspot { | ||
private static _uid; | ||
readonly id: string; | ||
readonly geometry?: GenericGeometry<LngLat>; | ||
@@ -9,0 +11,0 @@ readonly properties: Record<string, unknown>; |
@@ -38,2 +38,3 @@ import type { RasterLayerOptions } from "../../common/types"; | ||
}>; | ||
protected _getDefaultProps(props: YMapLayerProps): DefaultProps; | ||
protected _onAttach(): void; | ||
@@ -40,0 +41,0 @@ protected _onDetach(): void; |
@@ -148,11 +148,2 @@ import type { HideOutsideRule, LngLat } from "../../common/types"; | ||
constructor(props: YMapMarkerProps, element?: HTMLElement); | ||
protected _getDefaultProps(): Readonly<{ | ||
draggable: false; | ||
mapFollowsOnDrag: false; | ||
blockEvents: false; | ||
blockBehaviors: false; | ||
hideOutsideViewport: false; | ||
zIndex: 0; | ||
source: "ymaps3x0-default-feature"; | ||
}>; | ||
private __feature; | ||
@@ -159,0 +150,0 @@ get properties(): Record<string, unknown> | undefined; |
{ | ||
"name": "@yandex/ymaps3-types", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "Types for ymaps3 maps library", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -28,3 +28,3 @@ import type { EasingFunctionDescription } from "../../../common/types"; | ||
*/ | ||
declare class YMapZoomControl extends ymaps3.YMapComplexEntity<YMapZoomControlProps> { | ||
declare class YMapZoomControl extends ymaps3.YMapComplexEntity<YMapZoomControlProps, DefaultProps> { | ||
static [ymaps3.optionsKeyVuefy]: CustomVuefyOptions<YMapZoomControl>; | ||
@@ -31,0 +31,0 @@ static defaultProps: Readonly<{ |
154476
3945