API for rete-minimap-plugin package - Rete.js

API for rete-minimap-plugin package

MinimapExtra

index.ts

Extra signal types for minimap rendering

ts
type MinimapExtra = RenderSignal<
  "minimap",
  {
    nodes: Rect[];
    ratio: number;
    viewport: Rect;
    point: unknown;
    start: unknown;
    translate: unknown;
  }
>;

MinimapPlugin

index.ts

Minimap plugin, triggers rendering of the minimap

ts
class MinimapPlugin<Schemes extends ExpectedScheme>
ParameterExtendsDescription
SchemesExpectedScheme

Extends Scope<never, Area2D | MinimapExtra, Root>

Emits render

Listens nodetranslated nodecreated noderemoved translated resized noderesized zoomed

constructor

index.ts

ts
constructor(props: { boundViewport: boolean, minDistance: number, ratio: number }): MinimapPlugin<Schemes>
ParameterTypeDescription
props{ boundViewport: boolean, minDistance: number, ratio: number }Plugin properties

Returns MinimapPlugin<Schemes>