layout: default title: DragEvent parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Events

DragEvent Class

Result of the view.on(‘drag’) event.

public class DragEvent : dymaptic.GeoBlazor.Core.Events.JsEvent,
System.IEquatable<dymaptic.GeoBlazor.Core.Events.DragEvent>

Inheritance System.Object 🡒 JsEvent 🡒 DragEvent

Implements System.IEquatable<DragEvent>

Constructors

DragEvent(string, Nullable, Nullable, DragAction, double, double, Point, int, int, double, double, double, DomPointerEvent, Nullable) Constructor

Result of the view.on(‘drag’) event.

public DragEvent(string Type, System.Nullable<int> EventId, System.Nullable<bool> Cancelable, dymaptic.GeoBlazor.Core.Events.DragAction Action, double X, double Y, dymaptic.GeoBlazor.Core.Components.Geometries.Point Origin, int Button, int Buttons, double Radius, double Angle, double Timestamp, dymaptic.GeoBlazor.Core.Events.DomPointerEvent Native, System.Nullable<dymaptic.GeoBlazor.Core.Events.PointerType> PointerType);

Parameters

Type System.String

The event type.

EventId System.Nullable<System.Int32>

The unique Id of the event.

Cancelable System.Nullable<System.Boolean>

Whether the event can be cancelled once begun.

Action DragAction

The DragAction type of the event callback.

X System.Double

The horizontal screen coordinate of the pointer on the view.

Y System.Double

The vertical screen coordinate of the pointer on the view.

Origin Point

The starting point of the drag event.

Button System.Int32

Indicates which mouse button was clicked.

Buttons System.Int32

Indicates the current mouse button state. 0 = left click (or touch), 1 = middle click, 2 = right click.

Radius System.Double

The radius of the drag.

Angle System.Double

The angle of the drag.

Timestamp System.Double

Time stamp (in milliseconds) at which the event was emitted.

Native DomPointerEvent

A standard DOM Pointer Event

PointerType System.Nullable<PointerType>

Indicates the pointer type.

Properties

DragEvent.Action Property

The DragAction type of the event callback.

public dymaptic.GeoBlazor.Core.Events.DragAction Action { get; set; }

Property Value

DragAction

DragEvent.Angle Property

The angle of the drag.

public double Angle { get; set; }

Property Value

System.Double

DragEvent.Button Property

Indicates which mouse button was clicked.

public int Button { get; set; }

Property Value

System.Int32

DragEvent.Buttons Property

Indicates the current mouse button state. 0 = left click (or touch), 1 = middle click, 2 = right click.

public int Buttons { get; set; }

Property Value

System.Int32

DragEvent.Origin Property

The starting point of the drag event.

public dymaptic.GeoBlazor.Core.Components.Geometries.Point Origin { get; set; }

Property Value

Point

DragEvent.Radius Property

The radius of the drag.

public double Radius { get; set; }

Property Value

System.Double

DragEvent.X Property

The horizontal screen coordinate of the pointer on the view.

public double X { get; set; }

Property Value

System.Double

DragEvent.Y Property

The vertical screen coordinate of the pointer on the view.

public double Y { get; set; }

Property Value

System.Double