@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
33 lines (32 loc) • 1.29 kB
TypeScript
interface VectorObjectsInteractiveArea {
/** Additional interactive field around the icon, in px. */
field?: number;
/** Minimal size of the side of the icons interactive area. */
minSize?: number;
}
interface VectorModelsAnimationDescription {
duration: number;
}
type RasterLayerOptions = Record<string, unknown> & {
opacity?: number;
/**
* Show all tiles simultaneously on a first display
* However if map state changed original logic is applied
*/
awaitAllTilesOnFirstDisplay?: boolean;
/**
* Controls animation duration of the revealing newly downloaded tiles
* Values less than or equal to zero turn off animation
*/
tileRevealDuration?: number;
};
type VectorLayerOptions = Record<string, unknown> & {
modelsAppearingAnimation?: VectorModelsAnimationDescription;
iconsInteractiveArea?: VectorObjectsInteractiveArea;
/** @deprecated Use layer.grouppedWith instead */
parentLayerId?: string;
opacity?: number;
/** Isolates colliding of the layer's objects, not colliding them with other layers' objects */
isolateObjectsColliding?: boolean;
};
export { RasterLayerOptions, VectorLayerOptions, VectorObjectsInteractiveArea, VectorModelsAnimationDescription };