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

  • EdgeStyle
  • EntityRelation

Variable EntityRelationConst

EntityRelation: EdgeStyleFunction = ...

Implements an entity relation style for edges (as used in database schema diagrams).

At the time the function is called, the result array contains a placeholder (null) for the first absolute point, that is, the point where the edge and source terminal are connected.

The implementation of the style then adds all intermediate waypoints except for the last point, that is, the connection point between the edge and the target terminal.

The first and the last point in the result array are then replaced with Point that take into account the terminal's perimeter and next point on the edge.

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

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

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

  • allowIntermediateHandles: false
  • handlerKind: 'default' or unset
  • isOrthogonal: true

Param: state

CellState that represents the edge to be updated.

Param: source

CellState that represents the source terminal.

Param: target

CellState that represents the target terminal.

Param: _points

Param: result

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

  • Defined in view/style/edge/EntityRelation.ts:53

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.