Class LGraphCanvas_Rendering

Implemented by

Constructors

Properties

link_bounding: Float32Array = ...
margin_area: Float32Array = ...
temp: Float32Array = ...
tempA: Vector2 = ...
tempB: Vector2 = ...
temp_vec2: Float32Array = ...
tmp_area: Float32Array = ...

Methods

  • renders the whole canvas content, by rendering in two separated canvas, one containing the background grid and the connections, and one containing the nodes)

    Parameters

    • this: LGraphCanvas
    • forceFG: boolean = false
    • forceBG: boolean = false

    Returns void

  • Parameters

    • this: LGraphCanvas
    • x: number
    • y: number
    • w: number
    • h: number
    • Optional text: string
    • bgcolor: string = LiteGraph.NODE_DEFAULT_COLOR
    • hovercolor: string = "#555"
    • textcolor: string = LiteGraph.NODE_TEXT_COLOR
    • ignore_readonly: boolean = false

    Returns boolean

  • draws a link between two points

    Parameters

    • this: LGraphCanvas
    • ctx: CanvasRenderingContext2D
    • a: Vector2

      start pos

    • b: Vector2

      end pos

    • link: LLink

      the link object with all the link info

    • skipBorder: boolean

      ignore the shadow of the link

    • flow: boolean

      show flow animation (for events)

    • Optional color: string

      the color for the link

    • Optional startDir: Dir

      the direction enum

    • Optional endDir: Dir

      the direction enum

    • Optional numSublines: number

      number of sublines (useful to represent vec3 or rgb)

    Returns void