dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Events
DragEvent Class
Result of the view.on(‘drag’) event.
public record 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.Enums.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.Enums.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.
The horizontal screen coordinate of the pointer on the view.
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.Enums.DragAction Action { get; init; }
Property Value
DragEvent.Angle Property
The angle of the drag.
public double Angle { get; init; }
Property Value
DragEvent.Button Property
Indicates which mouse button was clicked.
public int Button { get; init; }
Property Value
DragEvent.Buttons Property
Indicates the current mouse button state. 0 = left click (or touch), 1 = middle click, 2 = right click.
public int Buttons { get; init; }
Property Value
DragEvent.Origin Property
The starting point of the drag event.
public dymaptic.GeoBlazor.Core.Components.Geometries.Point Origin { get; init; }
Property Value
DragEvent.Radius Property
The radius of the drag.
public double Radius { get; init; }
Property Value
DragEvent.X Property
The horizontal screen coordinate of the pointer on the view.
public double X { get; init; }
Property Value
DragEvent.Y Property
The vertical screen coordinate of the pointer on the view.
public double Y { get; init; }