@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
30 lines (29 loc) • 1.1 kB
TypeScript
import { YMapComplexEntity, YMapEntity } from "../../../imperative/YMapEnities";
import type { YMapHotspot } from "../../../imperative/YMapHotspot";
import type { CustomVuefyOptions } from "../../vuefy";
type YMapCursorProps = {
/** Layer to follow */
layer?: string;
/** Cursor to set */
cursor?: string;
/** Function to control active cursor state */
isActive?: (object?: YMapEntity<unknown> | YMapHotspot) => boolean;
};
declare const defaultProps: Readonly<{
layer: "any";
cursor: "pointer";
isActive: (object: YMapEntity<unknown> | YMapHotspot) => boolean;
}>;
type DefaultProps = typeof defaultProps;
declare class YMapCursor extends YMapComplexEntity<YMapCursorProps, DefaultProps> {
static defaultProps: Readonly<{
layer: "any";
cursor: "pointer";
isActive: (object: YMapEntity<unknown, {}> | YMapHotspot) => boolean;
}>;
static [ymaps3.optionsKeyVuefy]: CustomVuefyOptions<YMapCursor>;
constructor(props: YMapCursorProps);
private _onMouseMove;
private _onMouseLeave;
}
export { YMapCursor, YMapCursorProps };