default: {
    editor: ((...params) => Editor);
    view: ((...params) => Editor);
}

Type declaration

  • editor: ((...params) => Editor)
      • (...params): Editor
      • Parameters

        • Rest ...params: [svgEl: string | SVGElement, options: Partial<EditorOptions>, style: Partial<{
              component: Style;
              componentHover: {
                  off: Style;
                  on: Style;
              };
              componentSelect: {
                  off: Style;
                  on: Style;
              };
              handle: Style;
              handleHover: Style;
          }>]

        Returns Editor

  • view: ((...params) => Editor)
      • (...params): Editor
      • Parameters

        • Rest ...params: [svgEl: string | SVGElement, options: Partial<EditorOptions>, style: Partial<{
              component: Style;
              componentHover: {
                  off: Style;
                  on: Style;
              };
              componentSelect: {
                  off: Style;
                  on: Style;
              };
              handle: Style;
              handleHover: Style;
          }>]

        Returns Editor

Example

import imagemapper from '@overlapmedia/imagemapper';
const editor = imagemapper.editor('editor-id');
editor.polygon();

Example

import { editor, view } from '@overlapmedia/imagemapper';
const myEditor = editor('editor-id');
myEditor.polygon();

Generated using TypeDoc