rete-minimap-plugin
packageExtra signal types for minimap rendering
type MinimapExtra = RenderSignal<
"minimap",
{
nodes: Rect[];
ratio: number;
viewport: Rect;
point: unknown;
start: unknown;
translate: unknown;
}
>;
Minimap plugin, triggers rendering of the minimap
class MinimapPlugin<Schemes extends ExpectedScheme>
Parameter | Extends | Description |
---|---|---|
Schemes | ExpectedScheme |
Extends Scope<never, Area2D
Emits render
Listens nodetranslated
nodecreated
noderemoved
translated
resized
noderesized
zoomed
constructor(props: { boundViewport: boolean, minDistance: number, ratio: number }): MinimapPlugin<Schemes>
Parameter | Type | Description |
---|---|---|
props | { boundViewport: boolean, minDistance: number, ratio: number } | Plugin properties |
Returns MinimapPlugin<Schemes>