Skip to content

Commit

Permalink
Fix PointDrawAction events (DefinitelyTyped#20372)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasa authored and weswigham committed Oct 10, 2017
1 parent 39a7427 commit fee1e04
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions types/arcgis-js-api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8236,6 +8236,11 @@ declare namespace __esri {
view: MapView;

complete(): void;

on(name: "cursor-update", eventHandler: PointDrawActionCursorUpdateEventHandler): IHandle;
on(name: "cursor-update", modifiers: string[], eventHandler: PointDrawActionCursorUpdateEventHandler): IHandle;
on(name: "draw-complete", eventHandler: PointDrawActionDrawCompleteEventHandler): IHandle;
on(name: "draw-complete", modifiers: string[], eventHandler: PointDrawActionDrawCompleteEventHandler): IHandle;
}

interface PointDrawActionConstructor {
Expand All @@ -8248,6 +8253,20 @@ declare namespace __esri {
view?: MapViewProperties;
}

export interface PointDrawActionCursorUpdateEvent {
coordinates: number[];
defaultPrevented: boolean;
preventDefault: Function;
type: string;
}

export interface PointDrawActionDrawCompleteEvent {
coordinates: number[];
defaultPrevented: boolean;
preventDefault: Function;
type: string;
}

interface PolygonDrawAction extends Accessor, Evented {
vertices: number[][];
view: MapView;
Expand Down Expand Up @@ -11033,6 +11052,10 @@ declare namespace __esri {

export type PointCloudLayerLayerviewDestroyEventHandler = (event: PointCloudLayerLayerviewDestroyEvent) => void;

export type PointDrawActionCursorUpdateEventHandler = (event: PointDrawActionCursorUpdateEvent) => void;

export type PointDrawActionDrawCompleteEventHandler = (event: PointDrawActionDrawCompleteEvent) => void;

export type PolygonDrawActionCursorUpdateEventHandler = (event: PolygonDrawActionCursorUpdateEvent) => void;

export type PolygonDrawActionDrawCompleteEventHandler = (event: PolygonDrawActionDrawCompleteEvent) => void;
Expand Down

0 comments on commit fee1e04

Please sign in to comment.