Class RoughJsRenderer

Hierarchy

Constructors

Properties

container: string | HTMLElement
containerNode: HTMLElement
rc: RoughSVG
svgNode: SVGSVGElement

Methods

  • This will embed all defs defined in the defs.html file. Specifically this is used to embed the base64 encoded font into the SVG so that the font always looks correct.

    Returns void

  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • strokeWidth: number
    • color: string
    • Optional classes: string | string[]

    Returns void

  • Parameters

    • x: number
    • y: number
    • size: number
    • strokeWidth: number
    • strokeColor: string
    • Optional fill: string
    • Optional classes: string | string[]
    • spikes: number = 5

    Returns GraphcisElement

  • Parameters

    • x: number
    • y: number
    • width: number
    • height: number
    • strokeWidth: number
    • strokeColor: string
    • Optional classes: string | string[]
    • Optional fill: string
    • Optional radius: number

    Returns GraphcisElement

  • Parameters

    • x: number
    • y: number
    • size: number
    • edges: number

    Returns string

  • Parameters

    • w: number
    • h: number
    • tlr: number
    • trr: number
    • brr: number
    • blr: number

    Returns string

Generated using TypeDoc