/** Node slot type - input or output */ export declare enum NodeSlotType { INPUT = 1, OUTPUT = 2 } /** Shape that an object will render as - used by nodes and slots */ export declare enum RenderShape { /** Rectangle with square corners */ BOX = 1, /** Rounded rectangle */ ROUND = 2, /** Circle is circle */ CIRCLE = 3, /** Two rounded corners: top left & bottom right */ CARD = 4, /** Slot shape: Arrow */ ARROW = 5, /** Slot shape: Grid */ GRID = 6, /** Slot shape: Hollow circle */ HollowCircle = 7 } /** Bit flags used to indicate what the pointer is currently hovering over. */ export declare enum CanvasItem { /** No items / none */ Nothing = 0, /** At least one node */ Node = 1, /** At least one group */ Group = 2, /** A reroute (not its path) */ Reroute = 4, /** The path of a link */ Link = 8, /** A reroute slot */ RerouteSlot = 32, /** A subgraph input or output node */ SubgraphIoNode = 64, /** A subgraph input or output slot */ SubgraphIoSlot = 128 } /** The direction that a link point will flow towards - e.g. horizontal outputs are right by default */ export declare enum LinkDirection { NONE = 0, UP = 1, DOWN = 2, LEFT = 3, RIGHT = 4, CENTER = 5 } /** The path calculation that links follow */ export declare enum LinkRenderType { HIDDEN_LINK = -1, /** Juts out from the input & output a little @see LinkDirection, then a straight line between them */ STRAIGHT_LINK = 0, /** 90° angles, clean and box-like */ LINEAR_LINK = 1, /** Smooth curved links - default */ SPLINE_LINK = 2 } /** The marker in the middle of a link */ export declare enum LinkMarkerShape { /** Do not display markers */ None = 0, /** Circles (default) */ Circle = 1, /** Directional arrows */ Arrow = 2 } export declare enum TitleMode { NORMAL_TITLE = 0, NO_TITLE = 1, TRANSPARENT_TITLE = 2, AUTOHIDE_TITLE = 3 } export declare enum LGraphEventMode { ALWAYS = 0, ON_EVENT = 1, NEVER = 2, ON_TRIGGER = 3, BYPASS = 4 } export declare enum EaseFunction { LINEAR = "linear", EASE_IN_QUAD = "easeInQuad", EASE_OUT_QUAD = "easeOutQuad", EASE_IN_OUT_QUAD = "easeInOutQuad" } /** Bit flags used to indicate what the pointer is currently hovering over. */ export declare enum Alignment { /** No items / none */ None = 0, /** Top */ Top = 1, /** Bottom */ Bottom = 2, /** Vertical middle */ Middle = 4, /** Left */ Left = 8, /** Right */ Right = 16, /** Horizontal centre */ Centre = 32, /** Top left */ TopLeft = 9, /** Top side, horizontally centred */ TopCentre = 33, /** Top right */ TopRight = 17, /** Left side, vertically centred */ MidLeft = 12, /** Middle centre */ MidCentre = 36, /** Right side, vertically centred */ MidRight = 20, /** Bottom left */ BottomLeft = 10, /** Bottom side, horizontally centred */ BottomCentre = 34, /** Bottom right */ BottomRight = 18 } /** * Checks if the bitwise {@link flag} is set in the {@link flagSet}. * @param flagSet The unknown set of flags - will be checked for the presence of {@link flag} * @param flag The flag to check for * @returns `true` if the flag is set, `false` otherwise. */ export declare function hasFlag(flagSet: number, flag: number): boolean;