(
points?: number[][],
cursor?: string,
onDrift?: (x: number, y: number) => void,
onDragEnd?: () => void
)
| 928 | } |
| 929 | |
| 930 | function createPolygon( |
| 931 | points?: number[][], |
| 932 | cursor?: string, |
| 933 | onDrift?: (x: number, y: number) => void, |
| 934 | onDragEnd?: () => void |
| 935 | ) { |
| 936 | return new graphic.Polygon({ |
| 937 | shape: {points: points}, |
| 938 | draggable: !!onDrift, |
| 939 | cursor: cursor, |
| 940 | drift: onDrift, |
| 941 | onmousemove(e) { |
| 942 | // For mobile device, prevent screen slider on the button. |
| 943 | eventTool.stop(e.event); |
| 944 | }, |
| 945 | ondragend: onDragEnd |
| 946 | }); |
| 947 | } |
| 948 | |
| 949 | function getHalfHoverLinkSize(visualMapModel: ContinuousModel, dataExtent: number[], sizeExtent: number[]) { |
| 950 | let halfHoverLinkSize = HOVER_LINK_SIZE / 2; |
no outgoing calls
no test coverage detected
searching dependent graphs…