Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "exporters/svg"

Index

Type aliases

Functions

Type aliases

SVGExporter

SVGExporter: Exporter<object>

Functions

createSvgExporter

  • createSvgExporter(store: Store<ModelState>, onChange?: undefined | function): SVGExporter
  • createSvgExporter<T>(store: Store<T>, select: function, onChange?: undefined | function): SVGExporter
  • Instantiates an exporter which can transform the internal state into an SVG image

    Parameters

    • store: Store<ModelState>

      The store to listen for changes on and retrieve state from

    • Optional onChange: undefined | function

      The optional callback to execute whenever state update is fired

    Returns SVGExporter

  • Instantiates an exporter which can transform the internal state into an SVG image

    Type parameters

    • T

    Parameters

    • store: Store<T>

      The store to listen for changes on and retrieve state from

    • select: function

      A function which, given a state of type T, selects the ModelState fragement of that state

    • Optional onChange: undefined | function

      The optional callback to execute whenever state update is fired

    Returns SVGExporter

Generated using TypeDoc