export enum ItemSelectionType { NotSelected = 0, Selected, PrimarySelection } export enum Edges { None = 0, Left = 1, Right = 2, Top = 4, Bottom = 8, All = 15 } /** * Specifies identifiers * that indicate the type * of selection for a component or group of _components that are selected. */ export enum SelectionTypes { /** * A Normal selection. With this type of selection, the selection service responds * to the control and shift keys to support appending or toggling _components into the * selection as needed. */ Auto = 1, /** * A Replace selection. This causes the selection service to always replace the * current selection with the replacement. * @type {number} */ Replace = 2, /** * A Primary selection. * Happens when a user clicks on a component. If a component in the selection list is already * selected, it does not remove the existing selection, but promotes that component to be the * primary selection. * @type {number} */ Primary = 16, /** * A toggle selection. * This selection toggles the current selection with the provided selection. So, if * a component is already selected and is passed into SetSelectedComponents with a * selection type of Toggle, it will be unselected. * @type {number} */ Toggle = 32, /** * An Add selection. * This selection adds the selected _components to the current selection, * maintaining the current set of selected _components. * @type {number} */ Add = 64, /** * A Remove selection. * This selection removes the selected _components from the current selection, * maintaining the current set of selected _components. * @type {number} */ Remove = 128 } export enum MouseButtons { Left = 0, } export enum SelectionRules { None = 0, LeftSizeable = (1 << 0), RightSizeable = (1 << 1), TopSizeable = (1 << 2), BottomSizeable = (1 << 3), AllSizeable = (LeftSizeable|RightSizeable|TopSizeable|BottomSizeable), Moveable = (1 << 28), Visible = (1 << 30) } export enum SelectionBorderGlyphType { Top, Bottom, Left, Right, Body } export enum GrabHandleGlyphType { TopLeft, TopRight, BottomLeft, BottomRight, Top, Bottom, Left, Right } export enum SnapLineGlyphType { Standard, Margin, Padding, Baseline } export enum DragAction { Continue, Drop, Cancel } export enum BorderStatus { Locked, UnLocked, OverLapped, }