@visactor/react-vrender
Version:
## Description
55 lines (54 loc) • 1.54 kB
TypeScript
import type { VRenderEvents, Instance, Props } from './types';
export declare const REACT_TO_CANOPUS_EVENTS: {
onPointerDown: string;
onPointerUp: string;
onPointerUpOutside: string;
onPointerTap: string;
onPointerOver: string;
onPointerMove: string;
onPointerEnter: string;
onPointerLeave: string;
onPointerOut: string;
onMouseDown: string;
onMouseUp: string;
onMouseUpOutside: string;
onMouseMove: string;
onMouseOver: string;
onMouseOut: string;
onMouseEnter: string;
onMouseLeave: string;
onPinch: string;
onPinchStart: string;
onPinchEnd: string;
onPan: string;
onPanStart: string;
onPanEnd: string;
onDrag: string;
onDragStart: string;
onDragEnter: string;
onDragLeave: string;
onDragOver: string;
onDragEnd: string;
onRightDown: string;
onRightUp: string;
onRightUpOutside: string;
onTouchStart: string;
onTouchEnd: string;
onTouchEndOutside: string;
onTouchMove: string;
onTouchCancel: string;
onPress: string;
onPressUp: string;
onPressEnd: string;
onSwipe: string;
onDrop: string;
onWeel: string;
onClick: string;
onDblClick: string;
};
export declare const splitProps: (props: Props) => {
graphicProps: Partial<Props>;
eventProps: VRenderEvents;
};
export declare const bindGraphicEvent: (eventProps: VRenderEvents, instance: Instance) => void;
export declare const updateProps: (instance: Instance, newProps: Props, oldProps?: Props) => void;