GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — EdgeMarkerRegistryInterface | @maxgraph/core

  • EdgeMarkerRegistryInterface

Interface EdgeMarkerRegistryInterface

The definition of a registry that stores the MarkerFactoryFunctions and their configuration.

Since

0.20.0

interface EdgeMarkerRegistryInterface {
    add(name: string, value: MarkerFactoryFunction): void;
    createMarker(
        canvas: AbstractCanvas2D,
        shape: Shape,
        type: StyleArrowValue,
        pe: Point,
        unitX: number,
        unitY: number,
        size: number,
        source: boolean,
        sw: number,
        filled: boolean,
    ): MarkerFunction | null;
    get(name: string | null | undefined): MarkerFactoryFunction | null;
    getName(value: MarkerFactoryFunction | null): string | null;
}

Hierarchy (View Summary)

  • Registry<MarkerFactoryFunction>
    • EdgeMarkerRegistryInterface
  • Defined in types.ts:1719
Index

Methods

add createMarker get getName

Methods

add

  • add(name: string, value: MarkerFactoryFunction): void

    Parameters

    • name: string
    • value: MarkerFactoryFunction

    Returns void

    Inherited from Registry.add

    • Defined in types.ts:1604

createMarker

  • createMarker(
        canvas: AbstractCanvas2D,
        shape: Shape,
        type: StyleArrowValue,
        pe: Point,
        unitX: number,
        unitY: number,
        size: number,
        source: boolean,
        sw: number,
        filled: boolean,
    ): MarkerFunction | null

    Returns a MarkerFunction to paint the given marker.

    The type parameter is used to retrieve the correct MarkerFactoryFunction from the registry which is then used to create the MarkerFunction.

    If none is found, null is returned.

    Parameters

    • canvas: AbstractCanvas2D
    • shape: Shape
    • type: StyleArrowValue
    • pe: Point
    • unitX: number
    • unitY: number
    • size: number
    • source: boolean
    • sw: number
    • filled: boolean

    Returns MarkerFunction | null

    • Defined in types.ts:1727

get

  • get(name: string | null | undefined): MarkerFactoryFunction | null

    Parameters

    • name: string | null | undefined

    Returns MarkerFactoryFunction | null

    Inherited from Registry.get

    • Defined in types.ts:1606

getName

  • getName(value: MarkerFactoryFunction | null): string | null

    Parameters

    • value: MarkerFactoryFunction | null

    Returns string | null

    Inherited from Registry.getName

    • Defined in types.ts:1608

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Methods
addcreateMarkergetgetName
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.