MCPcopy Index your code
hub / github.com/apache/echarts / createPolygon

Function createPolygon

src/component/visualMap/ContinuousView.ts:930–947  ·  view source on GitHub ↗
(
    points?: number[][],
    cursor?: string,
    onDrift?: (x: number, y: number) => void,
    onDragEnd?: () => void
)

Source from the content-addressed store, hash-verified

928}
929
930function 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
949function getHalfHoverLinkSize(visualMapModel: ContinuousModel, dataExtent: number[], sizeExtent: number[]) {
950 let halfHoverLinkSize = HOVER_LINK_SIZE / 2;

Callers 1

_renderBarMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…