mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Fix PointDrawAction events (#20372)
This commit is contained in:
committed by
Wesley Wigham
parent
39a7427dee
commit
fee1e044cf
Vendored
+23
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user