Manipulates a svg to be displayed on the webpage. E.g. can hide or show elements, change the color of the svg ...

Constructors

  • Parameters

    • svg: string | SVGElement

      {string | SVGElement}

    • generalPrepare: boolean = true

      {boolean} execute the generalPrepare function

    Returns SvgMagician

Properties

currentStrokeColor: string = colors.definitions.keyDark
element: SVGElement

Accessors

  • get copy(): Node

    Returns Node

Methods

  • Parameters

    • from: any
    • to: any

    Returns void

  • Parameters

    • toHide: any

    Returns SvgMagician

  • Parameters

    • selector: any

    Returns SvgMagician

  • Parameters

    • color: any

    Returns SvgMagician

  • Parameters

    • fontSize: int

      {int}

    Returns SvgMagician

  • Parameters

    • width: int

      {int} sets the width in % from 0 to 100

    Returns SvgMagician

  • Parameters

    • content: any

    Returns void