@avolutions/canvas-painter
Version:
CanvasPainter.js is a simple yet powerful JavaScript library for drawing basic shapes (rectangles, circles, etc.) on HTML5 Canvas with ease. Perfect for creating 2D graphics in your web projects.
135 lines (134 loc) • 3.45 kB
JavaScript
/**
* Enum representing possible CSS cursor values.
*/
export var Cursor;
(function (Cursor) {
/**
* Indicates an alias or shortcut is to be created.
*/
Cursor["Alias"] = "alias";
/**
* Indicates that scrolling in any direction is possible.
*/
Cursor["AllScroll"] = "all-scroll";
/**
* The browser determines the cursor based on the context.
*/
Cursor["Auto"] = "auto";
/**
* An available cell (usually for table or spreadsheet navigation).
*/
Cursor["Cell"] = "cell";
/**
* Indicates that an edge is to be moved, changing the column width.
*/
Cursor["ColResize"] = "col-resize";
/**
* A context menu is available.
*/
Cursor["ContextMenu"] = "context-menu";
/**
* Indicates that something can be copied.
*/
Cursor["Copy"] = "copy";
/**
* The default cursor (usually an arrow).
*/
Cursor["Default"] = "default";
/**
* The east edge is to be moved.
*/
Cursor["EResize"] = "e-resize";
/**
* Both the east and west edges are to be moved.
*/
Cursor["EwResize"] = "ew-resize";
/**
* An item is being grabbed.
*/
Cursor["Grab"] = "grab";
/**
* An item is being grabbed and dragged.
*/
Cursor["Grabbing"] = "grabbing";
/**
* A help cursor, usually rendered as a question mark.
*/
Cursor["Help"] = "help";
/**
* Indicates that something is not allowed to be done.
*/
Cursor["NotAllowed"] = "not-allowed";
/**
* The item may not be dropped at the current location.
*/
Cursor["NoDrop"] = "no-drop";
/**
* No cursor is rendered.
*/
Cursor["None"] = "none";
/**
* The north edge is to be moved.
*/
Cursor["NResize"] = "n-resize";
/**
* The northeast edge is to be moved.
*/
Cursor["NeResize"] = "ne-resize";
/**
* Both the northeast and southwest edges are to be moved.
*/
Cursor["NeswResize"] = "nesw-resize";
/**
* The northwest edge is to be moved.
*/
Cursor["NwResize"] = "nw-resize";
/**
* Both the northwest and southeast edges are to be moved.
*/
Cursor["NwseResize"] = "nwse-resize";
/**
* Something is to be moved.
*/
Cursor["Move"] = "move";
/**
* The cursor is a pointer that indicates a link. Typically an image of a pointing hand.
*/
Cursor["Pointer"] = "pointer";
/**
* The south edge is to be moved.
*/
Cursor["SResize"] = "s-resize";
/**
* The southeast edge is to be moved.
*/
Cursor["SeResize"] = "se-resize";
/**
* The southwest edge is to be moved.
*/
Cursor["SwResize"] = "sw-resize";
/**
* Text can be selected (usually rendered as an I-bar).
*/
Cursor["Text"] = "text";
/**
* Indicates vertical-text, such as for Asian languages.
*/
Cursor["VerticalText"] = "vertical-text";
/**
* The program is busy (often rendered as a spinning wheel or hourglass).
*/
Cursor["Wait"] = "wait";
/**
* The west edge is to be moved.
*/
Cursor["WResize"] = "w-resize";
/**
* The cursor indicates that zooming in is possible.
*/
Cursor["ZoomIn"] = "zoom-in";
/**
* The cursor indicates that zooming out is possible.
*/
Cursor["ZoomOut"] = "zoom-out";
})(Cursor || (Cursor = {}));