logo

X6

  • Tutorials
  • API
  • Examples
  • Q&A
  • Change Log
  • XFlow
  • Productsantv logo arrow
  • 2.x
  • start
    • Introduction
    • Quick Start
  • component
    • XFlowGraph Canvas
    • Background
    • Grid
    • Clipboard Copy and Paste
    • History Undo Redo
    • Minimap
    • Snapline Alignment Lines
    • Transform
    • Control Controller
  • Hook
    • useGraphInstance
    • useGraphStore
    • useGraphEvent
    • useDnd
    • useClipboard
    • useExport
    • useHistory
    • useKeyboard
  • Store

Minimap

Previous
History Undo Redo
Next
Snapline Alignment Lines

Resource

Ant Design
Galacea Effects
Umi-React Application Framework
Dumi-Component doc generator
ahooks-React Hooks Library

Community

Ant Financial Experience Tech
seeconfSEE Conf-Experience Tech Conference

Help

GitHub
StackOverflow

more productsMore Productions

Ant DesignAnt Design-Enterprise UI design language
yuqueYuque-Knowledge creation and Sharing tool
EggEgg-Enterprise-class Node development framework
kitchenKitchen-Sketch Tool set
GalaceanGalacean-Interactive solution
xtechLiven Experience technology
© Copyright 2025 Ant Group Co., Ltd..备案号:京ICP备15032932号-38

Loading...

Canvas Minimap

Basic Usage

Note

The <Minimap /> component can only be used properly within the <XFlow /> component.

To implement a mini-map feature for the canvas quickly, import the Minimap component:

<XFlow>
...
<Minimap simple />
</XFlow>

API

Minimap

Parameter NameDescriptionTypeDefault Value
styleSemantic structure styleCSSProperties-
classNamesSemantic structure classstring-
simpleWhether to display a simple viewbooleanfalse
simpleNodeBackgroundBackground color of nodes in simple viewstring-
minScaleMinimum scale rationumber0.01
maxScaleMaximum scale rationumber16
widthWidth of the mini-mapnumber300
heightHeight of the mini-mapnumber200
paddingPadding margin of the mini-map containernumber10
scalableWhether it is scalablebooleantrue
graphOptionsOptions for creating the mini-map GraphGraph.Optionsnull