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 — SegmentConnector | @maxgraph/core

  • EdgeStyle
  • SegmentConnector

Variable SegmentConnectorConst

SegmentConnector: EdgeStyleFunction = ...

Implements an orthogonal edge style. Use EdgeSegmentHandler as an interactive handler for this style.

This EdgeStyle is registered under segmentEdgeStyle in EdgeStyleRegistry when using Graph or calling registerDefaultEdgeStyles.

To register it on its own (e.g. with BaseGraph), prefer the dedicated registerSegmentEdgeStyle helper, which sets the correct metadata for you.

IMPORTANT: When registering it manually in EdgeStyleRegistry, the following metadata must be used:

  • handlerKind: 'segment'
  • isOrthogonal: true

Param: state

CellState that represents the edge to be updated.

Param: sourceScaled

CellState that represents the source terminal.

Param: targetScaled

CellState that represents the target terminal.

Param: controlHints

List of relative control points.

Param: result

Array of Point that represent the actual points of the edge.

  • Defined in view/style/edge/Segment.ts:45

Settings

Member Visibility
  • Protected
  • Inherited
Theme
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.