Fix PointDrawAction events (#20372)

This commit is contained in:
Dasa Paddock
2017-10-10 13:03:32 -07:00
committed by Wesley Wigham
parent 39a7427dee
commit fee1e044cf
+23
View File
@@ -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 {
@@ -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;
@@ -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;