From 339f28c56423ebf823691274fb97754beaa86db6 Mon Sep 17 00:00:00 2001 From: pomelo Date: Wed, 30 Aug 2023 12:43:08 -0500 Subject: [PATCH] feat: fix plugin demo with extensions (#4885) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: fix plugin demo with extensions * Chore:check translate (#4886) * feat: check plugins * chore: update docs --- .../g6/src/stdlib/plugin/fisheye/index.ts | 30 +- packages/g6/src/stdlib/plugin/grid/index.ts | 7 + .../g6/src/stdlib/plugin/history/index.ts | 20 + packages/g6/src/stdlib/plugin/menu/index.ts | 14 +- .../g6/src/stdlib/plugin/minimap/index.ts | 11 +- .../g6/src/stdlib/plugin/toolbar/index.ts | 39 +- .../g6/src/stdlib/plugin/tooltip/index.ts | 23 +- packages/g6/src/types/history.ts | 6 + packages/site/docs/apis/.nojekyll | 4 + packages/site/docs/apis/README.en.md | 14 + packages/site/docs/apis/README.zh.md | 14 + .../site/docs/apis/classes/graph-Graph.en.md | 2361 ----------------- .../site/docs/apis/classes/graph-Graph.zh.md | 0 .../site/docs/apis/classes/graph/Graph.en.md | 220 +- .../behaviors-ActivateRelationsOptions.en.md | 99 - .../behaviors-ActivateRelationsOptions.zh.md | 99 - .../behaviors-BrushSelectOptions.en.md | 215 -- .../behaviors-BrushSelectOptions.zh.md | 215 -- .../behaviors/ActivateRelationsOptions.en.md | 10 +- .../behaviors/ActivateRelationsOptions.zh.md | 10 +- .../behaviors/BrushSelectOptions.en.md | 22 +- .../CollapseExpandComboOptions.en.md | 4 +- .../CollapseExpandComboOptions.zh.md | 4 +- .../behaviors/DragCanvasOptions.en.md | 22 +- .../behaviors/DragCanvasOptions.zh.md | 22 +- .../behaviors/DragComboOptions.en.md | 18 +- .../behaviors/DragComboOptions.zh.md | 18 +- .../behaviors/DragNodeOptions.en.md | 18 +- .../behaviors/DragNodeOptions.zh.md | 18 +- .../behaviors/HoverActivateOptions.en.md | 10 +- .../behaviors/HoverActivateOptions.zh.md | 10 +- .../interfaces/behaviors/IG6GraphEvent.en.md | 8 +- .../apis/interfaces/behaviors/Options.en.md | 10 +- .../apis/interfaces/behaviors/Options.zh.md | 10 +- .../behaviors/OrbitCanvas3DOptions.en.md | 8 +- .../behaviors/OrbitCanvas3DOptions.zh.md | 8 +- .../behaviors/RotateCanvas3DOptions.en.md | 12 +- .../behaviors/RotateCanvas3DOptions.zh.md | 12 +- .../behaviors/TrackCanvas3DOptions.en.md | 8 +- .../behaviors/TrackCanvas3DOptions.zh.md | 8 +- .../behaviors/ZoomCanvas3DOptions.en.md | 16 +- .../behaviors/ZoomCanvas3DOptions.zh.md | 16 +- .../behaviors/ZoomCanvasOptions.en.md | 20 +- .../behaviors/ZoomCanvasOptions.zh.md | 20 +- .../apis/interfaces/graph/GraphData.en.md | 6 +- .../apis/interfaces/graph/GraphData.zh.md | 6 +- .../docs/apis/interfaces/graph/IGraph.en.md | 218 +- .../apis/interfaces/graph/Specification.en.md | 52 +- .../interfaces/item/NodeUserModelData.en.md | 30 +- .../interfaces/item/NodeUserModelData.zh.md | 30 +- .../layout/CircularLayoutOptions.en.md | 30 +- .../layout/CircularLayoutOptions.zh.md | 30 +- .../layout/ComboCombinedLayoutOptions.en.md | 14 +- .../layout/ComboCombinedLayoutOptions.zh.md | 14 +- .../layout/ConcentricLayoutOptions.en.md | 26 +- .../layout/ConcentricLayoutOptions.zh.md | 26 +- .../layout/D3ForceLayoutOptions.en.md | 38 +- .../layout/D3ForceLayoutOptions.zh.md | 38 +- .../layout/DagreLayoutOptions.en.md | 32 +- .../layout/DagreLayoutOptions.zh.md | 32 +- .../layout/ForceAtlas2LayoutOptions.en.md | 42 +- .../layout/ForceAtlas2LayoutOptions.zh.md | 42 +- .../layout/ForceLayoutOptions.en.md | 62 +- .../layout/FruchtermanLayoutOptions.en.md | 30 +- .../layout/FruchtermanLayoutOptions.zh.md | 30 +- .../interfaces/layout/GridLayoutOptions.en.md | 26 +- .../interfaces/layout/GridLayoutOptions.zh.md | 26 +- .../interfaces/layout/MDSLayoutOptions.en.md | 4 +- .../interfaces/layout/MDSLayoutOptions.zh.md | 4 +- .../layout/RadialLayoutOptions.en.md | 30 +- .../layout/RadialLayoutOptions.zh.md | 30 +- .../interfaces/plugins-LegendConfig.en.md | 123 - .../interfaces/plugins-LegendConfig.zh.md | 123 - .../interfaces/plugins-MiniMapConfig.en.md | 123 - .../interfaces/plugins-MiniMapConfig.zh.md | 123 - .../interfaces/plugins-ToolbarConfig.en.md | 134 - .../interfaces/plugins-ToolbarConfig.zh.md | 134 - .../interfaces/plugins-TooltipConfig.en.md | 161 -- .../interfaces/plugins-TooltipConfig.zh.md | 161 -- .../interfaces/plugins/FisheyeConfig.en.md | 122 +- .../interfaces/plugins/FisheyeConfig.zh.md | 230 +- .../apis/interfaces/plugins/GridConfig.en.md | 23 +- .../apis/interfaces/plugins/GridConfig.zh.md | 77 +- .../interfaces/plugins/HistoryConfig.en.md | 23 +- .../interfaces/plugins/HistoryConfig.zh.md | 77 +- .../interfaces/plugins/LegendConfig.en.md | 20 +- .../interfaces/plugins/LegendConfig.zh.md | 122 +- .../apis/interfaces/plugins/MenuConfig.en.md | 39 +- .../apis/interfaces/plugins/MenuConfig.zh.md | 223 +- .../interfaces/plugins/MiniMapConfig.en.md | 38 +- .../interfaces/plugins/MiniMapConfig.zh.md | 140 +- .../interfaces/plugins/ToolbarConfig.en.md | 42 +- .../interfaces/plugins/ToolbarConfig.zh.md | 160 +- .../interfaces/plugins/TooltipConfig.en.md | 49 +- .../interfaces/plugins/TooltipConfig.zh.md | 187 +- .../apis/interfaces/types-GraphData.en.md | 35 - .../apis/interfaces/types-GraphData.zh.md | 35 - .../apis/interfaces/types-IG6GraphEvent.en.md | 53 - .../apis/interfaces/types-IG6GraphEvent.zh.md | 53 - .../docs/apis/interfaces/types-IGraph.en.md | 2293 ---------------- .../docs/apis/interfaces/types-IGraph.zh.md | 0 .../apis/interfaces/types-NodeEncode.en.md | 133 - .../apis/interfaces/types-NodeEncode.zh.md | 133 - .../apis/interfaces/types-Specification.en.md | 304 --- .../apis/interfaces/types-Specification.zh.md | 0 packages/site/docs/apis/modules.en.md | 8 +- packages/site/docs/apis/modules.zh.md | 20 +- .../site/docs/apis/modules/behaviors.en.md | 34 +- .../site/docs/apis/modules/behaviors.zh.md | 34 +- packages/site/docs/apis/modules/graph.en.md | 27 +- packages/site/docs/apis/modules/graph.zh.md | 27 +- packages/site/docs/apis/modules/plugins.en.md | 18 +- packages/site/docs/apis/modules/plugins.zh.md | 18 +- packages/site/docs/apis/modules/types.en.md | 234 +- packages/site/docs/apis/modules/types.zh.md | 5 + packages/site/docs/apis/modules/util.en.md | 24 +- packages/site/docs/apis/modules/util.zh.md | 24 +- .../tool/contextMenu/demo/contextMenu.ts | 8 +- .../fisheye/demo/{fisheye.js => fisheye.ts} | 165 +- .../site/examples/tool/fisheye/demo/meta.json | 2 +- .../site/examples/tool/grid/demo/default.ts | 8 +- .../site/examples/tool/legend/demo/legend.ts | 16 +- .../examples/tool/minimap/demo/minimap-api.ts | 9 +- .../examples/tool/minimap/demo/minimap.ts | 9 +- .../examples/tool/overview/demo/default.ts | 11 +- .../site/examples/tool/snapline/API.en.md | 5 - .../site/examples/tool/snapline/API.zh.md | 5 - .../examples/tool/snapline/demo/custom.js | 202 -- .../examples/tool/snapline/demo/default.js | 196 -- .../examples/tool/snapline/demo/meta.json | 24 - .../site/examples/tool/snapline/index.en.md | 6 - .../site/examples/tool/snapline/index.zh.md | 6 - packages/site/examples/tool/timebar/API.en.md | 5 - packages/site/examples/tool/timebar/API.zh.md | 5 - .../site/examples/tool/timebar/demo/meta.json | 32 - .../tool/timebar/demo/simple-timebar.js | 110 - .../tool/timebar/demo/slice-timebar.js | 131 - .../examples/tool/timebar/demo/timebar.js | 110 - .../site/examples/tool/timebar/index.en.md | 10 - .../site/examples/tool/timebar/index.zh.md | 52 - .../tool/toolbar/demo/self-toolbar.ts | 132 +- .../examples/tool/toolbar/demo/toolbar.ts | 13 +- .../tool/tooltip/demo/tooltipClick.ts | 9 +- .../tool/tooltip/demo/tooltipPlugin.ts | 8 +- 144 files changed, 2279 insertions(+), 9857 deletions(-) delete mode 100644 packages/site/docs/apis/classes/graph-Graph.en.md delete mode 100644 packages/site/docs/apis/classes/graph-Graph.zh.md delete mode 100644 packages/site/docs/apis/interfaces/behaviors-ActivateRelationsOptions.en.md delete mode 100644 packages/site/docs/apis/interfaces/behaviors-ActivateRelationsOptions.zh.md delete mode 100644 packages/site/docs/apis/interfaces/behaviors-BrushSelectOptions.en.md delete mode 100644 packages/site/docs/apis/interfaces/behaviors-BrushSelectOptions.zh.md delete mode 100644 packages/site/docs/apis/interfaces/plugins-LegendConfig.en.md delete mode 100644 packages/site/docs/apis/interfaces/plugins-LegendConfig.zh.md delete mode 100644 packages/site/docs/apis/interfaces/plugins-MiniMapConfig.en.md delete mode 100644 packages/site/docs/apis/interfaces/plugins-MiniMapConfig.zh.md delete mode 100644 packages/site/docs/apis/interfaces/plugins-ToolbarConfig.en.md delete mode 100644 packages/site/docs/apis/interfaces/plugins-ToolbarConfig.zh.md delete mode 100644 packages/site/docs/apis/interfaces/plugins-TooltipConfig.en.md delete mode 100644 packages/site/docs/apis/interfaces/plugins-TooltipConfig.zh.md delete mode 100644 packages/site/docs/apis/interfaces/types-GraphData.en.md delete mode 100644 packages/site/docs/apis/interfaces/types-GraphData.zh.md delete mode 100644 packages/site/docs/apis/interfaces/types-IG6GraphEvent.en.md delete mode 100644 packages/site/docs/apis/interfaces/types-IG6GraphEvent.zh.md delete mode 100644 packages/site/docs/apis/interfaces/types-IGraph.en.md delete mode 100644 packages/site/docs/apis/interfaces/types-IGraph.zh.md delete mode 100644 packages/site/docs/apis/interfaces/types-NodeEncode.en.md delete mode 100644 packages/site/docs/apis/interfaces/types-NodeEncode.zh.md delete mode 100644 packages/site/docs/apis/interfaces/types-Specification.en.md delete mode 100644 packages/site/docs/apis/interfaces/types-Specification.zh.md rename packages/site/examples/tool/fisheye/demo/{fisheye.js => fisheye.ts} (65%) delete mode 100644 packages/site/examples/tool/snapline/API.en.md delete mode 100644 packages/site/examples/tool/snapline/API.zh.md delete mode 100644 packages/site/examples/tool/snapline/demo/custom.js delete mode 100644 packages/site/examples/tool/snapline/demo/default.js delete mode 100644 packages/site/examples/tool/snapline/demo/meta.json delete mode 100644 packages/site/examples/tool/snapline/index.en.md delete mode 100644 packages/site/examples/tool/snapline/index.zh.md delete mode 100644 packages/site/examples/tool/timebar/API.en.md delete mode 100644 packages/site/examples/tool/timebar/API.zh.md delete mode 100644 packages/site/examples/tool/timebar/demo/meta.json delete mode 100644 packages/site/examples/tool/timebar/demo/simple-timebar.js delete mode 100644 packages/site/examples/tool/timebar/demo/slice-timebar.js delete mode 100644 packages/site/examples/tool/timebar/demo/timebar.js delete mode 100644 packages/site/examples/tool/timebar/index.en.md delete mode 100644 packages/site/examples/tool/timebar/index.zh.md diff --git a/packages/g6/src/stdlib/plugin/fisheye/index.ts b/packages/g6/src/stdlib/plugin/fisheye/index.ts index de6a04027d..51984e0273 100644 --- a/packages/g6/src/stdlib/plugin/fisheye/index.ts +++ b/packages/g6/src/stdlib/plugin/fisheye/index.ts @@ -7,20 +7,48 @@ import { ShapeStyle } from '../../../types/item'; import { Plugin as Base, IPluginBaseConfig } from '../../../types/plugin'; const DELTA = 0.05; - +/** + * This is an interface named `FisheyeConfig`, which extends the `IPluginBaseConfig` interface. It contains the following properties: +- `trigger`: The trigger method, which can be `'mousemove'`, `'click'`, or `'drag'`. +- `d`: A number representing the magnification factor of the fisheye. +- `r`: A number representing the radius of the fisheye. +- `delegateStyle`: The shape style. +- `showLabel`: A boolean indicating whether to show the label. +- `scaleRBy`: Can be `'wheel'`, `'drag'`, `'unset'`, or `undefined`, representing the scaling method for the fisheye radius. +- `scaleDBy`: Can be `'wheel'`, `'drag'`, `'unset'`, or `undefined`, representing the scaling method for the fisheye magnification factor. +- `maxR`: A number representing the maximum value of the fisheye radius. +- `minR`: A number representing the minimum value of the fisheye radius. +- `maxD`: A number representing the maximum value of the fisheye magnification factor. +- `minD`: A number representing the minimum value of the fisheye magnification factor. +- `throttle`: A number representing the throttle time (in milliseconds). +- `showDPercent`: A boolean indicating whether to show the percentage of the fisheye magnification factor. + */ export interface FisheyeConfig extends IPluginBaseConfig { + /** The trigger method, which can be `'mousemove'`, `'click'`, or `'drag'`. */ trigger?: 'mousemove' | 'click' | 'drag'; + /** A number representing the magnification factor of the fisheye. */ d?: number; + /** A number representing the radius of the fisheye. */ r?: number; + /** The shape style */ delegateStyle?: ShapeStyle; + /** A boolean indicating whether to show the label. */ showLabel?: boolean; + /** Can be `'wheel'`, `'drag'`, `'unset'`, or `undefined`, representing the scaling method for the fisheye radius. */ scaleRBy?: 'wheel' | 'drag' | 'unset' | undefined; + /** Can be `'wheel'`, `'drag'`, `'unset'`, or `undefined`, representing the scaling method for the fisheye magnification factor. */ scaleDBy?: 'wheel' | 'drag' | 'unset' | undefined; + /** A number representing the maximum value of the fisheye radius. */ maxR?: number; + /** A number representing the minimum value of the fisheye radius. */ minR?: number; + /** A number representing the maximum value of the fisheye magnification factor. */ maxD?: number; + /** A number representing the minimum value of the fisheye magnification factor. */ minD?: number; + /** A number representing the throttle time (in milliseconds). */ throttle?: number; + /** A boolean indicating whether to show the percentage of the fisheye magnification factor. */ showDPercent?: boolean; } diff --git a/packages/g6/src/stdlib/plugin/grid/index.ts b/packages/g6/src/stdlib/plugin/grid/index.ts index e051b81ea0..2fe940a353 100644 --- a/packages/g6/src/stdlib/plugin/grid/index.ts +++ b/packages/g6/src/stdlib/plugin/grid/index.ts @@ -7,6 +7,13 @@ import { Plugin as Base, IPluginBaseConfig } from '../../../types/plugin'; const GRID_PNG = 'url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)'; +/** + * This is an interface named `GridConfig`, which extends the `IPluginBaseConfig` interface. It contains the following properties: + +- `img`: A string representing the background image of the grid. +- `follow`: A boolean indicating whether the grid follows the view movement. + + */ export interface GridConfig extends IPluginBaseConfig { img?: string; follow?: boolean; diff --git a/packages/g6/src/stdlib/plugin/history/index.ts b/packages/g6/src/stdlib/plugin/history/index.ts index 348c4ee9fe..58d3668887 100644 --- a/packages/g6/src/stdlib/plugin/history/index.ts +++ b/packages/g6/src/stdlib/plugin/history/index.ts @@ -4,6 +4,26 @@ import { STACK_TYPE, StackCfg, StackType } from '../../../types/history'; import { Plugin as Base, IPluginBaseConfig } from '../../../types/plugin'; import CommandFactory, { Command } from './command'; +/** + * The `HistoryConfig` interface contains the following properties: + +- `enableStack`: An optional boolean value that indicates whether to enable the stack. +- `stackCfg`: A required object of type `StackCfg` representing the stack configuration. + +The `StackCfg` type is defined as an object with the following properties: + +- `stackSize`: An optional number representing the size of the stack. +- `stackActive`: An optional boolean value indicating whether the stack is active. If active, operations can be pushed onto the stack; otherwise, they cannot. +- `excludes`: An optional array of strings representing APIs that should be excluded from being put on the stack, even if their operation type is not ignored. +- `includes`: An optional array of strings representing APIs that should be included in being put on the stack. +- `ignoreAdd`: An optional boolean value indicating whether to ignore add operations. +- `ignoreRemove`: An optional boolean value indicating whether to ignore remove operations. +- `ignoreUpdate`: An optional boolean value indicating whether to ignore update operations. +- `ignoreStateChange`: An optional boolean value indicating whether to ignore state change operations. +- `ignoreLayerChange`: An optional boolean value indicating whether to ignore layer change operations. +- `ignoreDisplayChange`: An optional boolean value indicating whether to ignore display change operations. + + */ export interface HistoryConfig extends IPluginBaseConfig { enableStack?: boolean; stackCfg: StackCfg; diff --git a/packages/g6/src/stdlib/plugin/menu/index.ts b/packages/g6/src/stdlib/plugin/menu/index.ts index 2c75fd8fa8..00a38e467b 100644 --- a/packages/g6/src/stdlib/plugin/menu/index.ts +++ b/packages/g6/src/stdlib/plugin/menu/index.ts @@ -1,5 +1,4 @@ import { createDom, modifyCSS } from '@antv/dom-util'; -import { AABB } from '@antv/g'; import { isString } from '@antv/util'; import insertCss from 'insert-css'; import Item from 'item/item'; @@ -35,7 +34,20 @@ typeof document !== 'undefined' && 100% { transform: rotate(360deg); } } `); +/** + * The `MenuConfig` interface contains the following properties: +- `handleMenuClick`: An optional function for handling menu click events. It takes two arguments: `target` (of type HTMLElement) and `item` (of type Item), and has no return value. +- `getContent`: An optional function for getting the content of the menu. It takes an optional argument of type `IG6GraphEvent`, and returns a value of type HTMLDivElement, string, or Promise (resolving to HTMLDivElement or string). +- `offsetX`: An optional number representing the offset of the menu in the X direction. +- `offsetY`: An optional number representing the offset of the menu in the Y direction. +- `shouldBegin`: An optional function for determining whether the menu should be displayed. It takes an optional argument of type `IG6GraphEvent`, and returns a boolean value. +- `itemTypes`: An optional array of strings representing the types of items for which the menu is allowed to be displayed. +- `trigger`: An optional string, either 'click' or 'contextmenu', representing the event type that triggers the display of the menu. +- `onHide`: An optional function to be executed when the menu is hidden. It takes no arguments and returns a boolean value. +- `loadingContent`: An optional HTMLDivElement or string representing the loading DOM. +- `liHoverStyle`: An optional object representing the style of li elements when hovered over. It can contain any number of key-value pairs, where the key is a style name and the value is a string. + */ export interface MenuConfig extends IPluginBaseConfig { handleMenuClick?: (target: HTMLElement, item: Item) => void; // return the content of menu, support the `Promise` type return value. diff --git a/packages/g6/src/stdlib/plugin/minimap/index.ts b/packages/g6/src/stdlib/plugin/minimap/index.ts index ed4a97e79d..1d87600123 100644 --- a/packages/g6/src/stdlib/plugin/minimap/index.ts +++ b/packages/g6/src/stdlib/plugin/minimap/index.ts @@ -15,14 +15,23 @@ const DELEGATE_MODE = 'delegate'; const SVG = 'svg'; export interface MiniMapConfig extends IPluginBaseConfig { + /** Class name of viewport */ viewportClassName?: string; + /** Class name of minimap */ className?: string; + /** Mode of minimap */ mode?: 'default' | 'keyShape' | 'delegate'; + /** Size of minimap */ size?: number[]; + /** Style of delegate shape */ delegateStyle?: ShapeStyle; + /** Whether to refresh minimap */ refresh?: boolean; + /** Padding of minimap */ padding?: number; - hideEdge?: boolean; // hide the edges on the minimap to enhance the performance + /** Whether to hide edges on minimap to enhance performance */ + hideEdge?: boolean; + /** Container for minimap */ container?: HTMLDivElement | null; } diff --git a/packages/g6/src/stdlib/plugin/toolbar/index.ts b/packages/g6/src/stdlib/plugin/toolbar/index.ts index 9b3bfff50c..4463aaefcb 100644 --- a/packages/g6/src/stdlib/plugin/toolbar/index.ts +++ b/packages/g6/src/stdlib/plugin/toolbar/index.ts @@ -4,38 +4,25 @@ import { IGraph } from '../../../types'; import { Plugin as Base, IPluginBaseConfig } from '../../../types/plugin'; /** - * @example - * const {Graph} from '@antv/g6'; - * const toolbar:ToolbarConfig = { - * type:"toolbar", - * handleClick:()=>{} - * } - * new Graph({ - * plugins:[toolbar] - * }) - * + * The `ToolbarConfig` interface contains the following properties: + +- `handleClick`: An optional function for handling clicks on the toolbar. It takes two arguments: `code` (of type string) and `graph` (of type IGraph), and has no return value. +- `getContent`: A required function for getting the content of the toolbar. It takes an optional argument of type `IGraph`, and returns a value of type HTMLDivElement or string. +- `zoomSensitivity`: An optional number representing the zoom sensitivity of the toolbar. The default value is 10. +- `minZoom`: An optional number representing the minimum zoom ratio of the toolbar. The default value is 0.00001. +- `maxZoom`: An optional number representing the maximum zoom ratio of the toolbar. The default value is 1000. + */ export interface ToolbarConfig extends IPluginBaseConfig { - /** - * toolbar config - * @param code toolbar item code - * @param graph Graph Instance - * @returns - */ + /** Function for handling clicks on toolbar */ handleClick?: (code: string, graph: IGraph) => void; + /** Function for getting content of toolbar */ getContent: (graph?: IGraph) => HTMLDivElement | string; - /** - * @default 10 - */ + /** Zoom sensitivity of toolbar */ zoomSensitivity: number; - /** - * @default 0.00001 - */ + /** Minimum zoom ratio of toolbar */ minZoom: number; - /** - * 最小缩放比率 - * @default 1000 - */ + /** Maximum zoom ratio of toolbar */ maxZoom: number; } diff --git a/packages/g6/src/stdlib/plugin/tooltip/index.ts b/packages/g6/src/stdlib/plugin/tooltip/index.ts index 2ecf664ec3..53815018f8 100644 --- a/packages/g6/src/stdlib/plugin/tooltip/index.ts +++ b/packages/g6/src/stdlib/plugin/tooltip/index.ts @@ -53,20 +53,39 @@ type Placement = | 'bottomRight' | 'rightBottom'; +/** + * The `TooltipConfig` interface contains the following properties: + +- `getContent`: An optional function for getting the content of the tooltip. It takes an optional argument of type `IG6GraphEvent`, and returns a value of type HTMLDivElement, string, or Promise (resolving to HTMLDivElement or string). +- `offsetX`: An optional number representing the offset of the tooltip in the X direction. +- `offsetY`: An optional number representing the offset of the tooltip in the Y direction. +- `shouldBegin`: An optional function for determining whether the tooltip should be displayed. It takes an optional argument of type `IG6GraphEvent`, and returns a boolean value. +- `itemTypes`: An optional array of strings representing the types of items for which the tooltip is allowed to be displayed. The possible values are 'node', 'edge', 'combo', and 'canvas'. +- `trigger`: An optional string, either 'pointerenter' or 'click', representing the event type that triggers the display of the tooltip. +- `fixToNode`: An optional array of two numbers, a string representing a placement, or undefined, representing how to fix the tooltip to a node. +- `loadingContent`: An optional HTMLDivElement or string representing the loading DOM. + + */ export interface TooltipConfig extends IPluginBaseConfig { + /** Function for getting tooltip content */ getContent?: ( evt?: IG6GraphEvent, ) => HTMLDivElement | string | Promise; + /** Offset of tooltip in X direction */ offsetX?: number; + /** Offset of tooltip in Y direction */ offsetY?: number; + /** Determine whether to display tooltip */ shouldBegin?: (evt?: IG6GraphEvent) => boolean; - // more detail type instead of "string[]" + /** Types of items for which tooltip is allowed to be displayed */ itemTypes?: ('node' | 'edge' | 'combo' | 'canvas')[]; + /** Event type that triggers display of tooltip */ trigger?: 'pointerenter' | 'click'; + /** How to fix tooltip to node */ fixToNode?: [number, number] | Placement | undefined; + /** Loading DOM */ loadingContent?: HTMLDivElement | string; } - export class Tooltip extends Base { private tooltip; private container; diff --git a/packages/g6/src/types/history.ts b/packages/g6/src/types/history.ts index e85bc0bb6e..dbbacac2c5 100644 --- a/packages/g6/src/types/history.ts +++ b/packages/g6/src/types/history.ts @@ -1,4 +1,5 @@ export type StackCfg = { + /** A number representing the size of the stack. */ stackSize?: number; /** Indicate whether the stack is active. If active, operations can be pushed onto the stack; otherwise, cannot. */ stackActive?: boolean; @@ -9,10 +10,15 @@ export type StackCfg = { includes?: string[]; /** ignore* is a global setting that indicates whether to ignore a certain type of operation */ ignoreAdd?: boolean; + /** A boolean indicating whether to ignore remove operations. */ ignoreRemove?: boolean; + /** A boolean indicating whether to ignore update operations. */ ignoreUpdate?: boolean; + /** A boolean indicating whether to ignore state change operations.*/ ignoreStateChange?: boolean; + /** A boolean indicating whether to ignore layer change operations. */ ignoreLayerChange?: boolean; + /** A boolean indicating whether to ignore display change operations. */ ignoreDisplayChange?: boolean; }; diff --git a/packages/site/docs/apis/.nojekyll b/packages/site/docs/apis/.nojekyll index e2ac6616ad..7912a321ae 100644 --- a/packages/site/docs/apis/.nojekyll +++ b/packages/site/docs/apis/.nojekyll @@ -1 +1,5 @@ +--- +title: +--- + TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/packages/site/docs/apis/README.en.md b/packages/site/docs/apis/README.en.md index 45836d066c..c6ef2c03fe 100644 --- a/packages/site/docs/apis/README.en.md +++ b/packages/site/docs/apis/README.en.md @@ -1,5 +1,19 @@ +--- +title: README +--- + Overview / [Modules](modules.en.md) +# G6 API Core Modules + +- [behaviors](modules/behaviors.en.md) +- [graph](modules/graph.en.md) +- [item](modules/item.en.md) +- [layout](modules/layout.en.md) +- [plugins](modules/plugins.en.md) +- [types](modules/types.en.md) +- [util](modules/util.en.md) + ```jsx import { Graph, Util } from '@antv/g6'; const data = Util.mock(6).circle(); diff --git a/packages/site/docs/apis/README.zh.md b/packages/site/docs/apis/README.zh.md index cf12743012..3778023196 100644 --- a/packages/site/docs/apis/README.zh.md +++ b/packages/site/docs/apis/README.zh.md @@ -1,5 +1,19 @@ +--- +title: README +--- + 概述 / [模块](modules.zh.md) + # G6 API 核心模块 + + - [行为](modules/behaviors.zh.md) + - [图](modules/graph.zh.md) + - [项目](modules/item.zh.md) + - [布局](modules/layout.zh.md) + - [插件](modules/plugins.zh.md) + - [类型](modules/types.zh.md) + - [util](modules/util.zh.md) + ````jsx 从 '@antv/g6' 导入 { Graph, Util }; const data = Util.mock(6).circle(); diff --git a/packages/site/docs/apis/classes/graph-Graph.en.md b/packages/site/docs/apis/classes/graph-Graph.en.md deleted file mode 100644 index 239e25e2a3..0000000000 --- a/packages/site/docs/apis/classes/graph-Graph.en.md +++ /dev/null @@ -1,2361 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [graph](../modules/graph.en.md) / Graph - -# Class: Graph - -[graph](../modules/graph.en.md).Graph - -## Type parameters - -| Name | Type | -| :------ | :------ | -| `B` | extends `BehaviorRegistry` | -| `T` | extends `ThemeRegistry` | - -## Hierarchy - -- `default` - - ↳ **`Graph`** - -## Implements - -- [`IGraph`](../interfaces/types-IGraph.en.md)<`B`, `T`\> - -## Combo - -### addCombo - -▸ **addCombo**(`model`, `childrenIds`): [`ComboModel`](../modules/types.en.md#combomodel) - -Add a new combo to the graph, and update the structure of the existed child in childrenIds to be the children of the new combo. -Different from addData with combo type, this API update the succeeds' combo tree strucutres in the same time. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `model` | [`ComboUserModel`](../modules/types.en.md#combousermodel) | combo user data | -| `childrenIds` | `ID`[] | - | - -#### Returns - -[`ComboModel`](../modules/types.en.md#combomodel) - -whether success - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[addCombo](../interfaces/types-IGraph.en.md#addcombo) - -#### Defined in - -[runtime/graph.ts:1549](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1549) - -___ - -### collapseCombo - -▸ **collapseCombo**(`comboIds`): `void` - -Collapse a combo. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `comboIds` | `ID` \| `ID`[] | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[collapseCombo](../interfaces/types-IGraph.en.md#collapsecombo) - -#### Defined in - -[runtime/graph.ts:1594](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1594) - -___ - -### expandCombo - -▸ **expandCombo**(`comboIds`): `void` - -Expand a combo. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `comboIds` | `ID` \| `ID`[] | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[expandCombo](../interfaces/types-IGraph.en.md#expandcombo) - -#### Defined in - -[runtime/graph.ts:1614](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1614) - -___ - -### moveCombo - -▸ **moveCombo**(`ids`, `dx`, `dy`, `upsertAncestors?`, `callback?`): [`ComboModel`](../modules/types.en.md#combomodel)[] - -Move one or more combos a distance (dx, dy) relatively, -do not update other styles which leads to better performance than updating positions by updateData. -In fact, it changes the succeed nodes positions to affect the combo's position, but not modify the combo's position directly. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `ids` | `ID` \| `ID`[] | -| `dx` | `number` | -| `dy` | `number` | -| `upsertAncestors?` | `boolean` | -| `callback?` | (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel), `canceled?`: `boolean`) => `void` | - -#### Returns - -[`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[moveCombo](../interfaces/types-IGraph.en.md#movecombo) - -#### Defined in - -[runtime/graph.ts:1637](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1637) - -## Constructors - -### constructor - -• **new Graph**<`B`, `T`\>(`spec`) - -#### Type parameters - -| Name | Type | -| :------ | :------ | -| `B` | extends `BehaviorRegistry` | -| `T` | extends `ThemeRegistry` | - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `spec` | [`Specification`](../interfaces/types-Specification.en.md)<`B`, `T`\> | - -#### Overrides - -EventEmitter.constructor - -#### Defined in - -[runtime/graph.ts:106](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L106) - -## Data - -### addData - -▸ **addData**(`itemType`, `models`): [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -Add one or more node/edge/combo data to the graph. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `itemType` | `ITEM_TYPE` | item type | -| `models` | [`EdgeUserModel`](../modules/types.en.md#edgeusermodel) \| [`NodeUserModel`](../modules/types.en.md#nodeusermodel) \| [`ComboUserModel`](../modules/types.en.md#combousermodel) \| [`NodeUserModel`](../modules/types.en.md#nodeusermodel)[] \| [`EdgeUserModel`](../modules/types.en.md#edgeusermodel)[] \| [`ComboUserModel`](../modules/types.en.md#combousermodel)[] | - | - -#### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -whether success - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[addData](../interfaces/types-IGraph.en.md#adddata) - -#### Defined in - -[runtime/graph.ts:975](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L975) - -___ - -### changeData - -▸ **changeData**(`data`, `type?`): `Promise`<`void`\> - -Change graph data. - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `data` | `DataConfig` | `undefined` | new data | -| `type` | ``"replace"`` \| ``"mergeReplace"`` | `'mergeReplace'` | the way to change data, 'replace' means discard the old data and use the new one; 'mergeReplace' means merge the common part, remove (old - new), add (new - old) | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[changeData](../interfaces/types-IGraph.en.md#changedata) - -#### Defined in - -[runtime/graph.ts:456](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L456) - -___ - -### getAllCombosData - -▸ **getAllCombosData**(): [`ComboModel`](../modules/types.en.md#combomodel)[] - -Get all the combos' inner data - -#### Returns - -[`ComboModel`](../modules/types.en.md#combomodel)[] - -all combos' inner data on the graph - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getAllCombosData](../interfaces/types-IGraph.en.md#getallcombosdata) - -#### Defined in - -[runtime/graph.ts:886](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L886) - -___ - -### getAllEdgesData - -▸ **getAllEdgesData**(): [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -Get all the edges' inner data - -#### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel)[] - -all edges' inner data on the graph - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getAllEdgesData](../interfaces/types-IGraph.en.md#getalledgesdata) - -#### Defined in - -[runtime/graph.ts:878](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L878) - -___ - -### getAllNodesData - -▸ **getAllNodesData**(): [`NodeModel`](../modules/types.en.md#nodemodel)[] - -Get all the nodes' inner data - -#### Returns - -[`NodeModel`](../modules/types.en.md#nodemodel)[] - -all nodes' inner data on the graph - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getAllNodesData](../interfaces/types-IGraph.en.md#getallnodesdata) - -#### Defined in - -[runtime/graph.ts:870](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L870) - -___ - -### getComboChildrenData - -▸ **getComboChildrenData**(`comboId`): ([`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel))[] - -Get the children's data of a combo. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `comboId` | `ID` | combo id | - -#### Returns - -([`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel))[] - -children's data array - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getComboChildrenData](../interfaces/types-IGraph.en.md#getcombochildrendata) - -#### Defined in - -[runtime/graph.ts:919](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L919) - -___ - -### getComboData - -▸ **getComboData**(`condition`): [`ComboModel`](../modules/types.en.md#combomodel) - -Find an combo's inner data according to id or function. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `condition` | `Function` \| `ID` | id or condition function | - -#### Returns - -[`ComboModel`](../modules/types.en.md#combomodel) - -result combo's inner data - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getComboData](../interfaces/types-IGraph.en.md#getcombodata) - -#### Defined in - -[runtime/graph.ts:860](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L860) - -___ - -### getEdgeData - -▸ **getEdgeData**(`condition`): [`EdgeModel`](../modules/types.en.md#edgemodel) - -Find an edge's inner data according to id or function. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `condition` | `Function` \| `ID` | id or condition function | - -#### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel) - -result edge's inner data - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getEdgeData](../interfaces/types-IGraph.en.md#getedgedata) - -#### Defined in - -[runtime/graph.ts:847](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L847) - -___ - -### getNearEdgesForNode - -▸ **getNearEdgesForNode**(`nodeId`): [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -Retrieve the nearby edges for a given node using quadtree collision detection. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `nodeId` | `ID` | node id | - -#### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel)[] - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getNearEdgesForNode](../interfaces/types-IGraph.en.md#getnearedgesfornode) - -#### Defined in - -[runtime/graph.ts:940](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L940) - -___ - -### getNeighborNodesData - -▸ **getNeighborNodesData**(`nodeId`, `direction?`): [`NodeModel`](../modules/types.en.md#nodemodel)[] - -Get one-hop node ids from a start node. - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `nodeId` | `ID` | `undefined` | id of the start node | -| `direction` | ``"both"`` \| ``"in"`` \| ``"out"`` | `'both'` | - | - -#### Returns - -[`NodeModel`](../modules/types.en.md#nodemodel)[] - -one-hop nodes' data array - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getNeighborNodesData](../interfaces/types-IGraph.en.md#getneighbornodesdata) - -#### Defined in - -[runtime/graph.ts:907](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L907) - -___ - -### getNodeData - -▸ **getNodeData**(`condition`): [`NodeModel`](../modules/types.en.md#nodemodel) - -Find a node's inner data according to id or function. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `condition` | `Function` \| `ID` | id or condition function | - -#### Returns - -[`NodeModel`](../modules/types.en.md#nodemodel) - -result node's inner data - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getNodeData](../interfaces/types-IGraph.en.md#getnodedata) - -#### Defined in - -[runtime/graph.ts:836](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L836) - -___ - -### getRelatedEdgesData - -▸ **getRelatedEdgesData**(`nodeId`, `direction?`): [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -Get one-hop edge ids from a start node. - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `nodeId` | `ID` | `undefined` | id of the start node | -| `direction` | ``"both"`` \| ``"in"`` \| ``"out"`` | `'both'` | - | - -#### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel)[] - -one-hop edges' data array - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getRelatedEdgesData](../interfaces/types-IGraph.en.md#getrelatededgesdata) - -#### Defined in - -[runtime/graph.ts:895](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L895) - -___ - -### read - -▸ **read**(`data`): `Promise`<`void`\> - -Input data and render the graph. -If there is old data, diffs and changes it. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `data` | `DataConfig` | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[read](../interfaces/types-IGraph.en.md#read) - -#### Defined in - -[runtime/graph.ts:405](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L405) - -___ - -### removeData - -▸ **removeData**(`itemType`, `ids`): `void` - -Remove one or more node/edge/combo data from the graph. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `itemType` | `ITEM_TYPE` | -| `ids` | `ID` \| `ID`[] | - -#### Returns - -`void` - -whether success - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[removeData](../interfaces/types-IGraph.en.md#removedata) - -#### Defined in - -[runtime/graph.ts:1032](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1032) - -___ - -### updateComboPosition - -▸ **updateComboPosition**(`models`, `upsertAncestors?`, `disableAnimate?`, `callback?`, `stack?`): [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -Update one or more combos' positions, -do not update other styles which leads to better performance than updating positions by updateData. -In fact, it changes the succeed nodes positions to affect the combo's position, but not modify the combo's position directly. - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `models` | `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\> | `undefined` | new configurations with x and y for every combo, which has id field to indicate the specific item | -| `upsertAncestors?` | `boolean` | `undefined` | - | -| `disableAnimate` | `boolean` | `false` | - | -| `callback?` | (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel)) => `void` | `undefined` | - | -| `stack?` | `boolean` | `undefined` | - | - -#### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[updateComboPosition](../interfaces/types-IGraph.en.md#updatecomboposition) - -#### Defined in - -[runtime/graph.ts:1211](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1211) - -___ - -### updateData - -▸ **updateData**(`itemType`, `models`): [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -Update one or more node/edge/combo data on the graph. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `itemType` | `ITEM_TYPE` | 'node' \| 'edge' \| 'combo' | -| `models` | `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\> \| `Partial`<[`EdgeUserModel`](../modules/types.en.md#edgeusermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`EdgeUserModel`](../modules/types.en.md#edgeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\> | new configurations for every node/edge/combo, which has id field to indicate the specific item | - -#### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[updateData](../interfaces/types-IGraph.en.md#updatedata) - -#### Defined in - -[runtime/graph.ts:1122](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1122) - -___ - -### updateNodePosition - -▸ **updateNodePosition**(`models`, `upsertAncestors?`, `disableAnimate?`, `callback?`, `stack?`): [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -Update one or more nodes' positions, -do not update other styles which leads to better performance than updating positions by updateData. - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `models` | `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\> | `undefined` | new configurations with x and y for every node, which has id field to indicate the specific item | -| `upsertAncestors?` | `boolean` | `undefined` | - | -| `disableAnimate` | `boolean` | `false` | - | -| `callback?` | (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel), `canceled?`: `boolean`) => `void` | `undefined` | - | -| `stack?` | `boolean` | `undefined` | - | - -#### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[updateNodePosition](../interfaces/types-IGraph.en.md#updatenodeposition) - -#### Defined in - -[runtime/graph.ts:1180](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1180) - -## Graph Instance - -### destroy - -▸ **destroy**(`callback?`): `void` - -Destroy the graph instance and remove the related canvases. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `callback?` | `Function` | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[destroy](../interfaces/types-IGraph.en.md#destroy) - -#### Defined in - -[runtime/graph.ts:2176](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2176) - -## Interaction - -### addBehaviors - -▸ **addBehaviors**(`behaviors`, `modes`): `void` - -Add behavior(s) to mode(s). - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `behaviors` | `BehaviorOptionsOf`<`B`\>[] | behavior names or configs | -| `modes` | `string` \| `string`[] | mode names | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[addBehaviors](../interfaces/types-IGraph.en.md#addbehaviors) - -#### Defined in - -[runtime/graph.ts:1766](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1766) - -___ - -### drawTransient - -▸ **drawTransient**(`type`, `id`, `config`): `DisplayObject`<`any`, `any`\> - -Draw or update a G shape or group to the transient canvas. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `type` | `SHAPE_TYPE` \| `ITEM_TYPE` | shape type or item type | -| `id` | `ID` | new shape id or updated shape id for a interation shape, node/edge/combo id for item interaction group drawing | -| `config` | `Object` | - | -| `config.action` | ``"update"`` \| ``"remove"`` \| ``"add"`` | - | -| `config.onlyDrawKeyShape?` | `boolean` | - | -| `config.style` | `Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\> | - | -| `config.upsertAncestors?` | `boolean` | - | - -#### Returns - -`DisplayObject`<`any`, `any`\> - -upserted shape or group - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[drawTransient](../interfaces/types-IGraph.en.md#drawtransient) - -#### Defined in - -[runtime/graph.ts:1963](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1963) - -___ - -### removeBehaviors - -▸ **removeBehaviors**(`behaviorKeys`, `modes`): `void` - -Remove behavior(s) from mode(s). - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `behaviorKeys` | `string`[] | - | -| `modes` | `string` \| `string`[] | mode names | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[removeBehaviors](../interfaces/types-IGraph.en.md#removebehaviors) - -#### Defined in - -[runtime/graph.ts:1792](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1792) - -___ - -### setMode - -▸ **setMode**(`mode`): `void` - -Switch mode. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `mode` | `string` | mode name | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[setMode](../interfaces/types-IGraph.en.md#setmode) - -#### Defined in - -[runtime/graph.ts:1755](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1755) - -___ - -### updateBehavior - -▸ **updateBehavior**(`behavior`, `mode?`): `void` - -Update a behavior on a mode. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `behavior` | `BehaviorOptionsOf`<`B`\> | behavior configs, whose name indicates the behavior to be updated | -| `mode?` | `string` | mode name | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[updateBehavior](../interfaces/types-IGraph.en.md#updatebehavior) - -#### Defined in - -[runtime/graph.ts:1819](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1819) - -___ - -### updatePlugin - -▸ **updatePlugin**(`plugin`): `void` - -Update a plugin of the graph. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `plugin` | `Object` | plugin configs, whose key indicates the behavior to be updated | -| `plugin.key` | `string` | - | -| `plugin.type` | `string` | - | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[updatePlugin](../interfaces/types-IGraph.en.md#updateplugin) - -#### Defined in - -[runtime/graph.ts:1913](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1913) - -## Item - -### backItem - -▸ **backItem**(`ids`): `void` - -Make the item(s) to the back. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `ids` | `ID` \| `ID`[] | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[backItem](../interfaces/types-IGraph.en.md#backitem) - -#### Defined in - -[runtime/graph.ts:1400](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1400) - -___ - -### clearItemState - -▸ **clearItemState**(`ids`, `states?`): `void` - -Clear all the states for item(s). - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | the id(s) for the item(s) to be clear | -| `states?` | `string`[] | the states' names, all the states wil be cleared if states is not assigned | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[clearItemState](../interfaces/types-IGraph.en.md#clearitemstate) - -#### Defined in - -[runtime/graph.ts:1493](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1493) - -___ - -### findIdByState - -▸ **findIdByState**(`itemType`, `state`, `value?`, `additionalFilter?`): `ID`[] - -Find items which has the state. - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `itemType` | `ITEM_TYPE` | `undefined` | item type | -| `state` | `string` | `undefined` | state name | -| `value` | `string` \| `boolean` | `true` | - | -| `additionalFilter?` | (`item`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel)) => `boolean` | `undefined` | additional filter function | - -#### Returns - -`ID`[] - -items that is the type and has the state - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[findIdByState](../interfaces/types-IGraph.en.md#findidbystate) - -#### Defined in - -[runtime/graph.ts:953](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L953) - -___ - -### frontItem - -▸ **frontItem**(`ids`): `void` - -Make the item(s) to the front. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `ids` | `ID` \| `ID`[] | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[frontItem](../interfaces/types-IGraph.en.md#frontitem) - -#### Defined in - -[runtime/graph.ts:1381](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1381) - -___ - -### getItemAllStates - -▸ **getItemAllStates**(`id`): `string`[] - -Get all the state names with value true for an item. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` | the id for the item | - -#### Returns - -`string`[] - -the state names with value true - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getItemAllStates](../interfaces/types-IGraph.en.md#getitemallstates) - -#### Defined in - -[runtime/graph.ts:1482](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1482) - -___ - -### getItemState - -▸ **getItemState**(`id`, `state`): `string` \| `boolean` - -Get the state value for an item. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` | the id for the item | -| `state` | `string` | - | - -#### Returns - -`string` \| `boolean` - -the state value - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getItemState](../interfaces/types-IGraph.en.md#getitemstate) - -#### Defined in - -[runtime/graph.ts:1472](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1472) - -___ - -### getItemVisible - -▸ **getItemVisible**(`id`): `boolean` - -Get the visibility for a node / edge / combo. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` | the id for the node / edge / combo | - -#### Returns - -`boolean` - -visibility for the item, false for invisible or unexistence for the item - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getItemVisible](../interfaces/types-IGraph.en.md#getitemvisible) - -#### Defined in - -[runtime/graph.ts:1536](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1536) - -___ - -### getRenderBBox - -▸ **getRenderBBox**(`id`, `onlyKeyShape?`, `isTransient?`): ``false`` \| `AABB` - -Get the rendering bbox for a node / edge / combo, or the graph (when the id is not assigned). - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `id` | `ID` | `undefined` | the id for the node / edge / combo, undefined for the whole graph | -| `onlyKeyShape` | `boolean` | `false` | - | -| `isTransient` | `boolean` | `false` | - | - -#### Returns - -``false`` \| `AABB` - -rendering bounding box. returns false if the item is not exist - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getRenderBBox](../interfaces/types-IGraph.en.md#getrenderbbox) - -#### Defined in - -[runtime/graph.ts:1521](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1521) - -___ - -### hideItem - -▸ **hideItem**(`ids`, `disableAnimate?`): `void` - -Hide the item(s). - -#### Parameters - -| Name | Type | Default value | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | `undefined` | -| `disableAnimate` | `boolean` | `false` | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[hideItem](../interfaces/types-IGraph.en.md#hideitem) - -#### Defined in - -[runtime/graph.ts:1352](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1352) - -___ - -### setItemState - -▸ **setItemState**(`ids`, `states`, `value`): `void` - -Set state for the item. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | - | -| `states` | `string` \| `string`[] | - | -| `value` | `boolean` | state value | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[setItemState](../interfaces/types-IGraph.en.md#setitemstate) - -#### Defined in - -[runtime/graph.ts:1439](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1439) - -___ - -### showItem - -▸ **showItem**(`ids`, `disableAnimate?`): `void` - -Show the item(s). - -#### Parameters - -| Name | Type | Default value | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | `undefined` | -| `disableAnimate` | `boolean` | `false` | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[showItem](../interfaces/types-IGraph.en.md#showitem) - -#### Defined in - -[runtime/graph.ts:1324](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1324) - -## Methods - -### batch - -▸ **batch**(`callback`): `void` - -Execute a provided function within a batched context -All operations performed inside callback will be treated as a composite operation -more convenient way without manually invoking `startBatch` and `stopBatch`. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `callback` | () => `void` | The func containing operations to be batched together. | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[batch](../interfaces/types-IGraph.en.md#batch) - -#### Defined in - -[runtime/graph.ts:2121](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2121) - -___ - -### canRedo - -▸ **canRedo**(): `boolean` - -Indicate whether there are any actions available in the redo stack. - -#### Returns - -`boolean` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[canRedo](../interfaces/types-IGraph.en.md#canredo) - -#### Defined in - -[runtime/graph.ts:2090](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2090) - -___ - -### canUndo - -▸ **canUndo**(): `boolean` - -Indicate whether there are any actions available in the undo stack. - -#### Returns - -`boolean` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[canUndo](../interfaces/types-IGraph.en.md#canundo) - -#### Defined in - -[runtime/graph.ts:2082](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2082) - -___ - -### changeRenderer - -▸ **changeRenderer**(`type`): `void` - -Change the renderer at runtime. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `type` | `any` | renderer name | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[changeRenderer](../interfaces/types-IGraph.en.md#changerenderer) - -#### Defined in - -[runtime/graph.ts:265](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L265) - -___ - -### clear - -▸ **clear**(): `void` - -Clear the graph, means remove all the items on the graph. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[clear](../interfaces/types-IGraph.en.md#clear) - -#### Defined in - -[runtime/graph.ts:475](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L475) - -___ - -### clearStack - -▸ **clearStack**(`stackType?`): `void` - -Clear history stack - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `stackType?` | ``"redo"`` \| ``"undo"`` | undo/redo stack | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[clearStack](../interfaces/types-IGraph.en.md#clearstack) - -#### Defined in - -[runtime/graph.ts:2130](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2130) - -___ - -### executeWithoutStacking - -▸ **executeWithoutStacking**(`callback`): `void` - -Execute a callback without allowing any stacking operations. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `callback` | () => `void` | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[executeWithoutStacking](../interfaces/types-IGraph.en.md#executewithoutstacking) - -#### Defined in - -[runtime/graph.ts:2024](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2024) - -___ - -### fitCenter - -▸ **fitCenter**(`effectTiming?`): `Promise`<`void`\> - -Fit the graph center to the view center. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[fitCenter](../interfaces/types-IGraph.en.md#fitcenter) - -#### Defined in - -[runtime/graph.ts:711](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L711) - -___ - -### fitView - -▸ **fitView**(`options?`, `effectTiming?`): `Promise`<`void`\> - -Fit the graph content to the view. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `options?` | `Object` | - | -| `options.padding` | `Padding` | padding while fitting | -| `options.rules` | `FitViewRules` | rules for fitting | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[fitView](../interfaces/types-IGraph.en.md#fitview) - -#### Defined in - -[runtime/graph.ts:643](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L643) - -___ - -### focusItem - -▸ **focusItem**(`id`, `effectTiming?`): `Promise`<`void`\> - -Move the graph to make the item align the view center. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` \| `ID`[] | - | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[focusItem](../interfaces/types-IGraph.en.md#focusitem) - -#### Defined in - -[runtime/graph.ts:726](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L726) - -___ - -### getLayoutCurrentAnimation - -▸ **getLayoutCurrentAnimation**(): `Animation` - -#### Returns - -`Animation` - -#### Defined in - -[runtime/graph.ts:1745](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1745) - -___ - -### getRedoStack - -▸ **getRedoStack**(): `Command`[][] - -Retrieve the current undo stack which consists of operations that were undone - -#### Returns - -`Command`[][] - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getRedoStack](../interfaces/types-IGraph.en.md#getredostack) - -#### Defined in - -[runtime/graph.ts:2045](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2045) - -___ - -### getSpecification - -▸ **getSpecification**(): [`Specification`](../interfaces/types-Specification.en.md)<`B`, `T`\> - -Get the copy of specs(configurations). - -#### Returns - -[`Specification`](../interfaces/types-Specification.en.md)<`B`, `T`\> - -graph specs - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getSpecification](../interfaces/types-IGraph.en.md#getspecification) - -#### Defined in - -[runtime/graph.ts:394](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L394) - -___ - -### getStack - -▸ **getStack**(): `Record`<`string`, `Command`[][]\> - -Retrieve the complete history stack - -#### Returns - -`Record`<`string`, `Command`[][]\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getStack](../interfaces/types-IGraph.en.md#getstack) - -#### Defined in - -[runtime/graph.ts:2054](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2054) - -___ - -### getUndoStack - -▸ **getUndoStack**(): `Command`[][] - -Retrieve the current redo stack which consists of operations that could be undone - -#### Returns - -`Command`[][] - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getUndoStack](../interfaces/types-IGraph.en.md#getundostack) - -#### Defined in - -[runtime/graph.ts:2037](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2037) - -___ - -### getViewportCenter - -▸ **getViewportCenter**(): `PointLike` - -Return the center of viewport, e.g. for a 500 * 500 canvas, its center is [250, 250]. - -#### Returns - -`PointLike` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getViewportCenter](../interfaces/types-IGraph.en.md#getviewportcenter) - -#### Defined in - -[runtime/graph.ts:492](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L492) - -___ - -### getZoom - -▸ **getZoom**(): `number` - -Return the current zoom level of camera. - -#### Returns - -`number` - -current zoom - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getZoom](../interfaces/types-IGraph.en.md#getzoom) - -#### Defined in - -[runtime/graph.ts:593](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L593) - -___ - -### isHistoryEnabled - -▸ **isHistoryEnabled**(): `boolean` - -Determine if history (redo/undo) is enabled. - -#### Returns - -`boolean` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[isHistoryEnabled](../interfaces/types-IGraph.en.md#ishistoryenabled) - -#### Defined in - -[runtime/graph.ts:1988](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1988) - -___ - -### layout - -▸ **layout**(`options?`, `disableAnimate?`): `Promise`<`void`\> - -Layout the graph (with current configurations if cfg is not assigned). - -#### Parameters - -| Name | Type | Default value | -| :------ | :------ | :------ | -| `options?` | [`LayoutOptions`](../modules/types.en.md#layoutoptions) | `undefined` | -| `disableAnimate` | `boolean` | `false` | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[layout](../interfaces/types-IGraph.en.md#layout) - -#### Defined in - -[runtime/graph.ts:1689](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1689) - -___ - -### pauseStacking - -▸ **pauseStacking**(): `void` - -Pause stacking operation. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[pauseStacking](../interfaces/types-IGraph.en.md#pausestacking) - -#### Defined in - -[runtime/graph.ts:2007](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2007) - -___ - -### pushStack - -▸ **pushStack**(`cmd`, `stackType`, `isNew?`): `void` - -Push the operation(s) onto the specified stack - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `cmd` | `Command`[] | commands to be pushed | -| `stackType` | ``"redo"`` \| ``"undo"`` | undo/redo stack | -| `isNew?` | `boolean` | | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[pushStack](../interfaces/types-IGraph.en.md#pushstack) - -#### Defined in - -[runtime/graph.ts:1999](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1999) - -___ - -### redo - -▸ **redo**(): `void` - -Revert recent n operation(s) performed on the graph. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[redo](../interfaces/types-IGraph.en.md#redo) - -#### Defined in - -[runtime/graph.ts:2074](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2074) - -___ - -### resumeStacking - -▸ **resumeStacking**(): `void` - -Resume stacking operation. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[resumeStacking](../interfaces/types-IGraph.en.md#resumestacking) - -#### Defined in - -[runtime/graph.ts:2015](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2015) - -___ - -### rotate - -▸ **rotate**(`angle`, `origin?`, `effectTiming?`): `Promise`<`void`\> - -Rotate the graph with a relative angle. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `angle` | `number` | -| `origin?` | `PointLike` | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[rotate](../interfaces/types-IGraph.en.md#rotate) - -#### Defined in - -[runtime/graph.ts:603](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L603) - -___ - -### rotateTo - -▸ **rotateTo**(`angle`, `origin?`, `effectTiming?`): `Promise`<`void`\> - -Rotate the graph to an absolute angle. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `angle` | `number` | -| `origin?` | `PointLike` | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[rotateTo](../interfaces/types-IGraph.en.md#rotateto) - -#### Defined in - -[runtime/graph.ts:625](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L625) - -___ - -### startBatch - -▸ **startBatch**(): `void` - -Begin a batch operation. -Any operations performed between `startBatch` and `stopBatch` are grouped together. -treated as a single operation when undoing or redoing. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[startBatch](../interfaces/types-IGraph.en.md#startbatch) - -#### Defined in - -[runtime/graph.ts:2100](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2100) - -___ - -### stopBatch - -▸ **stopBatch**(): `void` - -End a batch operation. -Any operations performed between `startBatch` and `stopBatch` are grouped together. -treated as a single operation when undoing or redoing. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[stopBatch](../interfaces/types-IGraph.en.md#stopbatch) - -#### Defined in - -[runtime/graph.ts:2110](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2110) - -___ - -### stopLayout - -▸ **stopLayout**(): `void` - -Some layout algorithms has many iterations which can be stopped at any time. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[stopLayout](../interfaces/types-IGraph.en.md#stoplayout) - -#### Defined in - -[runtime/graph.ts:1737](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1737) - -___ - -### stopTransformTransition - -▸ **stopTransformTransition**(): `void` - -Stop the current transition of transform immediately. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[stopTransformTransition](../interfaces/types-IGraph.en.md#stoptransformtransition) - -#### Defined in - -[runtime/graph.ts:510](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L510) - -___ - -### transform - -▸ **transform**(`options`, `effectTiming?`): `Promise`<`void`\> - -Transform the graph with a CSS-Transform-like syntax. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `options` | `GraphTransformOptions` | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[transform](../interfaces/types-IGraph.en.md#transform) - -#### Defined in - -[runtime/graph.ts:496](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L496) - -___ - -### translate - -▸ **translate**(`distance`, `effectTiming?`): `Promise`<`void`\> - -Move the graph with a relative distance under viewport coordinates. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `distance` | `Partial`<{ `dx`: `number` ; `dy`: `number` ; `dz`: `number` }\> | - | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[translate](../interfaces/types-IGraph.en.md#translate) - -#### Defined in - -[runtime/graph.ts:520](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L520) - -___ - -### translateTo - -▸ **translateTo**(`destination`, `effectTiming?`): `Promise`<`void`\> - -Move the graph to destination under viewport coordinates. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `destination` | `Point` | destination under viewport coordinates. | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[translateTo](../interfaces/types-IGraph.en.md#translateto) - -#### Defined in - -[runtime/graph.ts:541](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L541) - -___ - -### undo - -▸ **undo**(): `void` - -Restore n operations that were last n reverted on the graph. - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[undo](../interfaces/types-IGraph.en.md#undo) - -#### Defined in - -[runtime/graph.ts:2064](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2064) - -___ - -### updateSpecification - -▸ **updateSpecification**(`spec`): [`Specification`](../interfaces/types-Specification.en.md)<`B`, `T`\> - -Update the specs(configurations). - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `spec` | [`Specification`](../interfaces/types-Specification.en.md)<`B`, `T`\> | - -#### Returns - -[`Specification`](../interfaces/types-Specification.en.md)<`B`, `T`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[updateSpecification](../interfaces/types-IGraph.en.md#updatespecification) - -#### Defined in - -[runtime/graph.ts:367](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L367) - -___ - -### updateTheme - -▸ **updateTheme**(`theme`): `void` - -Update the theme specs (configurations). - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `theme` | `ThemeOptionsOf`<`T`\> | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[updateTheme](../interfaces/types-IGraph.en.md#updatetheme) - -#### Defined in - -[runtime/graph.ts:373](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L373) - -___ - -### zoom - -▸ **zoom**(`ratio`, `origin?`, `effectTiming?`): `Promise`<`void`\> - -Zoom the graph with a relative ratio. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ratio` | `number` | relative ratio to zoom | -| `origin?` | `Point` | origin under viewport coordinates. | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[zoom](../interfaces/types-IGraph.en.md#zoom) - -#### Defined in - -[runtime/graph.ts:555](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L555) - -___ - -### zoomTo - -▸ **zoomTo**(`zoom`, `origin?`, `effectTiming?`): `Promise`<`void`\> - -Zoom the graph to a specified ratio. - -#### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `zoom` | `number` | specified ratio | -| `origin?` | `PointLike` | zoom center | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -#### Returns - -`Promise`<`void`\> - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[zoomTo](../interfaces/types-IGraph.en.md#zoomto) - -#### Defined in - -[runtime/graph.ts:577](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L577) - -## Plugin - -### addPlugins - -▸ **addPlugins**(`pluginCfgs`): `void` - -Add plugin(s) to graph. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `pluginCfgs` | (`string` \| { `[cfgName: string]`: `unknown`; `key`: `string` ; `type`: `string` })[] | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[addPlugins](../interfaces/types-IGraph.en.md#addplugins) - -#### Defined in - -[runtime/graph.ts:1841](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1841) - -___ - -### removePlugins - -▸ **removePlugins**(`pluginKeys`): `void` - -Remove plugin(s) from graph. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `pluginKeys` | `string`[] | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[removePlugins](../interfaces/types-IGraph.en.md#removeplugins) - -#### Defined in - -[runtime/graph.ts:1894](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L1894) - -## Properties - -### backgroundCanvas - -• **backgroundCanvas**: `Canvas` - -#### Defined in - -[runtime/graph.ts:84](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L84) - -___ - -### canvas - -• **canvas**: `Canvas` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[canvas](../interfaces/types-IGraph.en.md#canvas) - -#### Defined in - -[runtime/graph.ts:74](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L74) - -___ - -### container - -• **container**: `HTMLElement` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[container](../interfaces/types-IGraph.en.md#container) - -#### Defined in - -[runtime/graph.ts:76](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L76) - -___ - -### destroyed - -• **destroyed**: `boolean` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[destroyed](../interfaces/types-IGraph.en.md#destroyed) - -#### Defined in - -[runtime/graph.ts:78](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L78) - -___ - -### hooks - -• **hooks**: `Hooks` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[hooks](../interfaces/types-IGraph.en.md#hooks) - -#### Defined in - -[runtime/graph.ts:72](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L72) - -___ - -### rendererType - -• **rendererType**: `RendererName` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[rendererType](../interfaces/types-IGraph.en.md#renderertype) - -#### Defined in - -[runtime/graph.ts:80](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L80) - -___ - -### transientCanvas - -• **transientCanvas**: `Canvas` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[transientCanvas](../interfaces/types-IGraph.en.md#transientcanvas) - -#### Defined in - -[runtime/graph.ts:82](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L82) - -## Tree - -### collapse - -▸ **collapse**(`ids`, `disableAnimate?`, `stack?`): `void` - -Collapse sub tree(s). - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | `undefined` | Root id(s) of the sub trees. | -| `disableAnimate` | `boolean` | `false` | Whether disable the animations for this operation. | -| `stack?` | `boolean` | `undefined` | Whether push this operation to stack. | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[collapse](../interfaces/types-IGraph.en.md#collapse) - -#### Defined in - -[runtime/graph.ts:2146](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2146) - -___ - -### expand - -▸ **expand**(`ids`, `disableAnimate?`, `stack?`): `void` - -Expand sub tree(s). - -#### Parameters - -| Name | Type | Default value | Description | -| :------ | :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | `undefined` | Root id(s) of the sub trees. | -| `disableAnimate` | `boolean` | `false` | Whether disable the animations for this operation. | -| `stack?` | `boolean` | `undefined` | Whether push this operation to stack. | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[expand](../interfaces/types-IGraph.en.md#expand) - -#### Defined in - -[runtime/graph.ts:2162](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L2162) - -## View - -### getCanvasByClient - -▸ **getCanvasByClient**(`clientPoint`): `Point` - -Get the rendering coordinate according to the browser coordinate. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `clientPoint` | `Point` | - -#### Returns - -`Point` - -rendering coordinate - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getCanvasByClient](../interfaces/types-IGraph.en.md#getcanvasbyclient) - -#### Defined in - -[runtime/graph.ts:824](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L824) - -___ - -### getCanvasByViewport - -▸ **getCanvasByViewport**(`viewportPoint`): `Point` - -Get the rendering coordinate according to the canvas dom (viewport) coordinate. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `viewportPoint` | `Point` | - -#### Returns - -`Point` - -canvas dom (viewport) coordinate - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getCanvasByViewport](../interfaces/types-IGraph.en.md#getcanvasbyviewport) - -#### Defined in - -[runtime/graph.ts:793](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L793) - -___ - -### getClientByCanvas - -▸ **getClientByCanvas**(`canvasPoint`): `Point` - -Get the browser coordinate according to the rendering coordinate. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `canvasPoint` | `Point` | - -#### Returns - -`Point` - -browser coordinate - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getClientByCanvas](../interfaces/types-IGraph.en.md#getclientbycanvas) - -#### Defined in - -[runtime/graph.ts:813](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L813) - -___ - -### getSize - -▸ **getSize**(): `number`[] - -Get the size of the graph canvas. - -#### Returns - -`number`[] - -[width, height] - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getSize](../interfaces/types-IGraph.en.md#getsize) - -#### Defined in - -[runtime/graph.ts:765](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L765) - -___ - -### getViewportByCanvas - -▸ **getViewportByCanvas**(`canvasPoint`): `Point` - -Get the canvas dom (viewport) coordinate according to the rendering coordinate. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `canvasPoint` | `Point` | - -#### Returns - -`Point` - -rendering coordinate - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[getViewportByCanvas](../interfaces/types-IGraph.en.md#getviewportbycanvas) - -#### Defined in - -[runtime/graph.ts:803](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L803) - -___ - -### setSize - -▸ **setSize**(`size`): `void` - -Set the size for the graph canvas. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `size` | `number`[] | - -#### Returns - -`void` - -#### Implementation of - -[IGraph](../interfaces/types-IGraph.en.md).[setSize](../interfaces/types-IGraph.en.md#setsize) - -#### Defined in - -[runtime/graph.ts:775](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/runtime/graph.ts#L775) diff --git a/packages/site/docs/apis/classes/graph-Graph.zh.md b/packages/site/docs/apis/classes/graph-Graph.zh.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/site/docs/apis/classes/graph/Graph.en.md b/packages/site/docs/apis/classes/graph/Graph.en.md index c221702894..ebad4b5680 100644 --- a/packages/site/docs/apis/classes/graph/Graph.en.md +++ b/packages/site/docs/apis/classes/graph/Graph.en.md @@ -51,7 +51,7 @@ whether success #### Defined in -[packages/g6/src/runtime/graph.ts:1549](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1549) +[packages/g6/src/runtime/graph.ts:1543](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1543) ___ @@ -77,7 +77,7 @@ Collapse a combo. #### Defined in -[packages/g6/src/runtime/graph.ts:1594](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1594) +[packages/g6/src/runtime/graph.ts:1588](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1588) ___ @@ -103,7 +103,7 @@ Expand a combo. #### Defined in -[packages/g6/src/runtime/graph.ts:1614](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1614) +[packages/g6/src/runtime/graph.ts:1608](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1608) ___ @@ -123,7 +123,7 @@ In fact, it changes the succeed nodes positions to affect the combo's position, | `dx` | `number` | | `dy` | `number` | | `upsertAncestors?` | `boolean` | -| `callback?` | (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`, `canceled?`: `boolean`) => `void` | +| `callback?` | (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`, `canceled?`: `boolean`) => `void` | #### Returns @@ -135,7 +135,7 @@ In fact, it changes the succeed nodes positions to affect the combo's position, #### Defined in -[packages/g6/src/runtime/graph.ts:1637](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1637) +[packages/g6/src/runtime/graph.ts:1631](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1631) ## Constructors @@ -162,13 +162,13 @@ EventEmitter.constructor #### Defined in -[packages/g6/src/runtime/graph.ts:106](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L106) +[packages/g6/src/runtime/graph.ts:100](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L100) ## Data ### addData -▸ **addData**(`itemType`, `models`): `NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +▸ **addData**(`itemType`, `models`): `NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] Add one or more node/edge/combo data to the graph. @@ -177,11 +177,11 @@ Add one or more node/edge/combo data to the graph. | Name | Type | Description | | :------ | :------ | :------ | | `itemType` | `ITEM_TYPE` | item type | -| `models` | `NodeUserModel` \| `ComboUserModel` \| `EdgeUserModel` \| `NodeUserModel`[] \| `EdgeUserModel`[] \| `ComboUserModel`[] | - | +| `models` | `NodeUserModel` \| `EdgeUserModel` \| `ComboUserModel` \| `NodeUserModel`[] \| `EdgeUserModel`[] \| `ComboUserModel`[] | - | #### Returns -`NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +`NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] whether success @@ -191,7 +191,7 @@ whether success #### Defined in -[packages/g6/src/runtime/graph.ts:975](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L975) +[packages/g6/src/runtime/graph.ts:969](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L969) ___ @@ -218,7 +218,7 @@ Change graph data. #### Defined in -[packages/g6/src/runtime/graph.ts:456](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L456) +[packages/g6/src/runtime/graph.ts:450](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L450) ___ @@ -240,7 +240,7 @@ all combos' inner data on the graph #### Defined in -[packages/g6/src/runtime/graph.ts:886](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L886) +[packages/g6/src/runtime/graph.ts:880](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L880) ___ @@ -262,7 +262,7 @@ all edges' inner data on the graph #### Defined in -[packages/g6/src/runtime/graph.ts:878](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L878) +[packages/g6/src/runtime/graph.ts:872](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L872) ___ @@ -284,7 +284,7 @@ all nodes' inner data on the graph #### Defined in -[packages/g6/src/runtime/graph.ts:870](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L870) +[packages/g6/src/runtime/graph.ts:864](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L864) ___ @@ -312,7 +312,7 @@ children's data array #### Defined in -[packages/g6/src/runtime/graph.ts:919](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L919) +[packages/g6/src/runtime/graph.ts:913](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L913) ___ @@ -340,7 +340,7 @@ result combo's inner data #### Defined in -[packages/g6/src/runtime/graph.ts:860](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L860) +[packages/g6/src/runtime/graph.ts:854](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L854) ___ @@ -368,7 +368,7 @@ result edge's inner data #### Defined in -[packages/g6/src/runtime/graph.ts:847](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L847) +[packages/g6/src/runtime/graph.ts:841](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L841) ___ @@ -394,7 +394,7 @@ Retrieve the nearby edges for a given node using quadtree collision detection. #### Defined in -[packages/g6/src/runtime/graph.ts:940](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L940) +[packages/g6/src/runtime/graph.ts:934](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L934) ___ @@ -423,7 +423,7 @@ one-hop nodes' data array #### Defined in -[packages/g6/src/runtime/graph.ts:907](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L907) +[packages/g6/src/runtime/graph.ts:901](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L901) ___ @@ -451,7 +451,7 @@ result node's inner data #### Defined in -[packages/g6/src/runtime/graph.ts:836](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L836) +[packages/g6/src/runtime/graph.ts:830](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L830) ___ @@ -480,7 +480,7 @@ one-hop edges' data array #### Defined in -[packages/g6/src/runtime/graph.ts:895](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L895) +[packages/g6/src/runtime/graph.ts:889](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L889) ___ @@ -507,7 +507,7 @@ If there is old data, diffs and changes it. #### Defined in -[packages/g6/src/runtime/graph.ts:405](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L405) +[packages/g6/src/runtime/graph.ts:399](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L399) ___ @@ -536,13 +536,13 @@ whether success #### Defined in -[packages/g6/src/runtime/graph.ts:1032](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1032) +[packages/g6/src/runtime/graph.ts:1026](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1026) ___ ### updateComboPosition -▸ **updateComboPosition**(`models`, `upsertAncestors?`, `disableAnimate?`, `callback?`, `stack?`): `NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +▸ **updateComboPosition**(`models`, `upsertAncestors?`, `disableAnimate?`, `callback?`, `stack?`): `NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] Update one or more combos' positions, do not update other styles which leads to better performance than updating positions by updateData. @@ -555,12 +555,12 @@ In fact, it changes the succeed nodes positions to affect the combo's position, | `models` | `Partial`<`NodeUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\> | `undefined` | new configurations with x and y for every combo, which has id field to indicate the specific item | | `upsertAncestors?` | `boolean` | `undefined` | - | | `disableAnimate` | `boolean` | `false` | - | -| `callback?` | (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`) => `void` | `undefined` | - | +| `callback?` | (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`) => `void` | `undefined` | - | | `stack?` | `boolean` | `undefined` | - | #### Returns -`NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +`NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] #### Implementation of @@ -568,13 +568,13 @@ In fact, it changes the succeed nodes positions to affect the combo's position, #### Defined in -[packages/g6/src/runtime/graph.ts:1211](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1211) +[packages/g6/src/runtime/graph.ts:1205](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1205) ___ ### updateData -▸ **updateData**(`itemType`, `models`): `NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +▸ **updateData**(`itemType`, `models`): `NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] Update one or more node/edge/combo data on the graph. @@ -587,7 +587,7 @@ Update one or more node/edge/combo data on the graph. #### Returns -`NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +`NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] #### Implementation of @@ -595,13 +595,13 @@ Update one or more node/edge/combo data on the graph. #### Defined in -[packages/g6/src/runtime/graph.ts:1122](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1122) +[packages/g6/src/runtime/graph.ts:1116](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1116) ___ ### updateNodePosition -▸ **updateNodePosition**(`models`, `upsertAncestors?`, `disableAnimate?`, `callback?`, `stack?`): `NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +▸ **updateNodePosition**(`models`, `upsertAncestors?`, `disableAnimate?`, `callback?`, `stack?`): `NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] Update one or more nodes' positions, do not update other styles which leads to better performance than updating positions by updateData. @@ -613,12 +613,12 @@ do not update other styles which leads to better performance than updating posit | `models` | `Partial`<`NodeUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\> | `undefined` | new configurations with x and y for every node, which has id field to indicate the specific item | | `upsertAncestors?` | `boolean` | `undefined` | - | | `disableAnimate` | `boolean` | `false` | - | -| `callback?` | (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`, `canceled?`: `boolean`) => `void` | `undefined` | - | +| `callback?` | (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`, `canceled?`: `boolean`) => `void` | `undefined` | - | | `stack?` | `boolean` | `undefined` | - | #### Returns -`NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +`NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] #### Implementation of @@ -626,7 +626,7 @@ do not update other styles which leads to better performance than updating posit #### Defined in -[packages/g6/src/runtime/graph.ts:1180](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1180) +[packages/g6/src/runtime/graph.ts:1174](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1174) ## Graph Instance @@ -652,7 +652,7 @@ Destroy the graph instance and remove the related canvases. #### Defined in -[packages/g6/src/runtime/graph.ts:2187](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2187) +[packages/g6/src/runtime/graph.ts:2181](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2181) ## Interaction @@ -679,7 +679,7 @@ Add behavior(s) to mode(s). #### Defined in -[packages/g6/src/runtime/graph.ts:1777](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1777) +[packages/g6/src/runtime/graph.ts:1771](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1771) ___ @@ -693,10 +693,10 @@ Draw or update a G shape or group to the transient canvas. | Name | Type | Description | | :------ | :------ | :------ | -| `type` | `SHAPE_TYPE` \| `ITEM_TYPE` | shape type or item type | +| `type` | `ITEM_TYPE` \| `SHAPE_TYPE` | shape type or item type | | `id` | `ID` | new shape id or updated shape id for a interation shape, node/edge/combo id for item interaction group drawing | | `config` | `Object` | - | -| `config.action` | ``"update"`` \| ``"remove"`` \| ``"add"`` | - | +| `config.action` | ``"update"`` \| ``"add"`` \| ``"remove"`` | - | | `config.onlyDrawKeyShape?` | `boolean` | - | | `config.style` | `Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\> | - | | `config.upsertAncestors?` | `boolean` | - | @@ -713,7 +713,7 @@ upserted shape or group #### Defined in -[packages/g6/src/runtime/graph.ts:1974](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1974) +[packages/g6/src/runtime/graph.ts:1968](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1968) ___ @@ -735,7 +735,7 @@ mode name #### Defined in -[packages/g6/src/runtime/graph.ts:1766](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1766) +[packages/g6/src/runtime/graph.ts:1760](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1760) ___ @@ -762,7 +762,7 @@ Remove behavior(s) from mode(s). #### Defined in -[packages/g6/src/runtime/graph.ts:1803](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1803) +[packages/g6/src/runtime/graph.ts:1797](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1797) ___ @@ -788,7 +788,7 @@ Switch mode. #### Defined in -[packages/g6/src/runtime/graph.ts:1757](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1757) +[packages/g6/src/runtime/graph.ts:1751](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1751) ___ @@ -815,7 +815,7 @@ Update a behavior on a mode. #### Defined in -[packages/g6/src/runtime/graph.ts:1830](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1830) +[packages/g6/src/runtime/graph.ts:1824](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1824) ___ @@ -843,7 +843,7 @@ Update a plugin of the graph. #### Defined in -[packages/g6/src/runtime/graph.ts:1924](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1924) +[packages/g6/src/runtime/graph.ts:1918](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1918) ## Item @@ -869,7 +869,7 @@ Make the item(s) to the back. #### Defined in -[packages/g6/src/runtime/graph.ts:1400](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1400) +[packages/g6/src/runtime/graph.ts:1394](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1394) ___ @@ -896,7 +896,7 @@ Clear all the states for item(s). #### Defined in -[packages/g6/src/runtime/graph.ts:1493](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1493) +[packages/g6/src/runtime/graph.ts:1487](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1487) ___ @@ -913,7 +913,7 @@ Find items which has the state. | `itemType` | `ITEM_TYPE` | `undefined` | item type | | `state` | `string` | `undefined` | state name | | `value` | `string` \| `boolean` | `true` | - | -| `additionalFilter?` | (`item`: `NodeModel` \| `ComboModel` \| `EdgeModel`) => `boolean` | `undefined` | additional filter function | +| `additionalFilter?` | (`item`: `NodeModel` \| `EdgeModel` \| `ComboModel`) => `boolean` | `undefined` | additional filter function | #### Returns @@ -927,7 +927,7 @@ items that is the type and has the state #### Defined in -[packages/g6/src/runtime/graph.ts:953](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L953) +[packages/g6/src/runtime/graph.ts:947](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L947) ___ @@ -953,7 +953,7 @@ Make the item(s) to the front. #### Defined in -[packages/g6/src/runtime/graph.ts:1381](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1381) +[packages/g6/src/runtime/graph.ts:1375](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1375) ___ @@ -981,7 +981,7 @@ the state names with value true #### Defined in -[packages/g6/src/runtime/graph.ts:1482](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1482) +[packages/g6/src/runtime/graph.ts:1476](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1476) ___ @@ -1010,7 +1010,7 @@ the state value #### Defined in -[packages/g6/src/runtime/graph.ts:1472](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1472) +[packages/g6/src/runtime/graph.ts:1466](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1466) ___ @@ -1038,7 +1038,7 @@ visibility for the item, false for invisible or unexistence for the item #### Defined in -[packages/g6/src/runtime/graph.ts:1536](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1536) +[packages/g6/src/runtime/graph.ts:1530](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1530) ___ @@ -1068,7 +1068,7 @@ rendering bounding box. returns false if the item is not exist #### Defined in -[packages/g6/src/runtime/graph.ts:1521](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1521) +[packages/g6/src/runtime/graph.ts:1515](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1515) ___ @@ -1095,7 +1095,7 @@ Hide the item(s). #### Defined in -[packages/g6/src/runtime/graph.ts:1352](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1352) +[packages/g6/src/runtime/graph.ts:1346](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1346) ___ @@ -1123,7 +1123,7 @@ Set state for the item. #### Defined in -[packages/g6/src/runtime/graph.ts:1439](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1439) +[packages/g6/src/runtime/graph.ts:1433](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1433) ___ @@ -1150,7 +1150,7 @@ Show the item(s). #### Defined in -[packages/g6/src/runtime/graph.ts:1324](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1324) +[packages/g6/src/runtime/graph.ts:1318](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1318) ## Methods @@ -1178,7 +1178,7 @@ more convenient way without manually invoking `startBatch` and `stopBatch`. #### Defined in -[packages/g6/src/runtime/graph.ts:2132](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2132) +[packages/g6/src/runtime/graph.ts:2126](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2126) ___ @@ -1198,7 +1198,7 @@ Indicate whether there are any actions available in the redo stack. #### Defined in -[packages/g6/src/runtime/graph.ts:2101](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2101) +[packages/g6/src/runtime/graph.ts:2095](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2095) ___ @@ -1218,7 +1218,7 @@ Indicate whether there are any actions available in the undo stack. #### Defined in -[packages/g6/src/runtime/graph.ts:2093](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2093) +[packages/g6/src/runtime/graph.ts:2087](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2087) ___ @@ -1244,7 +1244,7 @@ Change the renderer at runtime. #### Defined in -[packages/g6/src/runtime/graph.ts:265](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L265) +[packages/g6/src/runtime/graph.ts:259](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L259) ___ @@ -1264,7 +1264,7 @@ Clear the graph, means remove all the items on the graph. #### Defined in -[packages/g6/src/runtime/graph.ts:475](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L475) +[packages/g6/src/runtime/graph.ts:469](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L469) ___ @@ -1290,7 +1290,7 @@ Clear history stack #### Defined in -[packages/g6/src/runtime/graph.ts:2141](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2141) +[packages/g6/src/runtime/graph.ts:2135](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2135) ___ @@ -1347,7 +1347,7 @@ Execute a callback without allowing any stacking operations. #### Defined in -[packages/g6/src/runtime/graph.ts:2035](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2035) +[packages/g6/src/runtime/graph.ts:2029](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2029) ___ @@ -1373,7 +1373,7 @@ Fit the graph center to the view center. #### Defined in -[packages/g6/src/runtime/graph.ts:711](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L711) +[packages/g6/src/runtime/graph.ts:705](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L705) ___ @@ -1402,7 +1402,7 @@ Fit the graph content to the view. #### Defined in -[packages/g6/src/runtime/graph.ts:643](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L643) +[packages/g6/src/runtime/graph.ts:637](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L637) ___ @@ -1429,7 +1429,7 @@ Move the graph to make the item align the view center. #### Defined in -[packages/g6/src/runtime/graph.ts:726](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L726) +[packages/g6/src/runtime/graph.ts:720](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L720) ___ @@ -1465,7 +1465,7 @@ ___ #### Defined in -[packages/g6/src/runtime/graph.ts:1747](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1747) +[packages/g6/src/runtime/graph.ts:1741](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1741) ___ @@ -1485,7 +1485,7 @@ Retrieve the current undo stack which consists of operations that were undone #### Defined in -[packages/g6/src/runtime/graph.ts:2056](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2056) +[packages/g6/src/runtime/graph.ts:2050](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2050) ___ @@ -1507,7 +1507,7 @@ graph specs #### Defined in -[packages/g6/src/runtime/graph.ts:394](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L394) +[packages/g6/src/runtime/graph.ts:388](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L388) ___ @@ -1527,7 +1527,7 @@ Retrieve the complete history stack #### Defined in -[packages/g6/src/runtime/graph.ts:2065](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2065) +[packages/g6/src/runtime/graph.ts:2059](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2059) ___ @@ -1547,7 +1547,7 @@ Retrieve the current redo stack which consists of operations that could be undon #### Defined in -[packages/g6/src/runtime/graph.ts:2048](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2048) +[packages/g6/src/runtime/graph.ts:2042](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2042) ___ @@ -1567,7 +1567,7 @@ Return the center of viewport, e.g. for a 500 * 500 canvas, its center is [250, #### Defined in -[packages/g6/src/runtime/graph.ts:492](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L492) +[packages/g6/src/runtime/graph.ts:486](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L486) ___ @@ -1589,7 +1589,7 @@ current zoom #### Defined in -[packages/g6/src/runtime/graph.ts:593](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L593) +[packages/g6/src/runtime/graph.ts:587](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L587) ___ @@ -1609,7 +1609,7 @@ Determine if history (redo/undo) is enabled. #### Defined in -[packages/g6/src/runtime/graph.ts:1999](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1999) +[packages/g6/src/runtime/graph.ts:1993](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1993) ___ @@ -1636,7 +1636,7 @@ Layout the graph (with current configurations if cfg is not assigned). #### Defined in -[packages/g6/src/runtime/graph.ts:1689](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1689) +[packages/g6/src/runtime/graph.ts:1683](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1683) ___ @@ -1750,7 +1750,7 @@ Pause stacking operation. #### Defined in -[packages/g6/src/runtime/graph.ts:2018](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2018) +[packages/g6/src/runtime/graph.ts:2012](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2012) ___ @@ -1778,7 +1778,7 @@ Push the operation(s) onto the specified stack #### Defined in -[packages/g6/src/runtime/graph.ts:2010](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2010) +[packages/g6/src/runtime/graph.ts:2004](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2004) ___ @@ -1798,7 +1798,7 @@ Revert recent n operation(s) performed on the graph. #### Defined in -[packages/g6/src/runtime/graph.ts:2085](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2085) +[packages/g6/src/runtime/graph.ts:2079](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2079) ___ @@ -1818,7 +1818,7 @@ Resume stacking operation. #### Defined in -[packages/g6/src/runtime/graph.ts:2026](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2026) +[packages/g6/src/runtime/graph.ts:2020](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2020) ___ @@ -1846,7 +1846,7 @@ Rotate the graph with a relative angle. #### Defined in -[packages/g6/src/runtime/graph.ts:603](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L603) +[packages/g6/src/runtime/graph.ts:597](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L597) ___ @@ -1874,7 +1874,7 @@ Rotate the graph to an absolute angle. #### Defined in -[packages/g6/src/runtime/graph.ts:625](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L625) +[packages/g6/src/runtime/graph.ts:619](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L619) ___ @@ -1896,7 +1896,7 @@ treated as a single operation when undoing or redoing. #### Defined in -[packages/g6/src/runtime/graph.ts:2111](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2111) +[packages/g6/src/runtime/graph.ts:2105](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2105) ___ @@ -1918,7 +1918,7 @@ treated as a single operation when undoing or redoing. #### Defined in -[packages/g6/src/runtime/graph.ts:2121](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2121) +[packages/g6/src/runtime/graph.ts:2115](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2115) ___ @@ -1938,7 +1938,7 @@ Some layout algorithms has many iterations which can be stopped at any time. #### Defined in -[packages/g6/src/runtime/graph.ts:1739](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1739) +[packages/g6/src/runtime/graph.ts:1733](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1733) ___ @@ -1958,7 +1958,7 @@ Stop the current transition of transform immediately. #### Defined in -[packages/g6/src/runtime/graph.ts:510](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L510) +[packages/g6/src/runtime/graph.ts:504](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L504) ___ @@ -1985,7 +1985,7 @@ Transform the graph with a CSS-Transform-like syntax. #### Defined in -[packages/g6/src/runtime/graph.ts:496](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L496) +[packages/g6/src/runtime/graph.ts:490](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L490) ___ @@ -2012,7 +2012,7 @@ Move the graph with a relative distance under viewport coordinates. #### Defined in -[packages/g6/src/runtime/graph.ts:520](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L520) +[packages/g6/src/runtime/graph.ts:514](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L514) ___ @@ -2039,7 +2039,7 @@ Move the graph to destination under viewport coordinates. #### Defined in -[packages/g6/src/runtime/graph.ts:541](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L541) +[packages/g6/src/runtime/graph.ts:535](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L535) ___ @@ -2059,7 +2059,7 @@ Restore n operations that were last n reverted on the graph. #### Defined in -[packages/g6/src/runtime/graph.ts:2075](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2075) +[packages/g6/src/runtime/graph.ts:2069](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2069) ___ @@ -2085,7 +2085,7 @@ Update the specs(configurations). #### Defined in -[packages/g6/src/runtime/graph.ts:367](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L367) +[packages/g6/src/runtime/graph.ts:361](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L361) ___ @@ -2111,7 +2111,7 @@ Update the theme specs (configurations). #### Defined in -[packages/g6/src/runtime/graph.ts:373](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L373) +[packages/g6/src/runtime/graph.ts:367](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L367) ___ @@ -2139,7 +2139,7 @@ Zoom the graph with a relative ratio. #### Defined in -[packages/g6/src/runtime/graph.ts:555](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L555) +[packages/g6/src/runtime/graph.ts:549](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L549) ___ @@ -2167,7 +2167,7 @@ Zoom the graph to a specified ratio. #### Defined in -[packages/g6/src/runtime/graph.ts:577](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L577) +[packages/g6/src/runtime/graph.ts:571](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L571) ## Plugin @@ -2193,7 +2193,7 @@ Add plugin(s) to graph. #### Defined in -[packages/g6/src/runtime/graph.ts:1852](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1852) +[packages/g6/src/runtime/graph.ts:1846](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1846) ___ @@ -2219,7 +2219,7 @@ Remove plugin(s) from graph. #### Defined in -[packages/g6/src/runtime/graph.ts:1905](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L1905) +[packages/g6/src/runtime/graph.ts:1899](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L1899) ## Properties @@ -2229,7 +2229,7 @@ Remove plugin(s) from graph. #### Defined in -[packages/g6/src/runtime/graph.ts:84](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L84) +[packages/g6/src/runtime/graph.ts:78](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L78) ___ @@ -2243,7 +2243,7 @@ ___ #### Defined in -[packages/g6/src/runtime/graph.ts:74](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L74) +[packages/g6/src/runtime/graph.ts:68](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L68) ___ @@ -2257,7 +2257,7 @@ ___ #### Defined in -[packages/g6/src/runtime/graph.ts:76](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L76) +[packages/g6/src/runtime/graph.ts:70](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L70) ___ @@ -2271,7 +2271,7 @@ ___ #### Defined in -[packages/g6/src/runtime/graph.ts:78](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L78) +[packages/g6/src/runtime/graph.ts:72](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L72) ___ @@ -2285,7 +2285,7 @@ ___ #### Defined in -[packages/g6/src/runtime/graph.ts:72](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L72) +[packages/g6/src/runtime/graph.ts:66](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L66) ___ @@ -2299,7 +2299,7 @@ ___ #### Defined in -[packages/g6/src/runtime/graph.ts:80](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L80) +[packages/g6/src/runtime/graph.ts:74](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L74) ___ @@ -2313,7 +2313,7 @@ ___ #### Defined in -[packages/g6/src/runtime/graph.ts:82](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L82) +[packages/g6/src/runtime/graph.ts:76](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L76) ## Tree @@ -2341,7 +2341,7 @@ Collapse sub tree(s). #### Defined in -[packages/g6/src/runtime/graph.ts:2157](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2157) +[packages/g6/src/runtime/graph.ts:2151](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2151) ___ @@ -2369,7 +2369,7 @@ Expand sub tree(s). #### Defined in -[packages/g6/src/runtime/graph.ts:2173](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L2173) +[packages/g6/src/runtime/graph.ts:2167](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L2167) ## View @@ -2397,7 +2397,7 @@ rendering coordinate #### Defined in -[packages/g6/src/runtime/graph.ts:824](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L824) +[packages/g6/src/runtime/graph.ts:818](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L818) ___ @@ -2425,7 +2425,7 @@ canvas dom (viewport) coordinate #### Defined in -[packages/g6/src/runtime/graph.ts:793](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L793) +[packages/g6/src/runtime/graph.ts:787](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L787) ___ @@ -2453,7 +2453,7 @@ browser coordinate #### Defined in -[packages/g6/src/runtime/graph.ts:813](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L813) +[packages/g6/src/runtime/graph.ts:807](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L807) ___ @@ -2475,7 +2475,7 @@ Get the size of the graph canvas. #### Defined in -[packages/g6/src/runtime/graph.ts:765](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L765) +[packages/g6/src/runtime/graph.ts:759](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L759) ___ @@ -2503,7 +2503,7 @@ rendering coordinate #### Defined in -[packages/g6/src/runtime/graph.ts:803](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L803) +[packages/g6/src/runtime/graph.ts:797](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L797) ___ @@ -2529,4 +2529,4 @@ Set the size for the graph canvas. #### Defined in -[packages/g6/src/runtime/graph.ts:775](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/runtime/graph.ts#L775) +[packages/g6/src/runtime/graph.ts:769](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/runtime/graph.ts#L769) diff --git a/packages/site/docs/apis/interfaces/behaviors-ActivateRelationsOptions.en.md b/packages/site/docs/apis/interfaces/behaviors-ActivateRelationsOptions.en.md deleted file mode 100644 index 0c9d6d770d..0000000000 --- a/packages/site/docs/apis/interfaces/behaviors-ActivateRelationsOptions.en.md +++ /dev/null @@ -1,99 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [behaviors](../modules/behaviors.en.md) / ActivateRelationsOptions - -# Interface: ActivateRelationsOptions - -[behaviors](../modules/behaviors.en.md).ActivateRelationsOptions - -## Properties - -### activeState - -• `Optional` **activeState**: ``"selected"`` - -Defaults to `"selected"`. - -#### Defined in - -[stdlib/behavior/activate-relations.ts:37](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L37) - -___ - -### multiple - -• `Optional` **multiple**: `boolean` - -Whether to allow multiple selection. -Defaults to true. -If set to false, `trigger` options will be ignored. - -#### Defined in - -[stdlib/behavior/activate-relations.ts:24](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L24) - -___ - -### shouldBegin - -• `Optional` **shouldBegin**: (`event`: [`IG6GraphEvent`](types-IG6GraphEvent.en.md)) => `boolean` - -#### Type declaration - -▸ (`event`): `boolean` - -Whether allow the behavior happen on the current item. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `event` | [`IG6GraphEvent`](types-IG6GraphEvent.en.md) | - -##### Returns - -`boolean` - -#### Defined in - -[stdlib/behavior/activate-relations.ts:42](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L42) - -___ - -### shouldUpdate - -• `Optional` **shouldUpdate**: (`event`: [`IG6GraphEvent`](types-IG6GraphEvent.en.md)) => `boolean` - -#### Type declaration - -▸ (`event`): `boolean` - -Whether to update item state. -If it returns false, you may probably listen to `eventName` and -manage states or data manually - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `event` | [`IG6GraphEvent`](types-IG6GraphEvent.en.md) | - -##### Returns - -`boolean` - -#### Defined in - -[stdlib/behavior/activate-relations.ts:48](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L48) - -___ - -### trigger - -• `Optional` **trigger**: ``"click"`` \| ``"mouseenter"`` - -The key to pressed with mouse click to apply multiple selection. -Defaults to `"click"`. -Could be "click", "mouseenter". - -#### Defined in - -[stdlib/behavior/activate-relations.ts:30](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L30) diff --git a/packages/site/docs/apis/interfaces/behaviors-ActivateRelationsOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors-ActivateRelationsOptions.zh.md deleted file mode 100644 index 2fb80f2dc3..0000000000 --- a/packages/site/docs/apis/interfaces/behaviors-ActivateRelationsOptions.zh.md +++ /dev/null @@ -1,99 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [行为](../modules/behaviors.zh.md ) / 激活关系选项 - - # 接口:ActivateRelationsOptions - - [行为](../modules/behaviors.zh.md).ActivateRelationsOptions - - ## 特性 - - ### 活动状态 - - • `可选` **activeState**:``“已选择”`` - - 默认为“选定”。 - - #### 定义于 - - [stdlib/behavior/activate-relations.ts:37](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L37) - - ___ - - ### 多种的 - - • `可选` **多个**:`布尔值` - - 是否允许多选。 - 默认为 true。 - 如果设置为 false,“trigger”选项将被忽略。 - - #### 定义于 - - [stdlib/behavior/activate-relations.ts:24](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L24) - - ___ - - ### 应该开始 - - • `可选` **shouldBegin**: (`event`: [`IG6GraphEvent`](types-IG6GraphEvent.zh.md)) => `boolean` - - #### 类型声明 - - ▸ (`事件`): `布尔值` - - 是否允许该行为发生在当前项目上。 - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `事件` | [`IG6GraphEvent`](types-IG6GraphEvent.zh.md) | - - ##### 返回 - - `布尔值` - - #### 定义于 - - [stdlib/behavior/activate-relations.ts:42](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L42) - - ___ - - ### 应该更新 - - • `可选` **shouldUpdate**: (`event`: [`IG6GraphEvent`](types-IG6GraphEvent.zh.md)) => `boolean` - - #### 类型声明 - - ▸ (`事件`): `布尔值` - - 是否更新项目状态。 - 如果它返回 false,您可能会监听 `eventName` 并 - 手动管理状态或数据 - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `事件` | [`IG6GraphEvent`](types-IG6GraphEvent.zh.md) | - - ##### 返回 - - `布尔值` - - #### 定义于 - - [stdlib/behavior/activate-relations.ts:48](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L48) - - ___ - - ### 扳机 - - • `可选` **触发**:``"点击"`` \| ``“鼠标输入”`` - - 单击鼠标按下该键以应用多项选择。 - 默认为“单击”。 - 可以是“单击”、“鼠标输入”。 - - #### 定义于 - - [stdlib/behavior/activate-relations.ts:30](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/activate-relations.ts#L30) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors-BrushSelectOptions.en.md b/packages/site/docs/apis/interfaces/behaviors-BrushSelectOptions.en.md deleted file mode 100644 index 2090c4276a..0000000000 --- a/packages/site/docs/apis/interfaces/behaviors-BrushSelectOptions.en.md +++ /dev/null @@ -1,215 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [behaviors](../modules/behaviors.en.md) / BrushSelectOptions - -# Interface: BrushSelectOptions - -[behaviors](../modules/behaviors.en.md).BrushSelectOptions - -## Properties - -### brushStyle - -• **brushStyle**: `Object` - -The shape style of the brush while selecting. - -#### Index signature - -▪ [key: `string`]: `unknown` - -#### Type declaration - -| Name | Type | -| :------ | :------ | -| `fill?` | `string` | -| `fillOpacity?` | `number` | -| `lineWidth?` | `number` | -| `stroke?` | `string` | - -#### Defined in - -[stdlib/behavior/brush-select.ts:46](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L46) - -___ - -### eventName - -• **eventName**: `string` - -The event name to trigger when select/unselect an item. - -#### Defined in - -[stdlib/behavior/brush-select.ts:42](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L42) - -___ - -### itemTypes - -• **itemTypes**: (``"node"`` \| ``"edge"`` \| ``"combo"``)[] - -Item types to be able to select. -Defaults to `["nodes"]`. -Should be an array of "node", "edge", or "combo". - -#### Defined in - -[stdlib/behavior/brush-select.ts:32](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L32) - -___ - -### onDeselect - -• **onDeselect**: (`selectedIds`: { `combos`: `ID`[] ; `edges`: `ID`[] ; `nodes`: `ID`[] }, `deselectedIds`: { `combos`: `ID`[] ; `edges`: `ID`[] ; `nodes`: `ID`[] }) => `void` - -#### Type declaration - -▸ (`selectedIds`, `deselectedIds`): `void` - -A callback be called after deselecting. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `selectedIds` | `Object` | -| `selectedIds.combos` | `ID`[] | -| `selectedIds.edges` | `ID`[] | -| `selectedIds.nodes` | `ID`[] | -| `deselectedIds` | `Object` | -| `deselectedIds.combos` | `ID`[] | -| `deselectedIds.edges` | `ID`[] | -| `deselectedIds.nodes` | `ID`[] | - -##### Returns - -`void` - -#### Defined in - -[stdlib/behavior/brush-select.ts:77](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L77) - -___ - -### onSelect - -• **onSelect**: (`selectedIds`: { `combos`: `ID`[] ; `edges`: `ID`[] ; `nodes`: `ID`[] }) => `void` - -#### Type declaration - -▸ (`selectedIds`): `void` - -A callback be called after selecting. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `selectedIds` | `Object` | -| `selectedIds.combos` | `ID`[] | -| `selectedIds.edges` | `ID`[] | -| `selectedIds.nodes` | `ID`[] | - -##### Returns - -`void` - -#### Defined in - -[stdlib/behavior/brush-select.ts:73](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L73) - -___ - -### selectSetMode - -• **selectSetMode**: ``"union"`` \| ``"intersect"`` \| ``"diff"`` \| ``"latest"`` - -The mode to compose the selections from times of brush - -#### Defined in - -[stdlib/behavior/brush-select.ts:54](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L54) - -___ - -### selectedState - -• **selectedState**: ``"selected"`` - -The state to be applied when select. -Defaults to `"selected"`. -Can be set to "active", "highlighted", etc. - -#### Defined in - -[stdlib/behavior/brush-select.ts:38](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L38) - -___ - -### shouldBegin - -• **shouldBegin**: (`event`: [`IG6GraphEvent`](types-IG6GraphEvent.en.md)) => `boolean` - -#### Type declaration - -▸ (`event`): `boolean` - -Whether allow the behavior happen on the current item. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `event` | [`IG6GraphEvent`](types-IG6GraphEvent.en.md) | - -##### Returns - -`boolean` - -#### Defined in - -[stdlib/behavior/brush-select.ts:58](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L58) - -___ - -### shouldUpdate - -• **shouldUpdate**: (`itemType`: `ITEM_TYPE`, `id`: `ID`, `action`: ``"select"`` \| ``"deselect"``, `self`: `default`) => `boolean` - -#### Type declaration - -▸ (`itemType`, `id`, `action`, `self`): `boolean` - -Whether to update item state. -If it returns false, you may probably listen to `eventName` and -manage states or data manually - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `itemType` | `ITEM_TYPE` | -| `id` | `ID` | -| `action` | ``"select"`` \| ``"deselect"`` | -| `self` | `default` | - -##### Returns - -`boolean` - -#### Defined in - -[stdlib/behavior/brush-select.ts:64](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L64) - -___ - -### trigger - -• **trigger**: ``"drag"`` \| ``"shift"`` \| ``"ctrl"`` \| ``"alt"`` \| ``"meta"`` - -The key to pressed with mouse click to apply multiple selection. -Defaults to `"shift"`. -Could be "drag", "shift", "ctrl", "alt", or "meta". - -#### Defined in - -[stdlib/behavior/brush-select.ts:26](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L26) diff --git a/packages/site/docs/apis/interfaces/behaviors-BrushSelectOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors-BrushSelectOptions.zh.md deleted file mode 100644 index 970213d1ff..0000000000 --- a/packages/site/docs/apis/interfaces/behaviors-BrushSelectOptions.zh.md +++ /dev/null @@ -1,215 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [行为](../modules/behaviors.zh.md ) / 画笔选择选项 - - # 接口:BrushSelectOptions - - [行为](../modules/behaviors.zh.md).BrushSelectOptions - - ## 特性 - - ###画笔样式 - - • **brushStyle**:`对象` - - 选择时画笔的形状样式。 - - #### 索引签名 - - ▪ [key: `string`]: `unknown` - - #### 类型声明 - - | 名称 | 类型 | - | :------ | :------ | - | `填充?` | `字符串` | - | `填充不透明度?` | `数字` | - | `线宽?` | `数字` | - | `中风?` | `字符串` | - - #### 定义于 - - [stdlib/behavior/brush-select.ts:46](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L46) - - ___ - - ### 事件名称 - - • **事件名称**:`字符串` - - 选择/取消选择项目时触发的事件名称。 - - #### 定义于 - - [stdlib/behavior/brush-select.ts:42](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L42) - - ___ - - ### 项目类型 - - • **itemTypes**: (``"node"`` \| ``"edge"`` \| ``"combo"``)[] - - 可以选择的项目类型。 - 默认为`[“节点”]`。 - 应该是“节点”、“边”或“组合”的数组。 - - #### 定义于 - - [stdlib/behavior/brush-select.ts:32](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L32) - - ___ - - ### on取消选择 - - • **onDeselect**: (`selectedIds`: { `combos`: `ID`[] ; `edges`: `ID`[] ; `nodes`: `ID`[] }, `deselectedIds`: { ` 组合`:`ID`[] ;`边`:`ID`[] ;`节点`:`ID`[] }) => `void` - - #### 类型声明 - - ▸ (`selectedIds`, `deselectedIds`): `void` - - 取消选择后调用回调。 - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `selectedIds` | `对象` | - | `selectedIds.combos` | `ID`[] | - | `selectedIds.edges` | `ID`[] | - | `selectedIds.nodes` | `ID`[] | - | `取消选择的Ids` | `对象` | - | `deselectedIds.combos` | `ID`[] | - | `deselectedIds.edges` | `ID`[] | - | `deselectedIds.nodes` | `ID`[] | - - ##### 返回 - - `无效` - - #### 定义于 - - [stdlib/behavior/brush-select.ts:77](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L77) - - ___ - - ### on选择 - - • **onSelect**: (`selectedIds`: { `combos`: `ID`[] ; `edges`: `ID`[] ; `nodes`: `ID`[] }) => `void` - - #### 类型声明 - - ▸ (`selectedIds`): `void` - - 选择后会调用回调。 - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `selectedIds` | `对象` | - | `selectedIds.combos` | `ID`[] | - | `selectedIds.edges` | `ID`[] | - | `selectedIds.nodes` | `ID`[] | - - ##### 返回 - - `无效` - - #### 定义于 - - [stdlib/behavior/brush-select.ts:73](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L73) - - ___ - - ### 选择设置模式 - - • **selectSetMode**: ``"union"`` \| ``“相交”`` \| ``“差异”`` \| ``“最新”`` - - 笔刷次数组成选区的模式 - - #### 定义于 - - [stdlib/behavior/brush-select.ts:54](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L54) - - ___ - - ### 选定状态 - - • **selectedState**:``“已选择”`` - - 选择时要应用的状态。 - 默认为“选定”。 - 可以设置为“活动”、“突出显示”等。 - - #### 定义于 - - [stdlib/behavior/brush-select.ts:38](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L38) - - ___ - - ### 应该开始 - - • **shouldBegin**: (`event`: [`IG6GraphEvent`](types-IG6GraphEvent.zh.md)) => `boolean` - - #### 类型声明 - - ▸ (`事件`): `布尔值` - - 是否允许该行为发生在当前项目上。 - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `事件` | [`IG6GraphEvent`](types-IG6GraphEvent.zh.md) | - - ##### 返回 - - `布尔值` - - #### 定义于 - - [stdlib/behavior/brush-select.ts:58](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L58) - - ___ - - ### 应该更新 - - • **shouldUpdate**: (`itemType`: `ITEM_TYPE`, `id`: `ID`, `action`: ``"选择"`` \| ``"取消选择"``, `self`: ` 默认`) => `布尔值` - - #### 类型声明 - - ▸ (`itemType`, `id`, `action`, `self`): `boolean` - - 是否更新项目状态。 - 如果它返回 false,您可能会监听 `eventName` 并 - 手动管理状态或数据 - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `项目类型` | `ITEM_TYPE` | - | `id` | `ID` | - | `行动` | ``“选择”`` \| ``“取消选择”`` | - | `自我` | `默认` | - - ##### 返回 - - `布尔值` - - #### 定义于 - - [stdlib/behavior/brush-select.ts:64](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L64) - - ___ - - ### 扳机 - - • **触发**:``“拖动”`` \| ``“转变”`` \| ``“ctrl”`` \| ``“替代”`` \| ``“元”`` - - 单击鼠标按下该键以应用多项选择。 - 默认为“移位”。 - 可以是“drag”、“shift”、“ctrl”、“alt”或“meta”。 - - #### 定义于 - - [stdlib/behavior/brush-select.ts:26](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/behavior/brush-select.ts#L26) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/ActivateRelationsOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/ActivateRelationsOptions.en.md index b95366ac43..efd328c8e2 100644 --- a/packages/site/docs/apis/interfaces/behaviors/ActivateRelationsOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/ActivateRelationsOptions.en.md @@ -16,7 +16,7 @@ Defaults to `"selected"`. #### Defined in -[packages/g6/src/stdlib/behavior/activate-relations.ts:37](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations.ts#L37) +[packages/g6/src/stdlib/behavior/activate-relations.ts:37](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations.ts#L37) ___ @@ -30,7 +30,7 @@ If set to false, `trigger` options will be ignored. #### Defined in -[packages/g6/src/stdlib/behavior/activate-relations.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations.ts#L24) +[packages/g6/src/stdlib/behavior/activate-relations.ts:24](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations.ts#L24) ___ @@ -56,7 +56,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/activate-relations.ts:42](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations.ts#L42) +[packages/g6/src/stdlib/behavior/activate-relations.ts:42](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations.ts#L42) ___ @@ -84,7 +84,7 @@ manage states or data manually #### Defined in -[packages/g6/src/stdlib/behavior/activate-relations.ts:48](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations.ts#L48) +[packages/g6/src/stdlib/behavior/activate-relations.ts:48](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations.ts#L48) ___ @@ -98,4 +98,4 @@ Could be "click", "mouseenter". #### Defined in -[packages/g6/src/stdlib/behavior/activate-relations.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations.ts#L30) +[packages/g6/src/stdlib/behavior/activate-relations.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations.ts#L30) diff --git a/packages/site/docs/apis/interfaces/behaviors/ActivateRelationsOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/ActivateRelationsOptions.zh.md index 7653e35d2a..418b29c4f5 100644 --- a/packages/site/docs/apis/interfaces/behaviors/ActivateRelationsOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/ActivateRelationsOptions.zh.md @@ -16,7 +16,7 @@ title: ActivateRelationsOptions #### 定义于 - [packages/g6/src/stdlib/behavior/activate-relations.ts:37](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations。 ts#L37) + [packages/g6/src/stdlib/behavior/activate-relations.ts:37](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations。 ts#L37) ___ @@ -30,7 +30,7 @@ title: ActivateRelationsOptions #### 定义于 - [packages/g6/src/stdlib/behavior/activate-relations.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations。 ts#L24) + [packages/g6/src/stdlib/behavior/activate-relations.ts:24](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations。 ts#L24) ___ @@ -56,7 +56,7 @@ title: ActivateRelationsOptions #### 定义于 - [packages/g6/src/stdlib/behavior/activate-relations.ts:42](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations。 ts#L42) + [packages/g6/src/stdlib/behavior/activate-relations.ts:42](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations。 ts#L42) ___ @@ -84,7 +84,7 @@ title: ActivateRelationsOptions #### 定义于 - [packages/g6/src/stdlib/behavior/activate-relations.ts:48](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations。 ts#L48) + [packages/g6/src/stdlib/behavior/activate-relations.ts:48](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations。 ts#L48) ___ @@ -98,4 +98,4 @@ title: ActivateRelationsOptions #### 定义于 - [packages/g6/src/stdlib/behavior/activate-relations.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/activate-relations。 ts#L30) \ No newline at end of file + [packages/g6/src/stdlib/behavior/activate-relations.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/activate-relations。 ts#L30) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/BrushSelectOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/BrushSelectOptions.en.md index 2a80b69ae9..3f8818b76e 100644 --- a/packages/site/docs/apis/interfaces/behaviors/BrushSelectOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/BrushSelectOptions.en.md @@ -29,7 +29,7 @@ The shape style of the brush while selecting. #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:46](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L46) +[packages/g6/src/stdlib/behavior/brush-select.ts:46](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L46) ___ @@ -41,7 +41,7 @@ The event name to trigger when select/unselect an item. #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:42](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L42) +[packages/g6/src/stdlib/behavior/brush-select.ts:42](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L42) ___ @@ -55,7 +55,7 @@ Should be an array of "node", "edge", or "combo". #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:32](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L32) +[packages/g6/src/stdlib/behavior/brush-select.ts:32](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L32) ___ @@ -88,7 +88,7 @@ A callback be called after deselecting. #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:77](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L77) +[packages/g6/src/stdlib/behavior/brush-select.ts:77](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L77) ___ @@ -117,7 +117,7 @@ A callback be called after selecting. #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:73](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L73) +[packages/g6/src/stdlib/behavior/brush-select.ts:73](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L73) ___ @@ -129,7 +129,7 @@ The mode to compose the selections from times of brush #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:54](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L54) +[packages/g6/src/stdlib/behavior/brush-select.ts:54](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L54) ___ @@ -143,7 +143,7 @@ Can be set to "active", "highlighted", etc. #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:38](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L38) +[packages/g6/src/stdlib/behavior/brush-select.ts:38](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L38) ___ @@ -169,7 +169,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:58](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L58) +[packages/g6/src/stdlib/behavior/brush-select.ts:58](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L58) ___ @@ -200,13 +200,13 @@ manage states or data manually #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:64](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L64) +[packages/g6/src/stdlib/behavior/brush-select.ts:64](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L64) ___ ### trigger -• **trigger**: ``"drag"`` \| ``"shift"`` \| ``"ctrl"`` \| ``"alt"`` \| ``"meta"`` +• **trigger**: ``"shift"`` \| ``"drag"`` \| ``"ctrl"`` \| ``"alt"`` \| ``"meta"`` The key to pressed with mouse click to apply multiple selection. Defaults to `"shift"`. @@ -214,4 +214,4 @@ Could be "drag", "shift", "ctrl", "alt", or "meta". #### Defined in -[packages/g6/src/stdlib/behavior/brush-select.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/brush-select.ts#L26) +[packages/g6/src/stdlib/behavior/brush-select.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/brush-select.ts#L26) diff --git a/packages/site/docs/apis/interfaces/behaviors/CollapseExpandComboOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/CollapseExpandComboOptions.en.md index 36e67158c7..77d2ec556c 100644 --- a/packages/site/docs/apis/interfaces/behaviors/CollapseExpandComboOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/CollapseExpandComboOptions.en.md @@ -30,7 +30,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/collapse-expand-combo.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse-expand-combo.ts#L22) +[packages/g6/src/stdlib/behavior/collapse-expand-combo.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse-expand-combo.ts#L22) ___ @@ -44,4 +44,4 @@ Could be "dblclick", "click". #### Defined in -[packages/g6/src/stdlib/behavior/collapse-expand-combo.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse-expand-combo.ts#L18) +[packages/g6/src/stdlib/behavior/collapse-expand-combo.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse-expand-combo.ts#L18) diff --git a/packages/site/docs/apis/interfaces/behaviors/CollapseExpandComboOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/CollapseExpandComboOptions.zh.md index e1e6a91206..eafcb7a934 100644 --- a/packages/site/docs/apis/interfaces/behaviors/CollapseExpandComboOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/CollapseExpandComboOptions.zh.md @@ -30,7 +30,7 @@ title: CollapseExpandComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/collapse-expand-combo.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse- 扩展组合.ts#L22) + [packages/g6/src/stdlib/behavior/collapse-expand-combo.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse- 扩展组合.ts#L22) ___ @@ -44,4 +44,4 @@ title: CollapseExpandComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/collapse-expand-combo.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse- 扩展组合.ts#L18) \ No newline at end of file + [packages/g6/src/stdlib/behavior/collapse-expand-combo.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse- 扩展组合.ts#L18) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/DragCanvasOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/DragCanvasOptions.en.md index 74d501872b..3ea97b8121 100644 --- a/packages/site/docs/apis/interfaces/behaviors/DragCanvasOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/DragCanvasOptions.en.md @@ -10,13 +10,13 @@ title: DragCanvasOptions ### direction -• `Optional` **direction**: ``"x"`` \| ``"y"`` \| ``"both"`` +• `Optional` **direction**: ``"both"`` \| ``"x"`` \| ``"y"`` The direction to drag the canvas. 'both' by default. #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L22) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L22) ___ @@ -28,7 +28,7 @@ Whether allow trigger this behavior when drag start on nodes / edges / combos. #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L14) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:14](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L14) ___ @@ -40,7 +40,7 @@ Whether enable optimize strategies, which will hide all the shapes excluding nod #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:10](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L10) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:10](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L10) ___ @@ -52,7 +52,7 @@ The event name to trigger when drag end. #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:48](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L48) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:48](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L48) ___ @@ -70,7 +70,7 @@ Refer to https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*IFfoS67_HssAAAAA #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:44](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L44) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:44](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L44) ___ @@ -82,7 +82,7 @@ The assistant secondary key on keyboard. If it is not assigned, the behavior wil #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L26) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L26) ___ @@ -94,7 +94,7 @@ The assistant secondary key on keyboard to prevent the behavior to be tiggered. #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L30) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L30) ___ @@ -120,7 +120,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:52](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L52) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:52](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L52) ___ @@ -132,7 +132,7 @@ The key on keyboard to speed up translating while pressing and drag-canvas by di #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:34](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L34) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:34](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L34) ___ @@ -144,4 +144,4 @@ The trigger for the behavior, 'drag' by default. 'directionKeys' means trigger t #### Defined in -[packages/g6/src/stdlib/behavior/drag-canvas.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas.ts#L18) +[packages/g6/src/stdlib/behavior/drag-canvas.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas.ts#L18) diff --git a/packages/site/docs/apis/interfaces/behaviors/DragCanvasOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/DragCanvasOptions.zh.md index 4c70e26a05..2581722253 100644 --- a/packages/site/docs/apis/interfaces/behaviors/DragCanvasOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/DragCanvasOptions.zh.md @@ -10,13 +10,13 @@ title: DragCanvasOptions ### 方向 - • `可选` **方向**:``"x"`` \| ``“y”`` \| ``“两者”`` + • `可选` **方向**:``“两者”`` \| ``“x”`` \| ``“y”`` 拖动画布的方向。 默认为“两者”。 #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L22) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L22) ___ @@ -28,7 +28,7 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L14) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:14](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L14) ___ @@ -40,7 +40,7 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:10](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L10) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:10](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L10) ___ @@ -52,7 +52,7 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:48](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L48) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:48](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L48) ___ @@ -70,7 +70,7 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:44](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L44) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:44](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L44) ___ @@ -82,7 +82,7 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L26) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L26) ___ @@ -94,7 +94,7 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L30) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L30) ___ @@ -120,7 +120,7 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:52](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L52) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:52](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L52) ___ @@ -132,7 +132,7 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:34](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L34) + [packages/g6/src/stdlib/behavior/drag-canvas.ts:34](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L34) ___ @@ -144,4 +144,4 @@ title: DragCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-canvas.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-canvas. ts#L18) \ No newline at end of file + [packages/g6/src/stdlib/behavior/drag-canvas.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-canvas. ts#L18) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/DragComboOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/DragComboOptions.en.md index bdbd6534d2..fbdb68daf1 100644 --- a/packages/site/docs/apis/interfaces/behaviors/DragComboOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/DragComboOptions.en.md @@ -32,7 +32,7 @@ Only used when enableDelegate is true. #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:27](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L27) +[packages/g6/src/stdlib/behavior/drag-combo.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L27) ___ @@ -45,7 +45,7 @@ Defaults to false. #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L22) +[packages/g6/src/stdlib/behavior/drag-combo.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L22) ___ @@ -59,7 +59,7 @@ Defaults to true. #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:17](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L17) +[packages/g6/src/stdlib/behavior/drag-combo.ts:17](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L17) ___ @@ -71,7 +71,7 @@ The event name to trigger when drag end. #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:55](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L55) +[packages/g6/src/stdlib/behavior/drag-combo.ts:55](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L55) ___ @@ -85,7 +85,7 @@ Defaults to false. #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:46](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L46) +[packages/g6/src/stdlib/behavior/drag-combo.ts:46](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L46) ___ @@ -98,7 +98,7 @@ Defaults to "selected". #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L51) +[packages/g6/src/stdlib/behavior/drag-combo.ts:51](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L51) ___ @@ -124,7 +124,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:63](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L63) +[packages/g6/src/stdlib/behavior/drag-combo.ts:63](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L63) ___ @@ -137,7 +137,7 @@ Defaults to 0. #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:40](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L40) +[packages/g6/src/stdlib/behavior/drag-combo.ts:40](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L40) ___ @@ -149,4 +149,4 @@ Whether change the combo hierarchy structure or only change size. #### Defined in -[packages/g6/src/stdlib/behavior/drag-combo.ts:59](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo.ts#L59) +[packages/g6/src/stdlib/behavior/drag-combo.ts:59](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo.ts#L59) diff --git a/packages/site/docs/apis/interfaces/behaviors/DragComboOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/DragComboOptions.zh.md index fb626e900c..178b2b59fc 100644 --- a/packages/site/docs/apis/interfaces/behaviors/DragComboOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/DragComboOptions.zh.md @@ -32,7 +32,7 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:27](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L27) + [packages/g6/src/stdlib/behavior/drag-combo.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L27) ___ @@ -45,7 +45,7 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L22) + [packages/g6/src/stdlib/behavior/drag-combo.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L22) ___ @@ -59,7 +59,7 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:17](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L17) + [packages/g6/src/stdlib/behavior/drag-combo.ts:17](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L17) ___ @@ -71,7 +71,7 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:55](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L55) + [packages/g6/src/stdlib/behavior/drag-combo.ts:55](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L55) ___ @@ -85,7 +85,7 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:46](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L46) + [packages/g6/src/stdlib/behavior/drag-combo.ts:46](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L46) ___ @@ -98,7 +98,7 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L51) + [packages/g6/src/stdlib/behavior/drag-combo.ts:51](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L51) ___ @@ -124,7 +124,7 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:63](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L63) + [packages/g6/src/stdlib/behavior/drag-combo.ts:63](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L63) ___ @@ -137,7 +137,7 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:40](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L40) + [packages/g6/src/stdlib/behavior/drag-combo.ts:40](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L40) ___ @@ -149,4 +149,4 @@ title: DragComboOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-combo.ts:59](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-combo。 ts#L59) \ No newline at end of file + [packages/g6/src/stdlib/behavior/drag-combo.ts:59](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-combo。 ts#L59) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/DragNodeOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/DragNodeOptions.en.md index b9372660aa..df7f775e7f 100644 --- a/packages/site/docs/apis/interfaces/behaviors/DragNodeOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/DragNodeOptions.en.md @@ -32,7 +32,7 @@ Only used when enableDelegate is true. #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:32](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L32) +[packages/g6/src/stdlib/behavior/drag-node.ts:32](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L32) ___ @@ -45,7 +45,7 @@ Defaults to false. #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:27](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L27) +[packages/g6/src/stdlib/behavior/drag-node.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L27) ___ @@ -59,7 +59,7 @@ Defaults to true. #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L22) +[packages/g6/src/stdlib/behavior/drag-node.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L22) ___ @@ -71,7 +71,7 @@ The event name to trigger when drag end. #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:60](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L60) +[packages/g6/src/stdlib/behavior/drag-node.ts:60](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L60) ___ @@ -85,7 +85,7 @@ Defaults to false. #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L51) +[packages/g6/src/stdlib/behavior/drag-node.ts:51](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L51) ___ @@ -98,7 +98,7 @@ Defaults to "selected". #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:56](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L56) +[packages/g6/src/stdlib/behavior/drag-node.ts:56](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L56) ___ @@ -124,7 +124,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:68](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L68) +[packages/g6/src/stdlib/behavior/drag-node.ts:68](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L68) ___ @@ -137,7 +137,7 @@ Defaults to 0. #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:45](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L45) +[packages/g6/src/stdlib/behavior/drag-node.ts:45](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L45) ___ @@ -149,4 +149,4 @@ Whether change the combo hierarchy structure or only change size. #### Defined in -[packages/g6/src/stdlib/behavior/drag-node.ts:64](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node.ts#L64) +[packages/g6/src/stdlib/behavior/drag-node.ts:64](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node.ts#L64) diff --git a/packages/site/docs/apis/interfaces/behaviors/DragNodeOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/DragNodeOptions.zh.md index 0593b28f84..7829cc2b33 100644 --- a/packages/site/docs/apis/interfaces/behaviors/DragNodeOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/DragNodeOptions.zh.md @@ -32,7 +32,7 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:32](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L32) + [packages/g6/src/stdlib/behavior/drag-node.ts:32](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L32) ___ @@ -45,7 +45,7 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:27](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L27) + [packages/g6/src/stdlib/behavior/drag-node.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L27) ___ @@ -59,7 +59,7 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L22) + [packages/g6/src/stdlib/behavior/drag-node.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L22) ___ @@ -71,7 +71,7 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:60](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L60) + [packages/g6/src/stdlib/behavior/drag-node.ts:60](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L60) ___ @@ -85,7 +85,7 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L51) + [packages/g6/src/stdlib/behavior/drag-node.ts:51](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L51) ___ @@ -98,7 +98,7 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:56](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L56) + [packages/g6/src/stdlib/behavior/drag-node.ts:56](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L56) ___ @@ -124,7 +124,7 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:68](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L68) + [packages/g6/src/stdlib/behavior/drag-node.ts:68](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L68) ___ @@ -137,7 +137,7 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:45](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L45) + [packages/g6/src/stdlib/behavior/drag-node.ts:45](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L45) ___ @@ -149,4 +149,4 @@ title: DragNodeOptions #### 定义于 - [packages/g6/src/stdlib/behavior/drag-node.ts:64](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/drag-node。 ts#L64) \ No newline at end of file + [packages/g6/src/stdlib/behavior/drag-node.ts:64](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/drag-node。 ts#L64) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/HoverActivateOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/HoverActivateOptions.en.md index b3ab19537a..718671d27b 100644 --- a/packages/site/docs/apis/interfaces/behaviors/HoverActivateOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/HoverActivateOptions.en.md @@ -17,7 +17,7 @@ Defaults to "selected". #### Defined in -[packages/g6/src/stdlib/behavior/hover-activate.ts:16](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate.ts#L16) +[packages/g6/src/stdlib/behavior/hover-activate.ts:16](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate.ts#L16) ___ @@ -29,7 +29,7 @@ The event name to trigger when drag end. #### Defined in -[packages/g6/src/stdlib/behavior/hover-activate.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate.ts#L26) +[packages/g6/src/stdlib/behavior/hover-activate.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate.ts#L26) ___ @@ -43,7 +43,7 @@ Should be an array of "node", "edge", or "combo". #### Defined in -[packages/g6/src/stdlib/behavior/hover-activate.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate.ts#L22) +[packages/g6/src/stdlib/behavior/hover-activate.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate.ts#L22) ___ @@ -69,7 +69,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/hover-activate.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate.ts#L30) +[packages/g6/src/stdlib/behavior/hover-activate.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate.ts#L30) ___ @@ -82,4 +82,4 @@ Defaults to 0. #### Defined in -[packages/g6/src/stdlib/behavior/hover-activate.ts:11](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate.ts#L11) +[packages/g6/src/stdlib/behavior/hover-activate.ts:11](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate.ts#L11) diff --git a/packages/site/docs/apis/interfaces/behaviors/HoverActivateOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/HoverActivateOptions.zh.md index 9ddd10139f..78951bc574 100644 --- a/packages/site/docs/apis/interfaces/behaviors/HoverActivateOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/HoverActivateOptions.zh.md @@ -17,7 +17,7 @@ title: HoverActivateOptions #### 定义于 - [packages/g6/src/stdlib/behavior/hover-activate.ts:16](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate。 ts#L16) + [packages/g6/src/stdlib/behavior/hover-activate.ts:16](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate。 ts#L16) ___ @@ -29,7 +29,7 @@ title: HoverActivateOptions #### 定义于 - [packages/g6/src/stdlib/behavior/hover-activate.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate。 ts#L26) + [packages/g6/src/stdlib/behavior/hover-activate.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate。 ts#L26) ___ @@ -43,7 +43,7 @@ title: HoverActivateOptions #### 定义于 - [packages/g6/src/stdlib/behavior/hover-activate.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate。 ts#L22) + [packages/g6/src/stdlib/behavior/hover-activate.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate。 ts#L22) ___ @@ -69,7 +69,7 @@ title: HoverActivateOptions #### 定义于 - [packages/g6/src/stdlib/behavior/hover-activate.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate。 ts#L30) + [packages/g6/src/stdlib/behavior/hover-activate.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate。 ts#L30) ___ @@ -82,4 +82,4 @@ title: HoverActivateOptions #### 定义于 - [packages/g6/src/stdlib/behavior/hover-activate.ts:11](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/hover-activate。 ts#L11) \ No newline at end of file + [packages/g6/src/stdlib/behavior/hover-activate.ts:11](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/hover-activate。 ts#L11) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/IG6GraphEvent.en.md b/packages/site/docs/apis/interfaces/behaviors/IG6GraphEvent.en.md index be85fb2cac..346cab6efd 100644 --- a/packages/site/docs/apis/interfaces/behaviors/IG6GraphEvent.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/IG6GraphEvent.en.md @@ -544,7 +544,7 @@ ___ #### Defined in -[packages/g6/src/types/event.ts:42](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/event.ts#L42) +[packages/g6/src/types/event.ts:42](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/event.ts#L42) ___ @@ -608,7 +608,7 @@ Original event emitted by G #### Defined in -[packages/g6/src/types/event.ts:46](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/event.ts#L46) +[packages/g6/src/types/event.ts:46](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/event.ts#L46) ___ @@ -717,7 +717,7 @@ ___ #### Defined in -[packages/g6/src/types/event.ts:44](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/event.ts#L44) +[packages/g6/src/types/event.ts:44](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/event.ts#L44) ___ @@ -727,7 +727,7 @@ ___ #### Defined in -[packages/g6/src/types/event.ts:43](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/event.ts#L43) +[packages/g6/src/types/event.ts:43](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/event.ts#L43) ___ diff --git a/packages/site/docs/apis/interfaces/behaviors/Options.en.md b/packages/site/docs/apis/interfaces/behaviors/Options.en.md index c5ecd20aa7..2b0ee863b9 100644 --- a/packages/site/docs/apis/interfaces/behaviors/Options.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/Options.en.md @@ -16,7 +16,7 @@ Whether disable the collapse / expand animation triggered by this behavior. #### Defined in -[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:21](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L21) +[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:21](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L21) ___ @@ -28,7 +28,7 @@ The event name to trigger when select/unselect an item. #### Defined in -[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:17](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L17) +[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:17](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L17) ___ @@ -54,7 +54,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:25](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L25) +[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:25](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L25) ___ @@ -82,7 +82,7 @@ manage states or data manually #### Defined in -[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:31](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L31) +[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L31) ___ @@ -96,4 +96,4 @@ Could be "shift", "ctrl", "alt", or "meta". #### Defined in -[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L13) +[packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:13](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse-expand-tree.ts#L13) diff --git a/packages/site/docs/apis/interfaces/behaviors/Options.zh.md b/packages/site/docs/apis/interfaces/behaviors/Options.zh.md index 2f7500bc9d..a95a94b060 100644 --- a/packages/site/docs/apis/interfaces/behaviors/Options.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/Options.zh.md @@ -16,7 +16,7 @@ title: Options #### 定义于 - [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:21](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L21) + [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:21](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L21) ___ @@ -28,7 +28,7 @@ title: Options #### 定义于 - [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:17](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L17) + [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:17](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L17) ___ @@ -54,7 +54,7 @@ title: Options #### 定义于 - [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:25](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L25) + [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:25](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L25) ___ @@ -82,7 +82,7 @@ title: Options #### 定义于 - [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:31](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L31) + [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L31) ___ @@ -96,4 +96,4 @@ title: Options #### 定义于 - [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L13) \ No newline at end of file + [packages/g6/src/stdlib/behavior/collapse-expand-tree.ts:13](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/collapse- 展开树.ts#L13) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/OrbitCanvas3DOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/OrbitCanvas3DOptions.en.md index b552dd811b..cd9e84b96e 100644 --- a/packages/site/docs/apis/interfaces/behaviors/OrbitCanvas3DOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/OrbitCanvas3DOptions.en.md @@ -16,7 +16,7 @@ The event name to trigger when drag end. #### Defined in -[packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts#L24) +[packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:24](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts#L24) ___ @@ -31,7 +31,7 @@ to make the behavior triggered only when the key is pressing and trigger is happ #### Defined in -[packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:20](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts#L20) +[packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:20](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts#L20) ___ @@ -57,7 +57,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:28](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts#L28) +[packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:28](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts#L28) ___ @@ -69,4 +69,4 @@ The way to tranlate the canvas. 'drag' (default) means dragged by mouse, 'direct #### Defined in -[packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts#L13) +[packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:13](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts#L13) diff --git a/packages/site/docs/apis/interfaces/behaviors/OrbitCanvas3DOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/OrbitCanvas3DOptions.zh.md index 62abcdf939..9054c9dcfb 100644 --- a/packages/site/docs/apis/interfaces/behaviors/OrbitCanvas3DOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/OrbitCanvas3DOptions.zh.md @@ -16,7 +16,7 @@ title: OrbitCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/orbit- canvas-3d.ts#L24) + [packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:24](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/orbit- canvas-3d.ts#L24) ___ @@ -31,7 +31,7 @@ title: OrbitCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:20](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/orbit- canvas-3d.ts#L20) + [packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:20](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/orbit- canvas-3d.ts#L20) ___ @@ -57,7 +57,7 @@ title: OrbitCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:28](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/orbit- canvas-3d.ts#L28) + [packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:28](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/orbit- canvas-3d.ts#L28) ___ @@ -69,4 +69,4 @@ title: OrbitCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/orbit- canvas-3d.ts#L13) \ No newline at end of file + [packages/g6/src/stdlib/behavior/orbit-canvas-3d.ts:13](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/orbit- canvas-3d.ts#L13) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/RotateCanvas3DOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/RotateCanvas3DOptions.en.md index f26cd2cf25..579c61c262 100644 --- a/packages/site/docs/apis/interfaces/behaviors/RotateCanvas3DOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/RotateCanvas3DOptions.en.md @@ -16,7 +16,7 @@ The event name to trigger when drag end. #### Defined in -[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:31](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L31) +[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L31) ___ @@ -31,7 +31,7 @@ to make the behavior triggered only when the key is pressing and trigger is happ #### Defined in -[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:19](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L19) +[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:19](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L19) ___ @@ -57,7 +57,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:35](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L35) +[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:35](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L35) ___ @@ -69,7 +69,7 @@ To speed up rotating while pressing and rotate the canvas by direciton keys (tri #### Defined in -[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:23](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L23) +[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:23](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L23) ___ @@ -81,7 +81,7 @@ The way to tranlate the canvas. 'drag' (default) means dragged by mouse, 'direct #### Defined in -[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:12](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L12) +[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:12](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L12) ___ @@ -93,4 +93,4 @@ Whether allow zooming canvas on a node/edge/combo. #### Defined in -[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:27](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L27) +[packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts#L27) diff --git a/packages/site/docs/apis/interfaces/behaviors/RotateCanvas3DOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/RotateCanvas3DOptions.zh.md index 0a6e8b8cda..bda4734a33 100644 --- a/packages/site/docs/apis/interfaces/behaviors/RotateCanvas3DOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/RotateCanvas3DOptions.zh.md @@ -16,7 +16,7 @@ title: RotateCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:31](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L31) + [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L31) ___ @@ -31,7 +31,7 @@ title: RotateCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:19](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L19) + [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:19](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L19) ___ @@ -57,7 +57,7 @@ title: RotateCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:35](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L35) + [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:35](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L35) ___ @@ -69,7 +69,7 @@ title: RotateCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:23](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L23) + [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:23](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L23) ___ @@ -81,7 +81,7 @@ title: RotateCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:12](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L12) + [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:12](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L12) ___ @@ -93,4 +93,4 @@ title: RotateCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:27](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L27) \ No newline at end of file + [packages/g6/src/stdlib/behavior/rotate-canvas-3d.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/rotate- canvas-3d.ts#L27) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/TrackCanvas3DOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/TrackCanvas3DOptions.en.md index 7eb74d9ee2..38f4c2ed62 100644 --- a/packages/site/docs/apis/interfaces/behaviors/TrackCanvas3DOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/TrackCanvas3DOptions.en.md @@ -16,7 +16,7 @@ The event name to trigger when drag end. #### Defined in -[packages/g6/src/stdlib/behavior/track-canvas-3d.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/track-canvas-3d.ts#L24) +[packages/g6/src/stdlib/behavior/track-canvas-3d.ts:24](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/track-canvas-3d.ts#L24) ___ @@ -31,7 +31,7 @@ to make the behavior triggered only when the key is pressing and trigger is happ #### Defined in -[packages/g6/src/stdlib/behavior/track-canvas-3d.ts:20](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/track-canvas-3d.ts#L20) +[packages/g6/src/stdlib/behavior/track-canvas-3d.ts:20](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/track-canvas-3d.ts#L20) ___ @@ -57,7 +57,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/track-canvas-3d.ts:28](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/track-canvas-3d.ts#L28) +[packages/g6/src/stdlib/behavior/track-canvas-3d.ts:28](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/track-canvas-3d.ts#L28) ___ @@ -69,4 +69,4 @@ The way to tranlate the canvas. 'drag' (default) means dragged by mouse, 'direct #### Defined in -[packages/g6/src/stdlib/behavior/track-canvas-3d.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/track-canvas-3d.ts#L13) +[packages/g6/src/stdlib/behavior/track-canvas-3d.ts:13](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/track-canvas-3d.ts#L13) diff --git a/packages/site/docs/apis/interfaces/behaviors/TrackCanvas3DOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/TrackCanvas3DOptions.zh.md index 7cc3d76a8d..81cffd65f1 100644 --- a/packages/site/docs/apis/interfaces/behaviors/TrackCanvas3DOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/TrackCanvas3DOptions.zh.md @@ -16,7 +16,7 @@ title: TrackCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/track-canvas-3d.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/track- canvas-3d.ts#L24) + [packages/g6/src/stdlib/behavior/track-canvas-3d.ts:24](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/track- canvas-3d.ts#L24) ___ @@ -31,7 +31,7 @@ title: TrackCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/track-canvas-3d.ts:20](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/track- canvas-3d.ts#L20) + [packages/g6/src/stdlib/behavior/track-canvas-3d.ts:20](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/track- canvas-3d.ts#L20) ___ @@ -57,7 +57,7 @@ title: TrackCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/track-canvas-3d.ts:28](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/track- canvas-3d.ts#L28) + [packages/g6/src/stdlib/behavior/track-canvas-3d.ts:28](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/track- canvas-3d.ts#L28) ___ @@ -69,4 +69,4 @@ title: TrackCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/track-canvas-3d.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/track- canvas-3d.ts#L13) \ No newline at end of file + [packages/g6/src/stdlib/behavior/track-canvas-3d.ts:13](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/track- canvas-3d.ts#L13) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/ZoomCanvas3DOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/ZoomCanvas3DOptions.en.md index 794f0b9ccd..2e71c7496d 100644 --- a/packages/site/docs/apis/interfaces/behaviors/ZoomCanvas3DOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/ZoomCanvas3DOptions.en.md @@ -16,7 +16,7 @@ The event name to trigger when drag end. #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:33](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L33) +[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:33](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L33) ___ @@ -28,7 +28,7 @@ The max value of camera's dolly to constrain the zoom-canvas-3d behavior #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:41](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L41) +[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:41](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L41) ___ @@ -40,7 +40,7 @@ The min value of camera's dolly to constrain the zoom-canvas-3d behavior #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:37](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L37) +[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:37](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L37) ___ @@ -55,7 +55,7 @@ to make the behavior triggered only when the key is pressing and trigger is happ #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:21](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L21) +[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:21](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L21) ___ @@ -67,7 +67,7 @@ Sensitivity of zooming. #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:25](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L25) +[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:25](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L25) ___ @@ -93,7 +93,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:45](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L45) +[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:45](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L45) ___ @@ -105,7 +105,7 @@ The way to tranlate the canvas. 'drag' (default) means dragged by mouse, 'direct #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L14) +[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:14](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L14) ___ @@ -117,4 +117,4 @@ Whether allow zooming canvas on a node/edge/combo. #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:29](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L29) +[packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:29](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts#L29) diff --git a/packages/site/docs/apis/interfaces/behaviors/ZoomCanvas3DOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/ZoomCanvas3DOptions.zh.md index df1a45949a..16002028d2 100644 --- a/packages/site/docs/apis/interfaces/behaviors/ZoomCanvas3DOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/ZoomCanvas3DOptions.zh.md @@ -16,7 +16,7 @@ title: ZoomCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:33](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L33) + [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:33](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L33) ___ @@ -28,7 +28,7 @@ title: ZoomCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:41](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L41) + [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:41](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L41) ___ @@ -40,7 +40,7 @@ title: ZoomCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:37](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L37) + [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:37](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L37) ___ @@ -55,7 +55,7 @@ title: ZoomCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:21](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L21) + [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:21](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L21) ___ @@ -67,7 +67,7 @@ title: ZoomCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:25](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L25) + [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:25](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L25) ___ @@ -93,7 +93,7 @@ title: ZoomCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:45](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L45) + [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:45](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L45) ___ @@ -105,7 +105,7 @@ title: ZoomCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L14) + [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:14](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L14) ___ @@ -117,4 +117,4 @@ title: ZoomCanvas3DOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:29](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L29) \ No newline at end of file + [packages/g6/src/stdlib/behavior/zoom-canvas-3d.ts:29](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom- canvas-3d.ts#L29) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/behaviors/ZoomCanvasOptions.en.md b/packages/site/docs/apis/interfaces/behaviors/ZoomCanvasOptions.en.md index 08f0f477bb..16f30845bd 100644 --- a/packages/site/docs/apis/interfaces/behaviors/ZoomCanvasOptions.en.md +++ b/packages/site/docs/apis/interfaces/behaviors/ZoomCanvasOptions.en.md @@ -17,7 +17,7 @@ TODO: optimize when trigger is upDownKeys #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:10](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L10) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:10](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L10) ___ @@ -29,7 +29,7 @@ The event name to trigger when zoom end. #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:34](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L34) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:34](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L34) ___ @@ -41,7 +41,7 @@ The max value of zoom ratio to constrain the zoom-canvas-3d behavior #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:42](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L42) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:42](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L42) ___ @@ -53,7 +53,7 @@ The min value of zoom ratio to constrain the zoom-canvas-3d behavior #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:38](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L38) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:38](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L38) ___ @@ -65,7 +65,7 @@ The assistant secondary key on keyboard. If it is not assigned, the behavior wil #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L22) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L22) ___ @@ -77,7 +77,7 @@ The sensitivity / speed of zooming. #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L30) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L30) ___ @@ -103,7 +103,7 @@ Whether allow the behavior happen on the current item. #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:46](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L46) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:46](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L46) ___ @@ -115,7 +115,7 @@ The key on keyboard to speed up translating while pressing and zoom-canvas by di #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L26) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L26) ___ @@ -127,7 +127,7 @@ The trigger for the behavior, 'wheel' by default. 'upDownKeys' means trigger thi #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L18) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L18) ___ @@ -139,4 +139,4 @@ Whether allow trigger this behavior when wheeling start on nodes / edges / combo #### Defined in -[packages/g6/src/stdlib/behavior/zoom-canvas.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L14) +[packages/g6/src/stdlib/behavior/zoom-canvas.ts:14](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas.ts#L14) diff --git a/packages/site/docs/apis/interfaces/behaviors/ZoomCanvasOptions.zh.md b/packages/site/docs/apis/interfaces/behaviors/ZoomCanvasOptions.zh.md index d5a6117abf..4eb6699ee2 100644 --- a/packages/site/docs/apis/interfaces/behaviors/ZoomCanvasOptions.zh.md +++ b/packages/site/docs/apis/interfaces/behaviors/ZoomCanvasOptions.zh.md @@ -17,7 +17,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:10](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L10) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:10](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas。 ts#L10) ___ @@ -29,7 +29,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:34](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L34) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:34](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L34) ___ @@ -41,7 +41,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:42](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L42) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:42](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L42) ___ @@ -53,7 +53,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:38](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L38) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:38](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L38) ___ @@ -65,7 +65,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L22) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L22) ___ @@ -77,7 +77,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L30) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L30) ___ @@ -103,7 +103,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:46](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L46) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:46](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L46) ___ @@ -115,7 +115,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L26) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L26) ___ @@ -127,7 +127,7 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L18) + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L18) ___ @@ -139,4 +139,4 @@ title: ZoomCanvasOptions #### 定义于 - [packages/g6/src/stdlib/behavior/zoom-canvas.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L14) \ No newline at end of file + [packages/g6/src/stdlib/behavior/zoom-canvas.ts:14](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/behavior/zoom-canvas. ts#L14) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/graph/GraphData.en.md b/packages/site/docs/apis/interfaces/graph/GraphData.en.md index 05745c7a41..35a3a50593 100644 --- a/packages/site/docs/apis/interfaces/graph/GraphData.en.md +++ b/packages/site/docs/apis/interfaces/graph/GraphData.en.md @@ -14,7 +14,7 @@ title: GraphData #### Defined in -[packages/g6/src/types/data.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/data.ts#L14) +[packages/g6/src/types/data.ts:14](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/data.ts#L14) ___ @@ -24,7 +24,7 @@ ___ #### Defined in -[packages/g6/src/types/data.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/data.ts#L13) +[packages/g6/src/types/data.ts:13](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/data.ts#L13) ___ @@ -34,4 +34,4 @@ ___ #### Defined in -[packages/g6/src/types/data.ts:12](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/data.ts#L12) +[packages/g6/src/types/data.ts:12](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/data.ts#L12) diff --git a/packages/site/docs/apis/interfaces/graph/GraphData.zh.md b/packages/site/docs/apis/interfaces/graph/GraphData.zh.md index 0a335e3427..19b5c64444 100644 --- a/packages/site/docs/apis/interfaces/graph/GraphData.zh.md +++ b/packages/site/docs/apis/interfaces/graph/GraphData.zh.md @@ -14,7 +14,7 @@ title: GraphData #### 定义于 - [packages/g6/src/types/data.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/data.ts#L14) + [packages/g6/src/types/data.ts:14](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/data.ts#L14) ___ @@ -24,7 +24,7 @@ title: GraphData #### 定义于 - [packages/g6/src/types/data.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/data.ts#L13) + [packages/g6/src/types/data.ts:13](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/data.ts#L13) ___ @@ -34,4 +34,4 @@ title: GraphData #### 定义于 - [packages/g6/src/types/data.ts:12](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/data.ts#L12) \ No newline at end of file + [packages/g6/src/types/data.ts:12](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/data.ts#L12) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/graph/IGraph.en.md b/packages/site/docs/apis/interfaces/graph/IGraph.en.md index 8c34ad55fe..e0e515e55b 100644 --- a/packages/site/docs/apis/interfaces/graph/IGraph.en.md +++ b/packages/site/docs/apis/interfaces/graph/IGraph.en.md @@ -56,7 +56,7 @@ whether success #### Defined in -[packages/g6/src/types/graph.ts:554](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L554) +[packages/g6/src/types/graph.ts:554](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L554) ___ @@ -83,7 +83,7 @@ Collapse a combo. #### Defined in -[packages/g6/src/types/graph.ts:564](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L564) +[packages/g6/src/types/graph.ts:564](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L564) ___ @@ -110,17 +110,17 @@ Expand a combo. #### Defined in -[packages/g6/src/types/graph.ts:571](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L571) +[packages/g6/src/types/graph.ts:571](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L571) ## Data ### addData -• **addData**: (`itemType`: `ITEM_TYPE`, `model`: `NodeUserModel` \| `ComboUserModel` \| `EdgeUserModel` \| `NodeUserModel`[] \| `EdgeUserModel`[] \| `ComboUserModel`[], `stack?`: `boolean`) => `NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +• **addData**: (`itemType`: `ITEM_TYPE`, `model`: `NodeUserModel` \| `EdgeUserModel` \| `ComboUserModel` \| `NodeUserModel`[] \| `EdgeUserModel`[] \| `ComboUserModel`[], `stack?`: `boolean`) => `NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] #### Type declaration -▸ (`itemType`, `model`, `stack?`): `NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +▸ (`itemType`, `model`, `stack?`): `NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] Add one or more node/edge/combo data to the graph. @@ -129,18 +129,18 @@ Add one or more node/edge/combo data to the graph. | Name | Type | Description | | :------ | :------ | :------ | | `itemType` | `ITEM_TYPE` | item type | -| `model` | `NodeUserModel` \| `ComboUserModel` \| `EdgeUserModel` \| `NodeUserModel`[] \| `EdgeUserModel`[] \| `ComboUserModel`[] | user data | +| `model` | `NodeUserModel` \| `EdgeUserModel` \| `ComboUserModel` \| `NodeUserModel`[] \| `EdgeUserModel`[] \| `ComboUserModel`[] | user data | | `stack?` | `boolean` | whether push this operation to stack | ##### Returns -`NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +`NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] whehter success #### Defined in -[packages/g6/src/types/graph.ts:177](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L177) +[packages/g6/src/types/graph.ts:177](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L177) ___ @@ -167,7 +167,7 @@ Change graph data. #### Defined in -[packages/g6/src/types/graph.ts:148](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L148) +[packages/g6/src/types/graph.ts:148](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L148) ___ @@ -189,7 +189,7 @@ all combos' inner data on the graph #### Defined in -[packages/g6/src/types/graph.ts:99](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L99) +[packages/g6/src/types/graph.ts:99](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L99) ___ @@ -211,7 +211,7 @@ all edges' inner data on the graph #### Defined in -[packages/g6/src/types/graph.ts:93](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L93) +[packages/g6/src/types/graph.ts:93](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L93) ___ @@ -233,7 +233,7 @@ all nodes' inner data on the graph #### Defined in -[packages/g6/src/types/graph.ts:87](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L87) +[packages/g6/src/types/graph.ts:87](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L87) ___ @@ -261,7 +261,7 @@ result combo's inner data #### Defined in -[packages/g6/src/types/graph.ts:81](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L81) +[packages/g6/src/types/graph.ts:81](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L81) ___ @@ -289,7 +289,7 @@ result edge's inner data #### Defined in -[packages/g6/src/types/graph.ts:74](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L74) +[packages/g6/src/types/graph.ts:74](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L74) ___ @@ -318,7 +318,7 @@ one-hop node ids #### Defined in -[packages/g6/src/types/graph.ts:116](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L116) +[packages/g6/src/types/graph.ts:116](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L116) ___ @@ -346,7 +346,7 @@ result node's inner data #### Defined in -[packages/g6/src/types/graph.ts:67](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L67) +[packages/g6/src/types/graph.ts:67](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L67) ___ @@ -375,13 +375,13 @@ one-hop edge ids #### Defined in -[packages/g6/src/types/graph.ts:106](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L106) +[packages/g6/src/types/graph.ts:106](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L106) ___ ### moveCombo -• **moveCombo**: (`ids`: `ID`[], `dx`: `number`, `dy`: `number`, `upsertAncestors?`: `boolean`, `callback?`: (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`, `canceled?`: `boolean`) => `void`, `stack?`: `boolean`) => `ComboModel`[] +• **moveCombo**: (`ids`: `ID`[], `dx`: `number`, `dy`: `number`, `upsertAncestors?`: `boolean`, `callback?`: (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`, `canceled?`: `boolean`) => `void`, `stack?`: `boolean`) => `ComboModel`[] #### Type declaration @@ -399,7 +399,7 @@ In fact, it changes the succeed nodes positions to affect the combo's position, | `dx` | `number` | - | | `dy` | `number` | - | | `upsertAncestors?` | `boolean` | - | -| `callback?` | (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`, `canceled?`: `boolean`) => `void` | - | +| `callback?` | (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`, `canceled?`: `boolean`) => `void` | - | | `stack?` | `boolean` | whether push this operation into graph's stack, true by default | ##### Returns @@ -408,7 +408,7 @@ In fact, it changes the succeed nodes positions to affect the combo's position, #### Defined in -[packages/g6/src/types/graph.ts:278](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L278) +[packages/g6/src/types/graph.ts:278](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L278) ___ @@ -435,7 +435,7 @@ If there is old data, diffs and changes it. #### Defined in -[packages/g6/src/types/graph.ts:140](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L140) +[packages/g6/src/types/graph.ts:140](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L140) ___ @@ -465,7 +465,7 @@ whehter success #### Defined in -[packages/g6/src/types/graph.ts:201](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L201) +[packages/g6/src/types/graph.ts:201](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L201) ___ @@ -492,13 +492,13 @@ Show the item(s). #### Defined in -[packages/g6/src/types/graph.ts:466](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L466) +[packages/g6/src/types/graph.ts:466](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L466) ___ ### updateComboPosition -• **updateComboPosition**: (`models`: `Partial`<`ComboUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\>, `upsertAncestors?`: `boolean`, `disableAnimate?`: `boolean`, `callback?`: (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`) => `void`, `stack?`: `boolean`) => `NodeModel` \| `ComboModel` \| `NodeModel`[] \| `ComboModel`[] +• **updateComboPosition**: (`models`: `Partial`<`ComboUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\>, `upsertAncestors?`: `boolean`, `disableAnimate?`: `boolean`, `callback?`: (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`) => `void`, `stack?`: `boolean`) => `NodeModel` \| `ComboModel` \| `NodeModel`[] \| `ComboModel`[] #### Type declaration @@ -514,7 +514,7 @@ Do not update other styles which leads to better performance than updating posit | `models` | `Partial`<`ComboUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\> | new configurations with x and y for every combo, which has id field to indicate the specific item | | `upsertAncestors?` | `boolean` | - | | `disableAnimate?` | `boolean` | - | -| `callback?` | (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`) => `void` | - | +| `callback?` | (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`) => `void` | - | | `stack?` | `boolean` | whether push this operation into graph's stack, true by default | ##### Returns @@ -523,17 +523,17 @@ Do not update other styles which leads to better performance than updating posit #### Defined in -[packages/g6/src/types/graph.ts:258](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L258) +[packages/g6/src/types/graph.ts:258](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L258) ___ ### updateData -• **updateData**: (`itemType`: `ITEM_TYPE`, `model`: `Partial`<`NodeUserModel`\> \| `Partial`<`EdgeUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`EdgeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\>, `stack?`: `boolean`) => `NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +• **updateData**: (`itemType`: `ITEM_TYPE`, `model`: `Partial`<`NodeUserModel`\> \| `Partial`<`EdgeUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`EdgeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\>, `stack?`: `boolean`) => `NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] #### Type declaration -▸ (`itemType`, `model`, `stack?`): `NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +▸ (`itemType`, `model`, `stack?`): `NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] Update one or more node/edge/combo data on the graph. @@ -547,17 +547,17 @@ Update one or more node/edge/combo data on the graph. ##### Returns -`NodeModel` \| `ComboModel` \| `EdgeModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] +`NodeModel` \| `EdgeModel` \| `ComboModel` \| `NodeModel`[] \| `EdgeModel`[] \| `ComboModel`[] #### Defined in -[packages/g6/src/types/graph.ts:209](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L209) +[packages/g6/src/types/graph.ts:209](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L209) ___ ### updateNodePosition -• **updateNodePosition**: (`models`: `Partial`<`NodeUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\>, `upsertAncestors?`: `boolean`, `disableAnimate?`: `boolean`, `callback?`: (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`, `canceled?`: `boolean`) => `void`, `stack?`: `boolean`) => `NodeModel` \| `ComboModel` \| `NodeModel`[] \| `ComboModel`[] +• **updateNodePosition**: (`models`: `Partial`<`NodeUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\>, `upsertAncestors?`: `boolean`, `disableAnimate?`: `boolean`, `callback?`: (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`, `canceled?`: `boolean`) => `void`, `stack?`: `boolean`) => `NodeModel` \| `ComboModel` \| `NodeModel`[] \| `ComboModel`[] #### Type declaration @@ -573,7 +573,7 @@ do not update other styles which leads to better performance than updating posit | `models` | `Partial`<`NodeUserModel`\> \| `Partial`<`ComboUserModel` \| `Partial`<`NodeUserModel`\>[] \| `Partial`<`ComboUserModel`\>[]\> | new configurations with x and y for every node, which has id field to indicate the specific item | | `upsertAncestors?` | `boolean` | - | | `disableAnimate?` | `boolean` | - | -| `callback?` | (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`, `canceled?`: `boolean`) => `void` | - | +| `callback?` | (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`, `canceled?`: `boolean`) => `void` | - | | `stack?` | `boolean` | whether push this operation into graph's stack, true by default | ##### Returns @@ -582,7 +582,7 @@ do not update other styles which leads to better performance than updating posit #### Defined in -[packages/g6/src/types/graph.ts:236](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L236) +[packages/g6/src/types/graph.ts:236](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L236) ## Graph Instance @@ -608,13 +608,13 @@ Destroy the graph instance and remove the related canvases. #### Defined in -[packages/g6/src/types/graph.ts:39](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L39) +[packages/g6/src/types/graph.ts:39](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L39) ## Interaction ### drawTransient -• **drawTransient**: (`type`: `SHAPE_TYPE` \| `ITEM_TYPE`, `id`: `ID`, `config`: `any`) => `DisplayObject`<`any`, `any`\> +• **drawTransient**: (`type`: `ITEM_TYPE` \| `SHAPE_TYPE`, `id`: `ID`, `config`: `any`) => `DisplayObject`<`any`, `any`\> #### Type declaration @@ -626,7 +626,7 @@ Draw or update a G shape or group to the transient canvas. | Name | Type | Description | | :------ | :------ | :------ | -| `type` | `SHAPE_TYPE` \| `ITEM_TYPE` | shape type or item type | +| `type` | `ITEM_TYPE` \| `SHAPE_TYPE` | shape type or item type | | `id` | `ID` | new shape id or updated shape id for a interation shape, node/edge/combo id for item interaction group drawing | | `config` | `any` | - | @@ -638,7 +638,7 @@ upserted shape or group #### Defined in -[packages/g6/src/types/graph.ts:628](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L628) +[packages/g6/src/types/graph.ts:628](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L628) ___ @@ -660,7 +660,7 @@ mode name #### Defined in -[packages/g6/src/types/graph.ts:593](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L593) +[packages/g6/src/types/graph.ts:593](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L593) ___ @@ -687,7 +687,7 @@ Remove behavior(s) from mode(s). #### Defined in -[packages/g6/src/types/graph.ts:611](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L611) +[packages/g6/src/types/graph.ts:611](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L611) ___ @@ -713,7 +713,7 @@ Switch mode. #### Defined in -[packages/g6/src/types/graph.ts:587](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L587) +[packages/g6/src/types/graph.ts:587](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L587) ___ @@ -740,7 +740,7 @@ Update a behavior on a mode. #### Defined in -[packages/g6/src/types/graph.ts:619](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L619) +[packages/g6/src/types/graph.ts:619](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L619) ## Item @@ -767,7 +767,7 @@ Make the item(s) to the back. #### Defined in -[packages/g6/src/types/graph.ts:487](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L487) +[packages/g6/src/types/graph.ts:487](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L487) ___ @@ -795,13 +795,13 @@ Clear all the states for item(s). #### Defined in -[packages/g6/src/types/graph.ts:524](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L524) +[packages/g6/src/types/graph.ts:524](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L524) ___ ### findIdByState -• **findIdByState**: (`itemType`: `ITEM_TYPE`, `state`: `string`, `value?`: `string` \| `boolean`, `additionalFilter?`: (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`) => `boolean`) => `ID`[] +• **findIdByState**: (`itemType`: `ITEM_TYPE`, `state`: `string`, `value?`: `string` \| `boolean`, `additionalFilter?`: (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`) => `boolean`) => `ID`[] #### Type declaration @@ -816,7 +816,7 @@ Find items which has the state. | `itemType` | `ITEM_TYPE` | item type | | `state` | `string` | state name | | `value?` | `string` \| `boolean` | state value, true by default | -| `additionalFilter?` | (`model`: `NodeModel` \| `ComboModel` \| `EdgeModel`) => `boolean` | additional filter function | +| `additionalFilter?` | (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`) => `boolean` | additional filter function | ##### Returns @@ -826,7 +826,7 @@ items that is the type and has the state #### Defined in -[packages/g6/src/types/graph.ts:163](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L163) +[packages/g6/src/types/graph.ts:163](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L163) ___ @@ -853,7 +853,7 @@ Make the item(s) to the front. #### Defined in -[packages/g6/src/types/graph.ts:480](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L480) +[packages/g6/src/types/graph.ts:480](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L480) ___ @@ -881,7 +881,7 @@ the state names with value true #### Defined in -[packages/g6/src/types/graph.ts:516](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L516) +[packages/g6/src/types/graph.ts:516](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L516) ___ @@ -910,7 +910,7 @@ the state value #### Defined in -[packages/g6/src/types/graph.ts:509](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L509) +[packages/g6/src/types/graph.ts:509](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L509) ___ @@ -937,7 +937,7 @@ Hide the item(s). #### Defined in -[packages/g6/src/types/graph.ts:473](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L473) +[packages/g6/src/types/graph.ts:473](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L473) ___ @@ -966,7 +966,7 @@ Set state for the item(s). #### Defined in -[packages/g6/src/types/graph.ts:496](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L496) +[packages/g6/src/types/graph.ts:496](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L496) ## Methods @@ -1119,7 +1119,7 @@ Add plugin(s) to graph. #### Defined in -[packages/g6/src/types/graph.ts:640](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L640) +[packages/g6/src/types/graph.ts:640](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L640) ___ @@ -1145,7 +1145,7 @@ Remove plugin(s) from graph. #### Defined in -[packages/g6/src/types/graph.ts:654](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L654) +[packages/g6/src/types/graph.ts:654](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L654) ___ @@ -1173,7 +1173,7 @@ Update one plugin of the graph. #### Defined in -[packages/g6/src/types/graph.ts:662](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L662) +[packages/g6/src/types/graph.ts:662](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L662) ## Properties @@ -1200,7 +1200,7 @@ Add behavior(s) to mode(s). #### Defined in -[packages/g6/src/types/graph.ts:600](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L600) +[packages/g6/src/types/graph.ts:600](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L600) ___ @@ -1228,7 +1228,7 @@ more convenient way without manually invoking `startBatch` and `stopBatch`. #### Defined in -[packages/g6/src/types/graph.ts:752](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L752) +[packages/g6/src/types/graph.ts:752](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L752) ___ @@ -1248,7 +1248,7 @@ Indicate whether there are any actions available in the redo stack. #### Defined in -[packages/g6/src/types/graph.ts:730](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L730) +[packages/g6/src/types/graph.ts:730](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L730) ___ @@ -1268,7 +1268,7 @@ Indicate whether there are any actions available in the undo stack. #### Defined in -[packages/g6/src/types/graph.ts:725](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L725) +[packages/g6/src/types/graph.ts:725](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L725) ___ @@ -1278,7 +1278,7 @@ ___ #### Defined in -[packages/g6/src/types/graph.ts:27](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L27) +[packages/g6/src/types/graph.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L27) ___ @@ -1304,7 +1304,7 @@ Change the renderer at runtime. #### Defined in -[packages/g6/src/types/graph.ts:58](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L58) +[packages/g6/src/types/graph.ts:58](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L58) ___ @@ -1324,7 +1324,7 @@ Clear the graph, means remove all the items on the graph. #### Defined in -[packages/g6/src/types/graph.ts:153](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L153) +[packages/g6/src/types/graph.ts:153](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L153) ___ @@ -1352,7 +1352,7 @@ more convenient way without manually invoking `startBatch` and `stopBatch`. #### Defined in -[packages/g6/src/types/graph.ts:759](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L759) +[packages/g6/src/types/graph.ts:759](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L759) ___ @@ -1362,7 +1362,7 @@ ___ #### Defined in -[packages/g6/src/types/graph.ts:30](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L30) +[packages/g6/src/types/graph.ts:30](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L30) ___ @@ -1372,7 +1372,7 @@ ___ #### Defined in -[packages/g6/src/types/graph.ts:29](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L29) +[packages/g6/src/types/graph.ts:29](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L29) ___ @@ -1398,7 +1398,7 @@ Execute a callback without allowing any stacking operations. #### Defined in -[packages/g6/src/types/graph.ts:693](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L693) +[packages/g6/src/types/graph.ts:693](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L693) ___ @@ -1422,7 +1422,7 @@ ___ #### Defined in -[packages/g6/src/types/graph.ts:132](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L132) +[packages/g6/src/types/graph.ts:132](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L132) ___ @@ -1450,7 +1450,7 @@ visibility for the item, false for invisible or unexistence for the item #### Defined in -[packages/g6/src/types/graph.ts:542](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L542) +[packages/g6/src/types/graph.ts:542](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L542) ___ @@ -1478,7 +1478,7 @@ edges #### Defined in -[packages/g6/src/types/graph.ts:125](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L125) +[packages/g6/src/types/graph.ts:125](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L125) ___ @@ -1498,7 +1498,7 @@ Retrieve the current undo stack which consists of operations that were undone #### Defined in -[packages/g6/src/types/graph.ts:702](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L702) +[packages/g6/src/types/graph.ts:702](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L702) ___ @@ -1528,7 +1528,7 @@ rendering bounding box. returns false if the item is not exist #### Defined in -[packages/g6/src/types/graph.ts:531](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L531) +[packages/g6/src/types/graph.ts:531](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L531) ___ @@ -1550,7 +1550,7 @@ graph specs #### Defined in -[packages/g6/src/types/graph.ts:52](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L52) +[packages/g6/src/types/graph.ts:52](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L52) ___ @@ -1570,7 +1570,7 @@ Retrieve the complete history stack #### Defined in -[packages/g6/src/types/graph.ts:708](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L708) +[packages/g6/src/types/graph.ts:708](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L708) ___ @@ -1590,7 +1590,7 @@ Retrieve the current redo stack which consists of operations that could be undon #### Defined in -[packages/g6/src/types/graph.ts:697](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L697) +[packages/g6/src/types/graph.ts:697](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L697) ___ @@ -1610,7 +1610,7 @@ Return the center of viewport, e.g. for a 500 * 500 canvas, its center is [250, #### Defined in -[packages/g6/src/types/graph.ts:381](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L381) +[packages/g6/src/types/graph.ts:381](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L381) ___ @@ -1632,7 +1632,7 @@ current zoom #### Defined in -[packages/g6/src/types/graph.ts:319](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L319) +[packages/g6/src/types/graph.ts:319](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L319) ___ @@ -1642,7 +1642,7 @@ ___ #### Defined in -[packages/g6/src/types/graph.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L26) +[packages/g6/src/types/graph.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L26) ___ @@ -1662,7 +1662,7 @@ Determine if history (redo/undo) is enabled. #### Defined in -[packages/g6/src/types/graph.ts:673](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L673) +[packages/g6/src/types/graph.ts:673](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L673) ___ @@ -1689,7 +1689,7 @@ Layout the graph (with current configurations if cfg is not assigned). #### Defined in -[packages/g6/src/types/graph.ts:577](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L577) +[packages/g6/src/types/graph.ts:577](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L577) ___ @@ -1709,7 +1709,7 @@ Pause stacking operation. #### Defined in -[packages/g6/src/types/graph.ts:684](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L684) +[packages/g6/src/types/graph.ts:684](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L684) ___ @@ -1736,7 +1736,7 @@ Push the operation(s) onto the specified stack #### Defined in -[packages/g6/src/types/graph.ts:680](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L680) +[packages/g6/src/types/graph.ts:680](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L680) ___ @@ -1756,7 +1756,7 @@ Restore the operation that was last n reverted on the graph. #### Defined in -[packages/g6/src/types/graph.ts:720](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L720) +[packages/g6/src/types/graph.ts:720](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L720) ___ @@ -1766,7 +1766,7 @@ ___ #### Defined in -[packages/g6/src/types/graph.ts:31](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L31) +[packages/g6/src/types/graph.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L31) ___ @@ -1786,7 +1786,7 @@ Resume stacking operation. #### Defined in -[packages/g6/src/types/graph.ts:688](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L688) +[packages/g6/src/types/graph.ts:688](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L688) ___ @@ -1814,7 +1814,7 @@ Rotate the graph with a relative angle in clockwise. #### Defined in -[packages/g6/src/types/graph.ts:348](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L348) +[packages/g6/src/types/graph.ts:348](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L348) ___ @@ -1842,7 +1842,7 @@ Rotate the graph to an absolute angle in clockwise. #### Defined in -[packages/g6/src/types/graph.ts:359](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L359) +[packages/g6/src/types/graph.ts:359](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L359) ___ @@ -1864,7 +1864,7 @@ treated as a single operation when undoing or redoing. #### Defined in -[packages/g6/src/types/graph.ts:737](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L737) +[packages/g6/src/types/graph.ts:737](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L737) ___ @@ -1886,7 +1886,7 @@ treated as a single operation when undoing or redoing. #### Defined in -[packages/g6/src/types/graph.ts:744](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L744) +[packages/g6/src/types/graph.ts:744](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L744) ___ @@ -1904,7 +1904,7 @@ ___ #### Defined in -[packages/g6/src/types/graph.ts:578](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L578) +[packages/g6/src/types/graph.ts:578](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L578) ___ @@ -1924,7 +1924,7 @@ Stop the current transition of transform immediately. #### Defined in -[packages/g6/src/types/graph.ts:377](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L377) +[packages/g6/src/types/graph.ts:377](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L377) ___ @@ -1951,7 +1951,7 @@ Transform the graph with a CSS-Transform-like syntax. #### Defined in -[packages/g6/src/types/graph.ts:370](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L370) +[packages/g6/src/types/graph.ts:370](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L370) ___ @@ -1961,7 +1961,7 @@ ___ #### Defined in -[packages/g6/src/types/graph.ts:28](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L28) +[packages/g6/src/types/graph.ts:28](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L28) ___ @@ -1988,7 +1988,7 @@ Move the graph with a relative vector. #### Defined in -[packages/g6/src/types/graph.ts:298](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L298) +[packages/g6/src/types/graph.ts:298](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L298) ___ @@ -2015,7 +2015,7 @@ Move the graph and align to a point. #### Defined in -[packages/g6/src/types/graph.ts:311](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L311) +[packages/g6/src/types/graph.ts:311](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L311) ___ @@ -2035,7 +2035,7 @@ Revert the last n operation(s) on the graph. #### Defined in -[packages/g6/src/types/graph.ts:714](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L714) +[packages/g6/src/types/graph.ts:714](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L714) ___ @@ -2061,7 +2061,7 @@ Update the specs (configurations). #### Defined in -[packages/g6/src/types/graph.ts:43](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L43) +[packages/g6/src/types/graph.ts:43](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L43) ___ @@ -2087,7 +2087,7 @@ Update the theme specs (configurations). #### Defined in -[packages/g6/src/types/graph.ts:47](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L47) +[packages/g6/src/types/graph.ts:47](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L47) ___ @@ -2115,7 +2115,7 @@ Zoom the graph with a relative ratio. #### Defined in -[packages/g6/src/types/graph.ts:326](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L326) +[packages/g6/src/types/graph.ts:326](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L326) ___ @@ -2143,7 +2143,7 @@ Zoom the graph to a specified ratio. #### Defined in -[packages/g6/src/types/graph.ts:337](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L337) +[packages/g6/src/types/graph.ts:337](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L337) ## Tree @@ -2171,7 +2171,7 @@ Collapse sub tree(s). #### Defined in -[packages/g6/src/types/graph.ts:769](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L769) +[packages/g6/src/types/graph.ts:769](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L769) ___ @@ -2199,7 +2199,7 @@ Expand sub tree(s). #### Defined in -[packages/g6/src/types/graph.ts:778](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L778) +[packages/g6/src/types/graph.ts:778](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L778) ## View @@ -2225,7 +2225,7 @@ Fit the graph center to the view center. #### Defined in -[packages/g6/src/types/graph.ts:403](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L403) +[packages/g6/src/types/graph.ts:403](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L403) ___ @@ -2254,7 +2254,7 @@ Fit the graph content to the view. #### Defined in -[packages/g6/src/types/graph.ts:390](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L390) +[packages/g6/src/types/graph.ts:390](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L390) ___ @@ -2281,7 +2281,7 @@ Move the graph to make the item align the view center. #### Defined in -[packages/g6/src/types/graph.ts:410](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L410) +[packages/g6/src/types/graph.ts:410](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L410) ___ @@ -2309,7 +2309,7 @@ rendering coordinate #### Defined in -[packages/g6/src/types/graph.ts:457](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L457) +[packages/g6/src/types/graph.ts:457](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L457) ___ @@ -2337,7 +2337,7 @@ canvas dom (viewport) coordinate #### Defined in -[packages/g6/src/types/graph.ts:433](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L433) +[packages/g6/src/types/graph.ts:433](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L433) ___ @@ -2365,7 +2365,7 @@ browser coordinate #### Defined in -[packages/g6/src/types/graph.ts:449](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L449) +[packages/g6/src/types/graph.ts:449](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L449) ___ @@ -2387,7 +2387,7 @@ Get the size of the graph canvas. #### Defined in -[packages/g6/src/types/graph.ts:419](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L419) +[packages/g6/src/types/graph.ts:419](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L419) ___ @@ -2415,7 +2415,7 @@ rendering coordinate #### Defined in -[packages/g6/src/types/graph.ts:441](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L441) +[packages/g6/src/types/graph.ts:441](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L441) ___ @@ -2441,4 +2441,4 @@ Set the size for the graph canvas. #### Defined in -[packages/g6/src/types/graph.ts:425](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/graph.ts#L425) +[packages/g6/src/types/graph.ts:425](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/graph.ts#L425) diff --git a/packages/site/docs/apis/interfaces/graph/Specification.en.md b/packages/site/docs/apis/interfaces/graph/Specification.en.md index 31ee8132af..d716d68708 100644 --- a/packages/site/docs/apis/interfaces/graph/Specification.en.md +++ b/packages/site/docs/apis/interfaces/graph/Specification.en.md @@ -23,7 +23,7 @@ global animate #### Defined in -[packages/g6/src/types/spec.ts:113](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L113) +[packages/g6/src/types/spec.ts:113](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L113) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:49](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L49) +[packages/g6/src/types/spec.ts:49](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L49) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:36](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L36) +[packages/g6/src/types/spec.ts:36](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L36) ___ @@ -53,7 +53,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:37](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L37) +[packages/g6/src/types/spec.ts:37](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L37) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:83](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L83) +[packages/g6/src/types/spec.ts:83](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L83) ___ @@ -77,7 +77,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:96](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L96) +[packages/g6/src/types/spec.ts:96](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L96) ___ @@ -87,7 +87,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:35](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L35) +[packages/g6/src/types/spec.ts:35](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L35) ___ @@ -99,7 +99,7 @@ data #### Defined in -[packages/g6/src/types/spec.ts:71](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L71) +[packages/g6/src/types/spec.ts:71](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L71) ___ @@ -109,7 +109,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:82](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L82) +[packages/g6/src/types/spec.ts:82](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L82) ___ @@ -123,7 +123,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:91](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L91) +[packages/g6/src/types/spec.ts:91](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L91) ___ @@ -133,7 +133,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:128](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L128) +[packages/g6/src/types/spec.ts:128](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L128) ___ @@ -143,7 +143,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:40](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L40) +[packages/g6/src/types/spec.ts:40](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L40) ___ @@ -155,7 +155,7 @@ layout #### Defined in -[packages/g6/src/types/spec.ts:103](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L103) +[packages/g6/src/types/spec.ts:103](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L103) ___ @@ -165,7 +165,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:110](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L110) +[packages/g6/src/types/spec.ts:110](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L110) ___ @@ -181,7 +181,7 @@ interaction #### Defined in -[packages/g6/src/types/spec.ts:106](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L106) +[packages/g6/src/types/spec.ts:106](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L106) ___ @@ -193,7 +193,7 @@ item #### Defined in -[packages/g6/src/types/spec.ts:81](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L81) +[packages/g6/src/types/spec.ts:81](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L81) ___ @@ -209,7 +209,7 @@ item state styles #### Defined in -[packages/g6/src/types/spec.ts:86](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L86) +[packages/g6/src/types/spec.ts:86](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L86) ___ @@ -219,7 +219,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:68](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L68) +[packages/g6/src/types/spec.ts:68](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L68) ___ @@ -231,7 +231,7 @@ free plugins #### Defined in -[packages/g6/src/types/spec.ts:116](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L116) +[packages/g6/src/types/spec.ts:116](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L116) ___ @@ -241,7 +241,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:41](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L41) +[packages/g6/src/types/spec.ts:41](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L41) ___ @@ -251,7 +251,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:130](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L130) +[packages/g6/src/types/spec.ts:130](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L130) ___ @@ -263,7 +263,7 @@ theme #### Defined in -[packages/g6/src/types/spec.ts:126](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L126) +[packages/g6/src/types/spec.ts:126](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L126) ___ @@ -273,7 +273,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:72](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L72) +[packages/g6/src/types/spec.ts:72](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L72) ___ @@ -283,7 +283,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:38](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L38) +[packages/g6/src/types/spec.ts:38](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L38) ___ @@ -293,7 +293,7 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:39](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L39) +[packages/g6/src/types/spec.ts:39](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L39) ___ @@ -303,4 +303,4 @@ ___ #### Defined in -[packages/g6/src/types/spec.ts:48](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/spec.ts#L48) +[packages/g6/src/types/spec.ts:48](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/spec.ts#L48) diff --git a/packages/site/docs/apis/interfaces/item/NodeUserModelData.en.md b/packages/site/docs/apis/interfaces/item/NodeUserModelData.en.md index 2e3d120552..25749b96dc 100644 --- a/packages/site/docs/apis/interfaces/item/NodeUserModelData.en.md +++ b/packages/site/docs/apis/interfaces/item/NodeUserModelData.en.md @@ -25,20 +25,20 @@ More styles should be configured in node mapper. #### Defined in -[packages/g6/src/types/node.ts:65](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L65) +[packages/g6/src/types/node.ts:67](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L67) ___ ### badges -• `Optional` **badges**: { `position`: `BadgePosition` ; `text`: `string` ; `type`: ``"icon"`` \| ``"text"`` }[] +• `Optional` **badges**: { `position`: `BadgePosition` ; `text`: `string` ; `type`: ``"text"`` \| ``"icon"`` }[] The badges to show on the node. More styles should be configured in node mapper. #### Defined in -[packages/g6/src/types/node.ts:70](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L70) +[packages/g6/src/types/node.ts:72](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L72) ___ @@ -51,7 +51,7 @@ More styles should be configured in node mapper. #### Defined in -[packages/g6/src/types/node.ts:34](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L34) +[packages/g6/src/types/node.ts:36](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L36) ___ @@ -68,11 +68,11 @@ More styles should be configured in node mapper. | :------ | :------ | | `img?` | `string` | | `text?` | `string` | -| `type` | ``"icon"`` \| ``"text"`` | +| `type` | ``"text"`` \| ``"icon"`` | #### Defined in -[packages/g6/src/types/node.ts:56](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L56) +[packages/g6/src/types/node.ts:58](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L58) ___ @@ -84,7 +84,7 @@ Whether to be a root at when used as a tree. #### Defined in -[packages/g6/src/types/node.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L51) +[packages/g6/src/types/node.ts:53](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L53) ___ @@ -97,7 +97,7 @@ More styles should be configured in node mapper. #### Defined in -[packages/g6/src/types/node.ts:39](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L39) +[packages/g6/src/types/node.ts:41](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L41) ___ @@ -109,7 +109,7 @@ Reserved for combo. #### Defined in -[packages/g6/src/types/node.ts:47](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L47) +[packages/g6/src/types/node.ts:49](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L49) ___ @@ -123,7 +123,7 @@ Only valid for polyline #### Defined in -[packages/g6/src/types/node.ts:80](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L80) +[packages/g6/src/types/node.ts:82](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L82) ___ @@ -135,7 +135,7 @@ Node type, e.g. 'circle-node'. #### Defined in -[packages/g6/src/types/node.ts:29](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L29) +[packages/g6/src/types/node.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L31) ___ @@ -147,7 +147,7 @@ Whether show the node by default. #### Defined in -[packages/g6/src/types/node.ts:43](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L43) +[packages/g6/src/types/node.ts:45](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L45) ___ @@ -159,7 +159,7 @@ Node position. #### Defined in -[packages/g6/src/types/node.ts:23](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L23) +[packages/g6/src/types/node.ts:25](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L25) ___ @@ -169,7 +169,7 @@ ___ #### Defined in -[packages/g6/src/types/node.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L24) +[packages/g6/src/types/node.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L26) ___ @@ -179,4 +179,4 @@ ___ #### Defined in -[packages/g6/src/types/node.ts:25](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L25) +[packages/g6/src/types/node.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L27) diff --git a/packages/site/docs/apis/interfaces/item/NodeUserModelData.zh.md b/packages/site/docs/apis/interfaces/item/NodeUserModelData.zh.md index 9d0a821d1a..fbd7dd94ce 100644 --- a/packages/site/docs/apis/interfaces/item/NodeUserModelData.zh.md +++ b/packages/site/docs/apis/interfaces/item/NodeUserModelData.zh.md @@ -25,20 +25,20 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:65](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L65) + [packages/g6/src/types/node.ts:67](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L67) ___ ### 徽章 - • `可选` **徽章**: { `position`: `BadgePosition` ; `文本`: `字符串`; `类型`: ``"图标"`` \| ``“文本”`` }[] + • `可选` **徽章**: { `position`: `BadgePosition` ; `文本`: `字符串`; `类型`: ``"文本"`` \| ``“图标”`` }[] 要在节点上显示的徽章。 应该在节点映射器中配置更多样式。 #### 定义于 - [packages/g6/src/types/node.ts:70](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L70) + [packages/g6/src/types/node.ts:72](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L72) ___ @@ -51,7 +51,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:34](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L34) + [packages/g6/src/types/node.ts:36](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L36) ___ @@ -68,11 +68,11 @@ title: NodeUserModelData | :------ | :------ | | `img?` | `字符串` | | `文字?` | `字符串` | - | `类型` | ``“图标”`` \| ``“文本”`` | + | `类型` | ``“文本”`` \| ``“图标”`` | #### 定义于 - [packages/g6/src/types/node.ts:56](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L56) + [packages/g6/src/types/node.ts:58](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L58) ___ @@ -84,7 +84,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L51) + [packages/g6/src/types/node.ts:53](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L53) ___ @@ -97,7 +97,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:39](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L39) + [packages/g6/src/types/node.ts:41](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L41) ___ @@ -109,7 +109,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:47](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L47) + [packages/g6/src/types/node.ts:49](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L49) ___ @@ -123,7 +123,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:80](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L80) + [packages/g6/src/types/node.ts:82](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L82) ___ @@ -135,7 +135,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:29](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L29) + [packages/g6/src/types/node.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L31) ___ @@ -147,7 +147,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:43](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L43) + [packages/g6/src/types/node.ts:45](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L45) ___ @@ -159,7 +159,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:23](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L23) + [packages/g6/src/types/node.ts:25](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L25) ___ @@ -169,7 +169,7 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L24) + [packages/g6/src/types/node.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L26) ___ @@ -179,4 +179,4 @@ title: NodeUserModelData #### 定义于 - [packages/g6/src/types/node.ts:25](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/node.ts#L25) \ No newline at end of file + [packages/g6/src/types/node.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/node.ts#L27) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/CircularLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/CircularLayoutOptions.en.md index 97ed9bbb61..988fe9e660 100644 --- a/packages/site/docs/apis/interfaces/layout/CircularLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/CircularLayoutOptions.en.md @@ -14,7 +14,7 @@ title: CircularLayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:121 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:121 ___ @@ -24,7 +24,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:112 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:112 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:118 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:118 ___ @@ -44,7 +44,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:119 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:119 ___ @@ -54,7 +54,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:123 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:123 ___ @@ -64,7 +64,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:117 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:117 ___ @@ -74,17 +74,17 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:114 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:114 ___ ### nodeSize -• `Optional` **nodeSize**: `number` \| `number`[] +• `Optional` **nodeSize**: `number` \| `number`[] \| (`nodeData`: `Node`) => `number` #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:125 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:125 ___ @@ -94,7 +94,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:124 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:124 ___ @@ -104,7 +104,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:120 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:120 ___ @@ -114,7 +114,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:115 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:115 ___ @@ -124,7 +124,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:122 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:122 ___ @@ -134,7 +134,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:116 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:116 ___ @@ -144,4 +144,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:113 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:113 diff --git a/packages/site/docs/apis/interfaces/layout/CircularLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/CircularLayoutOptions.zh.md index 628a8d6c8f..227474dfc1 100644 --- a/packages/site/docs/apis/interfaces/layout/CircularLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/CircularLayoutOptions.zh.md @@ -14,7 +14,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:121 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:121 ___ @@ -24,7 +24,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:112 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:112 ___ @@ -34,7 +34,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:118 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:118 ___ @@ -44,7 +44,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:119 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:119 ___ @@ -54,7 +54,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:123 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:123 ___ @@ -64,7 +64,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:117 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:117 ___ @@ -74,17 +74,17 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:114 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:114 ___ ### 节点大小 - • `可选` **nodeSize**: `number` \| `数字`[] + • `可选` **nodeSize**: `number` \| `数字`[] \| (`nodeData`: `Node`) => `数字` #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:125 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:125 ___ @@ -94,7 +94,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:124 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:124 ___ @@ -104,7 +104,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:120 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:120 ___ @@ -114,7 +114,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:115 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:115 ___ @@ -124,7 +124,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:122 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:122 ___ @@ -134,7 +134,7 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:116 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:116 ___ @@ -144,4 +144,4 @@ title: CircularLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:113 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:113 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/ComboCombinedLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/ComboCombinedLayoutOptions.en.md index b0d3254298..5798204183 100644 --- a/packages/site/docs/apis/interfaces/layout/ComboCombinedLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/ComboCombinedLayoutOptions.en.md @@ -14,7 +14,7 @@ title: ComboCombinedLayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:242 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:242 ___ @@ -24,7 +24,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:247 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:247 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:246 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:246 ___ @@ -44,7 +44,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:243 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:243 ___ @@ -54,7 +54,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:245 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:245 ___ @@ -64,7 +64,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:244 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:244 ___ @@ -74,4 +74,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:248 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:248 diff --git a/packages/site/docs/apis/interfaces/layout/ComboCombinedLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/ComboCombinedLayoutOptions.zh.md index fcb53abe54..ec92efe7b7 100644 --- a/packages/site/docs/apis/interfaces/layout/ComboCombinedLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/ComboCombinedLayoutOptions.zh.md @@ -14,7 +14,7 @@ title: ComboCombinedLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:242 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:242 ___ @@ -24,7 +24,7 @@ title: ComboCombinedLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:247 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:247 ___ @@ -34,7 +34,7 @@ title: ComboCombinedLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:246 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:246 ___ @@ -44,7 +44,7 @@ title: ComboCombinedLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:243 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:243 ___ @@ -54,7 +54,7 @@ title: ComboCombinedLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:245 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:245 ___ @@ -64,7 +64,7 @@ title: ComboCombinedLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:244 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:244 ___ @@ -74,4 +74,4 @@ title: ComboCombinedLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:248 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:248 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/ConcentricLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/ConcentricLayoutOptions.en.md index 1c94865e7d..f7b8e64e56 100644 --- a/packages/site/docs/apis/interfaces/layout/ConcentricLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/ConcentricLayoutOptions.en.md @@ -14,7 +14,7 @@ title: ConcentricLayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:154 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:154 ___ @@ -24,7 +24,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:160 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:160 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:158 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:158 ___ @@ -44,7 +44,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:164 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:164 ___ @@ -54,17 +54,17 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:161 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:161 ___ ### nodeSize -• `Optional` **nodeSize**: `number` \| `PointTuple` +• `Optional` **nodeSize**: `number` \| `PointTuple` \| (`nodeData`: `Node`) => `number` #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:156 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:156 ___ @@ -74,7 +74,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:165 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:165 ___ @@ -84,7 +84,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:155 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:155 ___ @@ -94,7 +94,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:162 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:162 ___ @@ -104,7 +104,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:159 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:159 ___ @@ -114,7 +114,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:157 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:157 ___ @@ -124,4 +124,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:163 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:163 diff --git a/packages/site/docs/apis/interfaces/layout/ConcentricLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/ConcentricLayoutOptions.zh.md index 84e684d5eb..e4334bc7c9 100644 --- a/packages/site/docs/apis/interfaces/layout/ConcentricLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/ConcentricLayoutOptions.zh.md @@ -14,7 +14,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:154 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:154 ___ @@ -24,7 +24,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:160 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:160 ___ @@ -34,7 +34,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:158 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:158 ___ @@ -44,7 +44,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:164 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:164 ___ @@ -54,17 +54,17 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:161 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:161 ___ ### 节点大小 - • `可选` **nodeSize**: `number` \| `点元组` + • `可选` **nodeSize**: `number` \| `点元组` \| (`nodeData`: `Node`) => `数字` #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:156 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:156 ___ @@ -74,7 +74,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:165 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:165 ___ @@ -84,7 +84,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:155 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:155 ___ @@ -94,7 +94,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:162 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:162 ___ @@ -104,7 +104,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:159 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:159 ___ @@ -114,7 +114,7 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:157 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:157 ___ @@ -124,4 +124,4 @@ title: ConcentricLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:163 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:163 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/D3ForceLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/D3ForceLayoutOptions.en.md index 52d77da98f..8eafbfcf44 100644 --- a/packages/site/docs/apis/interfaces/layout/D3ForceLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/D3ForceLayoutOptions.en.md @@ -14,7 +14,7 @@ title: D3ForceLayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:214 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:214 ___ @@ -24,7 +24,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:215 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:215 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:216 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:216 ___ @@ -44,7 +44,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:206 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:206 ___ @@ -54,7 +54,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:220 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:220 ___ @@ -64,7 +64,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:219 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:219 ___ @@ -74,7 +74,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:222 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:222 ___ @@ -84,7 +84,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:221 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:221 ___ @@ -94,7 +94,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:218 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:218 ___ @@ -104,7 +104,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:217 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:217 ___ @@ -114,7 +114,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:211 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:211 ___ @@ -124,7 +124,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:208 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:208 ___ @@ -134,7 +134,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:223 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:223 ___ @@ -144,7 +144,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:207 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:207 ___ @@ -154,7 +154,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:212 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:212 ___ @@ -164,7 +164,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:213 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:213 ___ @@ -174,7 +174,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:209 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:209 ___ @@ -198,7 +198,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:224 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:224 ___ @@ -208,4 +208,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:210 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:210 diff --git a/packages/site/docs/apis/interfaces/layout/D3ForceLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/D3ForceLayoutOptions.zh.md index 253b624b35..fe4a7fdc24 100644 --- a/packages/site/docs/apis/interfaces/layout/D3ForceLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/D3ForceLayoutOptions.zh.md @@ -14,7 +14,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:214 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:214 ___ @@ -24,7 +24,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:215 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:215 ___ @@ -34,7 +34,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:216 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:216 ___ @@ -44,7 +44,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:206 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:206 ___ @@ -54,7 +54,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:220 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:220 ___ @@ -64,7 +64,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:219 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:219 ___ @@ -74,7 +74,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:222 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:222 ___ @@ -84,7 +84,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:221 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:221 ___ @@ -94,7 +94,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:218 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:218 ___ @@ -104,7 +104,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:217 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:217 ___ @@ -114,7 +114,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:211 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:211 ___ @@ -124,7 +124,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:208 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:208 ___ @@ -134,7 +134,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:223 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:223 ___ @@ -144,7 +144,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:207 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:207 ___ @@ -154,7 +154,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:212 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:212 ___ @@ -164,7 +164,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:213 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:213 ___ @@ -174,7 +174,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:209 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:209 ___ @@ -198,7 +198,7 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:224 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:224 ___ @@ -208,4 +208,4 @@ title: D3ForceLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:210 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:210 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/DagreLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/DagreLayoutOptions.en.md index 1f5767700a..d39d6a0df3 100644 --- a/packages/site/docs/apis/interfaces/layout/DagreLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/DagreLayoutOptions.en.md @@ -14,7 +14,7 @@ title: DagreLayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:187 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:187 ___ @@ -24,7 +24,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:188 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:188 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:192 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:192 ___ @@ -44,7 +44,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:194 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:194 ___ @@ -54,7 +54,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:197 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:197 ___ @@ -64,17 +64,17 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:195 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:195 ___ ### nodeSize -• `Optional` **nodeSize**: `number` \| `number`[] +• `Optional` **nodeSize**: `number` \| `number`[] \| (`nodeData`: `Node`) => `number` #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:189 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:189 ___ @@ -84,7 +84,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:190 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:190 ___ @@ -108,7 +108,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:202 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:202 ___ @@ -125,7 +125,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:198 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:198 ___ @@ -135,7 +135,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:196 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:196 ___ @@ -145,7 +145,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:186 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:186 ___ @@ -155,7 +155,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:191 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:191 ___ @@ -179,7 +179,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:203 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:203 ___ @@ -189,4 +189,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:193 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:193 diff --git a/packages/site/docs/apis/interfaces/layout/DagreLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/DagreLayoutOptions.zh.md index 802a1816be..2b5da5a0b4 100644 --- a/packages/site/docs/apis/interfaces/layout/DagreLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/DagreLayoutOptions.zh.md @@ -14,7 +14,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:187 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:187 ___ @@ -24,7 +24,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:188 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:188 ___ @@ -34,7 +34,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:192 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:192 ___ @@ -44,7 +44,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:194 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:194 ___ @@ -54,7 +54,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:197 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:197 ___ @@ -64,17 +64,17 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:195 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:195 ___ ### 节点大小 - • `可选` **nodeSize**: `number` \| `数字`[] + • `可选` **nodeSize**: `number` \| `数字`[] \| (`nodeData`: `Node`) => `数字` #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:189 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:189 ___ @@ -84,7 +84,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:190 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:190 ___ @@ -108,7 +108,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:202 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:202 ___ @@ -125,7 +125,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:198 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:198 ___ @@ -135,7 +135,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:196 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:196 ___ @@ -145,7 +145,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:186 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:186 ___ @@ -155,7 +155,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:191 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:191 ___ @@ -179,7 +179,7 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:203 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:203 ___ @@ -189,4 +189,4 @@ title: DagreLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:193 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:193 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/ForceAtlas2LayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/ForceAtlas2LayoutOptions.en.md index eb1e4fb403..344419b218 100644 --- a/packages/site/docs/apis/interfaces/layout/ForceAtlas2LayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/ForceAtlas2LayoutOptions.en.md @@ -20,7 +20,7 @@ title: ForceAtlas2LayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:305 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:305 ___ @@ -34,7 +34,7 @@ CommonForceLayoutOptions.center #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 ___ @@ -48,7 +48,7 @@ CommonForceLayoutOptions.dimensions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 ___ @@ -58,13 +58,13 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:304 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:304 ___ ### distanceThresholdMode -• `Optional` **distanceThresholdMode**: ``"max"`` \| ``"min"`` \| ``"mean"`` +• `Optional` **distanceThresholdMode**: ``"min"`` \| ``"max"`` \| ``"mean"`` #### Inherited from @@ -72,7 +72,7 @@ CommonForceLayoutOptions.distanceThresholdMode #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 ___ @@ -82,7 +82,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:296 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:296 ___ @@ -92,7 +92,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:298 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:298 ___ @@ -102,7 +102,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:297 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:297 ___ @@ -112,7 +112,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:299 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:299 ___ @@ -122,7 +122,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:300 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:300 ___ @@ -140,7 +140,7 @@ CommonForceLayoutOptions.maxDistance #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 ___ @@ -154,7 +154,7 @@ CommonForceLayoutOptions.maxIteration #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 ___ @@ -168,7 +168,7 @@ CommonForceLayoutOptions.minMovement #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 ___ @@ -178,7 +178,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:302 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:302 ___ @@ -188,7 +188,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:307 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:307 ___ @@ -212,7 +212,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:308 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:308 ___ @@ -222,7 +222,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:303 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:303 ___ @@ -232,7 +232,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:306 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:306 ___ @@ -242,7 +242,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:301 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:301 ___ @@ -252,4 +252,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:295 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:295 diff --git a/packages/site/docs/apis/interfaces/layout/ForceAtlas2LayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/ForceAtlas2LayoutOptions.zh.md index 3ded80a23a..8d49de3d9c 100644 --- a/packages/site/docs/apis/interfaces/layout/ForceAtlas2LayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/ForceAtlas2LayoutOptions.zh.md @@ -20,7 +20,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:305 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:305 ___ @@ -34,7 +34,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 ___ @@ -48,7 +48,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 ___ @@ -58,13 +58,13 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:304 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:304 ___ ### 距离阈值模式 - • `可选` **distanceThresholdMode**:``"max"`` \| ``“分钟”`` \| ``“意思”`` + • `可选` **distanceThresholdMode**:``"min"`` \| ``“最大”`` \| ``“意思”`` ####继承自 @@ -72,7 +72,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 ___ @@ -82,7 +82,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:296 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:296 ___ @@ -92,7 +92,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:298 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:298 ___ @@ -102,7 +102,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:297 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:297 ___ @@ -112,7 +112,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:299 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:299 ___ @@ -122,7 +122,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:300 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:300 ___ @@ -140,7 +140,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 ___ @@ -154,7 +154,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 ___ @@ -168,7 +168,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 ___ @@ -178,7 +178,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:302 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:302 ___ @@ -188,7 +188,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:307 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:307 ___ @@ -212,7 +212,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:308 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:308 ___ @@ -222,7 +222,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:303 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:303 ___ @@ -232,7 +232,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:306 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:306 ___ @@ -242,7 +242,7 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:301 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:301 ___ @@ -252,4 +252,4 @@ title: ForceAtlas2LayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:295 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:295 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/ForceLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/ForceLayoutOptions.en.md index b38b210e48..bb57824817 100644 --- a/packages/site/docs/apis/interfaces/layout/ForceLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/ForceLayoutOptions.en.md @@ -24,7 +24,7 @@ CommonForceLayoutOptions.center #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:278 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:278 ___ @@ -44,7 +44,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:282 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:282 ___ @@ -54,7 +54,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:280 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:280 ___ @@ -64,7 +64,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:283 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:283 ___ @@ -74,7 +74,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:274 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:274 ___ @@ -84,7 +84,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:272 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:272 ___ @@ -98,13 +98,13 @@ CommonForceLayoutOptions.dimensions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 ___ ### distanceThresholdMode -• `Optional` **distanceThresholdMode**: ``"max"`` \| ``"min"`` \| ``"mean"`` +• `Optional` **distanceThresholdMode**: ``"min"`` \| ``"max"`` \| ``"mean"`` #### Inherited from @@ -112,7 +112,7 @@ CommonForceLayoutOptions.distanceThresholdMode #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 ___ @@ -122,7 +122,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:268 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:268 ___ @@ -132,7 +132,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:276 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:276 ___ @@ -157,7 +157,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:286 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:286 ___ @@ -181,7 +181,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:285 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:285 ___ @@ -191,7 +191,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:275 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:275 ___ @@ -201,7 +201,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:265 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:265 ___ @@ -211,7 +211,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:277 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:277 ___ @@ -221,7 +221,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:279 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:279 ___ @@ -231,7 +231,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:266 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:266 ___ @@ -249,7 +249,7 @@ CommonForceLayoutOptions.maxDistance #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 ___ @@ -263,7 +263,7 @@ CommonForceLayoutOptions.maxIteration #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 ___ @@ -273,7 +273,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:273 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:273 ___ @@ -287,7 +287,7 @@ CommonForceLayoutOptions.minMovement #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 ___ @@ -315,7 +315,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:287 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:287 ___ @@ -325,7 +325,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:281 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:281 ___ @@ -335,7 +335,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:270 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:270 ___ @@ -345,7 +345,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:271 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:271 ___ @@ -355,7 +355,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:267 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:267 ___ @@ -379,7 +379,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:284 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:284 ___ @@ -389,7 +389,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:269 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:269 ___ @@ -399,4 +399,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:264 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:264 diff --git a/packages/site/docs/apis/interfaces/layout/FruchtermanLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/FruchtermanLayoutOptions.en.md index 4874c75061..e012c0ad22 100644 --- a/packages/site/docs/apis/interfaces/layout/FruchtermanLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/FruchtermanLayoutOptions.en.md @@ -24,7 +24,7 @@ CommonForceLayoutOptions.center #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:316 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:316 ___ @@ -44,7 +44,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:315 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:315 ___ @@ -58,13 +58,13 @@ CommonForceLayoutOptions.dimensions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 ___ ### distanceThresholdMode -• `Optional` **distanceThresholdMode**: ``"max"`` \| ``"min"`` \| ``"mean"`` +• `Optional` **distanceThresholdMode**: ``"min"`` \| ``"max"`` \| ``"mean"`` #### Inherited from @@ -72,7 +72,7 @@ CommonForceLayoutOptions.distanceThresholdMode #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 ___ @@ -82,7 +82,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:313 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:313 ___ @@ -92,7 +92,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:312 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:312 ___ @@ -110,7 +110,7 @@ CommonForceLayoutOptions.maxDistance #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 ___ @@ -124,7 +124,7 @@ CommonForceLayoutOptions.maxIteration #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 ___ @@ -138,7 +138,7 @@ CommonForceLayoutOptions.minMovement #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 ___ @@ -148,7 +148,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:317 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:317 ___ @@ -172,7 +172,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:318 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:318 ___ @@ -182,7 +182,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:314 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:314 ___ @@ -192,4 +192,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:311 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:311 diff --git a/packages/site/docs/apis/interfaces/layout/FruchtermanLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/FruchtermanLayoutOptions.zh.md index 630778a5de..bbcc5d91c6 100644 --- a/packages/site/docs/apis/interfaces/layout/FruchtermanLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/FruchtermanLayoutOptions.zh.md @@ -24,7 +24,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:252 ___ @@ -34,7 +34,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:316 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:316 ___ @@ -44,7 +44,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:315 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:315 ___ @@ -58,13 +58,13 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:251 ___ ### 距离阈值模式 - • `可选` **distanceThresholdMode**:``"max"`` \| ``“分钟”`` \| ``“意思”`` + • `可选` **distanceThresholdMode**:``"min"`` \| ``“最大”`` \| ``“意思”`` ####继承自 @@ -72,7 +72,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:255 ___ @@ -82,7 +82,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:313 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:313 ___ @@ -92,7 +92,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:312 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:312 ___ @@ -110,7 +110,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:261 ___ @@ -124,7 +124,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:254 ___ @@ -138,7 +138,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:253 ___ @@ -148,7 +148,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:317 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:317 ___ @@ -172,7 +172,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:318 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:318 ___ @@ -182,7 +182,7 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:314 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:314 ___ @@ -192,4 +192,4 @@ title: FruchtermanLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:311 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:311 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/GridLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/GridLayoutOptions.en.md index ef7358e896..07ef9fa30d 100644 --- a/packages/site/docs/apis/interfaces/layout/GridLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/GridLayoutOptions.en.md @@ -14,7 +14,7 @@ title: GridLayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:130 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:130 ___ @@ -24,7 +24,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:136 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:136 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:134 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:134 ___ @@ -44,17 +44,17 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:129 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:129 ___ ### nodeSize -• `Optional` **nodeSize**: `number` \| `number`[] +• `Optional` **nodeSize**: `number` \| `number`[] \| (`nodeData`: `Node`) => `number` #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:132 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:132 ___ @@ -64,7 +64,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:142 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:142 ___ @@ -93,7 +93,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:138 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:138 ___ @@ -103,7 +103,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:131 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:131 ___ @@ -113,7 +113,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:133 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:133 ___ @@ -123,7 +123,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:135 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:135 ___ @@ -133,7 +133,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:137 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:137 ___ @@ -143,4 +143,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:128 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:128 diff --git a/packages/site/docs/apis/interfaces/layout/GridLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/GridLayoutOptions.zh.md index f7995e4de4..555f69391a 100644 --- a/packages/site/docs/apis/interfaces/layout/GridLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/GridLayoutOptions.zh.md @@ -14,7 +14,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:130 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:130 ___ @@ -24,7 +24,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:136 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:136 ___ @@ -34,7 +34,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:134 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:134 ___ @@ -44,17 +44,17 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:129 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:129 ___ ### 节点大小 - • `可选` **nodeSize**: `number` \| `数字`[] + • `可选` **nodeSize**: `number` \| `数字`[] \| (`nodeData`: `Node`) => `数字` #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:132 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:132 ___ @@ -64,7 +64,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:142 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:142 ___ @@ -93,7 +93,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:138 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:138 ___ @@ -103,7 +103,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:131 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:131 ___ @@ -113,7 +113,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:133 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:133 ___ @@ -123,7 +123,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:135 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:135 ___ @@ -133,7 +133,7 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:137 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:137 ___ @@ -143,4 +143,4 @@ title: GridLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:128 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:128 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/MDSLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/MDSLayoutOptions.en.md index a6ac6e6093..da50d90638 100644 --- a/packages/site/docs/apis/interfaces/layout/MDSLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/MDSLayoutOptions.en.md @@ -14,7 +14,7 @@ title: MDSLayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:150 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:150 ___ @@ -24,4 +24,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:151 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:151 diff --git a/packages/site/docs/apis/interfaces/layout/MDSLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/MDSLayoutOptions.zh.md index 77ea093c78..dd690ea4d3 100644 --- a/packages/site/docs/apis/interfaces/layout/MDSLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/MDSLayoutOptions.zh.md @@ -14,7 +14,7 @@ title: MDSLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:150 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:150 ___ @@ -24,4 +24,4 @@ title: MDSLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:151 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:151 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/layout/RadialLayoutOptions.en.md b/packages/site/docs/apis/interfaces/layout/RadialLayoutOptions.en.md index e545436013..8b6aeeae36 100644 --- a/packages/site/docs/apis/interfaces/layout/RadialLayoutOptions.en.md +++ b/packages/site/docs/apis/interfaces/layout/RadialLayoutOptions.en.md @@ -14,7 +14,7 @@ title: RadialLayoutOptions #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:168 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:168 ___ @@ -24,7 +24,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:173 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:173 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:170 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:170 ___ @@ -44,7 +44,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:171 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:171 ___ @@ -54,7 +54,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:172 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:172 ___ @@ -64,17 +64,17 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:178 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:178 ___ ### nodeSize -• `Optional` **nodeSize**: `number` \| `number`[] +• `Optional` **nodeSize**: `number` \| `number`[] \| (`nodeData`: `Node`) => `number` #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:176 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:176 ___ @@ -84,7 +84,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:177 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:177 ___ @@ -94,7 +94,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:175 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:175 ___ @@ -104,7 +104,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:180 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:180 ___ @@ -114,7 +114,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:181 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:181 ___ @@ -124,7 +124,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:179 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:179 ___ @@ -134,7 +134,7 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:174 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:174 ___ @@ -144,4 +144,4 @@ ___ #### Defined in -node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:169 +node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:169 diff --git a/packages/site/docs/apis/interfaces/layout/RadialLayoutOptions.zh.md b/packages/site/docs/apis/interfaces/layout/RadialLayoutOptions.zh.md index 5990ff1a40..8ce268763a 100644 --- a/packages/site/docs/apis/interfaces/layout/RadialLayoutOptions.zh.md +++ b/packages/site/docs/apis/interfaces/layout/RadialLayoutOptions.zh.md @@ -14,7 +14,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:168 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:168 ___ @@ -24,7 +24,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:173 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:173 ___ @@ -34,7 +34,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:170 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:170 ___ @@ -44,7 +44,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:171 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:171 ___ @@ -54,7 +54,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:172 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:172 ___ @@ -64,17 +64,17 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:178 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:178 ___ ### 节点大小 - • `可选` **nodeSize**: `number` \| `数字`[] + • `可选` **nodeSize**: `number` \| `数字`[] \| (`nodeData`: `Node`) => `数字` #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:176 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:176 ___ @@ -84,7 +84,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:177 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:177 ___ @@ -94,7 +94,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:175 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:175 ___ @@ -104,7 +104,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:180 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:180 ___ @@ -114,7 +114,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:181 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:181 ___ @@ -124,7 +124,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:179 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:179 ___ @@ -134,7 +134,7 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:174 + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:174 ___ @@ -144,4 +144,4 @@ title: RadialLayoutOptions #### 定义于 - node_modules/.pnpm/@antv+layout@1.2.5_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:169 \ No newline at end of file + node_modules/.pnpm/@antv+layout@1.2.9_workerize-loader@2.0.2/node_modules/@antv/layout/lib/types.d.ts:169 \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/plugins-LegendConfig.en.md b/packages/site/docs/apis/interfaces/plugins-LegendConfig.en.md deleted file mode 100644 index 54688eeed2..0000000000 --- a/packages/site/docs/apis/interfaces/plugins-LegendConfig.en.md +++ /dev/null @@ -1,123 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [plugins](../modules/plugins.en.md) / LegendConfig - -# Interface: LegendConfig - -[plugins](../modules/plugins.en.md).LegendConfig - -## Hierarchy - -- `IPluginBaseConfig` - - ↳ **`LegendConfig`** - -## Properties - -### activeState - -• `Optional` **activeState**: `string` - -#### Defined in - -[stdlib/plugin/legend/index.ts:55](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L55) - -___ - -### className - -• `Optional` **className**: `string` - -#### Overrides - -IPluginBaseConfig.className - -#### Defined in - -[stdlib/plugin/legend/index.ts:47](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L47) - -___ - -### container - -• `Optional` **container**: `HTMLDivElement` - -#### Overrides - -IPluginBaseConfig.container - -#### Defined in - -[stdlib/plugin/legend/index.ts:45](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L45) - -___ - -### edge - -• `Optional` **edge**: `ItemLegendConfig` - -#### Defined in - -[stdlib/plugin/legend/index.ts:61](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L61) - -___ - -### graph - -• `Optional` **graph**: [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> - -#### Inherited from - -IPluginBaseConfig.graph - -#### Defined in - -[types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7) - -___ - -### inactiveState - -• `Optional` **inactiveState**: `string` - -#### Defined in - -[stdlib/plugin/legend/index.ts:57](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L57) - -___ - -### node - -• `Optional` **node**: `ItemLegendConfig` - -#### Defined in - -[stdlib/plugin/legend/index.ts:59](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L59) - -___ - -### orientation - -• `Optional` **orientation**: ``"horizontal"`` \| ``"vertical"`` - -#### Defined in - -[stdlib/plugin/legend/index.ts:51](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L51) - -___ - -### selectedState - -• `Optional` **selectedState**: `string` - -#### Defined in - -[stdlib/plugin/legend/index.ts:53](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L53) - -___ - -### size - -• `Optional` **size**: ``"fit-content"`` \| [`string` \| `number`, `string` \| `number`] - -#### Defined in - -[stdlib/plugin/legend/index.ts:49](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L49) diff --git a/packages/site/docs/apis/interfaces/plugins-LegendConfig.zh.md b/packages/site/docs/apis/interfaces/plugins-LegendConfig.zh.md deleted file mode 100644 index cdf31439ec..0000000000 --- a/packages/site/docs/apis/interfaces/plugins-LegendConfig.zh.md +++ /dev/null @@ -1,123 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [插件](../modules/plugins.zh.md ) / LegendConfig - - # 接口:LegendConfig - - [插件](../modules/plugins.zh.md).LegendConfig - - ## 等级制度 - - - `IPluginBaseConfig` - - ↳ **`图例配置`** - - ## 特性 - - ### 活动状态 - - • `可选` **activeState**:`字符串` - - #### 定义于 - - [stdlib/plugin/legend/index.ts:55](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L55) - - ___ - - ### 班级名称 - - • `可选` **类名**:`字符串` - - #### 覆盖 - - IPluginBaseConfig.className - - #### 定义于 - - [stdlib/plugin/legend/index.ts:47](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L47) - - ___ - - ### 容器 - - • `可选` **容器**:`HTMLDivElement` - - #### 覆盖 - - IPluginBaseConfig.container - - #### 定义于 - - [stdlib/plugin/legend/index.ts:45](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L45) - - ___ - - ### 边缘 - - • `可选` **边缘**:`ItemLegendConfig` - - #### 定义于 - - [stdlib/plugin/legend/index.ts:61](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L61) - - ___ - - ### 图表 - - • `可选` **graph**: [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - - ####继承自 - - IPluginBaseConfig.graph - - #### 定义于 - - [types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7) - - ___ - - ### 非活动状态 - - • `可选` **inactiveState**:`字符串` - - #### 定义于 - - [stdlib/plugin/legend/index.ts:57](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L57) - - ___ - - ### 节点 - - • `可选` **节点**:`ItemLegendConfig` - - #### 定义于 - - [stdlib/plugin/legend/index.ts:59](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L59) - - ___ - - ### 方向 - - • `可选` **方向**:``"水平"`` \| ``“垂直”`` - - #### 定义于 - - [stdlib/plugin/legend/index.ts:51](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L51) - - ___ - - ### 选定状态 - - • `可选` **selectedState**:`字符串` - - #### 定义于 - - [stdlib/plugin/legend/index.ts:53](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L53) - - ___ - - ### 尺寸 - - • `可选` **尺寸**:``"fit-content"`` \| [`字符串`\| `数字`、`字符串` \| `数字`] - - #### 定义于 - - [stdlib/plugin/legend/index.ts:49](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/legend/index.ts#L49) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/plugins-MiniMapConfig.en.md b/packages/site/docs/apis/interfaces/plugins-MiniMapConfig.en.md deleted file mode 100644 index c2070a2284..0000000000 --- a/packages/site/docs/apis/interfaces/plugins-MiniMapConfig.en.md +++ /dev/null @@ -1,123 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [plugins](../modules/plugins.en.md) / MiniMapConfig - -# Interface: MiniMapConfig - -[plugins](../modules/plugins.en.md).MiniMapConfig - -## Hierarchy - -- `IPluginBaseConfig` - - ↳ **`MiniMapConfig`** - -## Properties - -### className - -• `Optional` **className**: `string` - -#### Overrides - -IPluginBaseConfig.className - -#### Defined in - -[stdlib/plugin/minimap/index.ts:19](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L19) - -___ - -### container - -• `Optional` **container**: `HTMLDivElement` - -#### Overrides - -IPluginBaseConfig.container - -#### Defined in - -[stdlib/plugin/minimap/index.ts:26](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L26) - -___ - -### delegateStyle - -• `Optional` **delegateStyle**: `Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\> - -#### Defined in - -[stdlib/plugin/minimap/index.ts:22](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L22) - -___ - -### graph - -• `Optional` **graph**: [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> - -#### Inherited from - -IPluginBaseConfig.graph - -#### Defined in - -[types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7) - -___ - -### hideEdge - -• `Optional` **hideEdge**: `boolean` - -#### Defined in - -[stdlib/plugin/minimap/index.ts:25](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L25) - -___ - -### mode - -• `Optional` **mode**: ``"keyShape"`` \| ``"default"`` \| ``"delegate"`` - -#### Defined in - -[stdlib/plugin/minimap/index.ts:20](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L20) - -___ - -### padding - -• `Optional` **padding**: `number` - -#### Defined in - -[stdlib/plugin/minimap/index.ts:24](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L24) - -___ - -### refresh - -• `Optional` **refresh**: `boolean` - -#### Defined in - -[stdlib/plugin/minimap/index.ts:23](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L23) - -___ - -### size - -• `Optional` **size**: `number`[] - -#### Defined in - -[stdlib/plugin/minimap/index.ts:21](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L21) - -___ - -### viewportClassName - -• `Optional` **viewportClassName**: `string` - -#### Defined in - -[stdlib/plugin/minimap/index.ts:18](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L18) diff --git a/packages/site/docs/apis/interfaces/plugins-MiniMapConfig.zh.md b/packages/site/docs/apis/interfaces/plugins-MiniMapConfig.zh.md deleted file mode 100644 index c91f7206e3..0000000000 --- a/packages/site/docs/apis/interfaces/plugins-MiniMapConfig.zh.md +++ /dev/null @@ -1,123 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [插件](../modules/plugins.zh.md ) / 小地图配置 - - # 接口:MiniMapConfig - - [插件](../modules/plugins.zh.md).MiniMapConfig - - ## 等级制度 - - - `IPluginBaseConfig` - - ↳ **`MiniMapConfig`** - - ## 特性 - - ### 班级名称 - - • `可选` **类名**:`字符串` - - #### 覆盖 - - IPluginBaseConfig.className - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:19](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L19) - - ___ - - ### 容器 - - • `可选` **容器**:`HTMLDivElement` - - #### 覆盖 - - IPluginBaseConfig.container - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:26](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L26) - - ___ - - ### 委托样式 - - • `可选` **delegateStyle**:`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\> - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:22](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L22) - - ___ - - ### 图表 - - • `可选` **graph**: [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - - ####继承自 - - IPluginBaseConfig.graph - - #### 定义于 - - [types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7) - - ___ - - ### 隐藏边缘 - - • `可选` **hideEdge**:`布尔值` - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:25](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L25) - - ___ - - ### 模式 - - • `可选` **模式**:``"keyShape"`` \| ``“默认”`` \| ``“代表”`` - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:20](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L20) - - ___ - - ### 填充 - - • `可选` **填充**:`数字` - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:24](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L24) - - ___ - - ### 刷新 - - • `可选` **刷新**:`布尔值` - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:23](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L23) - - ___ - - ### 尺寸 - - • `可选` **尺寸**:`数量`[] - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:21](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L21) - - ___ - - ### 视口类名 - - • `可选` **viewportClassName**:`string` - - #### 定义于 - - [stdlib/plugin/minimap/index.ts:18](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/minimap/index.ts#L18) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/plugins-ToolbarConfig.en.md b/packages/site/docs/apis/interfaces/plugins-ToolbarConfig.en.md deleted file mode 100644 index 857ccc2360..0000000000 --- a/packages/site/docs/apis/interfaces/plugins-ToolbarConfig.en.md +++ /dev/null @@ -1,134 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [plugins](../modules/plugins.en.md) / ToolbarConfig - -# Interface: ToolbarConfig - -[plugins](../modules/plugins.en.md).ToolbarConfig - -## Hierarchy - -- `IPluginBaseConfig` - - ↳ **`ToolbarConfig`** - -## Properties - -### className - -• `Optional` **className**: `string` - -#### Inherited from - -IPluginBaseConfig.className - -#### Defined in - -[types/plugin.ts:6](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L6) - -___ - -### container - -• `Optional` **container**: `string` \| `HTMLDivElement` - -#### Inherited from - -IPluginBaseConfig.container - -#### Defined in - -[types/plugin.ts:5](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L5) - -___ - -### getContent - -• **getContent**: (`graph?`: [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\>) => `string` \| `HTMLDivElement` - -#### Type declaration - -▸ (`graph?`): `string` \| `HTMLDivElement` - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `graph?` | [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> | - -##### Returns - -`string` \| `HTMLDivElement` - -#### Defined in - -[stdlib/plugin/toolbar/index.ts:14](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L14) - -___ - -### graph - -• `Optional` **graph**: [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> - -#### Inherited from - -IPluginBaseConfig.graph - -#### Defined in - -[types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7) - -___ - -### handleClick - -• `Optional` **handleClick**: (`code`: `string`, `graph`: [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\>) => `void` - -#### Type declaration - -▸ (`code`, `graph`): `void` - -toolbar config - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `code` | `string` | toolbar item code | -| `graph` | [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> | Graph Instance | - -##### Returns - -`void` - -#### Defined in - -[stdlib/plugin/toolbar/index.ts:13](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L13) - -___ - -### maxZoom - -• **maxZoom**: `number` - -#### Defined in - -[stdlib/plugin/toolbar/index.ts:17](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L17) - -___ - -### minZoom - -• **minZoom**: `number` - -#### Defined in - -[stdlib/plugin/toolbar/index.ts:16](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L16) - -___ - -### zoomSensitivity - -• **zoomSensitivity**: `number` - -#### Defined in - -[stdlib/plugin/toolbar/index.ts:15](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L15) diff --git a/packages/site/docs/apis/interfaces/plugins-ToolbarConfig.zh.md b/packages/site/docs/apis/interfaces/plugins-ToolbarConfig.zh.md deleted file mode 100644 index 721fdfc33d..0000000000 --- a/packages/site/docs/apis/interfaces/plugins-ToolbarConfig.zh.md +++ /dev/null @@ -1,134 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [插件](../modules/plugins.zh.md ) / 工具栏配置 - - # 接口:工具栏配置 - - [插件](../modules/plugins.zh.md).ToolbarConfig - - ## 等级制度 - - - `IPluginBaseConfig` - - ↳ **`工具栏配置`** - - ## 特性 - - ### 班级名称 - - • `可选` **类名**:`字符串` - - ####继承自 - - IPluginBaseConfig.className - - #### 定义于 - - [types/plugin.ts:6](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L6) - - ___ - - ### 容器 - - • `可选` **容器**:`字符串` \| `HTMLDivElement` - - ####继承自 - - IPluginBaseConfig.container - - #### 定义于 - - [types/plugin.ts:5](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L5) - - ___ - - ### 获取内容 - - • **getContent**: (`graph?`: [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>) => `string` \| `HTMLDivElement` - - #### 类型声明 - - ▸ (`图?`): `字符串` \| `HTMLDivElement` - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `图?` | [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> | - - ##### 返回 - - `字符串` \| `HTMLDivElement` - - #### 定义于 - - [stdlib/plugin/toolbar/index.ts:14](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L14) - - ___ - - ### 图表 - - • `可选` **graph**: [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - - ####继承自 - - IPluginBaseConfig.graph - - #### 定义于 - - [types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7) - - ___ - - ### 处理点击 - - • `可选` **handleClick**: (`code`: `string`, `graph`: [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>) => `无效` - - #### 类型声明 - - ▸ (`代码`, `图表`): `void` - - 工具栏配置 - - ##### 参数 - - | 名称 | 类型 | 描述 | - | :------ | :------ | :------ | - | `代码` | `字符串` | 工具栏项目代码| - | `图` | [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> | 图实例| - - ##### 返回 - - `无效` - - #### 定义于 - - [stdlib/plugin/toolbar/index.ts:13](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L13) - - ___ - - ### 最大缩放 - - • **maxZoom**:`数量` - - #### 定义于 - - [stdlib/plugin/toolbar/index.ts:17](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L17) - - ___ - - ### 最小缩放 - - • **minZoom**:`数字` - - #### 定义于 - - [stdlib/plugin/toolbar/index.ts:16](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L16) - - ___ - - ### 缩放灵敏度 - - • **缩放灵敏度**:`数字` - - #### 定义于 - - [stdlib/plugin/toolbar/index.ts:15](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/toolbar/index.ts#L15) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/plugins-TooltipConfig.en.md b/packages/site/docs/apis/interfaces/plugins-TooltipConfig.en.md deleted file mode 100644 index d1a584c226..0000000000 --- a/packages/site/docs/apis/interfaces/plugins-TooltipConfig.en.md +++ /dev/null @@ -1,161 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [plugins](../modules/plugins.en.md) / TooltipConfig - -# Interface: TooltipConfig - -[plugins](../modules/plugins.en.md).TooltipConfig - -## Hierarchy - -- `IPluginBaseConfig` - - ↳ **`TooltipConfig`** - -## Properties - -### className - -• `Optional` **className**: `string` - -#### Inherited from - -IPluginBaseConfig.className - -#### Defined in - -[types/plugin.ts:6](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L6) - -___ - -### container - -• `Optional` **container**: `string` \| `HTMLDivElement` - -#### Inherited from - -IPluginBaseConfig.container - -#### Defined in - -[types/plugin.ts:5](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L5) - -___ - -### fixToNode - -• `Optional` **fixToNode**: [`number`, `number`] \| `Placement` - -#### Defined in - -[stdlib/plugin/tooltip/index.ts:66](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L66) - -___ - -### getContent - -• `Optional` **getContent**: (`evt?`: [`IG6GraphEvent`](types-IG6GraphEvent.en.md)) => `string` \| `HTMLDivElement` \| `Promise`<`string` \| `HTMLDivElement`\> - -#### Type declaration - -▸ (`evt?`): `string` \| `HTMLDivElement` \| `Promise`<`string` \| `HTMLDivElement`\> - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `evt?` | [`IG6GraphEvent`](types-IG6GraphEvent.en.md) | - -##### Returns - -`string` \| `HTMLDivElement` \| `Promise`<`string` \| `HTMLDivElement`\> - -#### Defined in - -[stdlib/plugin/tooltip/index.ts:57](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L57) - -___ - -### graph - -• `Optional` **graph**: [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> - -#### Inherited from - -IPluginBaseConfig.graph - -#### Defined in - -[types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7) - -___ - -### itemTypes - -• `Optional` **itemTypes**: (``"node"`` \| ``"edge"`` \| ``"combo"`` \| ``"canvas"``)[] - -#### Defined in - -[stdlib/plugin/tooltip/index.ts:64](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L64) - -___ - -### loadingContent - -• `Optional` **loadingContent**: `string` \| `HTMLDivElement` - -#### Defined in - -[stdlib/plugin/tooltip/index.ts:67](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L67) - -___ - -### offsetX - -• `Optional` **offsetX**: `number` - -#### Defined in - -[stdlib/plugin/tooltip/index.ts:60](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L60) - -___ - -### offsetY - -• `Optional` **offsetY**: `number` - -#### Defined in - -[stdlib/plugin/tooltip/index.ts:61](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L61) - -___ - -### shouldBegin - -• `Optional` **shouldBegin**: (`evt?`: [`IG6GraphEvent`](types-IG6GraphEvent.en.md)) => `boolean` - -#### Type declaration - -▸ (`evt?`): `boolean` - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `evt?` | [`IG6GraphEvent`](types-IG6GraphEvent.en.md) | - -##### Returns - -`boolean` - -#### Defined in - -[stdlib/plugin/tooltip/index.ts:62](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L62) - -___ - -### trigger - -• `Optional` **trigger**: ``"click"`` \| ``"pointerenter"`` - -#### Defined in - -[stdlib/plugin/tooltip/index.ts:65](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L65) diff --git a/packages/site/docs/apis/interfaces/plugins-TooltipConfig.zh.md b/packages/site/docs/apis/interfaces/plugins-TooltipConfig.zh.md deleted file mode 100644 index c9fa42499e..0000000000 --- a/packages/site/docs/apis/interfaces/plugins-TooltipConfig.zh.md +++ /dev/null @@ -1,161 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [插件](../modules/plugins.zh.md ) / 工具提示配置 - - # 接口:TooltipConfig - - [插件](../modules/plugins.zh.md).TooltipConfig - - ## 等级制度 - - - `IPluginBaseConfig` - - ↳ **`工具提示配置`** - - ## 特性 - - ### 班级名称 - - • `可选` **类名**:`字符串` - - ####继承自 - - IPluginBaseConfig.className - - #### 定义于 - - [types/plugin.ts:6](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L6) - - ___ - - ### 容器 - - • `可选` **容器**:`字符串` \| `HTMLDivElement` - - ####继承自 - - IPluginBaseConfig.container - - #### 定义于 - - [types/plugin.ts:5](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L5) - - ___ - - ### 修复到节点 - - • `可选` **fixToNode**: [`number`, `number`] \| `放置` - - #### 定义于 - - [stdlib/plugin/tooltip/index.ts:66](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L66) - - ___ - - ### 获取内容 - - • `可选` **getContent**: (`evt?`: [`IG6GraphEvent`](types-IG6GraphEvent.zh.md)) => `string` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> - - #### 类型声明 - - ▸ (`evt?`): `字符串` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `事件?` | [`IG6GraphEvent`](types-IG6GraphEvent.zh.md) | - - ##### 返回 - - `字符串` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> - - #### 定义于 - - [stdlib/plugin/tooltip/index.ts:57](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L57) - - ___ - - ### 图表 - - • `可选` **graph**: [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - - ####继承自 - - IPluginBaseConfig.graph - - #### 定义于 - - [types/plugin.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/plugin.ts#L7) - - ___ - - ### 项目类型 - - • `可选` **itemTypes**: (``"node"`` \| ``"edge"`` \| ``"combo"`` \| ``"canvas"``)[] - - #### 定义于 - - [stdlib/plugin/tooltip/index.ts:64](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L64) - - ___ - - ### 加载内容 - - • `可选` **loadingContent**:`字符串` \| `HTMLDivElement` - - #### 定义于 - - [stdlib/plugin/tooltip/index.ts:67](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L67) - - ___ - - ### 偏移X - - • `可选` **offsetX**:`数字` - - #### 定义于 - - [stdlib/plugin/tooltip/index.ts:60](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L60) - - ___ - - ### 偏移Y - - • `可选` **offsetY**:`数字` - - #### 定义于 - - [stdlib/plugin/tooltip/index.ts:61](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L61) - - ___ - - ### 应该开始 - - • `可选` **shouldBegin**: (`evt?`: [`IG6GraphEvent`](types-IG6GraphEvent.zh.md)) => `boolean` - - #### 类型声明 - - ▸ (`evt?`): `布尔值` - - ##### 参数 - - | 名称 | 类型 | - | :------ | :------ | - | `事件?` | [`IG6GraphEvent`](types-IG6GraphEvent.zh.md) | - - ##### 返回 - - `布尔值` - - #### 定义于 - - [stdlib/plugin/tooltip/index.ts:62](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L62) - - ___ - - ### 扳机 - - • `可选` **触发**:``"点击"`` \| ``“指针输入器”`` - - #### 定义于 - - [stdlib/plugin/tooltip/index.ts:65](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/stdlib/plugin/tooltip/index.ts#L65) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/plugins/FisheyeConfig.en.md b/packages/site/docs/apis/interfaces/plugins/FisheyeConfig.en.md index e5ebe3e5f8..c5064a61db 100644 --- a/packages/site/docs/apis/interfaces/plugins/FisheyeConfig.en.md +++ b/packages/site/docs/apis/interfaces/plugins/FisheyeConfig.en.md @@ -6,6 +6,22 @@ title: FisheyeConfig [plugins](../../modules/plugins.en.md).FisheyeConfig +This is an interface named `FisheyeConfig`, which extends the `IPluginBaseConfig` interface. It contains the following properties: + +- `trigger`: The trigger method, which can be `'mousemove'`, `'click'`, or `'drag'`. +- `d`: A number representing the magnification factor of the fisheye. +- `r`: A number representing the radius of the fisheye. +- `delegateStyle`: The shape style. +- `showLabel`: A boolean indicating whether to show the label. +- `scaleRBy`: Can be `'wheel'`, `'drag'`, `'unset'`, or `undefined`, representing the scaling method for the fisheye radius. +- `scaleDBy`: Can be `'wheel'`, `'drag'`, `'unset'`, or `undefined`, representing the scaling method for the fisheye magnification factor. +- `maxR`: A number representing the maximum value of the fisheye radius. +- `minR`: A number representing the minimum value of the fisheye radius. +- `maxD`: A number representing the maximum value of the fisheye magnification factor. +- `minD`: A number representing the minimum value of the fisheye magnification factor. +- `throttle`: A number representing the throttle time (in milliseconds). +- `showDPercent`: A boolean indicating whether to show the percentage of the fisheye magnification factor. + ## Hierarchy - `IPluginBaseConfig` @@ -24,9 +40,9 @@ IPluginBaseConfig.className #### Defined in -[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L6) -___ +--- ### container @@ -38,29 +54,43 @@ IPluginBaseConfig.container #### Defined in -[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L5) -___ +--- ### d • `Optional` **d**: `number` +A number representing the magnification factor of the fisheye. + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L13) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:30](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L30) -___ +--- ### delegateStyle -• `Optional` **delegateStyle**: `Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\> +• `Optional` **delegateStyle**: `Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\> + +The shape style + +**`Default`** + +`{ + stroke: '#000', + strokeOpacity: 0.8, + lineWidth: 2, + fillOpacity: 0.1, + fill: '#ccc' + }` #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:15](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L15) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:47](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L47) -___ +--- ### graph @@ -72,114 +102,136 @@ IPluginBaseConfig.graph #### Defined in -[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L7) -___ +--- ### maxD • `Optional` **maxD**: `number` +A number representing the maximum value of the fisheye magnification factor. + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:21](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L21) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:59](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L59) -___ +--- ### maxR • `Optional` **maxR**: `number` +A number representing the maximum value of the fisheye radius. + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:19](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L19) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:55](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L55) -___ +--- ### minD • `Optional` **minD**: `number` +A number representing the minimum value of the fisheye magnification factor. + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L22) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:61](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L61) -___ +--- ### minR • `Optional` **minR**: `number` +A number representing the minimum value of the fisheye radius. + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:20](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L20) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:57](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L57) -___ +--- ### r • `Optional` **r**: `number` +A number representing the radius of the fisheye. + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L14) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:32](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L32) -___ +--- ### scaleDBy -• `Optional` **scaleDBy**: ``"unset"`` \| ``"drag"`` \| ``"wheel"`` +• `Optional` **scaleDBy**: `"unset"` \| `"drag"` \| `"wheel"` + +Can be `'wheel'`, `'drag'`, `'unset'`, or `undefined`, representing the scaling method for the fisheye magnification factor. #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L18) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:53](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L53) -___ +--- ### scaleRBy -• `Optional` **scaleRBy**: ``"unset"`` \| ``"drag"`` \| ``"wheel"`` +• `Optional` **scaleRBy**: `"unset"` \| `"drag"` \| `"wheel"` + +Can be `'wheel'`, `'drag'`, `'unset'`, or `undefined`, representing the scaling method for the fisheye radius. #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:17](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L17) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:51](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L51) -___ +--- ### showDPercent • `Optional` **showDPercent**: `boolean` +A boolean indicating whether to show the percentage of the fisheye magnification factor. + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L24) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:65](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L65) -___ +--- ### showLabel • `Optional` **showLabel**: `boolean` +A boolean indicating whether to show the label. + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:16](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L16) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:49](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L49) -___ +--- ### throttle • `Optional` **throttle**: `number` +A number representing the throttle time (in milliseconds). + #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:23](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L23) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:63](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L63) -___ +--- ### trigger -• `Optional` **trigger**: ``"click"`` \| ``"drag"`` \| ``"mousemove"`` +• `Optional` **trigger**: `"click"` \| `"drag"` \| `"mousemove"` + +The trigger method, which can be `'mousemove'`, `'click'`, or `'drag'`. #### Defined in -[packages/g6/src/stdlib/plugin/fisheye/index.ts:12](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts#L12) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:28](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L28) diff --git a/packages/site/docs/apis/interfaces/plugins/FisheyeConfig.zh.md b/packages/site/docs/apis/interfaces/plugins/FisheyeConfig.zh.md index 3fad42c1dd..b125d5bceb 100644 --- a/packages/site/docs/apis/interfaces/plugins/FisheyeConfig.zh.md +++ b/packages/site/docs/apis/interfaces/plugins/FisheyeConfig.zh.md @@ -2,184 +2,232 @@ title: FisheyeConfig --- -[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../. ./modules/plugins.zh.md) / FisheyeConfig +[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../../modules/plugins.zh.md) / FisheyeConfig - [插件](../../modules/plugins.zh.md).FisheyeConfig +[插件](../../modules/plugins.zh.md).FisheyeConfig - ## 等级制度 +这是一个名为`FisheyeConfig`的接口,它扩展了`IPluginBaseConfig`接口。它包含以下属性: - - `IPluginBaseConfig` +- `trigger`:触发方法,可以是`'mousemove'`、`'click'`或`'drag'`。 +- `d`:表示鱼眼放大倍数的数字。 +- `r`:表示鱼眼半径的数字。 +- `delegateStyle`:形状样式。 +- `showLabel`:一个布尔值,表示是否显示标签。 +- `scaleRBy`:可以是`'wheel'`、`'drag'`、`'unset'`或`undefined`,表示鱼眼半径的缩放方法。 +- `scaleDBy`:可以是`'wheel'`、`'drag'`、`'unset'`或`undefined`,表示鱼眼放大倍数的缩放方法。 +- `maxR`:表示鱼眼半径最大值的数字。 +- `minR`:表示鱼眼半径最小值的数字。 +- `maxD`:表示鱼眼放大倍数最大值的数字。 +- `minD`:表示鱼眼放大倍数最小值的数字。 +- `throttle`:表示节流时间(以毫秒为单位)的数字。 +- `showDPerczht`: 一个布尔值,表示是否显示鱼眼放大倍数的百分比。 - ↳ **`FisheyeConfig`** +## 层次结构 - ## 特性 +- `IPluginBaseConfig` - ### 班级名称 + ↳ **FisheyeConfig** - • `可选` **类名**:`字符串` +## 属性 - ####继承自 +### className - IPluginBaseConfig.className +• 可选 **className**:字符串 - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +IPluginBaseConfig.className - ___ +#### 定义在 - ### 容器 +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L6) - • `可选` **容器**:`字符串` \| `HTMLDivElement` +--- - ####继承自 +### container - IPluginBaseConfig.container +• 可选 **container**:字符串 | HTMLDivElemzht - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +IPluginBaseConfig.container - ___ +#### 定义在 - ### d +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L5) - • `可选` **d**:`数字` +--- - #### 定义于 +### d - [packages/g6/src/stdlib/plugin/fisheye/index.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.html ts#L13) +• 可选 **d**:数字 - ___ +表示鱼眼放大倍数的数字。 - ### 委托样式 +#### 定义在 - • `可选` **delegateStyle**:`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\> +[packages/g6/src/stdlib/plugin/fisheye/index.ts:30](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L30) - #### 定义于 +--- - [packages/g6/src/stdlib/plugin/fisheye/index.ts:15](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index. ts#L15) +### delegateStyle - ___ +• 可选 **delegateStyle**:部分<圆形样式属性 & 矩形样式属性 & 椭圆样式属性 & 多边形样式属性 & 线条样式属性 & 折线样式属性 & 文本样式属性 & 图像样式属性 & 路径样式属性 & 球体几何属性 & 立方体几何属性 & 平面几何属性 & {动画?: IAnimates; lod?: 数字; 可见?: 布尔}\> - ### 图表 +形状样式。 - • `可选` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> +**默认** - ####继承自 +`{ + stroke: '#000', + strokeOpacity: 0.8, + lineWidth: 2, + fillOpacity: 0.1, + fill: '#ccc' + }` - IPluginBaseConfig.graph +#### 定义在 - #### 定义于 +[packages/g6/src/stdlib/plugin/fisheye/index.ts:47](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L47) - [packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +--- - ___ +### graph - ### 最大D +• 可选 **graph**:[`IGraph`](../graph/IGraph.zh.md)<行为注册表, 主题注册表\> - • `可选` **maxD**:`数量` +#### 继承自 - #### 定义于 +IPluginBaseConfig.graph - [packages/g6/src/stdlib/plugin/fisheye/index.ts:21](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index. ts#L21) +#### 定义在 - ___ +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L7) - ### 最大R +--- - • `可选` **maxR**:`数量` +### maxD - #### 定义于 +• 可选 **maxD**:数字 - [packages/g6/src/stdlib/plugin/fisheye/index.ts:19](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.html ts#L19) +表示鱼眼放大倍数最大值的数字。 - ___ +#### 定义在 - ### 头脑 +[packages/g6/src/stdlib/plugin/fisheye/index.ts:59](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L59) - • `可选` **minD**:`数量` +--- - #### 定义于 +### maxR - [packages/g6/src/stdlib/plugin/fisheye/index.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index. ts#L22) +• 可选 **maxR**:数字 - ___ +表示鱼眼半径最大值的数字。 - ### 最小R +#### 定义在 - • `可选` **minR**:`数字` +[packages/g6/src/stdlib/plugin/fisheye/index.ts:55](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L55) - #### 定义于 +--- - [packages/g6/src/stdlib/plugin/fisheye/index.ts:20](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.ts) ts#L20) +### minD - ___ +• 可选 **minD**:数字 - ### r +表示鱼眼放大倍数最小值的数字。 - • `可选` **r**:`数字` +#### 定义在 - #### 定义于 +[packages/g6/src/stdlib/plugin/fisheye/index.ts:61](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L61) - [packages/g6/src/stdlib/plugin/fisheye/index.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.html ts#L14) +--- - ___ +### minR - ### 缩放DBBy +• 可选 **minR**:数字 - • `可选` **scaleDBy**: ``"unset"`` \| ``“拖动”`` \| ``“轮子”`` +表示鱼眼半径最小值的数字。 - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/fisheye/index.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.html ts#L18) +[packages/g6/src/stdlib/plugin/fisheye/index.ts:57](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L57) - ___ +--- - ### 缩放RBy +### r - • `可选` **scaleRBy**: ``"unset"`` \| ``“拖动”`` \| ``“轮子”`` +• 可选 **r**:数字 - #### 定义于 +表示鱼眼半径的数字。 - [packages/g6/src/stdlib/plugin/fisheye/index.ts:17](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index. ts#L17) +#### 定义在 - ___ +[packages/g6/src/stdlib/plugin/fisheye/index.ts:32](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L32) - ### 显示DPercent +--- - • `可选` **showDPercent**:`布尔值` +### scaleDBy - #### 定义于 +• 可选 **scaleDBy**:`'drag'` \| `'unset'` \| `'wheel'` \| `undefined` - [packages/g6/src/stdlib/plugin/fisheye/index.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.html ts#L24) +可以是`'wheel'`、`'drag'`、`'unset'`或`undefined`,表示鱼眼放大倍数的缩放方法。 - ___ +#### 定义在 - ### 显示标签 +[packages/g6/src/stdlib/plugin/fisheye/index.ts:43](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L43) - • `可选` **showLabel**:`布尔值` +--- - #### 定义于 +### scaleRBy - [packages/g6/src/stdlib/plugin/fisheye/index.ts:16](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index.html ts#L16) +• 可选 **scaleRBy**:`'drag'` \| `'unset'` \| `'wheel'` \| `undefined` - ___ +可以是`'wheel'`、`'drag'`、`'unset'`或`undefined`,表示鱼眼半径的缩放方法。 - ###油门 +#### 定义在 - • `可选` **节流阀**:`数量` +[packages/g6/src/stdlib/plugin/fisheye/index.ts:39](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L39) - #### 定义于 +--- - [packages/g6/src/stdlib/plugin/fisheye/index.ts:23](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index. ts#L23) +### showDPerczht - ___ +• 可选 **showDPerczht**:布尔值 - ### 扳机 +一个布尔值,表示是否显示鱼眼放大倍数的百分比。 - • `可选` **触发**:``"点击"`` \| ``“拖动”`` \| ``“鼠标移动”`` +#### 定义在 - #### 定义于 +[packages/g6/src/stdlib/plugin/fisheye/index.ts:63](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L63) - [packages/g6/src/stdlib/plugin/fisheye/index.ts:12](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/fisheye/index. ts#L12) \ No newline at end of file +--- + +### showLabel + +• 可选 **showLabel**:布尔值 + +一个布尔值,表示是否显示标签。 + +#### 定义在 + +[packages/g6/src/stdlib/plugin/fisheye/index.ts:35](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L35) + +--- + +### throttle + +• 可选 **throttle**:数字 + +表示节流时间(以毫秒为单位)的数字。 + +#### 定义在 + +[packages/g6/src/stdlib/plugin/fisheye/index.ts:65](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/fisheye/index.ts#L65) + +--- + +### trigger + +• 可选 **trigger**:`'click'` \| `'drag'` \| `'mousemove'` + +触发方法,可以是`'mousemove'` diff --git a/packages/site/docs/apis/interfaces/plugins/GridConfig.en.md b/packages/site/docs/apis/interfaces/plugins/GridConfig.en.md index e0330cc7ae..a91dbe3d03 100644 --- a/packages/site/docs/apis/interfaces/plugins/GridConfig.en.md +++ b/packages/site/docs/apis/interfaces/plugins/GridConfig.en.md @@ -6,6 +6,11 @@ title: GridConfig [plugins](../../modules/plugins.en.md).GridConfig +This is an interface named `GridConfig`, which extends the `IPluginBaseConfig` interface. It contains the following properties: + +- `img`: A string representing the background image of the grid. +- `follow`: A boolean indicating whether the grid follows the view movement. + ## Hierarchy - `IPluginBaseConfig` @@ -24,9 +29,9 @@ IPluginBaseConfig.className #### Defined in -[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L6) -___ +--- ### container @@ -38,9 +43,9 @@ IPluginBaseConfig.container #### Defined in -[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L5) -___ +--- ### follow @@ -48,9 +53,9 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/grid/index.ts:12](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/grid/index.ts#L12) +[packages/g6/src/stdlib/plugin/grid/index.ts:19](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/grid/index.ts#L19) -___ +--- ### graph @@ -62,9 +67,9 @@ IPluginBaseConfig.graph #### Defined in -[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L7) -___ +--- ### img @@ -72,4 +77,4 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/grid/index.ts:11](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/grid/index.ts#L11) +[packages/g6/src/stdlib/plugin/grid/index.ts:18](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/grid/index.ts#L18) diff --git a/packages/site/docs/apis/interfaces/plugins/GridConfig.zh.md b/packages/site/docs/apis/interfaces/plugins/GridConfig.zh.md index 8ce10d75b8..154f882389 100644 --- a/packages/site/docs/apis/interfaces/plugins/GridConfig.zh.md +++ b/packages/site/docs/apis/interfaces/plugins/GridConfig.zh.md @@ -2,74 +2,79 @@ title: GridConfig --- -[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../. ./modules/plugins.zh.md) / GridConfig +[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../../modules/plugins.zh.md) / GridConfig - [插件](../../modules/plugins.zh.md).GridConfig +[插件](../../modules/plugins.zh.md).GridConfig - ## 等级制度 +这是一个名为`GridConfig`的接口,它扩展了`IPluginBaseConfig`接口。它包含以下属性: - - `IPluginBaseConfig` +- `img`:表示网格背景图像的字符串。 +- `follow`:一个布尔值,表示网格是否跟随视图移动。 - ↳ **`GridConfig`** +## 层次结构 - ## 特性 +- `IPluginBaseConfig` - ### 班级名称 + ↳ **`GridConfig`** - • `可选` **类名**:`字符串` +## 属性 - ####继承自 +### className - IPluginBaseConfig.className +• 可选 **className**:字符串 - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +IPluginBaseConfig.className - ___ +#### 定义在 - ### 容器 +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L6) - • `可选` **容器**:`字符串` \| `HTMLDivElement` +--- - ####继承自 +### container - IPluginBaseConfig.container +• 可选 **container**:字符串 | HTMLDivElemzht - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +IPluginBaseConfig.container - ___ +#### 定义在 - ### 跟随 +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L5) - • `可选` **遵循**:`布尔值` +--- - #### 定义于 +### follow - [packages/g6/src/stdlib/plugin/grid/index.ts:12](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/grid/index.ts) ts#L12) +• 可选 **follow**:布尔值 - ___ +#### 定义在 - ### 图表 +[packages/g6/src/stdlib/plugin/grid/index.ts:19](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/grid/index.ts#L19) - • `可选` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> +--- - ####继承自 +### graph - IPluginBaseConfig.graph +• 可选 **graph**:[`IGraph`](../graph/IGraph.zh.md)<行为注册表, 主题注册表\> - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +IPluginBaseConfig.graph - ___ +#### 定义在 - ### 图片 +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L7) - • `可选` **img**:`字符串` +--- - #### 定义于 +### img - [packages/g6/src/stdlib/plugin/grid/index.ts:11](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/grid/index.ts) ts#L11) \ No newline at end of file +• 可选 **img**:字符串 + +#### 定义在 + +[packages/g6/src/stdlib/plugin/grid/index.ts:18](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/grid/index.ts#L18) diff --git a/packages/site/docs/apis/interfaces/plugins/HistoryConfig.en.md b/packages/site/docs/apis/interfaces/plugins/HistoryConfig.en.md index 2249fb0f78..f034a84811 100644 --- a/packages/site/docs/apis/interfaces/plugins/HistoryConfig.en.md +++ b/packages/site/docs/apis/interfaces/plugins/HistoryConfig.en.md @@ -6,6 +6,11 @@ title: HistoryConfig [plugins](../../modules/plugins.en.md).HistoryConfig +The `HistoryConfig` interface contains two properties: `enableStack` and `stackCfg`. + +- `enableStack` is an optional boolean value that indicates whether to enable the stack. +- `stackCfg` is a required `StackCfg` type, representing the stack configuration. + ## Hierarchy - `IPluginBaseConfig` @@ -24,9 +29,9 @@ IPluginBaseConfig.className #### Defined in -[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L6) -___ +--- ### container @@ -38,9 +43,9 @@ IPluginBaseConfig.container #### Defined in -[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L5) -___ +--- ### enableStack @@ -48,9 +53,9 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/history/index.ts:8](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/history/index.ts#L8) +[packages/g6/src/stdlib/plugin/history/index.ts:15](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/history/index.ts#L15) -___ +--- ### graph @@ -62,9 +67,9 @@ IPluginBaseConfig.graph #### Defined in -[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L7) -___ +--- ### stackCfg @@ -72,4 +77,4 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/history/index.ts:9](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/history/index.ts#L9) +[packages/g6/src/stdlib/plugin/history/index.ts:16](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/history/index.ts#L16) diff --git a/packages/site/docs/apis/interfaces/plugins/HistoryConfig.zh.md b/packages/site/docs/apis/interfaces/plugins/HistoryConfig.zh.md index 6ace8fb528..3a9426757c 100644 --- a/packages/site/docs/apis/interfaces/plugins/HistoryConfig.zh.md +++ b/packages/site/docs/apis/interfaces/plugins/HistoryConfig.zh.md @@ -2,74 +2,79 @@ title: HistoryConfig --- -[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../. ./modules/plugins.zh.md) / HistoryConfig +[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../../modules/plugins.zh.md) / HistoryConfig - [插件](../../modules/plugins.zh.md).HistoryConfig +[插件](../../modules/plugins.zh.md).HistoryConfig - ## 等级制度 +`HistoryConfig` 接口包含两个属性:`enableStack` 和 `stackCfg`。 - - `IPluginBaseConfig` +- `enableStack` 是一个可选的布尔值,表示是否启用堆栈。 +- `stackCfg` 是一个必需的 `StackCfg` 类型,表示堆栈配置。 - ↳ **`历史配置`** +## 层次结构 - ## 特性 +- `IPluginBaseConfig` - ### 班级名称 + ↳ **`HistoryConfig`** - • `可选` **类名**:`字符串` +## 属性 - ####继承自 +### className - IPluginBaseConfig.className +• `Optional` **className**: `string` - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +IPluginBaseConfig.className - ___ +#### 定义在 - ### 容器 +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L6) - • `可选` **容器**:`字符串` \| `HTMLDivElement` +--- - ####继承自 +### container - IPluginBaseConfig.container +• `Optional` **container**: `string` \| `HTMLDivElement` - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +IPluginBaseConfig.container - ___ +#### 定义在 - ### 启用堆栈 +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L5) - • `可选` **enableStack**:`布尔值` +--- - #### 定义于 +### enableStack - [packages/g6/src/stdlib/plugin/history/index.ts:8](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/history/index.ts) ts#L8) +• `Optional` **enableStack**: `boolean` - ___ +#### 定义在 - ### 图表 +[packages/g6/src/stdlib/plugin/history/index.ts:15](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/history/index.ts#L15) - • `可选` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> +--- - ####继承自 +### graph - IPluginBaseConfig.graph +• `Optional` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +IPluginBaseConfig.graph - ___ +#### 定义在 - ### 堆栈配置 +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L7) - • **stackCfg**:`StackCfg` +--- - #### 定义于 +### stackCfg - [packages/g6/src/stdlib/plugin/history/index.ts:9](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/history/index. ts#L9) \ No newline at end of file +• **stackCfg**: `StackCfg` + +#### 定义在 + +[packages/g6/src/stdlib/plugin/history/index.ts:16](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/history/index.ts#L16) diff --git a/packages/site/docs/apis/interfaces/plugins/LegendConfig.en.md b/packages/site/docs/apis/interfaces/plugins/LegendConfig.en.md index 870e069dc0..f99ba0f255 100644 --- a/packages/site/docs/apis/interfaces/plugins/LegendConfig.en.md +++ b/packages/site/docs/apis/interfaces/plugins/LegendConfig.en.md @@ -20,7 +20,7 @@ title: LegendConfig #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:55](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L55) +[packages/g6/src/stdlib/plugin/legend/index.ts:55](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L55) ___ @@ -34,7 +34,7 @@ IPluginBaseConfig.className #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:47](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L47) +[packages/g6/src/stdlib/plugin/legend/index.ts:47](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L47) ___ @@ -48,7 +48,7 @@ IPluginBaseConfig.container #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:45](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L45) +[packages/g6/src/stdlib/plugin/legend/index.ts:45](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L45) ___ @@ -58,7 +58,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:61](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L61) +[packages/g6/src/stdlib/plugin/legend/index.ts:61](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L61) ___ @@ -72,7 +72,7 @@ IPluginBaseConfig.graph #### Defined in -[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) ___ @@ -82,7 +82,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:57](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L57) +[packages/g6/src/stdlib/plugin/legend/index.ts:57](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L57) ___ @@ -92,7 +92,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:59](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L59) +[packages/g6/src/stdlib/plugin/legend/index.ts:59](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L59) ___ @@ -102,7 +102,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L51) +[packages/g6/src/stdlib/plugin/legend/index.ts:51](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L51) ___ @@ -112,7 +112,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:53](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L53) +[packages/g6/src/stdlib/plugin/legend/index.ts:53](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L53) ___ @@ -122,4 +122,4 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/legend/index.ts:49](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts#L49) +[packages/g6/src/stdlib/plugin/legend/index.ts:49](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/legend/index.ts#L49) diff --git a/packages/site/docs/apis/interfaces/plugins/LegendConfig.zh.md b/packages/site/docs/apis/interfaces/plugins/LegendConfig.zh.md index 75350a893d..6175b5e69f 100644 --- a/packages/site/docs/apis/interfaces/plugins/LegendConfig.zh.md +++ b/packages/site/docs/apis/interfaces/plugins/LegendConfig.zh.md @@ -2,124 +2,124 @@ title: LegendConfig --- -[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../. ./modules/plugins.zh.md) / LegendConfig +[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../../modules/plugins.zh.md) / LegendConfig - [插件](../../modules/plugins.zh.md).LegendConfig +[插件](../../modules/plugins.zh.md).LegendConfig - ## 等级制度 +## 层次结构 - - `IPluginBaseConfig` +- `IPluginBaseConfig` - ↳ **`图例配置`** + ↳ **`LegendConfig`** - ## 特性 +## 属性 - ### 活动状态 +### activeState - • `可选` **activeState**:`字符串` +• `Optional` **activeState**: `string` - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:55](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts) ts#L55) +[packages/g6/src/stdlib/plugin/legend/index.ts:55](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/legend/index.ts#L55) - ___ +--- - ### 班级名称 +### className - • `可选` **类名**:`字符串` +• `Optional` **className**: `string` - #### 覆盖 +#### 覆盖 - IPluginBaseConfig.className +IPluginBaseConfig.className - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:47](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts) ts#L47) +[packages/g6/src/stdlib/plugin/legend/index.ts:47](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/legend/index.ts#L47) - ___ +--- - ### 容器 +### container - • `可选` **容器**:`HTMLDivElement` +• `Optional` **container**: `HTMLDivElement` - #### 覆盖 +#### 覆盖 - IPluginBaseConfig.container +IPluginBaseConfig.container - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:45](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts) ts#L45) +[packages/g6/src/stdlib/plugin/legend/index.ts:45](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/legend/index.ts#L45) - ___ +--- - ### 边缘 +### edge - • `可选` **边缘**:`ItemLegendConfig` +• `Optional` **edge**: `ItemLegendConfig` - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:61](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts) ts#L61) +[packages/g6/src/stdlib/plugin/legend/index.ts:61](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/legend/index.ts#L61) - ___ +--- - ### 图表 +### graph - • `可选` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> +• `Optional` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - ####继承自 +#### 继承自 - IPluginBaseConfig.graph +IPluginBaseConfig.graph - #### 定义于 +#### 定义在 - [packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/types/plugin.ts#L7) - ___ +--- - ### 非活动状态 +### inactiveState - • `可选` **inactiveState**:`字符串` +• `Optional` **inactiveState**: `string` - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:57](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts) ts#L57) +[packages/g6/src/stdlib/plugin/legend/index.ts:57](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/legend/index.ts#L57) - ___ +--- - ### 节点 +### node - • `可选` **节点**:`ItemLegendConfig` +• `Optional` **node**: `ItemLegendConfig` - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:59](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts) ts#L59) +[packages/g6/src/stdlib/plugin/legend/index.ts:59](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/legend/index.ts#L59) - ___ +--- - ### 方向 +### orientation - • `可选` **方向**:``"水平"`` \| ``“垂直”`` +• `Optional` **orientation**: `"horizontal"` \| `"vertical"` - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts) ts#L51) +[packages/g6/src/stdlib/plugin/legend/index.ts:51](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/legend/index.ts#L51) - ___ +--- - ### 选定状态 +### selectedState - • `可选` **selectedState**:`字符串` +• `Optional` **selectedState**: `string` - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:53](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.ts) ts#L53) +[packages/g6/src/stdlib/plugin/legend/index.ts:53](https://github.com/antvis/G6/blob/ef7751dae9/packages/g6/src/stdlib/plugin/legend/index.ts#L53) - ___ +--- - ### 尺寸 +### size - • `可选` **尺寸**:``"fit-content"`` \| [`字符串`\| `数字`、`字符串` \| `数字`] +• `Optional` **size**: `"fit-content"` \| [`string` \| `number`, `string` \| `number`] - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/legend/index.ts:49](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/legend/index.html ts#L49) \ No newline at end of file +[packages/g6/src/stdlib/plugin/legend/index.ts:49](https://github.com/antvis/G6/blob diff --git a/packages/site/docs/apis/interfaces/plugins/MenuConfig.en.md b/packages/site/docs/apis/interfaces/plugins/MenuConfig.en.md index e070b79560..e0dd8b09ff 100644 --- a/packages/site/docs/apis/interfaces/plugins/MenuConfig.en.md +++ b/packages/site/docs/apis/interfaces/plugins/MenuConfig.en.md @@ -6,6 +6,19 @@ title: MenuConfig [plugins](../../modules/plugins.en.md).MenuConfig +The `MenuConfig` interface contains the following properties: + +- `handleMenuClick`: An optional function for handling menu click events. It takes two arguments: `target` (of type HTMLElement) and `item` (of type Item), and has no return value. +- `getContent`: An optional function for getting the content of the menu. It takes an optional argument of type `IG6GraphEvent`, and returns a value of type HTMLDivElement, string, or Promise (resolving to HTMLDivElement or string). +- `offsetX`: An optional number representing the offset of the menu in the X direction. +- `offsetY`: An optional number representing the offset of the menu in the Y direction. +- `shouldBegin`: An optional function for determining whether the menu should be displayed. It takes an optional argument of type `IG6GraphEvent`, and returns a boolean value. +- `itemTypes`: An optional array of strings representing the types of items for which the menu is allowed to be displayed. +- `trigger`: An optional string, either 'click' or 'contextmenu', representing the event type that triggers the display of the menu. +- `onHide`: An optional function to be executed when the menu is hidden. It takes no arguments and returns a boolean value. +- `loadingContent`: An optional HTMLDivElement or string representing the loading DOM. +- `liHoverStyle`: An optional object representing the style of li elements when hovered over. It can contain any number of key-value pairs, where the key is a style name and the value is a string. + ## Hierarchy - `IPluginBaseConfig` @@ -24,7 +37,7 @@ IPluginBaseConfig.className #### Defined in -[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L6) ___ @@ -38,7 +51,7 @@ IPluginBaseConfig.container #### Defined in -[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L5) ___ @@ -62,7 +75,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:41](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L41) +[packages/g6/src/stdlib/plugin/menu/index.ts:54](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L54) ___ @@ -76,7 +89,7 @@ IPluginBaseConfig.graph #### Defined in -[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) ___ @@ -101,7 +114,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:39](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L39) +[packages/g6/src/stdlib/plugin/menu/index.ts:52](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L52) ___ @@ -111,7 +124,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:47](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L47) +[packages/g6/src/stdlib/plugin/menu/index.ts:60](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L60) ___ @@ -125,7 +138,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:52](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L52) +[packages/g6/src/stdlib/plugin/menu/index.ts:65](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L65) ___ @@ -135,7 +148,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L51) +[packages/g6/src/stdlib/plugin/menu/index.ts:64](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L64) ___ @@ -145,7 +158,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:44](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L44) +[packages/g6/src/stdlib/plugin/menu/index.ts:57](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L57) ___ @@ -155,7 +168,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:45](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L45) +[packages/g6/src/stdlib/plugin/menu/index.ts:58](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L58) ___ @@ -173,7 +186,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:49](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L49) +[packages/g6/src/stdlib/plugin/menu/index.ts:62](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L62) ___ @@ -197,7 +210,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:46](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L46) +[packages/g6/src/stdlib/plugin/menu/index.ts:59](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L59) ___ @@ -207,4 +220,4 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/menu/index.ts:48](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts#L48) +[packages/g6/src/stdlib/plugin/menu/index.ts:61](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L61) diff --git a/packages/site/docs/apis/interfaces/plugins/MenuConfig.zh.md b/packages/site/docs/apis/interfaces/plugins/MenuConfig.zh.md index b5c70a1c32..2b19d4c812 100644 --- a/packages/site/docs/apis/interfaces/plugins/MenuConfig.zh.md +++ b/packages/site/docs/apis/interfaces/plugins/MenuConfig.zh.md @@ -2,209 +2,210 @@ title: MenuConfig --- -[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../. ./modules/plugins.zh.md) / 菜单配置 +[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../../modules/plugins.zh.md) / MenuConfig - [插件](../../modules/plugins.zh.md).MenuConfig +[插件](../../modules/plugins.zh.md).MenuConfig - ## 等级制度 +`MenuConfig` 接口包含以下属性: - - `IPluginBaseConfig` +- `handleMenuClick`:用于处理菜单点击事件的可选函数。它接受两个参数:`target`(类型为 HTMLElement)和 `item`(类型为 Item),并且没有返回值。 +- `getContent`:用于获取菜单内容的可选函数。它接受一个可选的 `IG6GraphEvent` 类型参数,并返回 HTMLDivElement、string 或 Promise(解析为 HTMLDivElement 或 string)类型的值。 +- `offsetX`:表示菜单在 X 方向上的偏移量的可选数字。 +- `offsetY`:表示菜单在 Y 方向上的偏移量的可选数字。 +- `shouldBegin`:用于确定是否应显示菜单的可选函数。它接受一个可选的 `IG6GraphEvent` 类型参数,并返回布尔值。 +- `itemTypes`:表示允许显示菜单的项目类型的可选字符串数组。 +- `trigger`:一个可选字符串,为 'click' 或 'contextmenu',表示触发菜单显示的事件类型。 +- `onHide`:当菜单隐藏时执行的可选函数。它不接受任何参数并返回布尔值。 +- `loadingContent`:表示加载 DOM 的可选 HTMLDivElement 或字符串。 +- `liHoverStyle`:表示鼠标悬停在 li 元素上时的样式的可选对象。它可以包含任意数量的键值对,其中键是样式名称,值是字符串。 - ↳ **`菜单配置`** +## 层次结构 - ## 特性 +- `IPluginBaseConfig` - ### 班级名称 + ↳ **`MenuConfig`** - • `可选` **类名**:`字符串` +## 属性 - ####继承自 +### className - IPluginBaseConfig.className +• `Optional` **className**: `string` - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +IPluginBaseConfig.className - ___ +#### 定义在 - ### 容器 +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L6) - • `可选` **容器**:`字符串` \| `HTMLDivElement` +--- - ####继承自 +### container - IPluginBaseConfig.container +• `Optional` **container**: `string` \| `HTMLDivElement` - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +IPluginBaseConfig.container - ___ +#### 定义在 - ### 获取内容 +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L5) - • `可选` **getContent**: (`evt?`: [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md)) => `string` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> +--- - #### 类型声明 +### getContent - ▸ (`evt?`): `字符串` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> +• `Optional` **getContent**: (`evt?`: [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md)) => `string` \| `HTMLDivElement` \| `Promise`<`string` \| `HTMLDivElement`\> - ##### 参数 +#### 类型声明 - | 名称 | 类型 | - | :------ | :------ | - | `事件?` | [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md) | +▸ (`evt?`): `string` \| `HTMLDivElement` \| `Promise`<`string` \| `HTMLDivElement`\> - ##### 返回 +##### 参数 - `字符串` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> +| 名称 | 类型 | +| :----- | :-------------------------------------------------- | +| `evt?` | [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md) | - #### 定义于 +##### 返回 - [packages/g6/src/stdlib/plugin/menu/index.ts:41](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L41) +帮您翻译 - ___ +##### 参数 - ### 图表 +| 名称 | 类型 | +| :----- | :-------------------------------------------------- | +| `evt?` | [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md) | - • `可选` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> +##### 返回 - ####继承自 +`string` \| `HTMLDivElement` \| `Promise`<`string` \| `HTMLDivElement`\> - IPluginBaseConfig.graph +#### 定义在 - #### 定义于 +[packages/g6/src/stdlib/plugin/menu/index.ts:54](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L54) - [packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +--- - ___ +### graph - ### 处理菜单点击 +• `Optional` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - • `可选` **handleMenuClick**: (`target`: `HTMLElement`, `item`: `default`) => `void` +#### 继承自 - #### 类型声明 +IPluginBaseConfig.graph - ▸ (`目标`, `项目`): `void` +#### 定义在 - ##### 参数 +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) - | 名称 | 类型 | - | :------ | :------ | - | `目标` | `HTMLElement` | - | `项目` | `默认` | +--- - ##### 返回 +### handleMenuClick - `无效` +• `Optional` **handleMenuClick**: (`target`: `HTMLElement`, `item`: `default`) => `void` - #### 定义于 +#### 类型声明 - [packages/g6/src/stdlib/plugin/menu/index.ts:39](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L39) +▸ (`target`, `item`): `void` - ___ +##### 参数 - ### 项目类型 +| 名称 | 类型 | +| :------- | :------------ | +| `target` | `HTMLElement` | +| `item` | `default` | - • `可选` **itemTypes**:`string`[] +##### 返回 - #### 定义于 +`void` - [packages/g6/src/stdlib/plugin/menu/index.ts:47](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L47) +#### 定义在 - ___ +[packages/g6/src/stdlib/plugin/menu/index.ts:52](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L52) - ### liHoverStyle +--- - • `可选` **liHoverStyle**:`对象` +### itemTypes - #### 索引签名 +• `Optional` **itemTypes**: `string`[] - ▪ [key: `string`]: `string` +#### 定义在 - #### 定义于 +[packages/g6/src/stdlib/plugin/menu/index.ts:60](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L60) - [packages/g6/src/stdlib/plugin/menu/index.ts:52](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L52) +--- - ___ +### liHoverStyle - ### 加载内容 +• `Optional` **liHoverStyle**: `Object` - • `可选` **loadingContent**:`字符串` \| `HTMLDivElement` +#### 索引签名 - #### 定义于 +▪ [key: `string`]: `string` - [packages/g6/src/stdlib/plugin/menu/index.ts:51](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L51) +#### 定义在 - ___ +[packages/g6/src/stdlib/plugin/menu/index.ts:65](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L65) - ### 偏移X +--- - • `可选` **offsetX**:`数字` +### loadingContent - #### 定义于 +• `Optional` **loadingContent**: `string` \| `HTMLDivElement` - [packages/g6/src/stdlib/plugin/menu/index.ts:44](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L44) +#### 定义在 - ___ +[packages/g6/src/stdlib/plugin/menu/index.ts:64](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L64) - ### 偏移Y +--- - • `可选` **offsetY**:`数字` +### offsetX - #### 定义于 +• `Optional` **offsetX**: `number` - [packages/g6/src/stdlib/plugin/menu/index.ts:45](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L45) +#### 定义在 - ___ +[packages/g6/src/stdlib/plugin/menu/index.ts:57](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L57) - ### 隐藏 +--- - • `可选` **onHide**: () => `boolean` +### offsetY - #### 类型声明 +• `Optional` **offsetY**: `number` - ▸ (): `布尔值` +#### 定义在 - ##### 返回 +[packages/g6/src/stdlib/plugin/menu/index.ts:58](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L58) - `布尔值` +--- - #### 定义于 +### onHide - [packages/g6/src/stdlib/plugin/menu/index.ts:49](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L49) +• `Optional` **onHide**: () => `boolean` - ___ +#### 类型声明 - ### 应该开始 +▸ (): `boolean` - • `可选` **shouldBegin**: (`evt?`: [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md)) => `boolean` +##### 返回 - #### 类型声明 +`boolean` - ▸ (`evt?`): `布尔值` +#### 定义在 - ##### 参数 +[packages/g6/src/stdlib/plugin/menu/index.ts:62](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/menu/index.ts#L62) - | 名称 | 类型 | - | :------ | :------ | - | `事件?` | [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md) | +--- - ##### 返回 +### shouldBegin - `布尔值` +• `Optional` **shouldBegin**: (`evt?`: [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md)) => `boolean` - #### 定义于 +#### 类型声明 - [packages/g6/src/stdlib/plugin/menu/index.ts:46](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L46) +▸ (`evt?`): `boolean` - ___ - - ### 扳机 - - • `可选` **触发**:``"contextmenu"`` \| ``“点击”`` - - #### 定义于 - - [packages/g6/src/stdlib/plugin/menu/index.ts:48](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/menu/index.ts) ts#L48) \ No newline at end of file +##### 参数 diff --git a/packages/site/docs/apis/interfaces/plugins/MiniMapConfig.en.md b/packages/site/docs/apis/interfaces/plugins/MiniMapConfig.en.md index 4f585f3fdc..c176e535f3 100644 --- a/packages/site/docs/apis/interfaces/plugins/MiniMapConfig.en.md +++ b/packages/site/docs/apis/interfaces/plugins/MiniMapConfig.en.md @@ -18,13 +18,15 @@ title: MiniMapConfig • `Optional` **className**: `string` +Class name of minimap + #### Overrides IPluginBaseConfig.className #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:19](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L19) +[packages/g6/src/stdlib/plugin/minimap/index.ts:21](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L21) ___ @@ -32,13 +34,15 @@ ___ • `Optional` **container**: `HTMLDivElement` +Container for minimap + #### Overrides IPluginBaseConfig.container #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L26) +[packages/g6/src/stdlib/plugin/minimap/index.ts:35](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L35) ___ @@ -46,9 +50,11 @@ ___ • `Optional` **delegateStyle**: `Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\> +Style of delegate shape + #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L22) +[packages/g6/src/stdlib/plugin/minimap/index.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L27) ___ @@ -62,7 +68,7 @@ IPluginBaseConfig.graph #### Defined in -[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) ___ @@ -70,9 +76,11 @@ ___ • `Optional` **hideEdge**: `boolean` +Whether to hide edges on minimap to enhance performance + #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:25](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L25) +[packages/g6/src/stdlib/plugin/minimap/index.ts:33](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L33) ___ @@ -80,9 +88,11 @@ ___ • `Optional` **mode**: ``"keyShape"`` \| ``"default"`` \| ``"delegate"`` +Mode of minimap + #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:20](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L20) +[packages/g6/src/stdlib/plugin/minimap/index.ts:23](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L23) ___ @@ -90,9 +100,11 @@ ___ • `Optional` **padding**: `number` +Padding of minimap + #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L24) +[packages/g6/src/stdlib/plugin/minimap/index.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L31) ___ @@ -100,9 +112,11 @@ ___ • `Optional` **refresh**: `boolean` +Whether to refresh minimap + #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:23](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L23) +[packages/g6/src/stdlib/plugin/minimap/index.ts:29](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L29) ___ @@ -110,9 +124,11 @@ ___ • `Optional` **size**: `number`[] +Size of minimap + #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:21](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L21) +[packages/g6/src/stdlib/plugin/minimap/index.ts:25](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L25) ___ @@ -120,6 +136,8 @@ ___ • `Optional` **viewportClassName**: `string` +Class name of viewport + #### Defined in -[packages/g6/src/stdlib/plugin/minimap/index.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts#L18) +[packages/g6/src/stdlib/plugin/minimap/index.ts:19](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L19) diff --git a/packages/site/docs/apis/interfaces/plugins/MiniMapConfig.zh.md b/packages/site/docs/apis/interfaces/plugins/MiniMapConfig.zh.md index 1e8a370fe8..709a505897 100644 --- a/packages/site/docs/apis/interfaces/plugins/MiniMapConfig.zh.md +++ b/packages/site/docs/apis/interfaces/plugins/MiniMapConfig.zh.md @@ -2,124 +2,142 @@ title: MiniMapConfig --- -[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../. ./modules/plugins.zh.md) / MiniMapConfig +[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../../modules/plugins.zh.md) / MiniMapConfig - [插件](../../modules/plugins.zh.md).MiniMapConfig +[插件](../../modules/plugins.zh.md).MiniMapConfig - ## 等级制度 +## 层次结构 - - `IPluginBaseConfig` +- `IPluginBaseConfig` - ↳ **`MiniMapConfig`** + ↳ **`MiniMapConfig`** - ## 特性 +## 属性 - ### 班级名称 +### className - • `可选` **类名**:`字符串` +• 可选 **className**:字符串 - #### 覆盖 +minimap 的类名 - IPluginBaseConfig.className +#### 覆盖 - #### 定义于 +IPluginBaseConfig.className - [packages/g6/src/stdlib/plugin/minimap/index.ts:19](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L19) +#### 定义在 - ___ +[packages/g6/src/stdlib/plugin/minimap/index.ts:21](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L21) - ### 容器 +--- - • `可选` **容器**:`HTMLDivElement` +### container - #### 覆盖 +• 可选 **container**:HTMLDivElement - IPluginBaseConfig.container +minimap 的容器 - #### 定义于 +#### 覆盖 - [packages/g6/src/stdlib/plugin/minimap/index.ts:26](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L26) +IPluginBaseConfig.container - ___ +#### 定义在 - ### 委托样式 +[packages/g6/src/stdlib/plugin/minimap/index.ts:35](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L35) - • `可选` **delegateStyle**:`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\> +--- - #### 定义于 +### delegateStyle - [packages/g6/src/stdlib/plugin/minimap/index.ts:22](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L22) +• 可选 **delegateStyle**:部分<圆形样式属性 & 矩形样式属性 & 椭圆样式属性 & 多边形样式属性 & 线条样式属性 & 折线样式属性 & 文本样式属性 & 图像样式属性 & 路径样式属性 & 球体几何属性 & 立方体几何属性 & 平面几何属性 & {动画?: IAnimates; lod?: 数字; 可见?: 布尔}\> - ___ +代理形状的样式。 - ### 图表 +#### 定义在 - • `可选` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> +[packages/g6/src/stdlib/plugin/minimap/index.ts:27](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L27) - ####继承自 +--- - IPluginBaseConfig.graph +### graph - #### 定义于 +• 可选 **graph**:[`IGraph`](../graph/IGraph.zh.md)<行为注册表, 主题注册表\> - [packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +#### 继承自 - ___ +IPluginBaseConfig.graph - ### 隐藏边缘 +#### 定义在 - • `可选` **hideEdge**:`布尔值` +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) - #### 定义于 +--- - [packages/g6/src/stdlib/plugin/minimap/index.ts:25](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L25) +### hideEdge - ___ +• 可选 **hideEdge**:布尔值 - ### 模式 +是否在 minimap 上隐藏边缘以提高性能。 - • `可选` **模式**:``"keyShape"`` \| ``“默认”`` \| ``“代表”`` +#### 定义在 - #### 定义于 +[packages/g6/src/stdlib/plugin/minimap/index.ts:33](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L33) - [packages/g6/src/stdlib/plugin/minimap/index.ts:20](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L20) +--- - ___ +### mode - ### 填充 +• 可选 **mode**:`"keyShape"` | `"default"` | `"delegate"` - • `可选` **填充**:`数字` +minimap 的模式。 - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/minimap/index.ts:24](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L24) +[packages/g6/src/stdlib/plugin/minimap/index.ts:23](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L23) - ___ +--- - ### 刷新 +### padding - • `可选` **刷新**:`布尔值` +• 可选 **padding**:数字 - #### 定义于 +minimap 的填充。 - [packages/g6/src/stdlib/plugin/minimap/index.ts:23](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L23) +#### 定义在 - ___ +[packages/g6/src/stdlib/plugin/minimap/index.ts:31](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L31) - ### 尺寸 +--- - • `可选` **尺寸**:`数量`[] +### refresh - #### 定义于 +• 可选 **refresh**:布尔值 - [packages/g6/src/stdlib/plugin/minimap/index.ts:21](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L21) +是否刷新 minimap。 - ___ +#### 定义在 - ### 视口类名 +[packages/g6/src/stdlib/plugin/minimap/index.ts:29](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L29) - • `可选` **viewportClassName**:`string` +--- - #### 定义于 +### size - [packages/g6/src/stdlib/plugin/minimap/index.ts:18](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/minimap/index.ts) ts#L18) \ No newline at end of file +• 可选 **size**:数字[] + +minimap 的大小。 + +#### 定义在 + +[packages/g6/src/stdlib/plugin/minimap/index.ts:25](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L25) + +--- + +### viewportClassName + +• 可选 **viewportClassName**:字符串 + +视口的类名。 + +#### 定义在 + +[packages/g6/src/stdlib/plugin/minimap/index.ts:19](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/minimap/index.ts#L19) diff --git a/packages/site/docs/apis/interfaces/plugins/ToolbarConfig.en.md b/packages/site/docs/apis/interfaces/plugins/ToolbarConfig.en.md index 08d1b4bae5..df288df886 100644 --- a/packages/site/docs/apis/interfaces/plugins/ToolbarConfig.en.md +++ b/packages/site/docs/apis/interfaces/plugins/ToolbarConfig.en.md @@ -6,6 +6,14 @@ title: ToolbarConfig [plugins](../../modules/plugins.en.md).ToolbarConfig +The `ToolbarConfig` interface contains the following properties: + +- `handleClick`: An optional function for handling clicks on the toolbar. It takes two arguments: `code` (of type string) and `graph` (of type IGraph), and has no return value. +- `getContent`: A required function for getting the content of the toolbar. It takes an optional argument of type `IGraph`, and returns a value of type HTMLDivElement or string. +- `zoomSensitivity`: An optional number representing the zoom sensitivity of the toolbar. The default value is 10. +- `minZoom`: An optional number representing the minimum zoom ratio of the toolbar. The default value is 0.00001. +- `maxZoom`: An optional number representing the maximum zoom ratio of the toolbar. The default value is 1000. + ## Hierarchy - `IPluginBaseConfig` @@ -24,7 +32,7 @@ IPluginBaseConfig.className #### Defined in -[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L6) ___ @@ -38,7 +46,7 @@ IPluginBaseConfig.container #### Defined in -[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L5) ___ @@ -50,6 +58,8 @@ ___ ▸ (`graph?`): `string` \| `HTMLDivElement` +Function for getting content of toolbar + ##### Parameters | Name | Type | @@ -62,7 +72,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/toolbar/index.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts#L14) +[packages/g6/src/stdlib/plugin/toolbar/index.ts:20](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L20) ___ @@ -76,7 +86,7 @@ IPluginBaseConfig.graph #### Defined in -[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) ___ @@ -88,14 +98,14 @@ ___ ▸ (`code`, `graph`): `void` -toolbar config +Function for handling clicks on toolbar ##### Parameters -| Name | Type | Description | -| :------ | :------ | :------ | -| `code` | `string` | toolbar item code | -| `graph` | [`IGraph`](../graph/IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> | Graph Instance | +| Name | Type | +| :------ | :------ | +| `code` | `string` | +| `graph` | [`IGraph`](../graph/IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> | ##### Returns @@ -103,7 +113,7 @@ toolbar config #### Defined in -[packages/g6/src/stdlib/plugin/toolbar/index.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts#L13) +[packages/g6/src/stdlib/plugin/toolbar/index.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L18) ___ @@ -111,9 +121,11 @@ ___ • **maxZoom**: `number` +Maximum zoom ratio of toolbar + #### Defined in -[packages/g6/src/stdlib/plugin/toolbar/index.ts:17](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts#L17) +[packages/g6/src/stdlib/plugin/toolbar/index.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L26) ___ @@ -121,9 +133,11 @@ ___ • **minZoom**: `number` +Minimum zoom ratio of toolbar + #### Defined in -[packages/g6/src/stdlib/plugin/toolbar/index.ts:16](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts#L16) +[packages/g6/src/stdlib/plugin/toolbar/index.ts:24](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L24) ___ @@ -131,6 +145,8 @@ ___ • **zoomSensitivity**: `number` +Zoom sensitivity of toolbar + #### Defined in -[packages/g6/src/stdlib/plugin/toolbar/index.ts:15](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts#L15) +[packages/g6/src/stdlib/plugin/toolbar/index.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L22) diff --git a/packages/site/docs/apis/interfaces/plugins/ToolbarConfig.zh.md b/packages/site/docs/apis/interfaces/plugins/ToolbarConfig.zh.md index 5caa99359e..3ebbdad8ea 100644 --- a/packages/site/docs/apis/interfaces/plugins/ToolbarConfig.zh.md +++ b/packages/site/docs/apis/interfaces/plugins/ToolbarConfig.zh.md @@ -1,136 +1,154 @@ ---- -title: ToolbarConfig +帮您翻译 + --- -[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../. ./modules/plugins.zh.md) / ToolbarConfig +## 标题: ToolbarConfig - [插件](../../modules/plugins.zh.md).ToolbarConfig +[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../../modules/plugins.zh.md) / ToolbarConfig - ## 等级制度 +[插件](../../modules/plugins.zh.md).ToolbarConfig - - `IPluginBaseConfig` +`ToolbarConfig` 接口包含以下属性: - ↳ **`工具栏配置`** +- `handleClick`:用于处理工具栏上的点击的可选函数。它接受两个参数:`code`(类型为 string)和 `graph`(类型为 IGraph),并且没有返回值。 +- `getContent`:用于获取工具栏内容的必需函数。它接受一个可选的 `IGraph` 类型参数,并返回 HTMLDivElement 或 string 类型的值。 +- `zoomSensitivity`:表示工具栏的缩放灵敏度的可选数字。默认值为 10。 +- `minZoom`:表示工具栏的最小缩放比例的可选数字。默认值为 0.00001。 +- `maxZoom`:表示工具栏的最大缩放比例的可选数字。默认值为 1000。 - ## 特性 +## 层次结构 - ### 班级名称 +- `IPluginBaseConfig` - • `可选` **类名**:`字符串` + ↳ **`ToolbarConfig`** - ####继承自 +## 属性 - IPluginBaseConfig.className +### className - #### 定义于 +• `Optional` **className**: `string` - [packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +#### 继承自 - ___ +IPluginBaseConfig.className - ### 容器 +#### 定义在 - • `可选` **容器**:`字符串` \| `HTMLDivElement` +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L6) - ####继承自 +--- - IPluginBaseConfig.container +### container - #### 定义于 +• `Optional` **container**: `string` \| `HTMLDivElement` - [packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +#### 继承自 - ___ +IPluginBaseConfig.container - ### 获取内容 +#### 定义在 - • **getContent**: (`graph?`: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>) => `string` \| `HTMLDivElement` +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L5) - #### 类型声明 +--- - ▸ (`图?`): `字符串` \| `HTMLDivElement` +### getContent - ##### 参数 +• **getContent**: (`graph?`: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>) => `string` \| `HTMLDivElement` - | 名称 | 类型 | - | :------ | :------ | - | `图?` | [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> | +#### 类型声明 - ##### 返回 +▸ (`graph?`): `string` \| `HTMLDivElement` - `字符串` \| `HTMLDivElement` +用于获取工具栏内容的函数 - #### 定义于 +##### 参数 - [packages/g6/src/stdlib/plugin/toolbar/index.ts:14](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts) ts#L14) +| 名称 | 类型 | +| :------- | :---------------------------------------------------------------------- | +| `graph?` | [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> | - ___ +##### 返回 - ### 图表 +`string` \| `HTMLDivElement` - • `可选` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> +#### 定义在 - ####继承自 +[packages/g6/src/stdlib/plugin/toolbar/index.ts:20](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L20) - IPluginBaseConfig.graph +--- - #### 定义于 +### graph - [packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +• `Optional` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - ___ +#### 继承自 - ### 处理点击 +IPluginBaseConfig.graph - • `可选` **handleClick**: (`code`: `string`, `graph`: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> ) => `无效` +#### 定义在 - #### 类型声明 +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) - ▸ (`代码`, `图表`): `void` +--- - 工具栏配置 +### handleClick - ##### 参数 +• `Optional` **handleClick**: (`code`: `string`, `graph`: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>) => `void` - | 名称 | 类型 | 描述 | - | :------ | :------ | :------ | - | `代码` | `字符串` | 工具栏项目代码| - | `图` | [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> | 图实例| +#### 类型声明 - ##### 返回 +▸ (`code`, `graph`): `void` - `无效` +用于处理工具栏上点击的函数 - #### 定义于 +##### 参数 - [packages/g6/src/stdlib/plugin/toolbar/index.ts:13](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts) ts#L13) +| 名称 | 类型 | +| :------ | :---------------------------------------------------------------------- | +| `code` | `string` | +| `graph` | [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> | - ___ +##### 返回 - ### 最大缩放 +`void` - • **maxZoom**:`数量` +#### 定义在 - #### 定义于 +[packages/g6/src/stdlib/plugin/toolbar/index.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L18) - [packages/g6/src/stdlib/plugin/toolbar/index.ts:17](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts) ts#L17) +--- - ___ +### maxZoom - ### 最小缩放 +• **maxZoom**: `number` - • **minZoom**:`数字` +工具栏的最大缩放比例 - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/toolbar/index.ts:16](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts) ts#L16) +[packages/g6/src/stdlib/plugin/toolbar/index.ts:26](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L26) - ___ +--- - ### 缩放灵敏度 +### minZoom - • **缩放灵敏度**:`数字` +• **minZoom**: `number` - #### 定义于 +工具栏的最小缩放比例 - [packages/g6/src/stdlib/plugin/toolbar/index.ts:15](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/toolbar/index.ts) ts#L15) \ No newline at end of file +#### 定义在 + +[packages/g6/src/stdlib/plugin/toolbar/index.ts:24](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L24) + +--- + +### zoomSensitivity + +• **zoomSensitivity**: `number` + +工具栏的缩放灵敏度 + +#### 定义在 + +[packages/g6/src/stdlib/plugin/toolbar/index.ts:22](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/toolbar/index.ts#L22) diff --git a/packages/site/docs/apis/interfaces/plugins/TooltipConfig.en.md b/packages/site/docs/apis/interfaces/plugins/TooltipConfig.en.md index a674703f0c..799d0b61b4 100644 --- a/packages/site/docs/apis/interfaces/plugins/TooltipConfig.en.md +++ b/packages/site/docs/apis/interfaces/plugins/TooltipConfig.en.md @@ -6,6 +6,17 @@ title: TooltipConfig [plugins](../../modules/plugins.en.md).TooltipConfig +The `TooltipConfig` interface contains the following properties: + +- `getContent`: An optional function for getting the content of the tooltip. It takes an optional argument of type `IG6GraphEvent`, and returns a value of type HTMLDivElement, string, or Promise (resolving to HTMLDivElement or string). +- `offsetX`: An optional number representing the offset of the tooltip in the X direction. +- `offsetY`: An optional number representing the offset of the tooltip in the Y direction. +- `shouldBegin`: An optional function for determining whether the tooltip should be displayed. It takes an optional argument of type `IG6GraphEvent`, and returns a boolean value. +- `itemTypes`: An optional array of strings representing the types of items for which the tooltip is allowed to be displayed. The possible values are 'node', 'edge', 'combo', and 'canvas'. +- `trigger`: An optional string, either 'pointerenter' or 'click', representing the event type that triggers the display of the tooltip. +- `fixToNode`: An optional array of two numbers, a string representing a placement, or undefined, representing how to fix the tooltip to a node. +- `loadingContent`: An optional HTMLDivElement or string representing the loading DOM. + ## Hierarchy - `IPluginBaseConfig` @@ -24,7 +35,7 @@ IPluginBaseConfig.className #### Defined in -[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L6) ___ @@ -38,7 +49,7 @@ IPluginBaseConfig.container #### Defined in -[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L5) ___ @@ -46,9 +57,11 @@ ___ • `Optional` **fixToNode**: [`number`, `number`] \| `Placement` +How to fix tooltip to node + #### Defined in -[packages/g6/src/stdlib/plugin/tooltip/index.ts:66](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts#L66) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:85](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L85) ___ @@ -60,6 +73,8 @@ ___ ▸ (`evt?`): `string` \| `HTMLDivElement` \| `Promise`<`string` \| `HTMLDivElement`\> +Function for getting tooltip content + ##### Parameters | Name | Type | @@ -72,7 +87,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/tooltip/index.ts:57](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts#L57) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:71](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L71) ___ @@ -86,7 +101,7 @@ IPluginBaseConfig.graph #### Defined in -[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) ___ @@ -94,9 +109,11 @@ ___ • `Optional` **itemTypes**: (``"node"`` \| ``"edge"`` \| ``"combo"`` \| ``"canvas"``)[] +Types of items for which tooltip is allowed to be displayed + #### Defined in -[packages/g6/src/stdlib/plugin/tooltip/index.ts:64](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts#L64) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:81](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L81) ___ @@ -104,9 +121,11 @@ ___ • `Optional` **loadingContent**: `string` \| `HTMLDivElement` +Loading DOM + #### Defined in -[packages/g6/src/stdlib/plugin/tooltip/index.ts:67](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts#L67) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:87](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L87) ___ @@ -114,9 +133,11 @@ ___ • `Optional` **offsetX**: `number` +Offset of tooltip in X direction + #### Defined in -[packages/g6/src/stdlib/plugin/tooltip/index.ts:60](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts#L60) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:75](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L75) ___ @@ -124,9 +145,11 @@ ___ • `Optional` **offsetY**: `number` +Offset of tooltip in Y direction + #### Defined in -[packages/g6/src/stdlib/plugin/tooltip/index.ts:61](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts#L61) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:77](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L77) ___ @@ -138,6 +161,8 @@ ___ ▸ (`evt?`): `boolean` +Determine whether to display tooltip + ##### Parameters | Name | Type | @@ -150,7 +175,7 @@ ___ #### Defined in -[packages/g6/src/stdlib/plugin/tooltip/index.ts:62](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts#L62) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:79](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L79) ___ @@ -158,6 +183,8 @@ ___ • `Optional` **trigger**: ``"click"`` \| ``"pointerenter"`` +Event type that triggers display of tooltip + #### Defined in -[packages/g6/src/stdlib/plugin/tooltip/index.ts:65](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts#L65) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:83](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L83) diff --git a/packages/site/docs/apis/interfaces/plugins/TooltipConfig.zh.md b/packages/site/docs/apis/interfaces/plugins/TooltipConfig.zh.md index 73b506a5cb..9419520199 100644 --- a/packages/site/docs/apis/interfaces/plugins/TooltipConfig.zh.md +++ b/packages/site/docs/apis/interfaces/plugins/TooltipConfig.zh.md @@ -2,162 +2,185 @@ title: TooltipConfig --- -[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../. ./modules/plugins.zh.md) / TooltipConfig +[概述 - v5.0.0-alpha.9](../../README.zh.md) / [模块](../../modules.zh.md) / [插件](../../modules/plugins.zh.md) / TooltipConfig - [插件](../../modules/plugins.zh.md).TooltipConfig +[插件](../../modules/plugins.zh.md).TooltipConfig - ## 等级制度 +`TooltipConfig`接口包含以下属性: - - `IPluginBaseConfig` +- `getContent`:一个可选的函数,用于获取工具提示的内容。它接受一个可选的类型为`IG6GraphEvent`的参数,并返回类型为 HTMLDivElement、字符串或 Promise(解析为 HTMLDivElement 或字符串)的值。 +- `offsetX`:一个可选的数字,表示工具提示在 X 方向上的偏移量。 +- `offsetY`:一个可选的数字,表示工具提示在 Y 方向上的偏移量。 +- `shouldBegin`:一个可选的函数,用于确定是否应显示工具提示。它接受一个可选的类型为`IG6GraphEvent`的参数,并返回一个布尔值。 +- `itemTypes`:一个可选的字符串数组,表示允许显示工具提示的项目类型。可能的值为'node'、'edge'、'combo'和'canvas'。 +- `trigger`:一个可选的字符串,可以是'pointerenter'或'click',表示触发显示工具提示的事件类型。 +- `fixToNode`:一个可选的由两个数字、表示位置的字符串或未定义组成的数组,表示如何将工具提示固定到节点上。 +- `loadingContent`:一个可选的 HTMLDivElement 或字符串,表示加载 DOM。 - ↳ **`工具提示配置`** +## 层次结构 - ## 特性 +- `IPluginBaseConfig` - ### 班级名称 + ↳ **`TooltipConfig`** - • `可选` **类名**:`字符串` +## 属性 - ####继承自 +### className - IPluginBaseConfig.className +• 可选 **className**:字符串 - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L6) +IPluginBaseConfig.className - ___ +#### 定义在 - ### 容器 +[packages/g6/src/types/plugin.ts:6](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L6) - • `可选` **容器**:`字符串` \| `HTMLDivElement` +--- - ####继承自 +### container - IPluginBaseConfig.container +• 可选 **container**:字符串 | HTMLDivElement - #### 定义于 +#### 继承自 - [packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L5) +IPluginBaseConfig.container - ___ +#### 定义在 - ### 修复到节点 +[packages/g6/src/types/plugin.ts:5](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L5) - • `可选` **fixToNode**: [`number`, `number`] \| `放置` +--- - #### 定义于 +### fixToNode - [packages/g6/src/stdlib/plugin/tooltip/index.ts:66](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts) ts#L66) +• 可选 **fixToNode**:[数字, 数字] | 放置方式 - ___ +如何将工具提示固定到节点上。 - ### 获取内容 +#### 定义在 - • `可选` **getContent**: (`evt?`: [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md)) => `string` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> +[packages/g6/src/stdlib/plugin/tooltip/index.ts:85](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L85) - #### 类型声明 +--- - ▸ (`evt?`): `字符串` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> +### getContent - ##### 参数 +• 可选 **getContent**:(`evt?`: [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md)) => 字符串 | HTMLDivElement | Promise<字符串 | HTMLDivElement> - | 名称 | 类型 | - | :------ | :------ | - | `事件?` | [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md) | +#### 类型声明 - ##### 返回 +▸ (`evt?`): 字符串 | HTMLDivElement | Promise<字符串 | HTMLDivElement> - `字符串` \| `HTMLDivElement` \| `Promise`<`字符串` \| `HTMLDivElement`\> +获取工具提示内容的函数。 - #### 定义于 +##### 参数 - [packages/g6/src/stdlib/plugin/tooltip/index.ts:57](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts) ts#L57) +| 名称 | 类型 | +| :----- | :-------------------------------------------------- | +| `evt?` | [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md) | - ___ +##### 返回值 - ### 图表 +字符串 | HTMLDivElement | Promise<字符串 | HTMLDivElement> - • `可选` **graph**: [`IGraph`](../graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> +#### 定义在 - ####继承自 +[packages/g6/src/stdlib/plugin/tooltip/index.ts:71](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L71) - IPluginBaseConfig.graph +--- - #### 定义于 +### graph - [packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/types/plugin.ts#L7) +• 可选 **graph**:[`IGraph`](../graph/IGraph.zh.md)<行为注册表, 主题注册表\> - ___ +#### 继承自 - ### 项目类型 +IPluginBaseConfig.graph - • `可选` **itemTypes**: (``"node"`` \| ``"edge"`` \| ``"combo"`` \| ``"canvas"``)[] +#### 定义在 - #### 定义于 +[packages/g6/src/types/plugin.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/plugin.ts#L7) - [packages/g6/src/stdlib/plugin/tooltip/index.ts:64](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts) ts#L64) +--- - ___ +### itemTypes - ### 加载内容 +• 可选 **itemTypes**:(`"node"` | `"edge"` | `"combo"` | `"canvas"`)[] - • `可选` **loadingContent**:`字符串` \| `HTMLDivElement` +允许显示工具提示的项目类型。 - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/tooltip/index.ts:67](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts) ts#L67) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:81](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L81) - ___ +### loadingContent - ### 偏移X +• `Optional` **loadingContent**: `string` \| `HTMLDivElement` - • `可选` **offsetX**:`数字` +加载 DOM - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/tooltip/index.ts:60](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts) ts#L60) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:87](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L87) - ___ +### offsetX - ### 偏移Y +• `Optional` **offsetX**: `number` - • `可选` **offsetY**:`数字` +提示工具在 X 方向上的偏移量 - #### 定义于 +#### 定义在 - [packages/g6/src/stdlib/plugin/tooltip/index.ts:61](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.html ts#L61) +[packages/g6/src/stdlib/plugin/tooltip/index.ts:75](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L75) - ___ +--- - ### 应该开始 +### offsetY - • `可选` **shouldBegin**: (`evt?`: [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md)) => `boolean` +• `Optional` **offsetY**: `number` - #### 类型声明 +提示工具在 Y 方向上的偏移量 - ▸ (`evt?`): `布尔值` +#### 定义在 - ##### 参数 +[packages/g6/src/stdlib/plugin/tooltip/index.ts:77](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L77) - | 名称 | 类型 | - | :------ | :------ | - | `事件?` | [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md) | +--- - ##### 返回 +### shouldBegin - `布尔值` +• `Optional` **shouldBegin**: (`evt?`: [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md)) => `boolean` - #### 定义于 +#### 类型声明 - [packages/g6/src/stdlib/plugin/tooltip/index.ts:62](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts) ts#L62) +▸ (`evt?`): `boolean` - ___ +确定是否显示提示工具 - ### 扳机 +##### 参数 - • `可选` **触发**:``"点击"`` \| ``“指针输入器”`` +| 名称 | 类型 | +| :----- | :-------------------------------------------------- | +| `evt?` | [`IG6GraphEvent`](../behaviors/IG6GraphEvent.zh.md) | - #### 定义于 +##### 返回 - [packages/g6/src/stdlib/plugin/tooltip/index.ts:65](https://github.com/antvis/G6/blob/60905f4c6c/packages/g6/src/stdlib/plugin/tooltip/index.ts) ts#L65) \ No newline at end of file +`boolean` + +#### 定义在 + +[packages/g6/src/stdlib/plugin/tooltip/index.ts:79](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L79) + +--- + +### trigger + +• `Optional` **trigger**: `"click"` \| `"pointerenter"` + +触发显示提示工具的事件类型 + +#### 定义在 + +[packages/g6/src/stdlib/plugin/tooltip/index.ts:83](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/stdlib/plugin/tooltip/index.ts#L83) diff --git a/packages/site/docs/apis/interfaces/types-GraphData.en.md b/packages/site/docs/apis/interfaces/types-GraphData.en.md deleted file mode 100644 index a56176e349..0000000000 --- a/packages/site/docs/apis/interfaces/types-GraphData.en.md +++ /dev/null @@ -1,35 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [types](../modules/types.en.md) / GraphData - -# Interface: GraphData - -[types](../modules/types.en.md).GraphData - -## Properties - -### combos - -• `Optional` **combos**: [`ComboUserModel`](../modules/types.en.md#combousermodel)[] - -#### Defined in - -[types/data.ts:14](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/data.ts#L14) - -___ - -### edges - -• `Optional` **edges**: [`EdgeUserModel`](../modules/types.en.md#edgeusermodel)[] - -#### Defined in - -[types/data.ts:13](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/data.ts#L13) - -___ - -### nodes - -• `Optional` **nodes**: [`NodeUserModel`](../modules/types.en.md#nodeusermodel)[] - -#### Defined in - -[types/data.ts:12](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/data.ts#L12) diff --git a/packages/site/docs/apis/interfaces/types-GraphData.zh.md b/packages/site/docs/apis/interfaces/types-GraphData.zh.md deleted file mode 100644 index 03795dffce..0000000000 --- a/packages/site/docs/apis/interfaces/types-GraphData.zh.md +++ /dev/null @@ -1,35 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [类型](../modules/types.zh.md ) / 图数据 - - # 接口:图数据 - - [类型](../modules/types.zh.md).GraphData - - ## 特性 - - ###连击 - - • `可选` **组合**:[`ComboUserModel`](../modules/types.zh.md#combousermodel)[] - - #### 定义于 - - [类型/data.ts:14](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/data.ts#L14) - - ___ - - ### 边缘 - - • `可选` **边缘**:[`EdgeUserModel`](../modules/types.zh.md#edgeusermodel)[] - - #### 定义于 - - [类型/data.ts:13](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/data.ts#L13) - - ___ - - ### 节点 - - • `可选` **节点**:[`NodeUserModel`](../modules/types.zh.md#nodeusermodel)[] - - #### 定义于 - - [类型/data.ts:12](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/data.ts#L12) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/types-IG6GraphEvent.en.md b/packages/site/docs/apis/interfaces/types-IG6GraphEvent.en.md deleted file mode 100644 index a0ebc26819..0000000000 --- a/packages/site/docs/apis/interfaces/types-IG6GraphEvent.en.md +++ /dev/null @@ -1,53 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [types](../modules/types.en.md) / IG6GraphEvent - -# Interface: IG6GraphEvent - -[types](../modules/types.en.md).IG6GraphEvent - -## Hierarchy - -- `Omit`<`FederatedPointerEvent`, ``"currentTarget"``\> - - ↳ **`IG6GraphEvent`** - -## Properties - -### currentTarget - -• **currentTarget**: [`IGraph`](types-IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\> - -#### Defined in - -[types/event.ts:42](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/event.ts#L42) - -___ - -### gEvent - -• **gEvent**: `Event` - -Original event emitted by G - -#### Defined in - -[types/event.ts:46](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/event.ts#L46) - -___ - -### itemId - -• **itemId**: `ID` - -#### Defined in - -[types/event.ts:44](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/event.ts#L44) - -___ - -### itemType - -• **itemType**: ``"node"`` \| ``"edge"`` \| ``"combo"`` \| ``"canvas"`` - -#### Defined in - -[types/event.ts:43](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/event.ts#L43) diff --git a/packages/site/docs/apis/interfaces/types-IG6GraphEvent.zh.md b/packages/site/docs/apis/interfaces/types-IG6GraphEvent.zh.md deleted file mode 100644 index f9a244eb0c..0000000000 --- a/packages/site/docs/apis/interfaces/types-IG6GraphEvent.zh.md +++ /dev/null @@ -1,53 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [类型](../modules/types.zh.md ) / IG6GraphEvent - - # 接口:IG6GraphEvent - - [类型](../modules/types.zh.md).IG6GraphEvent - - ## 等级制度 - - - `省略`<`FederatedPointerEvent`, ``"currentTarget"``\> - - ↳ **`IG6GraphEvent`** - - ## 特性 - - ### 当前目标 - - • **currentTarget**: [`IGraph`](types-IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\> - - #### 定义于 - - [类型/event.ts:42](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/event.ts#L42) - - ___ - - ### gEvent - - • **gEvent**:`事件` - - G 发出的原始事件 - - #### 定义于 - - [类型/event.ts:46](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/event.ts#L46) - - ___ - - ### 商品编号 - - • **itemId**:`ID` - - #### 定义于 - - [类型/event.ts:44](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/event.ts#L44) - - ___ - - ### 物品种类 - - • **itemType**:``“节点”`` \| ``“边缘”`` \| ``“组合”`` \| ``“画布”`` - - #### 定义于 - - [类型/event.ts:43](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/event.ts#L43) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/types-IGraph.en.md b/packages/site/docs/apis/interfaces/types-IGraph.en.md deleted file mode 100644 index f7b86607e1..0000000000 --- a/packages/site/docs/apis/interfaces/types-IGraph.en.md +++ /dev/null @@ -1,2293 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [types](../modules/types.en.md) / IGraph - -# Interface: IGraph - -[types](../modules/types.en.md).IGraph - -## Type parameters - -| Name | Type | -| :------ | :------ | -| `B` | extends `BehaviorRegistry` = `BehaviorRegistry` | -| `T` | extends `ThemeRegistry` = `ThemeRegistry` | - -## Hierarchy - -- `default` - - ↳ **`IGraph`** - -## Implemented by - -- [`Graph`](../classes/graph-Graph.en.md) - -## Indexable - -▪ [x: `string`]: `any` - -## Combo - -### addCombo - -• **addCombo**: (`model`: [`ComboUserModel`](../modules/types.en.md#combousermodel), `childrenIds`: `ID`[], `stack?`: `boolean`) => [`ComboModel`](../modules/types.en.md#combomodel) - -#### Type declaration - -▸ (`model`, `childrenIds`, `stack?`): [`ComboModel`](../modules/types.en.md#combomodel) - -Add a new combo to the graph, and update the structure of the existed child in childrenIds to be the children of the new combo. -Different from addData with combo type, this API update the succeeds' combo tree strucutres in the same time. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `model` | [`ComboUserModel`](../modules/types.en.md#combousermodel) | combo user data | -| `childrenIds` | `ID`[] | - | -| `stack?` | `boolean` | whether push this operation to stack | - -##### Returns - -[`ComboModel`](../modules/types.en.md#combomodel) - -whether success - -#### Defined in - -[types/graph.ts:554](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L554) - -___ - -### collapseCombo - -• **collapseCombo**: (`comboIds`: `ID` \| `ID`[], `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`comboIds`, `stack?`): `void` - -Collapse a combo. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `comboIds` | `ID` \| `ID`[] | -| `stack?` | `boolean` | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:564](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L564) - -___ - -### expandCombo - -• **expandCombo**: (`comboIds`: `ID` \| `ID`[], `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`comboIds`, `stack?`): `void` - -Expand a combo. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `comboIds` | `ID` \| `ID`[] | -| `stack?` | `boolean` | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:571](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L571) - -## Data - -### addData - -• **addData**: (`itemType`: `ITEM_TYPE`, `model`: [`EdgeUserModel`](../modules/types.en.md#edgeusermodel) \| [`NodeUserModel`](../modules/types.en.md#nodeusermodel) \| [`ComboUserModel`](../modules/types.en.md#combousermodel) \| [`NodeUserModel`](../modules/types.en.md#nodeusermodel)[] \| [`EdgeUserModel`](../modules/types.en.md#edgeusermodel)[] \| [`ComboUserModel`](../modules/types.en.md#combousermodel)[], `stack?`: `boolean`) => [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Type declaration - -▸ (`itemType`, `model`, `stack?`): [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -Add one or more node/edge/combo data to the graph. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `itemType` | `ITEM_TYPE` | item type | -| `model` | [`EdgeUserModel`](../modules/types.en.md#edgeusermodel) \| [`NodeUserModel`](../modules/types.en.md#nodeusermodel) \| [`ComboUserModel`](../modules/types.en.md#combousermodel) \| [`NodeUserModel`](../modules/types.en.md#nodeusermodel)[] \| [`EdgeUserModel`](../modules/types.en.md#edgeusermodel)[] \| [`ComboUserModel`](../modules/types.en.md#combousermodel)[] | user data | -| `stack?` | `boolean` | whether push this operation to stack | - -##### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -whehter success - -#### Defined in - -[types/graph.ts:177](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L177) - -___ - -### changeData - -• **changeData**: (`data`: [`GraphData`](types-GraphData.en.md), `type`: ``"replace"`` \| ``"mergeReplace"``) => `void` - -#### Type declaration - -▸ (`data`, `type`): `void` - -Change graph data. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `data` | [`GraphData`](types-GraphData.en.md) | new data | -| `type` | ``"replace"`` \| ``"mergeReplace"`` | the way to change data, 'replace' means discard the old data and use the new one; 'mergeReplace' means merge the common part, remove (old - new), add (new - old) | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:148](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L148) - -___ - -### getAllCombosData - -• **getAllCombosData**: () => [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Type declaration - -▸ (): [`ComboModel`](../modules/types.en.md#combomodel)[] - -Get all the combos' inner data - -##### Returns - -[`ComboModel`](../modules/types.en.md#combomodel)[] - -all combos' inner data on the graph - -#### Defined in - -[types/graph.ts:99](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L99) - -___ - -### getAllEdgesData - -• **getAllEdgesData**: () => [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -#### Type declaration - -▸ (): [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -Get all the edges' inner data - -##### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel)[] - -all edges' inner data on the graph - -#### Defined in - -[types/graph.ts:93](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L93) - -___ - -### getAllNodesData - -• **getAllNodesData**: () => [`NodeModel`](../modules/types.en.md#nodemodel)[] - -#### Type declaration - -▸ (): [`NodeModel`](../modules/types.en.md#nodemodel)[] - -Get all the nodes' inner data - -##### Returns - -[`NodeModel`](../modules/types.en.md#nodemodel)[] - -all nodes' inner data on the graph - -#### Defined in - -[types/graph.ts:87](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L87) - -___ - -### getComboData - -• **getComboData**: (`condition`: `Function` \| `ID`) => [`ComboModel`](../modules/types.en.md#combomodel) - -#### Type declaration - -▸ (`condition`): [`ComboModel`](../modules/types.en.md#combomodel) - -Find a combo's inner data according to id or function. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `condition` | `Function` \| `ID` | id or condition function | - -##### Returns - -[`ComboModel`](../modules/types.en.md#combomodel) - -result combo's inner data - -#### Defined in - -[types/graph.ts:81](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L81) - -___ - -### getEdgeData - -• **getEdgeData**: (`condition`: `Function` \| `ID`) => [`EdgeModel`](../modules/types.en.md#edgemodel) - -#### Type declaration - -▸ (`condition`): [`EdgeModel`](../modules/types.en.md#edgemodel) - -Find an edge's inner data according to id or function. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `condition` | `Function` \| `ID` | id or condition function | - -##### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel) - -result edge's inner data - -#### Defined in - -[types/graph.ts:74](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L74) - -___ - -### getNeighborNodesData - -• **getNeighborNodesData**: (`nodeId`: `ID`, `direction?`: ``"both"`` \| ``"in"`` \| ``"out"``) => [`NodeModel`](../modules/types.en.md#nodemodel)[] - -#### Type declaration - -▸ (`nodeId`, `direction?`): [`NodeModel`](../modules/types.en.md#nodemodel)[] - -Get one-hop node ids from a start node. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `nodeId` | `ID` | id of the start node | -| `direction?` | ``"both"`` \| ``"in"`` \| ``"out"`` | - | - -##### Returns - -[`NodeModel`](../modules/types.en.md#nodemodel)[] - -one-hop node ids - -#### Defined in - -[types/graph.ts:116](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L116) - -___ - -### getNodeData - -• **getNodeData**: (`condition`: `Function` \| `ID`) => [`NodeModel`](../modules/types.en.md#nodemodel) - -#### Type declaration - -▸ (`condition`): [`NodeModel`](../modules/types.en.md#nodemodel) - -Find a node's inner data according to id or function. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `condition` | `Function` \| `ID` | id or condition function | - -##### Returns - -[`NodeModel`](../modules/types.en.md#nodemodel) - -result node's inner data - -#### Defined in - -[types/graph.ts:67](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L67) - -___ - -### getRelatedEdgesData - -• **getRelatedEdgesData**: (`nodeId`: `ID`, `direction?`: ``"both"`` \| ``"in"`` \| ``"out"``) => [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -#### Type declaration - -▸ (`nodeId`, `direction?`): [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -Get one-hop edge ids from a start node. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `nodeId` | `ID` | id of the start node | -| `direction?` | ``"both"`` \| ``"in"`` \| ``"out"`` | - | - -##### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel)[] - -one-hop edge ids - -#### Defined in - -[types/graph.ts:106](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L106) - -___ - -### moveCombo - -• **moveCombo**: (`ids`: `ID`[], `dx`: `number`, `dy`: `number`, `upsertAncestors?`: `boolean`, `callback?`: (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel), `canceled?`: `boolean`) => `void`, `stack?`: `boolean`) => [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Type declaration - -▸ (`ids`, `dx`, `dy`, `upsertAncestors?`, `callback?`, `stack?`): [`ComboModel`](../modules/types.en.md#combomodel)[] - -Move one or more combos a distance (dx, dy) relatively, -do not update other styles which leads to better performance than updating positions by updateData. -In fact, it changes the succeed nodes positions to affect the combo's position, but not modify the combo's position directly. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID`[] | - | -| `dx` | `number` | - | -| `dy` | `number` | - | -| `upsertAncestors?` | `boolean` | - | -| `callback?` | (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel), `canceled?`: `boolean`) => `void` | - | -| `stack?` | `boolean` | whether push this operation into graph's stack, true by default | - -##### Returns - -[`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Defined in - -[types/graph.ts:278](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L278) - -___ - -### read - -• **read**: (`data`: [`GraphData`](types-GraphData.en.md)) => `void` - -#### Type declaration - -▸ (`data`): `void` - -Input data and render the graph. -If there is old data, diffs and changes it. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `data` | [`GraphData`](types-GraphData.en.md) | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:140](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L140) - -___ - -### removeData - -• **removeData**: (`itemType`: `ITEM_TYPE`, `id`: `ID` \| `ID`[], `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`itemType`, `id`, `stack?`): `void` - -Remove one or more node/edge/combo data from the graph. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `itemType` | `ITEM_TYPE` | - | -| `id` | `ID` \| `ID`[] | - | -| `stack?` | `boolean` | whether push this operation to stack | - -##### Returns - -`void` - -whehter success - -#### Defined in - -[types/graph.ts:201](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L201) - -___ - -### showItem - -• **showItem**: (`ids`: `ID` \| `ID`[], `disableAnimate?`: `boolean`) => `void` - -#### Type declaration - -▸ (`ids`, `disableAnimate?`): `void` - -Show the item(s). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | the item id(s) to be shown | -| `disableAnimate?` | `boolean` | - | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:466](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L466) - -___ - -### updateComboPosition - -• **updateComboPosition**: (`models`: `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\>, `upsertAncestors?`: `boolean`, `disableAnimate?`: `boolean`, `callback?`: (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel)) => `void`, `stack?`: `boolean`) => [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Type declaration - -▸ (`models`, `upsertAncestors?`, `disableAnimate?`, `callback?`, `stack?`): [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -Update one or more combos' positions, it is achieved by move the succeed nodes. -Do not update other styles which leads to better performance than updating positions by updateData. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `models` | `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\> | new configurations with x and y for every combo, which has id field to indicate the specific item | -| `upsertAncestors?` | `boolean` | - | -| `disableAnimate?` | `boolean` | - | -| `callback?` | (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel)) => `void` | - | -| `stack?` | `boolean` | whether push this operation into graph's stack, true by default | - -##### Returns - -[`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Defined in - -[types/graph.ts:258](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L258) - -___ - -### updateData - -• **updateData**: (`itemType`: `ITEM_TYPE`, `model`: `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\> \| `Partial`<[`EdgeUserModel`](../modules/types.en.md#edgeusermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`EdgeUserModel`](../modules/types.en.md#edgeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\>, `stack?`: `boolean`) => [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Type declaration - -▸ (`itemType`, `model`, `stack?`): [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -Update one or more node/edge/combo data on the graph. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `itemType` | `ITEM_TYPE` | - | -| `model` | `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\> \| `Partial`<[`EdgeUserModel`](../modules/types.en.md#edgeusermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`EdgeUserModel`](../modules/types.en.md#edgeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\> | update configs | -| `stack?` | `boolean` | whether push this operation to stack | - -##### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`EdgeModel`](../modules/types.en.md#edgemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Defined in - -[types/graph.ts:209](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L209) - -___ - -### updateNodePosition - -• **updateNodePosition**: (`models`: `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\>, `upsertAncestors?`: `boolean`, `disableAnimate?`: `boolean`, `callback?`: (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel), `canceled?`: `boolean`) => `void`, `stack?`: `boolean`) => [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Type declaration - -▸ (`models`, `upsertAncestors?`, `disableAnimate?`, `callback?`, `stack?`): [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -Update one or more nodes' positions, -do not update other styles which leads to better performance than updating positions by updateData. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `models` | `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\> \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel) \| `Partial`<[`NodeUserModel`](../modules/types.en.md#nodeusermodel)\>[] \| `Partial`<[`ComboUserModel`](../modules/types.en.md#combousermodel)\>[]\> | new configurations with x and y for every node, which has id field to indicate the specific item | -| `upsertAncestors?` | `boolean` | - | -| `disableAnimate?` | `boolean` | - | -| `callback?` | (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel), `canceled?`: `boolean`) => `void` | - | -| `stack?` | `boolean` | whether push this operation into graph's stack, true by default | - -##### Returns - -[`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel) \| [`NodeModel`](../modules/types.en.md#nodemodel)[] \| [`ComboModel`](../modules/types.en.md#combomodel)[] - -#### Defined in - -[types/graph.ts:236](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L236) - -## Graph Instance - -### destroy - -• **destroy**: (`callback?`: `Function`) => `void` - -#### Type declaration - -▸ (`callback?`): `void` - -Destroy the graph instance and remove the related canvases. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `callback?` | `Function` | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:39](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L39) - -## Interaction - -### drawTransient - -• **drawTransient**: (`type`: `SHAPE_TYPE` \| `ITEM_TYPE`, `id`: `ID`, `config`: `any`) => `DisplayObject`<`any`, `any`\> - -#### Type declaration - -▸ (`type`, `id`, `config`): `DisplayObject`<`any`, `any`\> - -Draw or update a G shape or group to the transient canvas. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `type` | `SHAPE_TYPE` \| `ITEM_TYPE` | shape type or item type | -| `id` | `ID` | new shape id or updated shape id for a interation shape, node/edge/combo id for item interaction group drawing | -| `config` | `any` | - | - -##### Returns - -`DisplayObject`<`any`, `any`\> - -upserted shape or group - -#### Defined in - -[types/graph.ts:622](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L622) - -___ - -### removeBehaviors - -• **removeBehaviors**: (`behaviorKeys`: `string`[], `modes`: `string` \| `string`[]) => `void` - -#### Type declaration - -▸ (`behaviorKeys`, `modes`): `void` - -Remove behavior(s) from mode(s). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `behaviorKeys` | `string`[] | - | -| `modes` | `string` \| `string`[] | mode names | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:605](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L605) - -___ - -### setMode - -• **setMode**: (`mode`: `string`) => `void` - -#### Type declaration - -▸ (`mode`): `void` - -Switch mode. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `mode` | `string` | mode name | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:587](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L587) - -___ - -### updateBehavior - -• **updateBehavior**: (`behavior`: `BehaviorOptionsOf`<`B`\>, `mode?`: `string`) => `void` - -#### Type declaration - -▸ (`behavior`, `mode?`): `void` - -Update a behavior on a mode. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `behavior` | `BehaviorOptionsOf`<`B`\> | behavior configs, whose name indicates the behavior to be updated | -| `mode?` | `string` | mode name | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:613](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L613) - -## Item - -### backItem - -• **backItem**: (`ids`: `ID` \| `ID`[], `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`ids`, `stack?`): `void` - -Make the item(s) to the back. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | the item id(s) to back | -| `stack?` | `boolean` | - | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:487](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L487) - -___ - -### clearItemState - -• **clearItemState**: (`ids`: `ID` \| `ID`[], `states?`: `string`[], `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`ids`, `states?`, `stack?`): `void` - -Clear all the states for item(s). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | the id(s) for the item(s) to be clear | -| `states?` | `string`[] | the states' names, all the states wil be cleared if states is not assigned | -| `stack?` | `boolean` | - | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:524](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L524) - -___ - -### findIdByState - -• **findIdByState**: (`itemType`: `ITEM_TYPE`, `state`: `string`, `value?`: `string` \| `boolean`, `additionalFilter?`: (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel)) => `boolean`) => `ID`[] - -#### Type declaration - -▸ (`itemType`, `state`, `value?`, `additionalFilter?`): `ID`[] - -Find items which has the state. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `itemType` | `ITEM_TYPE` | item type | -| `state` | `string` | state name | -| `value?` | `string` \| `boolean` | state value, true by default | -| `additionalFilter?` | (`model`: [`EdgeModel`](../modules/types.en.md#edgemodel) \| [`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel)) => `boolean` | additional filter function | - -##### Returns - -`ID`[] - -items that is the type and has the state - -#### Defined in - -[types/graph.ts:163](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L163) - -___ - -### frontItem - -• **frontItem**: (`ids`: `ID` \| `ID`[], `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`ids`, `stack?`): `void` - -Make the item(s) to the front. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | the item id(s) to front | -| `stack?` | `boolean` | - | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:480](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L480) - -___ - -### getItemAllStates - -• **getItemAllStates**: (`id`: `ID`) => `string`[] - -#### Type declaration - -▸ (`id`): `string`[] - -Get all the state names with value true for an item. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` | the id for the item | - -##### Returns - -`string`[] - -the state names with value true - -#### Defined in - -[types/graph.ts:516](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L516) - -___ - -### getItemState - -• **getItemState**: (`id`: `ID`, `state`: `string`) => `string` \| `boolean` - -#### Type declaration - -▸ (`id`, `state`): `string` \| `boolean` - -Get the state value for an item. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` | the id for the item | -| `state` | `string` | - | - -##### Returns - -`string` \| `boolean` - -the state value - -#### Defined in - -[types/graph.ts:509](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L509) - -___ - -### hideItem - -• **hideItem**: (`ids`: `ID` \| `ID`[], `disableAnimate?`: `boolean`) => `void` - -#### Type declaration - -▸ (`ids`, `disableAnimate?`): `void` - -Hide the item(s). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | the item id(s) to be hidden | -| `disableAnimate?` | `boolean` | - | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:473](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L473) - -___ - -### setItemState - -• **setItemState**: (`ids`: `ID` \| `ID`[], `state`: `string`, `value`: `boolean`, `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`ids`, `state`, `value`, `stack?`): `void` - -Set state for the item(s). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | the id(s) for the item(s) to be set | -| `state` | `string` | the state name | -| `value` | `boolean` | state value | -| `stack?` | `boolean` | - | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:496](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L496) - -## Plugin - -### addPlugins - -• **addPlugins**: (`pluginCfgs`: { `[cfgName: string]`: `unknown`; `key`: `string` ; `type`: `string` }[]) => `void` - -#### Type declaration - -▸ (`pluginCfgs`): `void` - -Add plugin(s) to graph. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `pluginCfgs` | { `[cfgName: string]`: `unknown`; `key`: `string` ; `type`: `string` }[] | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:634](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L634) - -___ - -### removePlugins - -• **removePlugins**: (`pluginKeys`: `string`[]) => `void` - -#### Type declaration - -▸ (`pluginKeys`): `void` - -Remove plugin(s) from graph. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `pluginKeys` | `string`[] | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:648](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L648) - -___ - -### updatePlugin - -• **updatePlugin**: (`pluginCfg`: { `[cfgName: string]`: `unknown`; `key`: `string` ; `type`: `string` }) => `void` - -#### Type declaration - -▸ (`pluginCfg`): `void` - -Update one plugin of the graph. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `pluginCfg` | `Object` | -| `pluginCfg.key` | `string` | -| `pluginCfg.type` | `string` | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:656](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L656) - -## Properties - -### addBehaviors - -• **addBehaviors**: (`behaviors`: `BehaviorOptionsOf`<`B`\>[], `modes`: `string` \| `string`[]) => `void` - -#### Type declaration - -▸ (`behaviors`, `modes`): `void` - -Add behavior(s) to mode(s). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `behaviors` | `BehaviorOptionsOf`<`B`\>[] | behavior names or configs | -| `modes` | `string` \| `string`[] | mode names | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:594](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L594) - -___ - -### batch - -• **batch**: (`callback`: () => `void`) => `void` - -#### Type declaration - -▸ (`callback`): `void` - -Execute a provided function within a batched context -All operations performed inside callback will be treated as a composite operation -more convenient way without manually invoking `startBatch` and `stopBatch`. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `callback` | () => `void` | The func containing operations to be batched together. | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:746](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L746) - -___ - -### canRedo - -• **canRedo**: () => `void` - -#### Type declaration - -▸ (): `void` - -Indicate whether there are any actions available in the redo stack. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:724](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L724) - -___ - -### canUndo - -• **canUndo**: () => `void` - -#### Type declaration - -▸ (): `void` - -Indicate whether there are any actions available in the undo stack. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:719](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L719) - -___ - -### canvas - -• **canvas**: `Canvas` - -#### Defined in - -[types/graph.ts:27](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L27) - -___ - -### changeRenderer - -• **changeRenderer**: (`type`: `RendererName`) => `void` - -#### Type declaration - -▸ (`type`): `void` - -Change the renderer at runtime. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `type` | `RendererName` | renderer name | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:58](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L58) - -___ - -### clear - -• **clear**: () => `void` - -#### Type declaration - -▸ (): `void` - -Clear the graph, means remove all the items on the graph. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:153](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L153) - -___ - -### clearStack - -• **clearStack**: (`stackType?`: ``"redo"`` \| ``"undo"``) => `void` - -#### Type declaration - -▸ (`stackType?`): `void` - -Execute a provided function within a batched context -All operations performed inside callback will be treated as a composite operation -more convenient way without manually invoking `startBatch` and `stopBatch`. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `stackType?` | ``"redo"`` \| ``"undo"`` | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:753](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L753) - -___ - -### container - -• **container**: `HTMLElement` - -#### Defined in - -[types/graph.ts:30](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L30) - -___ - -### destroyed - -• **destroyed**: `boolean` - -#### Defined in - -[types/graph.ts:29](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L29) - -___ - -### executeWithoutStacking - -• **executeWithoutStacking**: (`callback`: () => `void`) => `void` - -#### Type declaration - -▸ (`callback`): `void` - -Execute a callback without allowing any stacking operations. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `callback` | () => `void` | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:687](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L687) - -___ - -### getComboChildrenData - -• **getComboChildrenData**: (`comboId`: `ID`) => ([`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel))[] - -#### Type declaration - -▸ (`comboId`): ([`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel))[] - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `comboId` | `ID` | - -##### Returns - -([`NodeModel`](../modules/types.en.md#nodemodel) \| [`ComboModel`](../modules/types.en.md#combomodel))[] - -#### Defined in - -[types/graph.ts:132](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L132) - -___ - -### getItemVisible - -• **getItemVisible**: (`id`: `ID`) => `boolean` - -#### Type declaration - -▸ (`id`): `boolean` - -Get the visibility for a node / edge / combo. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` | the id for the node / edge / combo | - -##### Returns - -`boolean` - -visibility for the item, false for invisible or unexistence for the item - -#### Defined in - -[types/graph.ts:542](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L542) - -___ - -### getNearEdgesForNode - -• **getNearEdgesForNode**: (`nodeId`: `ID`) => [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -#### Type declaration - -▸ (`nodeId`): [`EdgeModel`](../modules/types.en.md#edgemodel)[] - -Retrieve the nearby edges for a given node using quadtree collision detection. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `nodeId` | `ID` | target node's id | - -##### Returns - -[`EdgeModel`](../modules/types.en.md#edgemodel)[] - -edges - -#### Defined in - -[types/graph.ts:125](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L125) - -___ - -### getRedoStack - -• **getRedoStack**: () => `void` - -#### Type declaration - -▸ (): `void` - -Retrieve the current undo stack which consists of operations that were undone - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:696](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L696) - -___ - -### getRenderBBox - -• **getRenderBBox**: (`id`: `ID`, `onlyKeyShape?`: `boolean`, `isTransient?`: `boolean`) => ``false`` \| `AABB` - -#### Type declaration - -▸ (`id`, `onlyKeyShape?`, `isTransient?`): ``false`` \| `AABB` - -Get the rendering bbox for a node / edge / combo, or the graph (when the id is not assigned). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` | the id for the node / edge / combo, undefined for the whole graph | -| `onlyKeyShape?` | `boolean` | - | -| `isTransient?` | `boolean` | - | - -##### Returns - -``false`` \| `AABB` - -rendering bounding box. returns false if the item is not exist - -#### Defined in - -[types/graph.ts:531](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L531) - -___ - -### getSpecification - -• **getSpecification**: () => [`Specification`](types-Specification.en.md)<`B`, `T`\> - -#### Type declaration - -▸ (): [`Specification`](types-Specification.en.md)<`B`, `T`\> - -Get the copy of specs(configurations). - -##### Returns - -[`Specification`](types-Specification.en.md)<`B`, `T`\> - -graph specs - -#### Defined in - -[types/graph.ts:52](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L52) - -___ - -### getStack - -• **getStack**: () => `void` - -#### Type declaration - -▸ (): `void` - -Retrieve the complete history stack - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:702](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L702) - -___ - -### getUndoStack - -• **getUndoStack**: () => `void` - -#### Type declaration - -▸ (): `void` - -Retrieve the current redo stack which consists of operations that could be undone - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:691](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L691) - -___ - -### getViewportCenter - -• **getViewportCenter**: () => `PointLike` - -#### Type declaration - -▸ (): `PointLike` - -Return the center of viewport, e.g. for a 500 * 500 canvas, its center is [250, 250]. - -##### Returns - -`PointLike` - -#### Defined in - -[types/graph.ts:381](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L381) - -___ - -### getZoom - -• **getZoom**: () => `number` - -#### Type declaration - -▸ (): `number` - -Return the current zoom level of camera. - -##### Returns - -`number` - -current zoom - -#### Defined in - -[types/graph.ts:319](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L319) - -___ - -### hooks - -• **hooks**: `Hooks` - -#### Defined in - -[types/graph.ts:26](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L26) - -___ - -### isHistoryEnabled - -• **isHistoryEnabled**: () => `void` - -#### Type declaration - -▸ (): `void` - -Determine if history (redo/undo) is enabled. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:667](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L667) - -___ - -### layout - -• **layout**: (`options?`: [`LayoutOptions`](../modules/types.en.md#layoutoptions), `disableAnimate?`: `boolean`) => `Promise`<`void`\> - -#### Type declaration - -▸ (`options?`, `disableAnimate?`): `Promise`<`void`\> - -Layout the graph (with current configurations if cfg is not assigned). - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `options?` | [`LayoutOptions`](../modules/types.en.md#layoutoptions) | -| `disableAnimate?` | `boolean` | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:577](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L577) - -___ - -### pauseStacking - -• **pauseStacking**: () => `void` - -#### Type declaration - -▸ (): `void` - -Pause stacking operation. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:678](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L678) - -___ - -### pushStack - -• **pushStack**: (`cmd`: `Command`[], `stackType`: ``"redo"`` \| ``"undo"``) => `void` - -#### Type declaration - -▸ (`cmd`, `stackType`): `void` - -Push the operation(s) onto the specified stack - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `cmd` | `Command`[] | commands to be pushed | -| `stackType` | ``"redo"`` \| ``"undo"`` | undo/redo stack | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:674](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L674) - -___ - -### redo - -• **redo**: () => `void` - -#### Type declaration - -▸ (): `void` - -Restore the operation that was last n reverted on the graph. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:714](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L714) - -___ - -### rendererType - -• **rendererType**: `RendererName` - -#### Defined in - -[types/graph.ts:31](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L31) - -___ - -### resumeStacking - -• **resumeStacking**: () => `void` - -#### Type declaration - -▸ (): `void` - -Resume stacking operation. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:682](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L682) - -___ - -### rotate - -• **rotate**: (`angle`: `number`, `center?`: `Point`, `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`angle`, `center?`, `effectTiming?`): `Promise`<`void`\> - -Rotate the graph with a relative angle in clockwise. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `angle` | `number` | -| `center?` | `Point` | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:348](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L348) - -___ - -### rotateTo - -• **rotateTo**: (`toAngle`: `number`, `center?`: `Point`, `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`toAngle`, `center?`, `effectTiming?`): `Promise`<`void`\> - -Rotate the graph to an absolute angle in clockwise. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `toAngle` | `number` | -| `center?` | `Point` | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:359](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L359) - -___ - -### startBatch - -• **startBatch**: () => `void` - -#### Type declaration - -▸ (): `void` - -Begin a batch operation. -Any operations performed between `startBatch` and `stopBatch` are grouped together. -treated as a single operation when undoing or redoing. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:731](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L731) - -___ - -### stopBatch - -• **stopBatch**: () => `void` - -#### Type declaration - -▸ (): `void` - -End a batch operation. -Any operations performed between `startBatch` and `stopBatch` are grouped together. -treated as a single operation when undoing or redoing. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:738](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L738) - -___ - -### stopLayout - -• **stopLayout**: () => `void` - -#### Type declaration - -▸ (): `void` - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:578](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L578) - -___ - -### stopTransformTransition - -• **stopTransformTransition**: () => `void` - -#### Type declaration - -▸ (): `void` - -Stop the current transition of transform immediately. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:377](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L377) - -___ - -### transform - -• **transform**: (`options`: `GraphTransformOptions`, `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`options`, `effectTiming?`): `Promise`<`void`\> - -Transform the graph with a CSS-Transform-like syntax. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `options` | `GraphTransformOptions` | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:370](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L370) - -___ - -### transientCanvas - -• **transientCanvas**: `Canvas` - -#### Defined in - -[types/graph.ts:28](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L28) - -___ - -### translate - -• **translate**: (`distance`: `Partial`<{ `dx`: `number` ; `dy`: `number` ; `dz`: `number` }\>, `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`distance`, `effectTiming?`): `Promise`<`void`\> - -Move the graph with a relative vector. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `distance` | `Partial`<{ `dx`: `number` ; `dy`: `number` ; `dz`: `number` }\> | - | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:298](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L298) - -___ - -### translateTo - -• **translateTo**: (`point`: `PointLike`, `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`point`, `effectTiming?`): `Promise`<`void`\> - -Move the graph and align to a point. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `point` | `PointLike` | position on the canvas to align | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:311](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L311) - -___ - -### undo - -• **undo**: () => `void` - -#### Type declaration - -▸ (): `void` - -Revert the last n operation(s) on the graph. - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:708](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L708) - -___ - -### updateSpecification - -• **updateSpecification**: (`spec`: [`Specification`](types-Specification.en.md)<`B`, `T`\>) => [`Specification`](types-Specification.en.md)<`B`, `T`\> - -#### Type declaration - -▸ (`spec`): [`Specification`](types-Specification.en.md)<`B`, `T`\> - -Update the specs (configurations). - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `spec` | [`Specification`](types-Specification.en.md)<`B`, `T`\> | - -##### Returns - -[`Specification`](types-Specification.en.md)<`B`, `T`\> - -#### Defined in - -[types/graph.ts:43](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L43) - -___ - -### updateTheme - -• **updateTheme**: (`theme`: `ThemeOptionsOf`<`T`\>) => `void` - -#### Type declaration - -▸ (`theme`): `void` - -Update the theme specs (configurations). - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `theme` | `ThemeOptionsOf`<`T`\> | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:47](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L47) - -___ - -### zoom - -• **zoom**: (`ratio`: `number`, `center?`: `Point`, `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`ratio`, `center?`, `effectTiming?`): `Promise`<`void`\> - -Zoom the graph with a relative ratio. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ratio` | `number` | relative ratio to zoom | -| `center?` | `Point` | zoom center | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:326](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L326) - -___ - -### zoomTo - -• **zoomTo**: (`toRatio`: `number`, `center?`: `Point`, `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`toRatio`, `center?`, `effectTiming?`): `Promise`<`void`\> - -Zoom the graph to a specified ratio. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `toRatio` | `number` | specified ratio | -| `center?` | `Point` | zoom center | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:337](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L337) - -## Tree - -### collapse - -• **collapse**: (`ids`: `ID` \| `ID`[], `disableAnimate?`: `boolean`, `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`ids`, `disableAnimate?`, `stack?`): `void` - -Collapse sub tree(s). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | Root id(s) of the sub trees. | -| `disableAnimate?` | `boolean` | Whether disable the animations for this operation. | -| `stack?` | `boolean` | Whether push this operation to stack. | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:763](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L763) - -___ - -### expand - -• **expand**: (`ids`: `ID` \| `ID`[], `disableAnimate?`: `boolean`, `stack?`: `boolean`) => `void` - -#### Type declaration - -▸ (`ids`, `disableAnimate?`, `stack?`): `void` - -Expand sub tree(s). - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `ids` | `ID` \| `ID`[] | Root id(s) of the sub trees. | -| `disableAnimate?` | `boolean` | Whether disable the animations for this operation. | -| `stack?` | `boolean` | Whether push this operation to stack. | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:772](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L772) - -## View - -### fitCenter - -• **fitCenter**: (`effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`effectTiming?`): `Promise`<`void`\> - -Fit the graph center to the view center. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:403](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L403) - -___ - -### fitView - -• **fitView**: (`options?`: { `padding`: `Padding` ; `rules`: `FitViewRules` }, `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`options?`, `effectTiming?`): `Promise`<`void`\> - -Fit the graph content to the view. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `options?` | `Object` | - | -| `options.padding` | `Padding` | padding while fitting | -| `options.rules` | `FitViewRules` | rules for fitting | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:390](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L390) - -___ - -### focusItem - -• **focusItem**: (`id`: `ID` \| `ID`[], `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\>) => `Promise`<`void`\> - -#### Type declaration - -▸ (`id`, `effectTiming?`): `Promise`<`void`\> - -Move the graph to make the item align the view center. - -##### Parameters - -| Name | Type | Description | -| :------ | :------ | :------ | -| `id` | `ID` \| `ID`[] | - | -| `effectTiming?` | `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> | animation configurations | - -##### Returns - -`Promise`<`void`\> - -#### Defined in - -[types/graph.ts:410](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L410) - -___ - -### getCanvasByClient - -• **getCanvasByClient**: (`ClientPoint`: `Point`) => `Point` - -#### Type declaration - -▸ (`ClientPoint`): `Point` - -Get the rendering coordinate according to the browser coordinate. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `ClientPoint` | `Point` | - -##### Returns - -`Point` - -rendering coordinate - -#### Defined in - -[types/graph.ts:457](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L457) - -___ - -### getCanvasByViewport - -• **getCanvasByViewport**: (`viewportPoint`: `Point`) => `Point` - -#### Type declaration - -▸ (`viewportPoint`): `Point` - -Get the rendering coordinate according to the canvas dom (viewport) coordinate. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `viewportPoint` | `Point` | - -##### Returns - -`Point` - -canvas dom (viewport) coordinate - -#### Defined in - -[types/graph.ts:433](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L433) - -___ - -### getClientByCanvas - -• **getClientByCanvas**: (`canvasPoint`: `Point`) => `Point` - -#### Type declaration - -▸ (`canvasPoint`): `Point` - -Get the browser coordinate according to the rendering coordinate. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `canvasPoint` | `Point` | - -##### Returns - -`Point` - -browser coordinate - -#### Defined in - -[types/graph.ts:449](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L449) - -___ - -### getSize - -• **getSize**: () => `number`[] - -#### Type declaration - -▸ (): `number`[] - -Get the size of the graph canvas. - -##### Returns - -`number`[] - -[width, height] - -#### Defined in - -[types/graph.ts:419](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L419) - -___ - -### getViewportByCanvas - -• **getViewportByCanvas**: (`canvasPoint`: `Point`) => `Point` - -#### Type declaration - -▸ (`canvasPoint`): `Point` - -Get the canvas dom (viewport) coordinate according to the rendering coordinate. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `canvasPoint` | `Point` | - -##### Returns - -`Point` - -rendering coordinate - -#### Defined in - -[types/graph.ts:441](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L441) - -___ - -### setSize - -• **setSize**: (`size`: `number`[]) => `void` - -#### Type declaration - -▸ (`size`): `void` - -Set the size for the graph canvas. - -##### Parameters - -| Name | Type | -| :------ | :------ | -| `size` | `number`[] | - -##### Returns - -`void` - -#### Defined in - -[types/graph.ts:425](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/graph.ts#L425) diff --git a/packages/site/docs/apis/interfaces/types-IGraph.zh.md b/packages/site/docs/apis/interfaces/types-IGraph.zh.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/site/docs/apis/interfaces/types-NodeEncode.en.md b/packages/site/docs/apis/interfaces/types-NodeEncode.en.md deleted file mode 100644 index 058adc1a54..0000000000 --- a/packages/site/docs/apis/interfaces/types-NodeEncode.en.md +++ /dev/null @@ -1,133 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [types](../modules/types.en.md) / NodeEncode - -# Interface: NodeEncode - -[types](../modules/types.en.md).NodeEncode - -## Hierarchy - -- `NodeShapesEncode` - - ↳ **`NodeEncode`** - -## Properties - -### anchorShapes - -• `Optional` **anchorShapes**: `Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\>[]\> \| `ShapeAttrEncode`[] - -#### Inherited from - -NodeShapesEncode.anchorShapes - -#### Defined in - -[types/node.ts:156](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L156) - -___ - -### animates - -• `Optional` **animates**: `IAnimates` - -#### Defined in - -[types/node.ts:161](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L161) - -___ - -### badgeShapes - -• `Optional` **badgeShapes**: `Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\>[]\> \| `ShapeAttrEncode`[] - -#### Inherited from - -NodeShapesEncode.badgeShapes - -#### Defined in - -[types/node.ts:157](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L157) - -___ - -### iconShape - -• `Optional` **iconShape**: `ShapeAttrEncode` \| `Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\>\> - -#### Inherited from - -NodeShapesEncode.iconShape - -#### Defined in - -[types/item.ts:89](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/item.ts#L89) - -___ - -### keyShape - -• `Optional` **keyShape**: `ShapeAttrEncode` \| `Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\>\> - -#### Inherited from - -NodeShapesEncode.keyShape - -#### Defined in - -[types/item.ts:88](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/item.ts#L88) - -___ - -### labelBackgroundShape - -• `Optional` **labelBackgroundShape**: `Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\>[]\> \| `ShapeAttrEncode`[] - -#### Inherited from - -NodeShapesEncode.labelBackgroundShape - -#### Defined in - -[types/node.ts:155](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L155) - -___ - -### labelShape - -• `Optional` **labelShape**: `Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `animates?`: `IAnimates` ; `lod?`: `number` ; `visible?`: `boolean` }\>\> \| `NodeLabelShapeAttrEncode` - -#### Inherited from - -NodeShapesEncode.labelShape - -#### Defined in - -[types/node.ts:154](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L154) - -___ - -### otherShapes - -• `Optional` **otherShapes**: `Object` - -#### Index signature - -▪ [shapeId: `string`]: { `[shapeAtrr: string]`: `unknown` \| `Encode`<`unknown`\>; `animates`: `IAnimates` \| `Encode`<`IAnimates`\> } - -#### Inherited from - -NodeShapesEncode.otherShapes - -#### Defined in - -[types/item.ts:90](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/item.ts#L90) - -___ - -### type - -• `Optional` **type**: `string` \| `Encode`<`string`\> - -#### Defined in - -[types/node.ts:160](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L160) diff --git a/packages/site/docs/apis/interfaces/types-NodeEncode.zh.md b/packages/site/docs/apis/interfaces/types-NodeEncode.zh.md deleted file mode 100644 index 6dc17ca4e0..0000000000 --- a/packages/site/docs/apis/interfaces/types-NodeEncode.zh.md +++ /dev/null @@ -1,133 +0,0 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / [类型](../modules/types.zh.md ) / 节点编码 - - # 接口:NodeEncode - - [类型](../modules/types.zh.md).NodeEncode - - ## 等级制度 - - - `NodeShapesEncode` - - ↳ **`节点编码`** - - ## 特性 - - ### 锚定形状 - - • `可选` **anchorShapes**:`编码`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\>[]\> \| `ShapeAttrEncode`[] - - ####继承自 - - NodeShapesEncode.anchorShapes - - #### 定义于 - - [类型/node.ts:156](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L156) - - ___ - - ### 动画 - - • `可选` **动画**:`IAnimates` - - #### 定义于 - - [类型/node.ts:161](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L161) - - ___ - - ### 徽章形状 - - • `可选` **badgeShapes**:`Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\>[]\> \| `ShapeAttrEncode`[] - - ####继承自 - - NodeShapesEncode.badgeShapes - - #### 定义于 - - [类型/node.ts:157](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L157) - - ___ - - ### 图标形状 - - • `可选` **iconShape**:`ShapeAttrEncode` \| `Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps ` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\>\> - - ####继承自 - - NodeShapesEncode.iconShape - - #### 定义于 - - [类型/item.ts:89](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/item.ts#L89) - - ___ - - ### keyShape - - • `可选` **keyShape**:`ShapeAttrEncode` \| `Encode`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps ` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\>\> - - ####继承自 - - NodeShapesEncode.keyShape - - #### 定义于 - - [类型/item.ts:88](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/item.ts#L88) - - ___ - - ### 标签背景形状 - - • `可选` **labelBackgroundShape**:`编码`<`Partial`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\>[]\> \| `ShapeAttrEncode`[] - - ####继承自 - - NodeShapesEncode.labelBackgroundShape - - #### 定义于 - - [类型/node.ts:155](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L155) - - ___ - - ### 标签形状 - - • `可选` **labelShape**:`编码`<`部分`<`CircleStyleProps` & `RectStyleProps` & `EllipseStyleProps` & `PolygonStyleProps` & `LineStyleProps` & `PolylineStyleProps` & `TextStyleProps` & `ImageStyleProps` & `PathStyleProps` & `SphereGeometryProps` & `CubeGeometryProps` & `PlaneGeometryProps` & { `动画?`: `IAnimates` ; `lod?`: `数字`; `可见?`: `布尔值` }\>\> \| `NodeLabelShapeAttrEncode` - - ####继承自 - - NodeShapesEncode.labelShape - - #### 定义于 - - [类型/node.ts:154](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L154) - - ___ - - ### 其他形状 - - • `可选` **otherShapes**:`对象` - - #### 索引签名 - - ▪ [shapeId: `string`]: { `[shapeAtrr: string]`: `未知` \| `编码`<`未知`\>; `animates`: `IAnimates` \| `编码`<`IAnimates`\> } - - ####继承自 - - NodeShapesEncode.otherShapes - - #### 定义于 - - [类型/item.ts:90](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/item.ts#L90) - - ___ - - ### 类型 - - • `可选` **类型**:`字符串` \| `编码`<`字符串`\> - - #### 定义于 - - [类型/node.ts:160](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L160) \ No newline at end of file diff --git a/packages/site/docs/apis/interfaces/types-Specification.en.md b/packages/site/docs/apis/interfaces/types-Specification.en.md deleted file mode 100644 index 807df8d7e9..0000000000 --- a/packages/site/docs/apis/interfaces/types-Specification.en.md +++ /dev/null @@ -1,304 +0,0 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / [types](../modules/types.en.md) / Specification - -# Interface: Specification - -[types](../modules/types.en.md).Specification - -## Type parameters - -| Name | Type | -| :------ | :------ | -| `B` | extends `BehaviorRegistry` | -| `T` | extends `ThemeRegistry` | - -## Properties - -### animate - -• `Optional` **animate**: `AnimateCfg` - -global animate - -#### Defined in - -[types/spec.ts:113](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L113) - -___ - -### autoFit - -• `Optional` **autoFit**: ``"center"`` \| ``"view"`` \| { `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> ; `padding?`: `Padding` ; `rules?`: `FitViewRules` ; `type`: ``"view"`` } \| { `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> ; `type`: ``"center"`` } \| { `alignment?`: `GraphAlignment` ; `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, ``"duration"`` \| ``"easing"`` \| ``"easingFunction"``\>\> ; `position`: `Point` ; `type`: ``"position"`` } - -#### Defined in - -[types/spec.ts:49](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L49) - -___ - -### backgroundCanvas - -• `Optional` **backgroundCanvas**: `Canvas` - -#### Defined in - -[types/spec.ts:36](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L36) - -___ - -### canvas - -• `Optional` **canvas**: `Canvas` - -#### Defined in - -[types/spec.ts:37](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L37) - -___ - -### combo - -• `Optional` **combo**: `ComboEncode` \| (`data`: [`ComboModel`](../modules/types.en.md#combomodel)) => [`ComboDisplayModel`](../modules/types.en.md#combodisplaymodel) - -#### Defined in - -[types/spec.ts:83](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L83) - -___ - -### comboState - -• `Optional` **comboState**: `Object` - -#### Index signature - -▪ [stateName: `string`]: (`data`: [`ComboModel`](../modules/types.en.md#combomodel)) => [`ComboDisplayModel`](../modules/types.en.md#combodisplaymodel) \| `ComboShapesEncode` - -#### Defined in - -[types/spec.ts:96](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L96) - -___ - -### container - -• `Optional` **container**: `string` \| `HTMLElement` - -#### Defined in - -[types/spec.ts:35](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L35) - -___ - -### data - -• `Optional` **data**: `DataConfig` - -data - -#### Defined in - -[types/spec.ts:71](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L71) - -___ - -### edge - -• `Optional` **edge**: `EdgeEncode` \| (`data`: [`EdgeModel`](../modules/types.en.md#edgemodel)) => [`EdgeDisplayModel`](../modules/types.en.md#edgedisplaymodel) - -#### Defined in - -[types/spec.ts:82](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L82) - -___ - -### edgeState - -• `Optional` **edgeState**: `Object` - -#### Index signature - -▪ [stateName: `string`]: (`data`: [`EdgeModel`](../modules/types.en.md#edgemodel)) => [`EdgeDisplayModel`](../modules/types.en.md#edgedisplaymodel) \| `EdgeShapesEncode` - -#### Defined in - -[types/spec.ts:91](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L91) - -___ - -### enableStack - -• `Optional` **enableStack**: `boolean` - -#### Defined in - -[types/spec.ts:128](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L128) - -___ - -### height - -• `Optional` **height**: `number` - -#### Defined in - -[types/spec.ts:40](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L40) - -___ - -### layout - -• `Optional` **layout**: [`LayoutOptions`](../modules/types.en.md#layoutoptions) \| [`LayoutOptions`](../modules/types.en.md#layoutoptions)[] - -layout - -#### Defined in - -[types/spec.ts:103](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L103) - -___ - -### mode - -• `Optional` **mode**: `string` - -#### Defined in - -[types/spec.ts:110](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L110) - -___ - -### modes - -• `Optional` **modes**: `Object` - -interaction - -#### Index signature - -▪ [mode: `string`]: `BehaviorOptionsOf`<`B`\>[] - -#### Defined in - -[types/spec.ts:106](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L106) - -___ - -### node - -• `Optional` **node**: [`NodeEncode`](types-NodeEncode.en.md) \| (`data`: [`NodeModel`](../modules/types.en.md#nodemodel)) => [`NodeDisplayModel`](../modules/types.en.md#nodedisplaymodel) - -item - -#### Defined in - -[types/spec.ts:81](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L81) - -___ - -### nodeState - -• `Optional` **nodeState**: `Object` - -item state styles - -#### Index signature - -▪ [stateName: `string`]: (`data`: [`NodeModel`](../modules/types.en.md#nodemodel)) => [`NodeDisplayModel`](../modules/types.en.md#nodedisplaymodel) \| `NodeShapesEncode` - -#### Defined in - -[types/spec.ts:86](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L86) - -___ - -### optimizeThreshold - -• `Optional` **optimizeThreshold**: `number` - -#### Defined in - -[types/spec.ts:68](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L68) - -___ - -### plugins - -• `Optional` **plugins**: (`string` \| { `[cfgName: string]`: `unknown`; `key`: `string` ; `type`: `string` })[] - -free plugins - -#### Defined in - -[types/spec.ts:116](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L116) - -___ - -### renderer - -• `Optional` **renderer**: `RendererName` \| { `headless`: `boolean` ; `pixelRatio`: `number` ; `type`: `RendererName` } - -#### Defined in - -[types/spec.ts:41](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L41) - -___ - -### stackCfg - -• `Optional` **stackCfg**: `StackCfg` - -#### Defined in - -[types/spec.ts:130](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L130) - -___ - -### theme - -• `Optional` **theme**: `ThemeOptionsOf`<`T`\> - -theme - -#### Defined in - -[types/spec.ts:126](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L126) - -___ - -### transform - -• `Optional` **transform**: `string`[] \| { `[param: string]`: `unknown`; `type`: `string` }[] \| `TransformerFn`[] - -#### Defined in - -[types/spec.ts:72](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L72) - -___ - -### transientCanvas - -• `Optional` **transientCanvas**: `Canvas` - -#### Defined in - -[types/spec.ts:38](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L38) - -___ - -### width - -• `Optional` **width**: `number` - -#### Defined in - -[types/spec.ts:39](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L39) - -___ - -### zoom - -• `Optional` **zoom**: `number` - -#### Defined in - -[types/spec.ts:48](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/spec.ts#L48) diff --git a/packages/site/docs/apis/interfaces/types-Specification.zh.md b/packages/site/docs/apis/interfaces/types-Specification.zh.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/site/docs/apis/modules.en.md b/packages/site/docs/apis/modules.en.md index 2d5110b974..fcec9d14ab 100644 --- a/packages/site/docs/apis/modules.en.md +++ b/packages/site/docs/apis/modules.en.md @@ -1,11 +1,15 @@ -[Overview - v5.0.0-alpha.9](README.en.md) / Modules +--- +title: modules +--- -# Overview - v5.0.0-alpha.9 +[Overview - v5.0.0-alpha.9](README.en.md) / Modules ## Modules - [behaviors](modules/behaviors.en.md) - [graph](modules/graph.en.md) +- [item](modules/item.en.md) +- [layout](modules/layout.en.md) - [plugins](modules/plugins.en.md) - [types](modules/types.en.md) - [util](modules/util.en.md) diff --git a/packages/site/docs/apis/modules.zh.md b/packages/site/docs/apis/modules.zh.md index 344ddb87d6..8100cf8d30 100644 --- a/packages/site/docs/apis/modules.zh.md +++ b/packages/site/docs/apis/modules.zh.md @@ -1,11 +1,15 @@ -[概述 - v5.0.0-alpha.9](README.zh.md) / 模块 +--- +title: modules +--- -# 概述 - v5.0.0-alpha.9 +[概述 - v5.0.0-alpha.9](README.zh.md) / 模块 -## 模块 + ## 模块 -- [行为](modules/behaviors.zh.md) -- [graph](modules/graph.zh.md) -- [插件](modules/plugins.zh.md) -- [类型](modules/types.zh.md) -- [util](modules/util.zh.md) + - [行为](modules/behaviors.zh.md) + - [图](modules/graph.zh.md) + - [项目](modules/item.zh.md) + - [布局](modules/layout.zh.md) + - [插件](modules/plugins.zh.md) + - [类型](modules/types.zh.md) + - [util](modules/util.zh.md) \ No newline at end of file diff --git a/packages/site/docs/apis/modules/behaviors.en.md b/packages/site/docs/apis/modules/behaviors.en.md index 0cad1ef57e..428eb03ce6 100644 --- a/packages/site/docs/apis/modules/behaviors.en.md +++ b/packages/site/docs/apis/modules/behaviors.en.md @@ -1,8 +1,34 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / behaviors +--- +title: behaviors +--- -# Module: behaviors +[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / behaviors ## Interfaces -- [ActivateRelationsOptions](../interfaces/behaviors-ActivateRelationsOptions.en.md) -- [BrushSelectOptions](../interfaces/behaviors-BrushSelectOptions.en.md) +- [ActivateRelationsOptions](../interfaces/behaviors/ActivateRelationsOptions.en.md) +- [BrushSelectOptions](../interfaces/behaviors/BrushSelectOptions.en.md) +- [CollapseExpandComboOptions](../interfaces/behaviors/CollapseExpandComboOptions.en.md) +- [DragCanvasOptions](../interfaces/behaviors/DragCanvasOptions.en.md) +- [DragComboOptions](../interfaces/behaviors/DragComboOptions.en.md) +- [DragNodeOptions](../interfaces/behaviors/DragNodeOptions.en.md) +- [HoverActivateOptions](../interfaces/behaviors/HoverActivateOptions.en.md) +- [IG6GraphEvent](../interfaces/behaviors/IG6GraphEvent.en.md) +- [Options](../interfaces/behaviors/Options.en.md) +- [OrbitCanvas3DOptions](../interfaces/behaviors/OrbitCanvas3DOptions.en.md) +- [RotateCanvas3DOptions](../interfaces/behaviors/RotateCanvas3DOptions.en.md) +- [TrackCanvas3DOptions](../interfaces/behaviors/TrackCanvas3DOptions.en.md) +- [ZoomCanvas3DOptions](../interfaces/behaviors/ZoomCanvas3DOptions.en.md) +- [ZoomCanvasOptions](../interfaces/behaviors/ZoomCanvasOptions.en.md) + +## Type Aliases + +### ICanvasEventType + +Ƭ **ICanvasEventType**: \`${CANVAS\_EVENT\_TYPE}\` + +Event type union + +#### Defined in + +[packages/g6/src/types/event.ts:38](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/event.ts#L38) diff --git a/packages/site/docs/apis/modules/behaviors.zh.md b/packages/site/docs/apis/modules/behaviors.zh.md index 41aee31871..888b40ba47 100644 --- a/packages/site/docs/apis/modules/behaviors.zh.md +++ b/packages/site/docs/apis/modules/behaviors.zh.md @@ -1,8 +1,34 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / 行为 +--- +title: behaviors +--- - # 模块:行为 +[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / 行为 ## 接口 - - [ActivateRelationsOptions](../interfaces/behaviors-ActivateRelationsOptions.zh.md) - - [BrushSelectOptions](../interfaces/behaviors-BrushSelectOptions.zh.md) \ No newline at end of file + - [ActivateRelationsOptions](../interfaces/behaviors/ActivateRelationsOptions.zh.md) + - [BrushSelectOptions](../interfaces/behaviors/BrushSelectOptions.zh.md) + - [CollapseExpandComboOptions](../interfaces/behaviors/CollapseExpandComboOptions.zh.md) + - [DragCanvasOptions](../interfaces/behaviors/DragCanvasOptions.zh.md) + - [DragComboOptions](../interfaces/behaviors/DragComboOptions.zh.md) + - [DragNodeOptions](../interfaces/behaviors/DragNodeOptions.zh.md) + - [HoverActivateOptions](../interfaces/behaviors/HoverActivateOptions.zh.md) + - [IG6GraphEvent](../interfaces/behaviors/IG6GraphEvent.zh.md) + - [选项](../interfaces/behaviors/Options.zh.md) + - [OrbitCanvas3DOptions](../interfaces/behaviors/OrbitCanvas3DOptions.zh.md) + - [RotateCanvas3DOptions](../interfaces/behaviors/RotateCanvas3DOptions.zh.md) + - [TrackCanvas3DOptions](../interfaces/behaviors/TrackCanvas3DOptions.zh.md) + - [ZoomCanvas3DOptions](../interfaces/behaviors/ZoomCanvas3DOptions.zh.md) + - [ZoomCanvasOptions](../interfaces/behaviors/ZoomCanvasOptions.zh.md) + + ## 输入别名 + + ### ICanvasEventType + + Ƭ **ICanvasEventType**: \`${CANVAS\_EVENT\_TYPE}\` + + 事件类型联合 + + #### 定义于 + + [packages/g6/src/types/event.ts:38](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/types/event.ts#L38) \ No newline at end of file diff --git a/packages/site/docs/apis/modules/graph.en.md b/packages/site/docs/apis/modules/graph.en.md index 14791bcec7..a3d77fcd21 100644 --- a/packages/site/docs/apis/modules/graph.en.md +++ b/packages/site/docs/apis/modules/graph.en.md @@ -1,10 +1,18 @@ +--- +title: graph +--- + [Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / graph -# Module: graph +## Interfaces + +- [GraphData](../interfaces/graph/GraphData.en.md) +- [IGraph](../interfaces/graph/IGraph.en.md) +- [Specification](../interfaces/graph/Specification.en.md) ## Classes -- [Graph](../classes/graph-Graph.en.md) +- [Graph](../classes/graph/Graph.en.md) ## Variables @@ -16,10 +24,21 @@ | Name | Type | | :------ | :------ | -| `extend` | (`GraphClass`: typeof [`Graph`](../classes/graph-Graph.en.md), `extendLibrary`: { `behaviors?`: `B1` ; `edges?`: `any` ; `nodes?`: `any` ; `themeSolvers?`: `T1` }) => typeof [`Graph`](../classes/graph-Graph.en.md) | +| `extend` | (`GraphClass`: typeof [`Graph`](../classes/graph/Graph.en.md), `extendLibrary`: { `behaviors?`: `B1` ; `edges?`: `EdgeRegistry` ; `layouts?`: `LayoutRegistry` ; `nodes?`: `NodeRegistry` ; `plugins?`: `PluginRegistry` ; `themeSolvers?`: `T1` }) => typeof [`Graph`](../classes/graph/Graph.en.md) | +| `getArrowPath` | (`type`: `ArrowType`, `width`: `number`, `height`: `number`) => `string` | +| `getEdgesBetween` | (`graph`: [`IGraph`](../interfaces/graph/IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\>, `ids`: `ID`[]) => `ID`[] | +| `graphComboTreeDfs` | (`graph`: [`IGraph`](../interfaces/graph/IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\>, `nodes`: `NodeUserModel`[], `fn`: `any`, `mode`: ``"TB"`` \| ``"BT"``) => `void` | +| `graphCoreTreeDfs` | (`graphCore`: `GraphCore`, `nodes`: `NodeUserModel`[], `fn`: `any`, `mode`: ``"TB"`` \| ``"BT"``, `treeKey`: `string`, `stopFns`: { `stopAllFn?`: (`node`: `NodeUserModel`) => `boolean` ; `stopBranchFn?`: (`node`: `NodeUserModel`) => `boolean` }) => `void` | +| `graphData2TreeData` | (`nodeMap`: { `[id: string]`: `any`; }, `graphData`: [`GraphData`](../interfaces/graph/GraphData.en.md), `propRootIds`: `ID`[]) => `any`[] | | `isEncode` | (`value`: `any`) => value is Encode | +| `isSucceed` | (`graph`: `any`, `testParent`: `any`, `testSucceed`: `any`) => `boolean` | | `mock` | (`nodeCount`: `number`) => { `circle`: (`centerId`: `string`) => { `edges`: `any`[] ; `nodes`: { `data`: {} = {}; `id`: `string` }[] } ; `random`: (`ratio`: `number`) => { `edges`: `any`[] ; `nodes`: { `data`: {} = {}; `id`: `string` }[] } } | +| `traverse` | (`treeData`: `any`, `callback`: `any`) => `void` | +| `traverseAncestors` | (`graphCore`: `any`, `nodes`: `any`, `fn`: `any`) => `void` | +| `traverseAncestorsAndSucceeds` | (`graph`: [`IGraph`](../interfaces/graph/IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\>, `graphCore`: `GraphCore`, `nodes`: `NodeUserModel`[], `fn`: `any`, `mode`: ``"TB"`` \| ``"BT"``) => `void` | +| `traverseGraphAncestors` | (`graph`: [`IGraph`](../interfaces/graph/IGraph.en.md)<`BehaviorRegistry`, `ThemeRegistry`\>, `nodes`: `NodeUserModel`[], `fn`: `any`) => `void` | +| `treeData2GraphData` | (`treeData`: `TreeData`<[`NodeUserModelData`](../interfaces/item/NodeUserModelData.en.md)\> \| `TreeData`<[`NodeUserModelData`](../interfaces/item/NodeUserModelData.en.md)\>[]) => { `combos`: `any`[] = []; `edges`: `any`[] = []; `nodes`: `any`[] = [] } | #### Defined in -[util/index.ts:4](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/util/index.ts#L4) +[packages/g6/src/util/index.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/util/index.ts#L18) diff --git a/packages/site/docs/apis/modules/graph.zh.md b/packages/site/docs/apis/modules/graph.zh.md index 67737519c0..6ca9c1adbd 100644 --- a/packages/site/docs/apis/modules/graph.zh.md +++ b/packages/site/docs/apis/modules/graph.zh.md @@ -1,10 +1,18 @@ +--- +title: graph +--- + [概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / 图 - # 模块:图 + ## 接口 + + - [GraphData](../interfaces/graph/GraphData.zh.md) + - [IGraph](../interfaces/graph/IGraph.zh.md) + - [规范](../interfaces/graph/Specification.zh.md) ## 课程 - - [图](../classes/graph-Graph.zh.md) + - [图](../classes/graph/Graph.zh.md) ## 变量 @@ -16,10 +24,21 @@ | 名称 | 类型 | | :------ | :------ | - | `扩展` | (`GraphClass`: typeof [`Graph`](../classes/graph-Graph.zh.md), `extendLibrary`: { `行为?`: `B1` ; `边?`:`任何`;`节点?`:`任何`;`themeSolvers?`:`T1` }) => typeof [`Graph`](../classes/graph-Graph.zh.md) | + | `扩展` | (`GraphClass`: typeof [`Graph`](../classes/graph/Graph.zh.md), `extendLibrary`: { `行为?`: `B1` ; `edges?`: `EdgeRegistry` ; `layouts?`: `LayoutRegistry` ; `nodes?`: `NodeRegistry` ; `plugins?`: `PluginRegistry` ; `themeSolvers?`: `T1` }) => typeof [ `图`](../classes/graph/Graph.zh.md) | + | `getArrowPath` | (`type`: `ArrowType`, `width`: `number`, `height`: `number`) => `string` | + | `getEdgesBetween` | (`graph`: [`IGraph`](../interfaces/graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>, `ids`: `ID`[]) => `ID` []| + | `graphComboTreeDfs` | (`graph`: [`IGraph`](../interfaces/graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>, `nodes`: `NodeUserModel`[], `fn`: ` 任何`、`模式`:``"TB"`` \| ``"BT"``) => `void` | + | `graphCoreTreeDfs` | (`graphCore`: `GraphCore`, `nodes`: `NodeUserModel`[], `fn`: `any`, `mode`: ``"TB"`` \| ``"BT"``, `treeKey `: `string`, `stopFns`: { `stopAllFn?`: (`node`: `NodeUserModel`) => `boolean` ; `stopBranchFn?`: (`node`: `NodeUserModel`) => `boolean` }) => `无效` | + | `graphData2TreeData` | (`nodeMap`: { `[id: string]`: `any`; }, `graphData`: [`GraphData`](../interfaces/graph/GraphData.zh.md), `propRootIds`: `ID `[]) => `任何`[] | | `isEncode` | (`value`: `any`) => 值为 Encode | + | `是成功` | (`graph`: `any`, `testParent`: `any`, `testSucceed`: `any`) => `boolean` | | `模拟` | (`nodeCount`: `number`) => { `circle`: (`centerId`: `string`) => { `edges`: `any`[] ; `节点`: { `数据`: {} = {}; `id`: `字符串` }[] } ; `random`: (`ratio`: `number`) => { `edges`: `any`[] ; `节点`: { `数据`: {} = {}; `id`: `字符串` }[] } } | + | `遍历` | (`treeData`: `any`, `callback`: `any`) => `void` | + | `遍历祖先` | (`graphCore`: `any`, `nodes`: `any`, `fn`: `any`) => `void` | + | `遍历祖先和成功` | (`graph`: [`IGraph`](../interfaces/graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>, `graphCore`: `GraphCore`, `nodes`: `NodeUserModel` [], `fn`: `any`, `mode`: ``"TB"`` \| ``"BT"``) => `void` | + | `traverseGraphAncestors` | (`graph`: [`IGraph`](../interfaces/graph/IGraph.zh.md)<`BehaviorRegistry`, `ThemeRegistry`\>, `nodes`: `NodeUserModel`[], `fn`: ` 任何`) => `无效` | + | `treeData2GraphData` | (`treeData`: `TreeData`<[`NodeUserModelData`](../interfaces/item/NodeUserModelData.zh.md)\> \| `TreeData`<[`NodeUserModelData`](../interfaces/item/NodeUserModelData .zh.md)\>[]) => { `组合`: `任何`[] = []; `边缘`: `任何`[] = []; `节点`: `任意`[] = [] } | #### 定义于 - [util/index.ts:4](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/util/index.ts#L4) \ No newline at end of file + [packages/g6/src/util/index.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/util/index.ts#L18) \ No newline at end of file diff --git a/packages/site/docs/apis/modules/plugins.en.md b/packages/site/docs/apis/modules/plugins.en.md index 8449ffa446..e36ed7f882 100644 --- a/packages/site/docs/apis/modules/plugins.en.md +++ b/packages/site/docs/apis/modules/plugins.en.md @@ -1,10 +1,16 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / plugins +--- +title: plugins +--- -# Module: plugins +[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / plugins ## Interfaces -- [LegendConfig](../interfaces/plugins-LegendConfig.en.md) -- [MiniMapConfig](../interfaces/plugins-MiniMapConfig.en.md) -- [ToolbarConfig](../interfaces/plugins-ToolbarConfig.en.md) -- [TooltipConfig](../interfaces/plugins-TooltipConfig.en.md) +- [FisheyeConfig](../interfaces/plugins/FisheyeConfig.en.md) +- [GridConfig](../interfaces/plugins/GridConfig.en.md) +- [HistoryConfig](../interfaces/plugins/HistoryConfig.en.md) +- [LegendConfig](../interfaces/plugins/LegendConfig.en.md) +- [MenuConfig](../interfaces/plugins/MenuConfig.en.md) +- [MiniMapConfig](../interfaces/plugins/MiniMapConfig.en.md) +- [ToolbarConfig](../interfaces/plugins/ToolbarConfig.en.md) +- [TooltipConfig](../interfaces/plugins/TooltipConfig.en.md) diff --git a/packages/site/docs/apis/modules/plugins.zh.md b/packages/site/docs/apis/modules/plugins.zh.md index 39922cf0cd..446aad2ed5 100644 --- a/packages/site/docs/apis/modules/plugins.zh.md +++ b/packages/site/docs/apis/modules/plugins.zh.md @@ -1,10 +1,16 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / 插件 +--- +title: plugins +--- - # 模块:插件 +[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / 插件 ## 接口 - - [LegendConfig](../interfaces/plugins-LegendConfig.zh.md) - - [MiniMapConfig](../interfaces/plugins-MiniMapConfig.zh.md) - - [ToolbarConfig](../interfaces/plugins-ToolbarConfig.zh.md) - - [TooltipConfig](../interfaces/plugins-TooltipConfig.zh.md) \ No newline at end of file + - [FisheyeConfig](../interfaces/plugins/FisheyeConfig.zh.md) + - [GridConfig](../interfaces/plugins/GridConfig.zh.md) + - [HistoryConfig](../interfaces/plugins/HistoryConfig.zh.md) + - [LegendConfig](../interfaces/plugins/LegendConfig.zh.md) + - [MenuConfig](../interfaces/plugins/MenuConfig.zh.md) + - [MiniMapConfig](../interfaces/plugins/MiniMapConfig.zh.md) + - [ToolbarConfig](../interfaces/plugins/ToolbarConfig.zh.md) + - [TooltipConfig](../interfaces/plugins/TooltipConfig.zh.md) \ No newline at end of file diff --git a/packages/site/docs/apis/modules/types.en.md b/packages/site/docs/apis/modules/types.en.md index 39ae4743a5..4d92bb3d11 100644 --- a/packages/site/docs/apis/modules/types.en.md +++ b/packages/site/docs/apis/modules/types.en.md @@ -1,231 +1,5 @@ +--- +title: types +--- + [Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / types - -# Module: types - -## Interfaces - -- [GraphData](../interfaces/types-GraphData.en.md) -- [IG6GraphEvent](../interfaces/types-IG6GraphEvent.en.md) -- [IGraph](../interfaces/types-IGraph.en.md) -- [NodeEncode](../interfaces/types-NodeEncode.en.md) -- [Specification](../interfaces/types-Specification.en.md) - -## Functions - -### isImmediatelyInvokedLayoutOptions - -▸ **isImmediatelyInvokedLayoutOptions**(`options`): options is ImmediatelyInvokedLayoutOptions - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `options` | `any` | - -#### Returns - -options is ImmediatelyInvokedLayoutOptions - -#### Defined in - -[types/layout.ts:74](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/layout.ts#L74) - -___ - -### isLayoutWorkerized - -▸ **isLayoutWorkerized**(`options`): `boolean` - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `options` | [`StandardLayoutOptions`](types.en.md#standardlayoutoptions) | - -#### Returns - -`boolean` - -#### Defined in - -[types/layout.ts:80](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/layout.ts#L80) - -## Type Aliases - -### ComboDisplayModel - -Ƭ **ComboDisplayModel**: `GNode`<`ComboDisplayModelData`\> - -Displayed model, only for drawing and not received by users. - -#### Defined in - -[types/combo.ts:153](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/combo.ts#L153) - -___ - -### ComboModel - -Ƭ **ComboModel**: `GNode`<`ComboModelData`\> - -Inner node model, clone and transform from user data. - -#### Defined in - -[types/combo.ts:150](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/combo.ts#L150) - -___ - -### ComboUserModel - -Ƭ **ComboUserModel**: `GNode`<`ComboUserModelData`\> - -User input model. - -#### Defined in - -[types/combo.ts:147](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/combo.ts#L147) - -___ - -### EdgeDisplayModel - -Ƭ **EdgeDisplayModel**: `GEdge`<`EdgeDisplayModelData`\> - -Displayed data, only for drawing and not received by users. - -#### Defined in - -[types/edge.ts:92](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/edge.ts#L92) - -___ - -### EdgeModel - -Ƭ **EdgeModel**: `GEdge`<`EdgeModelData`\> - -Inner node data, clone and transform from user data. - -#### Defined in - -[types/edge.ts:89](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/edge.ts#L89) - -___ - -### EdgeUserModel - -Ƭ **EdgeUserModel**: `GEdge`<`EdgeUserModelData`\> - -User input data. - -#### Defined in - -[types/edge.ts:86](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/edge.ts#L86) - -___ - -### ICombo - -Ƭ **ICombo**: `IItem` - -#### Defined in - -[types/combo.ts:177](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/combo.ts#L177) - -___ - -### IEdge - -Ƭ **IEdge**: `IItem` - -#### Defined in - -[types/edge.ts:122](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/edge.ts#L122) - -___ - -### INode - -Ƭ **INode**: `IItem` - -#### Defined in - -[types/node.ts:174](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L174) - -___ - -### ImmediatelyInvokedLayoutOptions - -Ƭ **ImmediatelyInvokedLayoutOptions**: { `execute`: (`graph`: `GraphCore`, `options?`: `any`) => `Promise`<`LayoutMapping`\> } & `Animatable` - -#### Defined in - -[types/layout.ts:42](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/layout.ts#L42) - -___ - -### LayoutOptions - -Ƭ **LayoutOptions**: [`StandardLayoutOptions`](types.en.md#standardlayoutoptions) \| [`ImmediatelyInvokedLayoutOptions`](types.en.md#immediatelyinvokedlayoutoptions) - -#### Defined in - -[types/layout.ts:70](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/layout.ts#L70) - -___ - -### NodeDisplayModel - -Ƭ **NodeDisplayModel**: `GNode`<`NodeDisplayModelData`\> - -Displayed model, only for drawing and not received by users. - -#### Defined in - -[types/node.ts:144](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L144) - -___ - -### NodeModel - -Ƭ **NodeModel**: `GNode`<[`NodeModelData`](types.en.md#nodemodeldata)\> - -Inner node model, clone and transform from user data. - -#### Defined in - -[types/node.ts:141](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L141) - -___ - -### NodeModelData - -Ƭ **NodeModelData**: `NodeUserModelData` - -Data in inner model. Same format to the user data. - -#### Defined in - -[types/node.ts:84](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L84) - -___ - -### NodeUserModel - -Ƭ **NodeUserModel**: `GNode`<`NodeUserModelData`\> - -User input model. - -#### Defined in - -[types/node.ts:138](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/node.ts#L138) - -___ - -### StandardLayoutOptions - -Ƭ **StandardLayoutOptions**: `CircularLayout` \| `RandomLayout` \| `ConcentricLayout` \| `GridLayout` \| `MDSLayout` \| `RadialLayout` \| `FruchtermanLayout` \| `D3ForceLayout` \| `ForceLayout` \| `ForceAtlas2` \| `CustomLayout` & `Animatable` & `Workerized` - -#### Defined in - -[types/layout.ts:54](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/types/layout.ts#L54) diff --git a/packages/site/docs/apis/modules/types.zh.md b/packages/site/docs/apis/modules/types.zh.md index e69de29bb2..c9eb4b1bef 100644 --- a/packages/site/docs/apis/modules/types.zh.md +++ b/packages/site/docs/apis/modules/types.zh.md @@ -0,0 +1,5 @@ +--- +title: types +--- + +[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / 类型 \ No newline at end of file diff --git a/packages/site/docs/apis/modules/util.en.md b/packages/site/docs/apis/modules/util.en.md index ce99557355..a4945cb4b1 100644 --- a/packages/site/docs/apis/modules/util.en.md +++ b/packages/site/docs/apis/modules/util.en.md @@ -1,12 +1,14 @@ -[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / util +--- +title: util +--- -# Module: util +[Overview - v5.0.0-alpha.9](../README.en.md) / [Modules](../modules.en.md) / util ## Functions ### extend -▸ **extend**<`B1`, `B2`, `T1`, `T2`\>(`GraphClass`, `extendLibrary`): typeof [`Graph`](../classes/graph-Graph.en.md) +▸ **extend**<`B1`, `B2`, `T1`, `T2`\>(`GraphClass`, `extendLibrary`): typeof [`Graph`](../classes/graph/Graph.en.md) Extend graph class with custom libs (extendLibrary), and extendLibrary will be merged into useLib. B1 is the Behavior lib from user, B2 is the Behavior lib of the graph to be extended(built-in graph) @@ -25,22 +27,24 @@ TODO: more templates, and might be merged to be two templates for the whole exte | Name | Type | Description | | :------ | :------ | :------ | -| `GraphClass` | typeof [`Graph`](../classes/graph-Graph.en.md) | graph class to be extended | +| `GraphClass` | typeof [`Graph`](../classes/graph/Graph.en.md) | graph class to be extended | | `extendLibrary` | `Object` | custom libs to extend | | `extendLibrary.behaviors?` | `B1` | - | -| `extendLibrary.edges?` | `any` | - | -| `extendLibrary.nodes?` | `any` | - | +| `extendLibrary.edges?` | `EdgeRegistry` | - | +| `extendLibrary.layouts?` | `LayoutRegistry` | - | +| `extendLibrary.nodes?` | `NodeRegistry` | - | +| `extendLibrary.plugins?` | `PluginRegistry` | - | | `extendLibrary.themeSolvers?` | `T1` | - | #### Returns -typeof [`Graph`](../classes/graph-Graph.en.md) +typeof [`Graph`](../classes/graph/Graph.en.md) extended graph class #### Defined in -[util/extend.ts:14](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/util/extend.ts#L14) +[packages/g6/src/util/extend.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/util/extend.ts#L18) ___ @@ -60,7 +64,7 @@ value is Encode #### Defined in -[util/type.ts:3](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/util/type.ts#L3) +[packages/g6/src/util/type.ts:3](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/util/type.ts#L3) ___ @@ -87,4 +91,4 @@ mock graph data #### Defined in -[util/mock.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/util/mock.ts#L7) +[packages/g6/src/util/mock.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/util/mock.ts#L7) diff --git a/packages/site/docs/apis/modules/util.zh.md b/packages/site/docs/apis/modules/util.zh.md index 259e6ce76c..a36add2d44 100644 --- a/packages/site/docs/apis/modules/util.zh.md +++ b/packages/site/docs/apis/modules/util.zh.md @@ -1,12 +1,14 @@ -[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / util +--- +title: util +--- - # 模块:util +[概述 - v5.0.0-alpha.9](../README.zh.md) / [模块](../modules.zh.md) / util ## 功能 ### 延长 - ▸ **扩展**<`B1`、`B2`、`T1`、`T2`\>(`GraphClass`、`extendLibrary`): typeof [`Graph`](../classes/graph-Graph. zh.md) + ▸ **扩展**<`B1`、`B2`、`T1`、`T2`\>(`GraphClass`、`extendLibrary`): typeof [`Graph`](../classes/graph/Graph. zh.md) 使用自定义库(extendLibrary)扩展图形类,extendLibrary将合并到useLib中。 B1是用户的Behavior库,B2是要扩展的图的Behavior库(内置图) @@ -25,22 +27,24 @@ | 名称 | 类型 | 描述 | | :------ | :------ | :------ | - | `GraphClass` | typeof [`Graph`](../classes/graph-Graph.zh.md) | 待扩展的图类 | + | `GraphClass` | typeof [`Graph`](../classes/graph/Graph.zh.md) | 待扩展的图类 | | `扩展库` | `对象` | 要扩展的自定义库 | | `extendLibrary.behaviors?` | `B1` | - | - | `extendLibrary.edges?` | `任何` | - | - | `extendLibrary.nodes?` | `任何` | - | + | `extendLibrary.edges?` | `EdgeRegistry` | - | + | `extendLibrary.layouts?` | `布局注册表` | - | + | `extendLibrary.nodes?` | `节点注册表` | - | + | `extendLibrary.plugins?` | `插件注册表` | - | | `extendLibrary.themeSolvers?` | `T1` | - | #### 返回 - typeof [`Graph`](../classes/graph-Graph.zh.md) + typeof [`Graph`](../classes/graph/Graph.zh.md) 扩展图类 #### 定义于 - [util/extend.ts:14](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/util/extend.ts#L14) + [packages/g6/src/util/extend.ts:18](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/util/extend.ts#L18) ___ @@ -60,7 +64,7 @@ #### 定义于 - [util/type.ts:3](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/util/type.ts#L3) + [packages/g6/src/util/type.ts:3](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/util/type.ts#L3) ___ @@ -87,4 +91,4 @@ #### 定义于 - [util/mock.ts:7](https://github.com/antvis/G6/blob/c9548251ff/packages/g6/src/util/mock.ts#L7) \ No newline at end of file + [packages/g6/src/util/mock.ts:7](https://github.com/antvis/G6/blob/a69acd5592/packages/g6/src/util/mock.ts#L7) \ No newline at end of file diff --git a/packages/site/examples/tool/contextMenu/demo/contextMenu.ts b/packages/site/examples/tool/contextMenu/demo/contextMenu.ts index 06937dc4ab..a94e1ed197 100644 --- a/packages/site/examples/tool/contextMenu/demo/contextMenu.ts +++ b/packages/site/examples/tool/contextMenu/demo/contextMenu.ts @@ -1,4 +1,10 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + menu: Extensions.Menu, + }, +}); const container = document.getElementById('container') as HTMLElement; const width = container.scrollWidth; diff --git a/packages/site/examples/tool/fisheye/demo/fisheye.js b/packages/site/examples/tool/fisheye/demo/fisheye.ts similarity index 65% rename from packages/site/examples/tool/fisheye/demo/fisheye.js rename to packages/site/examples/tool/fisheye/demo/fisheye.ts index a0f2c9ddb6..3ac2a34b9d 100644 --- a/packages/site/examples/tool/fisheye/demo/fisheye.js +++ b/packages/site/examples/tool/fisheye/demo/fisheye.ts @@ -1,20 +1,21 @@ -import G6 from '@antv/g6'; +import { Graph as BaseGraph, Extensions, extend } from '@antv/g6'; -let fisheye = new G6.Fisheye({ +const Graph = extend(BaseGraph, { + plugins: { + fisheye: Extensions.Fisheye, + }, +}); + +let fisheye = { + type: 'fisheye', + key: 'fisheye1', + scaleDBy: 'unset', + scaleRBy: 'unset', r: 200, showLabel: true, -}); -const colors = [ - '#8FE9FF', - '#87EAEF', - '#FFC9E3', - '#A7C2FF', - '#FFA1E3', - '#FFE269', - '#BFCFEE', - '#FFA0C5', - '#D5FF86', -]; + trigger: 'mousemove', +}; +const colors = ['#8FE9FF', '#87EAEF', '#FFC9E3', '#A7C2FF', '#FFA1E3', '#FFE269', '#BFCFEE', '#FFA0C5', '#D5FF86']; // ================= The DOMs for configurations =============== // const graphDiv = document.getElementById('container'); @@ -121,73 +122,91 @@ graphDiv.parentNode.appendChild(buttonContainer); // ========================================================= // const container = document.getElementById('container'); -const width = container.scrollWidth; -const height = container.scrollHeight || 500; -const graph = new G6.Graph({ - container: 'container', - width, - height, - plugins: [fisheye], -}); - -clearButton.addEventListener('click', (e) => { - fisheye.clear(); -}); -swithButton.addEventListener('click', (e) => { - if (swithButton.value === 'Disable') { - swithButton.value = 'Enable'; - graph.removePlugin(fisheye); - } else { - swithButton.value = 'Disable'; - fisheye = new G6.Fisheye({ - r: 200, - showLabel: true, - }); - graph.addPlugin(fisheye); - } -}); -configScaleRBy.addEventListener('change', (e) => { - fisheye.updateParams({ scaleRBy: e.target.value }); -}); -configScaleDBy.addEventListener('change', (e) => { - fisheye.updateParams({ scaleDBy: e.target.value }); -}); -configTrigger.addEventListener('change', (e) => { - const fisheyConfigs = fisheye._cfgs; - graph.removePlugin(fisheye); - fisheye = new G6.Fisheye({ - ...fisheyConfigs, - trigger: e.target.value, +let width = 1500; +let height = 500; +if (container) { + width = container.scrollWidth; + height = container.scrollHeight || 500; +} +let graph; +const createGraph = (customData) => { + graph = new Graph({ + container: 'container', + width, + height, + layout: { + type: 'force', + rankdir: 'LR', + align: 'DL', + nodesepFunc: () => 1, + ranksepFunc: () => 1, + }, + plugins: [fisheye], + data: customData, + node: (innerModel) => { + return { + ...innerModel, + }; + }, }); - graph.addPlugin(fisheye); -}); + + clearButton.addEventListener('click', (e) => {}); + swithButton.addEventListener('click', (e) => { + if (swithButton.value === 'Disable') { + swithButton.value = 'Enable'; + graph.removePlugins(['fisheye1']); + } else { + swithButton.value = 'Disable'; + graph.addPlugins([fisheye]); + } + }); + configScaleRBy.addEventListener('change', (e) => { + fisheye = { + ...fisheye, + scaleRBy: e.target.value, + }; + graph.updatePlugin(fisheye); + }); + configScaleDBy.addEventListener('change', (e) => { + // fisheye.scaleDBy = e.target.value; + fisheye = { + ...fisheye, + scaleDBy: e.target.value, + }; + graph.updatePlugin(fisheye); + }); + configTrigger.addEventListener('change', (e) => { + fisheye = { + ...fisheye, + trigger: e.target.value, + }; + graph.updatePlugin(fisheye); + }); +}; fetch('https://gw.alipayobjects.com/os/bmw-prod/afe8b2a6-f691-4070-aa73-46fc07fd1171.json') .then((res) => res.json()) .then((data) => { data.nodes.forEach((node) => { - node.label = node.id; - node.size = Math.random() * 30 + 10; - node.style = { - fill: colors[Math.floor(Math.random() * 9)], + node.data = { + ...node.data, + label: node.id, + color: colors[Math.floor(Math.random() * 9)], + size: Math.random() * 30 + 10, + r: Math.random() * 30 + 10, + keyShape: { + r: Math.random() * 20 + 10, + fill: colors[Math.floor(Math.random() * 9)], + }, lineWidth: 0, }; }); - graph.data(data); - graph.render(); - graph.getNodes().forEach((node) => { - node - .getContainer() - .getChildren() - .forEach((shape) => { - if (shape.get('type') === 'text') shape.hide(); - }); + data.edges.forEach((edge) => { + edge.id = edge.source + '-' + edge.target; + edge.data = { + color: '#ccc', + }; }); - }); -if (typeof window !== 'undefined') - window.onresize = () => { - if (!graph || graph.get('destroyed')) return; - if (!container || !container.scrollWidth || !container.scrollHeight) return; - graph.changeSize(container.scrollWidth, container.scrollHeight); - }; + createGraph(data); + }); diff --git a/packages/site/examples/tool/fisheye/demo/meta.json b/packages/site/examples/tool/fisheye/demo/meta.json index d9d61a4c15..a2d504112c 100644 --- a/packages/site/examples/tool/fisheye/demo/meta.json +++ b/packages/site/examples/tool/fisheye/demo/meta.json @@ -5,7 +5,7 @@ }, "demos": [ { - "filename": "fisheye.js", + "filename": "fisheye.ts", "title": { "zh": "鱼眼放大镜", "en": "Fisheye Lens" diff --git a/packages/site/examples/tool/grid/demo/default.ts b/packages/site/examples/tool/grid/demo/default.ts index 04000c60ec..65964788e0 100644 --- a/packages/site/examples/tool/grid/demo/default.ts +++ b/packages/site/examples/tool/grid/demo/default.ts @@ -1,4 +1,10 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + grid: Extensions.Grid, + }, +}); const container = document.getElementById('container') as HTMLElement; const width = container.scrollWidth; diff --git a/packages/site/examples/tool/legend/demo/legend.ts b/packages/site/examples/tool/legend/demo/legend.ts index 30ad176455..2f915e8a06 100644 --- a/packages/site/examples/tool/legend/demo/legend.ts +++ b/packages/site/examples/tool/legend/demo/legend.ts @@ -1,4 +1,16 @@ -import { Graph } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + legend: Extensions.Legend, + }, + behaviors: { + 'brush-select': Extensions.BrushSelect, + 'activate-relations': Extensions.ActivateRelations, + 'zoom-canvas': Extensions.ZoomCanvas, + }, +}); + // import { faker } from '@faker-js/faker'; const container = document.getElementById('container') as HTMLElement; @@ -128,7 +140,7 @@ new Graph({ width, height, data, - // plugins: [legend], + plugins: [legend], node: { labelShape: { text: { diff --git a/packages/site/examples/tool/minimap/demo/minimap-api.ts b/packages/site/examples/tool/minimap/demo/minimap-api.ts index 0b4547c093..2399b44754 100644 --- a/packages/site/examples/tool/minimap/demo/minimap-api.ts +++ b/packages/site/examples/tool/minimap/demo/minimap-api.ts @@ -1,4 +1,11 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + minimap: Extensions.Minimap, + }, +}); + import insertCss from 'insert-css'; const container = document.getElementById('container') as HTMLElement; diff --git a/packages/site/examples/tool/minimap/demo/minimap.ts b/packages/site/examples/tool/minimap/demo/minimap.ts index f84a545788..cc6362d99b 100644 --- a/packages/site/examples/tool/minimap/demo/minimap.ts +++ b/packages/site/examples/tool/minimap/demo/minimap.ts @@ -1,4 +1,11 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + minimap: Extensions.Minimap, + }, +}); + import insertCss from 'insert-css'; const container = document.getElementById('container') as HTMLElement; diff --git a/packages/site/examples/tool/overview/demo/default.ts b/packages/site/examples/tool/overview/demo/default.ts index 22dfe7f270..aba1815e79 100644 --- a/packages/site/examples/tool/overview/demo/default.ts +++ b/packages/site/examples/tool/overview/demo/default.ts @@ -1,4 +1,13 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + tooltip: Extensions.Tooltip, + minimap: Extensions.Minimap, + grid: Extensions.Grid, + }, +}); + import insertCss from 'insert-css'; const container = document.getElementById('container') as HTMLElement; const width = container.scrollWidth; diff --git a/packages/site/examples/tool/snapline/API.en.md b/packages/site/examples/tool/snapline/API.en.md deleted file mode 100644 index e721fcb82d..0000000000 --- a/packages/site/examples/tool/snapline/API.en.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: API ---- - - diff --git a/packages/site/examples/tool/snapline/API.zh.md b/packages/site/examples/tool/snapline/API.zh.md deleted file mode 100644 index e721fcb82d..0000000000 --- a/packages/site/examples/tool/snapline/API.zh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: API ---- - - diff --git a/packages/site/examples/tool/snapline/demo/custom.js b/packages/site/examples/tool/snapline/demo/custom.js deleted file mode 100644 index 3b6d1a684b..0000000000 --- a/packages/site/examples/tool/snapline/demo/custom.js +++ /dev/null @@ -1,202 +0,0 @@ -import G6 from '@antv/g6'; - -const data = { - nodes: [ - { - id: '0', - label: '0', - }, - { - id: '1', - label: '1', - }, - { - id: '2', - label: '2', - }, - { - id: '3', - label: '3', - }, - { - id: '4', - label: '4', - }, - { - id: '5', - label: '5', - }, - { - id: '6', - label: '6', - }, - { - id: '7', - label: '7', - }, - { - id: '8', - label: '8', - }, - { - id: '9', - label: '9', - }, - { - id: '10', - label: '10', - }, - { - id: '11', - label: '11', - }, - { - id: '12', - label: '12', - }, - { - id: '13', - label: '13', - }, - { - id: '14', - label: '14', - }, - { - id: '15', - label: '15', - }, - ], - edges: [ - { - source: '0', - target: '1', - }, - { - source: '0', - target: '2', - }, - { - source: '0', - target: '3', - }, - { - source: '0', - target: '4', - }, - { - source: '0', - target: '5', - }, - { - source: '0', - target: '7', - }, - { - source: '0', - target: '8', - }, - { - source: '0', - target: '9', - }, - { - source: '0', - target: '10', - }, - { - source: '0', - target: '11', - }, - { - source: '0', - target: '13', - }, - { - source: '0', - target: '14', - }, - { - source: '0', - target: '15', - }, - { - source: '2', - target: '3', - }, - { - source: '4', - target: '5', - }, - { - source: '4', - target: '6', - }, - { - source: '5', - target: '6', - }, - { - source: '7', - target: '13', - }, - { - source: '8', - target: '14', - }, - { - source: '9', - target: '10', - }, - { - source: '10', - target: '14', - }, - { - source: '10', - target: '12', - }, - { - source: '11', - target: '14', - }, - { - source: '12', - target: '13', - }, - ], -}; - -const container = document.getElementById('container'); -const width = container.scrollWidth; -const height = (container.scrollHeight || 500) - 110; -const snapLine = new G6.SnapLine({ - line: { - stroke: 'red', - lineWidth: 3, - }, - itemAlignType: true, -}); - -const graph = new G6.Graph({ - container: 'container', - width, - height, - linkCenter: true, - defaultNode: { - size: 30, - }, - modes: { - default: ['drag-canvas', 'zoom-canvas', 'drag-node'], - }, - plugins: [snapLine], -}); -graph.data(data); -graph.render(); - -if (typeof window !== 'undefined') - window.onresize = () => { - if (!graph || graph.get('destroyed')) return; - if (!container || !container.scrollWidth || !container.scrollHeight) return; - graph.changeSize(container.scrollWidth, container.scrollHeight - 110); - }; diff --git a/packages/site/examples/tool/snapline/demo/default.js b/packages/site/examples/tool/snapline/demo/default.js deleted file mode 100644 index a67948e044..0000000000 --- a/packages/site/examples/tool/snapline/demo/default.js +++ /dev/null @@ -1,196 +0,0 @@ -import G6 from '@antv/g6'; - -const data = { - nodes: [ - { - id: '0', - label: '0', - }, - { - id: '1', - label: '1', - }, - { - id: '2', - label: '2', - }, - { - id: '3', - label: '3', - }, - { - id: '4', - label: '4', - }, - { - id: '5', - label: '5', - }, - { - id: '6', - label: '6', - }, - { - id: '7', - label: '7', - }, - { - id: '8', - label: '8', - }, - { - id: '9', - label: '9', - }, - { - id: '10', - label: '10', - }, - { - id: '11', - label: '11', - }, - { - id: '12', - label: '12', - }, - { - id: '13', - label: '13', - }, - { - id: '14', - label: '14', - }, - { - id: '15', - label: '15', - }, - ], - edges: [ - { - source: '0', - target: '1', - }, - { - source: '0', - target: '2', - }, - { - source: '0', - target: '3', - }, - { - source: '0', - target: '4', - }, - { - source: '0', - target: '5', - }, - { - source: '0', - target: '7', - }, - { - source: '0', - target: '8', - }, - { - source: '0', - target: '9', - }, - { - source: '0', - target: '10', - }, - { - source: '0', - target: '11', - }, - { - source: '0', - target: '13', - }, - { - source: '0', - target: '14', - }, - { - source: '0', - target: '15', - }, - { - source: '2', - target: '3', - }, - { - source: '4', - target: '5', - }, - { - source: '4', - target: '6', - }, - { - source: '5', - target: '6', - }, - { - source: '7', - target: '13', - }, - { - source: '8', - target: '14', - }, - { - source: '9', - target: '10', - }, - { - source: '10', - target: '14', - }, - { - source: '10', - target: '12', - }, - { - source: '11', - target: '14', - }, - { - source: '12', - target: '13', - }, - ], -}; - -const container = document.getElementById('container'); -const width = container.scrollWidth; -const height = (container.scrollHeight || 500) - 110; -const snapLine = new G6.SnapLine(); - -const graph = new G6.Graph({ - container: 'container', - width, - height, - linkCenter: true, - defaultNode: { - size: 30, - }, - modes: { - default: ['drag-canvas', 'zoom-canvas', 'drag-node'], - }, - plugins: [snapLine], -}); -graph.data(data); -graph.render(); - -if (typeof window !== 'undefined') - window.onresize = () => { - if (!graph || graph.get('destroyed')) return; - if (!container || !container.scrollWidth || !container.scrollHeight) return; - graph.changeSize(container.scrollWidth, container.scrollHeight - 110); - }; diff --git a/packages/site/examples/tool/snapline/demo/meta.json b/packages/site/examples/tool/snapline/demo/meta.json deleted file mode 100644 index 3e1c012084..0000000000 --- a/packages/site/examples/tool/snapline/demo/meta.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "title": { - "zh": "中文分类", - "en": "Category" - }, - "demos": [ - { - "filename": "default.js", - "title": { - "zh": "对齐线", - "en": "SnapLine" - }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*fRMFSZCjuoMAAAAAAAAAAAAAARQnAQ" - }, - { - "filename": "custom.js", - "title": { - "zh": "自定义对齐线样式", - "en": "Custom SnapLine" - }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*G-vPSa3I1lkAAAAAAAAAAAAAARQnAQ" - } - ] -} diff --git a/packages/site/examples/tool/snapline/index.en.md b/packages/site/examples/tool/snapline/index.en.md deleted file mode 100644 index 132cb9df7b..0000000000 --- a/packages/site/examples/tool/snapline/index.en.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: SnapLine -order: 8 ---- - -SnapLine is a built-in components in G6. diff --git a/packages/site/examples/tool/snapline/index.zh.md b/packages/site/examples/tool/snapline/index.zh.md deleted file mode 100644 index 4f9a86bf83..0000000000 --- a/packages/site/examples/tool/snapline/index.zh.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: 对齐线 -order: 8 ---- - -G6 中内置的对齐线组件。 diff --git a/packages/site/examples/tool/timebar/API.en.md b/packages/site/examples/tool/timebar/API.en.md deleted file mode 100644 index f8397eeb9b..0000000000 --- a/packages/site/examples/tool/timebar/API.en.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: API ---- - - diff --git a/packages/site/examples/tool/timebar/API.zh.md b/packages/site/examples/tool/timebar/API.zh.md deleted file mode 100644 index e721fcb82d..0000000000 --- a/packages/site/examples/tool/timebar/API.zh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: API ---- - - diff --git a/packages/site/examples/tool/timebar/demo/meta.json b/packages/site/examples/tool/timebar/demo/meta.json deleted file mode 100644 index c9d6561d71..0000000000 --- a/packages/site/examples/tool/timebar/demo/meta.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "title": { - "zh": "中文分类", - "en": "Category" - }, - "demos": [ - { - "filename": "timebar.js", - "title": { - "zh": "趋势时间轴", - "en": "TrendTimeBar" - }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*lfvIQJYbs7oAAAAAAAAAAAAAARQnAQ" - }, - { - "filename": "simple-timebar.js", - "title": { - "zh": "简易时间轴", - "en": "SimperTimeBar" - }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*g2zhQqP6ruYAAAAAAAAAAAAAARQnAQ" - }, - { - "filename": "slice-timebar.js", - "title": { - "zh": "刻度时间轴", - "en": "SliceTimeBar" - }, - "screenshot": "https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*n6ECQ7Jn5pQAAAAAAAAAAAAAARQnAQ" - } - ] -} diff --git a/packages/site/examples/tool/timebar/demo/simple-timebar.js b/packages/site/examples/tool/timebar/demo/simple-timebar.js deleted file mode 100644 index c76e0fe687..0000000000 --- a/packages/site/examples/tool/timebar/demo/simple-timebar.js +++ /dev/null @@ -1,110 +0,0 @@ -import G6 from '@antv/g6'; - -const data = { - nodes: [], - edges: [], -}; - -for (let i = 0; i < 100; i++) { - const id = `node-${i}`; - data.nodes.push({ - id, - date: `2020${i}`, - value: Math.round(Math.random() * 300), - }); - - data.edges.push({ - source: `node-${Math.round(Math.random() * 90)}`, - target: `node-${Math.round(Math.random() * 90)}`, - }); -} - -const container = document.getElementById('container'); -const width = container.scrollWidth; -const height = (container.scrollHeight || 500) - 100; - -const timeBarData = []; - -const nodeSize = 20; - -for (let i = 0; i < 100; i++) { - timeBarData.push({ - date: `2020${i}`, - value: Math.round(Math.random() * 300), - }); -} - -const timebar = new G6.TimeBar({ - x: 0, - y: 0, - width, - height: 150, - padding: 10, - type: 'simple', - trend: { - data: timeBarData, - }, -}); - -// constrained the layout inside the area -const constrainBox = { x: 10, y: 10, width: 580, height: 450 }; - -const onTick = () => { - let minx = 99999999; - let maxx = -99999999; - let miny = 99999999; - let maxy = -99999999; - data.nodes.forEach((node) => { - if (minx > node.x) { - minx = node.x; - } - if (maxx < node.x) { - maxx = node.x; - } - if (miny > node.y) { - miny = node.y; - } - if (maxy < node.y) { - maxy = node.y; - } - }); - const scalex = (constrainBox.width - nodeSize / 2) / (maxx - minx); - const scaley = (constrainBox.height - nodeSize / 2) / (maxy - miny); - data.nodes.forEach((node) => { - node.x = (node.x - minx) * scalex + constrainBox.x; - node.y = (node.y - miny) * scaley + constrainBox.y; - }); -}; - -const graph = new G6.Graph({ - container: 'container', - width, - height, - linkCenter: true, - plugins: [timebar], - layout: { - type: 'force', - preventOverlap: true, - onTick, - }, - defaultNode: { - size: nodeSize, - type: 'circle', - style: { - fill: '#DEE9FF', - stroke: '#5B8FF9', - }, - }, - modes: { - default: ['drag-node'], - }, -}); -graph.data(data); -graph.render(); - -if (typeof window !== 'undefined') - window.onresize = () => { - if (!graph || graph.get('destroyed')) return; - if (!container || !container.scrollWidth || !container.scrollHeight) return; - graph.changeSize(container.scrollWidth, container.scrollHeight - 100); - }; diff --git a/packages/site/examples/tool/timebar/demo/slice-timebar.js b/packages/site/examples/tool/timebar/demo/slice-timebar.js deleted file mode 100644 index 6da96589d6..0000000000 --- a/packages/site/examples/tool/timebar/demo/slice-timebar.js +++ /dev/null @@ -1,131 +0,0 @@ -import G6 from '@antv/g6'; - -const data = { - nodes: [], - edges: [], -}; - -for (let i = 1; i < 60; i++) { - const id = `node-${i}`; - const month = i < 30 ? '01' : '02'; - const day = i % 30 < 10 ? `0${i % 30}` : `${i % 30}`; - data.nodes.push({ - id, - date: parseInt(`2020${month}${day}`), - value: Math.round(Math.random() * 300), - label: parseInt(`2020${i}`), - }); - - data.edges.push({ - source: `node-${Math.round(Math.random() * 60)}`, - target: `node-${Math.round(Math.random() * 60)}`, - }); -} - -const timeBarData = []; - -for (let i = 1; i < 60; i++) { - const month = i < 30 ? '01' : '02'; - const day = i % 30 < 10 ? `0${i % 30}` : `${i % 30}`; - timeBarData.push({ - date: parseInt(`2020${month}${day}`), - value: Math.round(Math.random() * 300), - }); -} - -const container = document.getElementById('container'); -const width = container.scrollWidth; -const height = (container.scrollHeight || 500) - 100; - -const nodeSize = 20; - -let count = 0; -const timebar = new G6.TimeBar({ - x: 0, - y: 0, - width, - height: 150, - padding: 10, - type: 'tick', - tick: { - data: timeBarData, - width: width, - height: 42, - padding: 2, - tickLabelFormatter: (d) => { - count++; - const dateStr = `${d.date}`; - if ((count - 1) % 10 === 0) { - return `${dateStr.substr(0, 4)}-${dateStr.substr(4, 2)}-${dateStr.substr(6, 2)}`; - } - return false; - }, - tooltipFomatter: (d) => { - const dateStr = `${d}`; - return `${dateStr.substr(0, 4)}-${dateStr.substr(4, 2)}-${dateStr.substr(6, 2)}`; - }, - }, -}); - -// constrained the layout inside the area -const constrainBox = { x: 10, y: 10, width: 580, height: 450 }; - -const onTick = () => { - let minx = 99999999; - let maxx = -99999999; - let miny = 99999999; - let maxy = -99999999; - data.nodes.forEach((node) => { - if (minx > node.x) { - minx = node.x; - } - if (maxx < node.x) { - maxx = node.x; - } - if (miny > node.y) { - miny = node.y; - } - if (maxy < node.y) { - maxy = node.y; - } - }); - const scalex = (constrainBox.width - nodeSize / 2) / (maxx - minx); - const scaley = (constrainBox.height - nodeSize / 2) / (maxy - miny); - data.nodes.forEach((node) => { - node.x = (node.x - minx) * scalex + constrainBox.x; - node.y = (node.y - miny) * scaley + constrainBox.y; - }); -}; - -const graph = new G6.Graph({ - container: 'container', - width, - height, - linkCenter: true, - plugins: [timebar], - layout: { - type: 'force', - preventOverlap: true, - onTick, - }, - defaultNode: { - size: nodeSize, - type: 'circle', - style: { - fill: '#DEE9FF', - stroke: '#5B8FF9', - }, - }, - modes: { - default: ['drag-node'], - }, -}); -graph.data(data); -graph.render(); - -if (typeof window !== 'undefined') - window.onresize = () => { - if (!graph || graph.get('destroyed')) return; - if (!container || !container.scrollWidth || !container.scrollHeight) return; - graph.changeSize(container.scrollWidth, container.scrollHeight - 100); - }; diff --git a/packages/site/examples/tool/timebar/demo/timebar.js b/packages/site/examples/tool/timebar/demo/timebar.js deleted file mode 100644 index d4adf75507..0000000000 --- a/packages/site/examples/tool/timebar/demo/timebar.js +++ /dev/null @@ -1,110 +0,0 @@ -import G6 from '@antv/g6'; - -const data = { - nodes: [], - edges: [], -}; - -for (let i = 0; i < 100; i++) { - const id = `node-${i}`; - data.nodes.push({ - id, - date: `2020${i}`, - value: Math.round(Math.random() * 300), - }); - - data.edges.push({ - source: `node-${Math.round(Math.random() * 90)}`, - target: `node-${Math.round(Math.random() * 90)}`, - }); -} - -const container = document.getElementById('container'); -const width = container.scrollWidth; -const height = (container.scrollHeight || 500) - 100; -const timeBarData = []; - -const nodeSize = 20; - -for (let i = 0; i < 100; i++) { - timeBarData.push({ - date: `2020${i}`, - value: Math.round(Math.random() * 300), - }); -} - -const timebar = new G6.TimeBar({ - x: 0, - y: 0, - width, - height: 150, - padding: 10, - type: 'trend', - trend: { - data: timeBarData, - }, -}); - -// constrained the layout inside the area -const constrainBox = { x: 10, y: 10, width: 580, height: 450 }; - -const onTick = () => { - let minx = 99999999; - let maxx = -99999999; - let miny = 99999999; - let maxy = -99999999; - let maxsize = -9999999; - data.nodes.forEach((node) => { - if (minx > node.x) { - minx = node.x; - } - if (maxx < node.x) { - maxx = node.x; - } - if (miny > node.y) { - miny = node.y; - } - if (maxy < node.y) { - maxy = node.y; - } - }); - const scalex = (constrainBox.width - nodeSize / 2) / (maxx - minx); - const scaley = (constrainBox.height - nodeSize / 2) / (maxy - miny); - data.nodes.forEach((node) => { - node.x = (node.x - minx) * scalex + constrainBox.x; - node.y = (node.y - miny) * scaley + constrainBox.y; - }); -}; - -const graph = new G6.Graph({ - container: 'container', - width, - height, - linkCenter: true, - plugins: [timebar], - layout: { - type: 'force', - preventOverlap: true, - onTick, - }, - defaultNode: { - size: nodeSize, - type: 'circle', - style: { - fill: '#DEE9FF', - stroke: '#5B8FF9', - }, - }, - modes: { - default: ['drag-node'], - }, -}); -graph.data(data); -graph.render(); - -if (typeof window !== 'undefined') - window.onresize = () => { - if (!graph || graph.get('destroyed')) return; - if (!container || !container.scrollWidth || !container.scrollHeight) return; - graph.changeSize(container.scrollWidth, container.scrollHeight - 100); - }; diff --git a/packages/site/examples/tool/timebar/index.en.md b/packages/site/examples/tool/timebar/index.en.md deleted file mode 100644 index af93ac8e8b..0000000000 --- a/packages/site/examples/tool/timebar/index.en.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: TimeBar -order: 5 ---- - -TimeBar is a build-in component in G6. - -## Usage - -The demo below shows how to use TimeBar on graph. The second demo demonstrates the configurations for the TimeBar. diff --git a/packages/site/examples/tool/timebar/index.zh.md b/packages/site/examples/tool/timebar/index.zh.md deleted file mode 100644 index f8d15a631f..0000000000 --- a/packages/site/examples/tool/timebar/index.zh.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: 时间轴 -order: 5 ---- - -[AntV G6](https://github.com/antvis/G6) 内置了三种形态的 TimeBar 组件: - -- 带有趋势图的 TimeBar 组件; -- 简易版的 TimeBar 组件; -- 刻度 TimeBar 组件。 - -并且每种类型的 TimeBar 组件都可以配合播放、快进、后退等控制按钮组使用。 - - -
趋势图 TimeBar 组件
- - -
简易版 TimeBar 组件
- - -
刻度 TimeBar 组件
- -
在趋势图 TimeBar 基础上,我们可以通过配置数据,实现更加复杂的趋势图 TimeBar 组件,如下图所示。 - - - -
虽然 G6 提供了各种不同类型的 TimeBar 组件,但在使用的方式却非常简单,通过配置字段就可以进行区分。
- -## 使用指南 - -使用 G6 内置的 TimeBar 组件,和使用其他组件的方式完全相同。 - -```javascript -import G6 from '@antv/g6'; - -const timebar = new G6.TimeBar({ - width: 500, - height: 150, - padding: 10, - type: 'trend', - trend: { - data: timeBarData, - }, -}); - -const graph = new G6.Graph({ - container: 'container', - width, - height, - plugins: [timebar], -}); -``` diff --git a/packages/site/examples/tool/toolbar/demo/self-toolbar.ts b/packages/site/examples/tool/toolbar/demo/self-toolbar.ts index 913c8dd20a..bd143c4267 100644 --- a/packages/site/examples/tool/toolbar/demo/self-toolbar.ts +++ b/packages/site/examples/tool/toolbar/demo/self-toolbar.ts @@ -1,28 +1,18 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; +import insertCss from 'insert-css'; +const Graph = extend(BaseGraph, { + plugins: { + toolbar: Extensions.Toolbar, + history: Extensions.History, + }, +}); const container = document.getElementById('container') as HTMLElement; const width = container.scrollWidth; const height = (container.scrollHeight || 500) - 110; const data = Util.mock(6).circle(); -const toolbar = { - key: 'toolbar-1', - type: 'toolbar', - getContent: () => { - return ` -
    -
  • Alert
  • -
- `; - }, - handleClick: (code, graph) => { - if (code === 'alert') { - alert('hello world'); - } - }, -}; - -new Graph({ +const graph = new Graph({ container, width, height, @@ -30,6 +20,9 @@ new Graph({ layout: { type: 'grid', }, + modes: { + default: ['drag-canvas', 'drag-node', 'zoom-canvas'], + }, node: { labelShape: { text: { @@ -38,16 +31,95 @@ new Graph({ }, }, }, - plugins: [ - toolbar, - { - ...toolbar, - key: 'toolbar-2', - position: { - x: 0, - y: 200, - }, - }, - ], + data, }); + +const toolbar = { + key: 'toolbar-1', + type: 'toolbar', + className: 'my-toolbar', + getContent: () => { + return ` +
    +
  • alert
  • +
  • add node
  • +
  • random remove node
  • +
  • redo
  • +
  • undo
  • +
+ `; + }, + handleClick: (code) => { + if (code === 'alert') { + alert('hello world'); + } + if (code === 'add') { + graph.startBatch(); + graph.addData('node', { + id: 'node2', + data: { + x: 600, + y: 100, + }, + }); + graph.addData('node', { + id: 'node3', + data: { + x: 300, + y: 100, + }, + }); + graph.addData('edge', { + id: 'edge2', + source: 'node2', + target: 'node3', + data: { + type: 'line-edge', + }, + }); + graph.stopBatch(); + } + if (code === 'remove') { + graph.removeData('node', 'node2'); + } + if (code === 'redo') { + if (graph.canRedo()) { + graph.redo(); + } else { + alert('can not redo'); + } + } + if (code === 'undo') { + if (graph.canUndo()) { + graph.undo(); + } else { + alert('can not undo'); + } + } + }, +}; + +graph.addPlugins([toolbar]); + +/** set the style of minimap */ +insertCss(` + .my-toolbar { + width:100%; + display:flex; + justify-content: center; + align-items: center; + position:absolute; + top:40px; + right:40px; + height:50px; + line-height:50px; + box-shadow:0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2); + } + .my-toolbar>li{ + height:50px; + line-height:50px; + flex:1; + } + +`); diff --git a/packages/site/examples/tool/toolbar/demo/toolbar.ts b/packages/site/examples/tool/toolbar/demo/toolbar.ts index a318edf186..ffb45a5fe4 100644 --- a/packages/site/examples/tool/toolbar/demo/toolbar.ts +++ b/packages/site/examples/tool/toolbar/demo/toolbar.ts @@ -1,4 +1,10 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + toolbar: Extensions.Toolbar, + }, +}); const container = document.getElementById('container') as HTMLElement; const width = container.scrollWidth; @@ -14,5 +20,8 @@ new Graph({ height, data, layout, - plugins: ['toolbar'], + modes: { + default: ['drag-canvas', 'drag-node', 'zoom-canvas'], + }, + plugins: [{ type: 'toolbar', key: 'toolbar-1' }], }); diff --git a/packages/site/examples/tool/tooltip/demo/tooltipClick.ts b/packages/site/examples/tool/tooltip/demo/tooltipClick.ts index d30e47caf4..b6b77e9041 100644 --- a/packages/site/examples/tool/tooltip/demo/tooltipClick.ts +++ b/packages/site/examples/tool/tooltip/demo/tooltipClick.ts @@ -1,4 +1,11 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + tooltip: Extensions.Tooltip, + }, +}); + import insertCss from 'insert-css'; const container = document.getElementById('container') as HTMLElement; diff --git a/packages/site/examples/tool/tooltip/demo/tooltipPlugin.ts b/packages/site/examples/tool/tooltip/demo/tooltipPlugin.ts index 477f83c3e9..509d557c9c 100644 --- a/packages/site/examples/tool/tooltip/demo/tooltipPlugin.ts +++ b/packages/site/examples/tool/tooltip/demo/tooltipPlugin.ts @@ -1,4 +1,10 @@ -import { Graph, Util } from '@antv/g6'; +import { Graph as BaseGraph, Extensions, Util, extend } from '@antv/g6'; + +const Graph = extend(BaseGraph, { + plugins: { + tooltip: Extensions.Tooltip, + }, +}); const container = document.getElementById('container') as HTMLElement; const width = container.scrollWidth;