@@ -63,18 +63,18 @@ const lf = new LogicFlow({
6363
6464The ` miniMapOptions ` configuration is as follows:
6565
66- | Property Name | Type | Default Value | Required | Description |
67- | -------------- | ------ | ------------- | -------- | ---------------------------------------- |
68- | width | number | 150 | - | The width of the canvas in the MiniMap |
69- | height | number | 220 | - | The height of the canvas in the MiniMap |
70- | showEdge | boolean| false | - | Whether to render edges in the MiniMap |
71- | headerTitle | string | Navigation | - | The text content of the MiniMap's title bar; defaults to not showing |
72- | isShowHeader | boolean| false | - | Whether to show the MiniMap's title bar |
73- | isShowCloseIcon | boolean| false | - | Whether to show the close button |
74- | leftPosition | number | - | - | The left margin of the MiniMap from the canvas's left boundary; takes precedence over ` rightPosition ` |
75- | rightPosition | number | 0 | - | The right margin of the MiniMap from the canvas's right boundary; lower priority than ` leftPosition ` |
76- | topPosition | number | - | - | The top margin of the MiniMap from the canvas's top boundary; takes precedence over ` bottomPosition ` |
77- | bottomPosition | number | 0 | - | The bottom margin of the MiniMap from the canvas's bottom boundary; lower priority than ` topPosition ` |
66+ | Property Name | Type | Default Value | Required | Description |
67+ | --------------- | ------- | ------------- | -------- | ------------------------------------------------------------- ---------------------------------------- |
68+ | width | number | 150 | - | The width of the canvas in the MiniMap |
69+ | height | number | 220 | - | The height of the canvas in the MiniMap |
70+ | showEdge | boolean | false | - | Whether to render edges in the MiniMap |
71+ | headerTitle | string | Navigation | - | The text content of the MiniMap's title bar; defaults to not showing |
72+ | isShowHeader | boolean | false | - | Whether to show the MiniMap's title bar |
73+ | isShowCloseIcon | boolean | false | - | Whether to show the close button |
74+ | leftPosition | number | - | - | The left margin of the MiniMap from the canvas's left boundary; takes precedence over ` rightPosition ` |
75+ | rightPosition | number | 0 | - | The right margin of the MiniMap from the canvas's right boundary; lower priority than ` leftPosition ` |
76+ | topPosition | number | - | - | The top margin of the MiniMap from the canvas's top boundary; takes precedence over ` bottomPosition ` |
77+ | bottomPosition | number | 0 | - | The bottom margin of the MiniMap from the canvas's bottom boundary; lower priority than ` topPosition ` |
7878
7979## API
8080
@@ -95,7 +95,9 @@ Providing only `left` and `top` values allows integration with the `lf.getPointB
9595- ` lf-mini-map-graph ` - MiniMap canvas element
9696- ` lf-mini-map-close ` - MiniMap close icon element
9797
98- > ` MiniMap.show() ` must be called after ` lf.render() ` .
98+ ::: warning
99+ ` MiniMap.show() ` must be called after ` lf.render() ` . Otherwise, the console will always show a warning.
100+ :::
99101
100102### hide
101103
@@ -157,7 +159,7 @@ lf.extension.miniMap.setShowEdge(showEdge: boolean): void
157159
158160MiniMap events.
159161
160- | Event Name | Description | Event Object |
161- | ---------------- | ------- -------------- | ------------ |
162- | miniMap:close | MiniMap hidden | {} |
162+ | Event Name | Description | Event Object |
163+ | ------------- | -------------- | ------------ |
164+ | miniMap:close | MiniMap hidden | {} |
163165
0 commit comments