Hierarchy

  • default

Constructors

Properties

activeLine: InstanceLine
allLinkPoints: InstanceNodePoint[]
graph: Graph.default
hoverLinkPoint: InstanceNodePoint
lineG: SVGGElement
lines: Record<string, InstanceLine>
paper: SVGGElement
shapes: Record<string, LineRender>
tempLine: { data: VEditorLine; dom: SVGPathElement }

Type declaration

tempLineRender: { render: (() => SVGPathElement); renderPath: ((__namedParameters: Object, line: { data: VEditorLine; dom: SVGPathElement }) => void) } = ...

Type declaration

  • render: (() => SVGPathElement)
      • (): SVGPathElement
      • Returns SVGPathElement

  • renderPath: ((__namedParameters: Object, line: { data: VEditorLine; dom: SVGPathElement }) => void)
      • (__namedParameters: Object, line: { data: VEditorLine; dom: SVGPathElement }): void
      • Parameters

        • __namedParameters: Object
        • line: { data: VEditorLine; dom: SVGPathElement }

        Returns void

Methods

  • 检查是否生成新线

    Returns void

  • 删除线

    Parameters

    • data: string | VEditorLine
    • notEvent: boolean = false
    • byNode: boolean = false

    Returns void

  • 注册线

    Parameters

    • type: string
    • data: LineRender
    • extend: string = "default"

    Returns void

  • 重绘某个线

    Parameters

    • data: string | VEditorLine
    • rerenderShape: boolean = true

    Returns void

Generated using TypeDoc