@antv/g6-core
Advanced tools
Comparing version 0.7.13 to 0.7.14
@@ -50,3 +50,3 @@ var subjectColor = 'rgb(95, 149, 255)'; | ||
export default { | ||
version: '0.7.13', | ||
version: '0.7.14', | ||
rootContainerClassName: 'root-container', | ||
@@ -53,0 +53,0 @@ nodeContainerClassName: 'node-container', |
import { IGroup, Point } from '@antv/g-base'; | ||
import { IBBox, IPoint, IShapeBase, Item, ModelConfig, NodeConfig, EdgeConfig, ModelStyle, ShapeStyle, Indexable, ComboConfig, ITEM_TYPE, TreeGraphData, UpdateType } from '../types'; | ||
export declare type IItemBaseConfig = Partial<{ | ||
export type IItemBaseConfig = Partial<{ | ||
/** | ||
@@ -5,0 +5,0 @@ * id |
import { IGroup, IShape } from '@antv/g-base'; | ||
import { IPoint, Item, LabelStyle, ModelConfig, UpdateType } from '../types'; | ||
export declare type ILabelConfig = Partial<{ | ||
export type ILabelConfig = Partial<{ | ||
position: string; | ||
@@ -12,4 +12,4 @@ offset: number; | ||
}>; | ||
export declare type ShapeDefine = string | ((cfg: ModelConfig) => string); | ||
export declare type ShapeOptions = Partial<{ | ||
export type ShapeDefine = string | ((cfg: ModelConfig) => string); | ||
export type ShapeOptions = Partial<{ | ||
options: ModelConfig; | ||
@@ -16,0 +16,0 @@ /** |
@@ -7,9 +7,9 @@ import { IGroup, Event as GraphEvent, BBox, AnimateCfg, ICanvas, IShape } from '@antv/g-base'; | ||
export * from '../interface'; | ||
export declare type UpdateType = 'move' | 'bbox' | 'style' | 'bbox|label' | 'style|label' | undefined; | ||
export declare type Item = INode | IEdge | ICombo; | ||
export declare type CommonInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'dragout' | 'drop' | 'focus' | 'blur' | 'keyup' | 'keydown' | 'mousedown' | 'mouseenter' | 'mouseup' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu' | 'wheel'; | ||
export declare type NodeInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'drop' | 'mousedown' | 'mouseenter' | 'mouseup' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'panestart' | 'panmove' | 'panend' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu'; | ||
export declare type EdgeInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'mouseenter' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu'; | ||
export declare type ComboInteractionEvent = NodeInteractionEvent; | ||
export declare type CanvasInteractionEvent = 'click' | 'dblclick' | 'drag' | 'dragstart' | 'dragend' | 'dragenter' | 'dragleave' | 'drop' | 'keydown' | 'keyup' | 'mouseenter' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchmove' | 'touchend' | 'wheel' | 'contextmenu'; | ||
export type UpdateType = 'move' | 'bbox' | 'style' | 'bbox|label' | 'style|label' | undefined; | ||
export type Item = INode | IEdge | ICombo; | ||
export type CommonInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'dragout' | 'drop' | 'focus' | 'blur' | 'keyup' | 'keydown' | 'mousedown' | 'mouseenter' | 'mouseup' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu' | 'wheel'; | ||
export type NodeInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'drop' | 'mousedown' | 'mouseenter' | 'mouseup' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'panestart' | 'panmove' | 'panend' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu'; | ||
export type EdgeInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'mouseenter' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu'; | ||
export type ComboInteractionEvent = NodeInteractionEvent; | ||
export type CanvasInteractionEvent = 'click' | 'dblclick' | 'drag' | 'dragstart' | 'dragend' | 'dragenter' | 'dragleave' | 'drop' | 'keydown' | 'keyup' | 'mouseenter' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchmove' | 'touchend' | 'wheel' | 'contextmenu'; | ||
/** | ||
@@ -20,13 +20,13 @@ * @description | ||
* @example | ||
* English: https://g6.antv.vision/en/docs/api/Event | ||
* Chinese: https://g6.antv.vision/zh/docs/api/Event | ||
* English: https://g6.antv.antgroup.com/en/api/Event | ||
* Chinese: https://g6.antv.antgroup.com/api/Event | ||
*/ | ||
export declare type GraphTimingEvents = 'beforerender' | 'afterrender' | 'beforeadditem' | 'afteradditem' | 'beforeremoveitem' | 'afterremoveitem' | 'beforeupdateitem' | 'afterupdateitem' | 'beforeitemvisibilitychange' | 'afteritemvisibilitychange' | 'beforeitemstatechange' | 'afteritemstatechange' | 'beforeitemrefresh' | 'afteritemrefresh' | 'beforeitemstatesclear' | 'afteritemstatesclear' | 'beforemodechange' | 'aftermodechange' | 'beforelayout' | 'afterlayout' | 'beforegraphrefreshposition' | 'aftergraphrefreshposition' | 'beforegraphrefresh' | 'aftergraphrefresh' | 'beforeanimate' | 'afteranimate' | 'beforecreateedge' | 'aftercreateedge' | 'beforecollapseexpandcombo' | 'aftercollapseexpandcombo' | 'graphstatechange' | 'afteractivaterelations' | 'nodeselectchange' | 'itemcollapsed' | 'tooltipchange' | 'wheelzoom' | 'viewportchange' | 'dragnodeend' | 'stackchange' | 'beforepaint' | 'afterpaint'; | ||
declare type MobileInteractionEvent = 'tap' | 'pinchstart' | 'pinmove' | 'panstart' | 'panmove' | 'panend'; | ||
export declare type NodeEventType = `node:${NodeInteractionEvent}`; | ||
export declare type EdgeEventType = `edge:${EdgeInteractionEvent}`; | ||
export declare type ComboEventType = `combo:${ComboInteractionEvent}`; | ||
export declare type CanvasEventType = `canvas:${CanvasInteractionEvent}`; | ||
export declare type GraphTimingEventType = GraphTimingEvents; | ||
export declare type MobileInteractionEventType = MobileInteractionEvent; | ||
export type GraphTimingEvents = 'beforerender' | 'afterrender' | 'beforeadditem' | 'afteradditem' | 'beforeremoveitem' | 'afterremoveitem' | 'beforeupdateitem' | 'afterupdateitem' | 'beforeitemvisibilitychange' | 'afteritemvisibilitychange' | 'beforeitemstatechange' | 'afteritemstatechange' | 'beforeitemrefresh' | 'afteritemrefresh' | 'beforeitemstatesclear' | 'afteritemstatesclear' | 'beforemodechange' | 'aftermodechange' | 'beforelayout' | 'afterlayout' | 'beforegraphrefreshposition' | 'aftergraphrefreshposition' | 'beforegraphrefresh' | 'aftergraphrefresh' | 'beforeanimate' | 'afteranimate' | 'beforecreateedge' | 'aftercreateedge' | 'beforecollapseexpandcombo' | 'aftercollapseexpandcombo' | 'graphstatechange' | 'afteractivaterelations' | 'nodeselectchange' | 'itemcollapsed' | 'tooltipchange' | 'wheelzoom' | 'viewportchange' | 'dragnodeend' | 'stackchange' | 'beforepaint' | 'afterpaint'; | ||
type MobileInteractionEvent = 'tap' | 'pinchstart' | 'pinmove' | 'panstart' | 'panmove' | 'panend'; | ||
export type NodeEventType = `node:${NodeInteractionEvent}`; | ||
export type EdgeEventType = `edge:${EdgeInteractionEvent}`; | ||
export type ComboEventType = `combo:${ComboInteractionEvent}`; | ||
export type CanvasEventType = `canvas:${CanvasInteractionEvent}`; | ||
export type GraphTimingEventType = GraphTimingEvents; | ||
export type MobileInteractionEventType = MobileInteractionEvent; | ||
/** | ||
@@ -37,5 +37,5 @@ * @description | ||
* @example | ||
* https://g6.antv.vision/en/docs/api/Event#combo-interaction-event | ||
* https://g6.antv.antgroup.com/en/api/Event#combo-interaction-event | ||
*/ | ||
export declare type G6Event = NodeEventType | EdgeEventType | ComboEventType | CanvasEventType | GraphTimingEventType | MobileInteractionEventType | CommonInteractionEvent | CommonInteractionEvent | (string & {}); | ||
export type G6Event = NodeEventType | EdgeEventType | ComboEventType | CanvasEventType | GraphTimingEventType | MobileInteractionEventType | CommonInteractionEvent | CommonInteractionEvent | (string & {}); | ||
export interface IG6GraphEvent extends GraphEvent { | ||
@@ -61,4 +61,4 @@ item: Item | null; | ||
} | ||
export declare type IPointTuple = [number, number]; | ||
export declare type Matrix = number[]; | ||
export type IPointTuple = [number, number]; | ||
export type Matrix = number[]; | ||
export interface IBBox extends BBox { | ||
@@ -69,3 +69,3 @@ centerX?: number; | ||
} | ||
export declare type Padding = number | string | number[]; | ||
export type Padding = number | string | number[]; | ||
export interface ArrowConfig { | ||
@@ -81,3 +81,3 @@ d?: number; | ||
} | ||
export declare type ShapeStyle = Partial<{ | ||
export type ShapeStyle = Partial<{ | ||
x: number; | ||
@@ -128,4 +128,4 @@ y: number; | ||
} | ||
export declare type SourceTarget = 'source' | 'target'; | ||
export declare type LoopConfig = Partial<{ | ||
export type SourceTarget = 'source' | 'target'; | ||
export type LoopConfig = Partial<{ | ||
dist: number; | ||
@@ -144,3 +144,3 @@ position: string; | ||
} | ||
export declare type ZoomKeyType = 'shift' | 'ctrl' | 'alt' | 'control' | 'meta'; | ||
export type ZoomKeyType = 'shift' | 'ctrl' | 'alt' | 'control' | 'meta'; | ||
export interface ModeOption { | ||
@@ -199,3 +199,3 @@ type: string; | ||
} | ||
export declare type ModeType = string | ModeOption; | ||
export type ModeType = string | ModeOption; | ||
export interface Modes { | ||
@@ -213,3 +213,3 @@ default?: ModeType[]; | ||
} | ||
export declare type ModelStyle = Partial<{ | ||
export type ModelStyle = Partial<{ | ||
[key: string]: unknown; | ||
@@ -339,3 +339,3 @@ style: ShapeStyle; | ||
} | ||
export declare type LabelStyle = Partial<{ | ||
export type LabelStyle = Partial<{ | ||
rotate: number; | ||
@@ -372,3 +372,3 @@ textAlign: 'center' | 'start' | 'end' | 'left' | 'right'; | ||
}>; | ||
export declare type Easeing = 'easeLinear' | 'easePolyIn' | 'easePolyOut' | 'easePolyInOut' | 'easeQuad' | 'easeQuadIn' | 'easeQuadOut' | 'easeQuadInOut' | string; | ||
export type Easeing = 'easeLinear' | 'easePolyIn' | 'easePolyOut' | 'easePolyInOut' | 'easeQuad' | 'easeQuadIn' | 'easeQuadOut' | 'easeQuadInOut' | string; | ||
export interface ModelConfig extends ModelStyle { | ||
@@ -516,3 +516,3 @@ type?: string; | ||
} | ||
export declare type EdgeData = EdgeConfig & { | ||
export type EdgeData = EdgeConfig & { | ||
sourceNode: Node; | ||
@@ -544,3 +544,3 @@ targetNode: Node; | ||
} | ||
export declare type DefaultBehaviorType = IG6GraphEvent | string | number | object; | ||
export type DefaultBehaviorType = IG6GraphEvent | string | number | object; | ||
export interface BehaviorOption { | ||
@@ -558,5 +558,5 @@ getEvents: () => { | ||
} | ||
export declare type IEvent = Record<G6Event, string>; | ||
export declare type ITEM_TYPE = 'node' | 'edge' | 'combo' | 'vedge'; | ||
export declare type NodeIdxMap = { | ||
export type IEvent = Record<G6Event, string>; | ||
export type ITEM_TYPE = 'node' | 'edge' | 'combo' | 'vedge'; | ||
export type NodeIdxMap = { | ||
[key: string]: number; | ||
@@ -605,3 +605,3 @@ }; | ||
} | ||
export declare type TimeBarType = 'trend' | 'simple' | 'tick'; | ||
export type TimeBarType = 'trend' | 'simple' | 'tick'; | ||
export interface HullCfg { | ||
@@ -608,0 +608,0 @@ id: string; |
@@ -36,3 +36,3 @@ import { IG6GraphEvent, Padding, Matrix, Item } from '../types'; | ||
* 若 edges 中存在两端点相同的边,使用 quadratic 边并自动计算 curveOffset 使它们不相互重叠 | ||
* 文档: https://g6.antv.vision/en/docs/api/Util | ||
* 文档: https://g6.antv.antgroup.com/en/api/Util | ||
* @param edges 边数据集合 | ||
@@ -39,0 +39,0 @@ * @param offsetDiff 相邻两边的 offset 之差 |
@@ -119,3 +119,3 @@ import { isString, isNumber, isArray } from '@antv/util'; | ||
* 若 edges 中存在两端点相同的边,使用 quadratic 边并自动计算 curveOffset 使它们不相互重叠 | ||
* 文档: https://g6.antv.vision/en/docs/api/Util | ||
* 文档: https://g6.antv.antgroup.com/en/api/Util | ||
* @param edges 边数据集合 | ||
@@ -122,0 +122,0 @@ * @param offsetDiff 相邻两边的 offset 之差 |
@@ -56,3 +56,3 @@ "use strict"; | ||
var _default = { | ||
version: '0.7.13', | ||
version: '0.7.14', | ||
rootContainerClassName: 'root-container', | ||
@@ -59,0 +59,0 @@ nodeContainerClassName: 'node-container', |
import { IGroup, Point } from '@antv/g-base'; | ||
import { IBBox, IPoint, IShapeBase, Item, ModelConfig, NodeConfig, EdgeConfig, ModelStyle, ShapeStyle, Indexable, ComboConfig, ITEM_TYPE, TreeGraphData, UpdateType } from '../types'; | ||
export declare type IItemBaseConfig = Partial<{ | ||
export type IItemBaseConfig = Partial<{ | ||
/** | ||
@@ -5,0 +5,0 @@ * id |
import { IGroup, IShape } from '@antv/g-base'; | ||
import { IPoint, Item, LabelStyle, ModelConfig, UpdateType } from '../types'; | ||
export declare type ILabelConfig = Partial<{ | ||
export type ILabelConfig = Partial<{ | ||
position: string; | ||
@@ -12,4 +12,4 @@ offset: number; | ||
}>; | ||
export declare type ShapeDefine = string | ((cfg: ModelConfig) => string); | ||
export declare type ShapeOptions = Partial<{ | ||
export type ShapeDefine = string | ((cfg: ModelConfig) => string); | ||
export type ShapeOptions = Partial<{ | ||
options: ModelConfig; | ||
@@ -16,0 +16,0 @@ /** |
@@ -7,9 +7,9 @@ import { IGroup, Event as GraphEvent, BBox, AnimateCfg, ICanvas, IShape } from '@antv/g-base'; | ||
export * from '../interface'; | ||
export declare type UpdateType = 'move' | 'bbox' | 'style' | 'bbox|label' | 'style|label' | undefined; | ||
export declare type Item = INode | IEdge | ICombo; | ||
export declare type CommonInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'dragout' | 'drop' | 'focus' | 'blur' | 'keyup' | 'keydown' | 'mousedown' | 'mouseenter' | 'mouseup' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu' | 'wheel'; | ||
export declare type NodeInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'drop' | 'mousedown' | 'mouseenter' | 'mouseup' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'panestart' | 'panmove' | 'panend' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu'; | ||
export declare type EdgeInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'mouseenter' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu'; | ||
export declare type ComboInteractionEvent = NodeInteractionEvent; | ||
export declare type CanvasInteractionEvent = 'click' | 'dblclick' | 'drag' | 'dragstart' | 'dragend' | 'dragenter' | 'dragleave' | 'drop' | 'keydown' | 'keyup' | 'mouseenter' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchmove' | 'touchend' | 'wheel' | 'contextmenu'; | ||
export type UpdateType = 'move' | 'bbox' | 'style' | 'bbox|label' | 'style|label' | undefined; | ||
export type Item = INode | IEdge | ICombo; | ||
export type CommonInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'dragout' | 'drop' | 'focus' | 'blur' | 'keyup' | 'keydown' | 'mousedown' | 'mouseenter' | 'mouseup' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu' | 'wheel'; | ||
export type NodeInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'drop' | 'mousedown' | 'mouseenter' | 'mouseup' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'panestart' | 'panmove' | 'panend' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu'; | ||
export type EdgeInteractionEvent = 'click' | 'dblclick' | 'dragstart' | 'drag' | 'dragend' | 'dragenter' | 'dragleave' | 'dragover' | 'mouseenter' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchmove' | 'touchend' | 'contextmenu'; | ||
export type ComboInteractionEvent = NodeInteractionEvent; | ||
export type CanvasInteractionEvent = 'click' | 'dblclick' | 'drag' | 'dragstart' | 'dragend' | 'dragenter' | 'dragleave' | 'drop' | 'keydown' | 'keyup' | 'mouseenter' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseleave' | 'mousedown' | 'mouseup' | 'touchstart' | 'touchmove' | 'touchend' | 'wheel' | 'contextmenu'; | ||
/** | ||
@@ -20,13 +20,13 @@ * @description | ||
* @example | ||
* English: https://g6.antv.vision/en/docs/api/Event | ||
* Chinese: https://g6.antv.vision/zh/docs/api/Event | ||
* English: https://g6.antv.antgroup.com/en/api/Event | ||
* Chinese: https://g6.antv.antgroup.com/api/Event | ||
*/ | ||
export declare type GraphTimingEvents = 'beforerender' | 'afterrender' | 'beforeadditem' | 'afteradditem' | 'beforeremoveitem' | 'afterremoveitem' | 'beforeupdateitem' | 'afterupdateitem' | 'beforeitemvisibilitychange' | 'afteritemvisibilitychange' | 'beforeitemstatechange' | 'afteritemstatechange' | 'beforeitemrefresh' | 'afteritemrefresh' | 'beforeitemstatesclear' | 'afteritemstatesclear' | 'beforemodechange' | 'aftermodechange' | 'beforelayout' | 'afterlayout' | 'beforegraphrefreshposition' | 'aftergraphrefreshposition' | 'beforegraphrefresh' | 'aftergraphrefresh' | 'beforeanimate' | 'afteranimate' | 'beforecreateedge' | 'aftercreateedge' | 'beforecollapseexpandcombo' | 'aftercollapseexpandcombo' | 'graphstatechange' | 'afteractivaterelations' | 'nodeselectchange' | 'itemcollapsed' | 'tooltipchange' | 'wheelzoom' | 'viewportchange' | 'dragnodeend' | 'stackchange' | 'beforepaint' | 'afterpaint'; | ||
declare type MobileInteractionEvent = 'tap' | 'pinchstart' | 'pinmove' | 'panstart' | 'panmove' | 'panend'; | ||
export declare type NodeEventType = `node:${NodeInteractionEvent}`; | ||
export declare type EdgeEventType = `edge:${EdgeInteractionEvent}`; | ||
export declare type ComboEventType = `combo:${ComboInteractionEvent}`; | ||
export declare type CanvasEventType = `canvas:${CanvasInteractionEvent}`; | ||
export declare type GraphTimingEventType = GraphTimingEvents; | ||
export declare type MobileInteractionEventType = MobileInteractionEvent; | ||
export type GraphTimingEvents = 'beforerender' | 'afterrender' | 'beforeadditem' | 'afteradditem' | 'beforeremoveitem' | 'afterremoveitem' | 'beforeupdateitem' | 'afterupdateitem' | 'beforeitemvisibilitychange' | 'afteritemvisibilitychange' | 'beforeitemstatechange' | 'afteritemstatechange' | 'beforeitemrefresh' | 'afteritemrefresh' | 'beforeitemstatesclear' | 'afteritemstatesclear' | 'beforemodechange' | 'aftermodechange' | 'beforelayout' | 'afterlayout' | 'beforegraphrefreshposition' | 'aftergraphrefreshposition' | 'beforegraphrefresh' | 'aftergraphrefresh' | 'beforeanimate' | 'afteranimate' | 'beforecreateedge' | 'aftercreateedge' | 'beforecollapseexpandcombo' | 'aftercollapseexpandcombo' | 'graphstatechange' | 'afteractivaterelations' | 'nodeselectchange' | 'itemcollapsed' | 'tooltipchange' | 'wheelzoom' | 'viewportchange' | 'dragnodeend' | 'stackchange' | 'beforepaint' | 'afterpaint'; | ||
type MobileInteractionEvent = 'tap' | 'pinchstart' | 'pinmove' | 'panstart' | 'panmove' | 'panend'; | ||
export type NodeEventType = `node:${NodeInteractionEvent}`; | ||
export type EdgeEventType = `edge:${EdgeInteractionEvent}`; | ||
export type ComboEventType = `combo:${ComboInteractionEvent}`; | ||
export type CanvasEventType = `canvas:${CanvasInteractionEvent}`; | ||
export type GraphTimingEventType = GraphTimingEvents; | ||
export type MobileInteractionEventType = MobileInteractionEvent; | ||
/** | ||
@@ -37,5 +37,5 @@ * @description | ||
* @example | ||
* https://g6.antv.vision/en/docs/api/Event#combo-interaction-event | ||
* https://g6.antv.antgroup.com/en/api/Event#combo-interaction-event | ||
*/ | ||
export declare type G6Event = NodeEventType | EdgeEventType | ComboEventType | CanvasEventType | GraphTimingEventType | MobileInteractionEventType | CommonInteractionEvent | CommonInteractionEvent | (string & {}); | ||
export type G6Event = NodeEventType | EdgeEventType | ComboEventType | CanvasEventType | GraphTimingEventType | MobileInteractionEventType | CommonInteractionEvent | CommonInteractionEvent | (string & {}); | ||
export interface IG6GraphEvent extends GraphEvent { | ||
@@ -61,4 +61,4 @@ item: Item | null; | ||
} | ||
export declare type IPointTuple = [number, number]; | ||
export declare type Matrix = number[]; | ||
export type IPointTuple = [number, number]; | ||
export type Matrix = number[]; | ||
export interface IBBox extends BBox { | ||
@@ -69,3 +69,3 @@ centerX?: number; | ||
} | ||
export declare type Padding = number | string | number[]; | ||
export type Padding = number | string | number[]; | ||
export interface ArrowConfig { | ||
@@ -81,3 +81,3 @@ d?: number; | ||
} | ||
export declare type ShapeStyle = Partial<{ | ||
export type ShapeStyle = Partial<{ | ||
x: number; | ||
@@ -128,4 +128,4 @@ y: number; | ||
} | ||
export declare type SourceTarget = 'source' | 'target'; | ||
export declare type LoopConfig = Partial<{ | ||
export type SourceTarget = 'source' | 'target'; | ||
export type LoopConfig = Partial<{ | ||
dist: number; | ||
@@ -144,3 +144,3 @@ position: string; | ||
} | ||
export declare type ZoomKeyType = 'shift' | 'ctrl' | 'alt' | 'control' | 'meta'; | ||
export type ZoomKeyType = 'shift' | 'ctrl' | 'alt' | 'control' | 'meta'; | ||
export interface ModeOption { | ||
@@ -199,3 +199,3 @@ type: string; | ||
} | ||
export declare type ModeType = string | ModeOption; | ||
export type ModeType = string | ModeOption; | ||
export interface Modes { | ||
@@ -213,3 +213,3 @@ default?: ModeType[]; | ||
} | ||
export declare type ModelStyle = Partial<{ | ||
export type ModelStyle = Partial<{ | ||
[key: string]: unknown; | ||
@@ -339,3 +339,3 @@ style: ShapeStyle; | ||
} | ||
export declare type LabelStyle = Partial<{ | ||
export type LabelStyle = Partial<{ | ||
rotate: number; | ||
@@ -372,3 +372,3 @@ textAlign: 'center' | 'start' | 'end' | 'left' | 'right'; | ||
}>; | ||
export declare type Easeing = 'easeLinear' | 'easePolyIn' | 'easePolyOut' | 'easePolyInOut' | 'easeQuad' | 'easeQuadIn' | 'easeQuadOut' | 'easeQuadInOut' | string; | ||
export type Easeing = 'easeLinear' | 'easePolyIn' | 'easePolyOut' | 'easePolyInOut' | 'easeQuad' | 'easeQuadIn' | 'easeQuadOut' | 'easeQuadInOut' | string; | ||
export interface ModelConfig extends ModelStyle { | ||
@@ -516,3 +516,3 @@ type?: string; | ||
} | ||
export declare type EdgeData = EdgeConfig & { | ||
export type EdgeData = EdgeConfig & { | ||
sourceNode: Node; | ||
@@ -544,3 +544,3 @@ targetNode: Node; | ||
} | ||
export declare type DefaultBehaviorType = IG6GraphEvent | string | number | object; | ||
export type DefaultBehaviorType = IG6GraphEvent | string | number | object; | ||
export interface BehaviorOption { | ||
@@ -558,5 +558,5 @@ getEvents: () => { | ||
} | ||
export declare type IEvent = Record<G6Event, string>; | ||
export declare type ITEM_TYPE = 'node' | 'edge' | 'combo' | 'vedge'; | ||
export declare type NodeIdxMap = { | ||
export type IEvent = Record<G6Event, string>; | ||
export type ITEM_TYPE = 'node' | 'edge' | 'combo' | 'vedge'; | ||
export type NodeIdxMap = { | ||
[key: string]: number; | ||
@@ -605,3 +605,3 @@ }; | ||
} | ||
export declare type TimeBarType = 'trend' | 'simple' | 'tick'; | ||
export type TimeBarType = 'trend' | 'simple' | 'tick'; | ||
export interface HullCfg { | ||
@@ -608,0 +608,0 @@ id: string; |
@@ -36,3 +36,3 @@ import { IG6GraphEvent, Padding, Matrix, Item } from '../types'; | ||
* 若 edges 中存在两端点相同的边,使用 quadratic 边并自动计算 curveOffset 使它们不相互重叠 | ||
* 文档: https://g6.antv.vision/en/docs/api/Util | ||
* 文档: https://g6.antv.antgroup.com/en/api/Util | ||
* @param edges 边数据集合 | ||
@@ -39,0 +39,0 @@ * @param offsetDiff 相邻两边的 offset 之差 |
@@ -130,3 +130,3 @@ "use strict"; | ||
* 若 edges 中存在两端点相同的边,使用 quadratic 边并自动计算 curveOffset 使它们不相互重叠 | ||
* 文档: https://g6.antv.vision/en/docs/api/Util | ||
* 文档: https://g6.antv.antgroup.com/en/api/Util | ||
* @param edges 边数据集合 | ||
@@ -133,0 +133,0 @@ * @param offsetDiff 相邻两边的 offset 之差 |
{ | ||
"name": "@antv/g6-core", | ||
"version": "0.7.13", | ||
"version": "0.7.14", | ||
"description": "A Graph Visualization Framework in JavaScript", | ||
@@ -14,3 +14,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://g6.antv.vision", | ||
"homepage": "https://g6.antv.antgroup.com/", | ||
"bugs": { | ||
@@ -17,0 +17,0 @@ "url": "https://github.com/antvis/g6/issues" |
@@ -111,3 +111,3 @@ # G6: A Graph Visualization Framework in TypeScript | ||
For more information of the usage, please refer to [Getting Started](https://antv-g6.gitee.io/en/docs/manual/getting-started). | ||
For more information of the usage, please refer to [Getting Started](https://g6.antv.antgroup.com/en/manual/getting-started). | ||
@@ -138,6 +138,6 @@ ## Development | ||
- <a href='https://g6.antv.vision/en/docs/manual/tutorial/preface' target='_blank'>Tutorial</a> | ||
- <a href='https://g6.antv.vision/en/docs/manual/middle/overview' target='_blank'>Middle Guides</a> | ||
- <a href='https://g6.antv.vision/en/docs/manual/advanced/coordinate-system' target='_blank'>Further Reading</a> | ||
- <a href='https://g6.antv.vision/en/docs/api/Graph' target='_blank'>API Reference</a> | ||
- <a href='https://g6.antv.antgroup.com/en/manual/tutorial/preface' target='_blank'>Tutorial</a> | ||
- <a href='https://g6.antv.antgroup.com/en/manual/middle/overview' target='_blank'>Middle Guides</a> | ||
- <a href='https://g6.antv.antgroup.com/en/manual/advanced/coordinate-system' target='_blank'>Further Reading</a> | ||
- <a href='https://g6.antv.antgroup.com/en/api/graph' target='_blank'>API Reference</a> | ||
@@ -144,0 +144,0 @@ ## G6 Communication Group |
@@ -113,3 +113,3 @@ # G6:图分析引擎 | ||
更多关于 G6 使用的问题,请参考[快速上手](https://antv-g6.gitee.io/zh/docs/manual/getting-started)。 | ||
更多关于 G6 使用的问题,请参考[快速上手](https://g6.antv.antgroup.com/manual/getting-started)。 | ||
@@ -140,6 +140,6 @@ ## 开发 | ||
- <a href='https://g6.antv.vision/zh/docs/manual/tutorial/preface' target='_blank'>入门教程</a> | ||
- <a href='https://g6.antv.vision/zh/docs/manual/middle/overview' target='_blank'>核心概念</a> | ||
- <a href='https://g6.antv.vision/zh/docs/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a> | ||
- <a href='https://g6.antv.vision/zh/docs/api/Graph' target='_blank'>API</a> | ||
- <a href='https://g6.antv.antgroup.com/manual/tutorial/preface' target='_blank'>入门教程</a> | ||
- <a href='https://g6.antv.antgroup.com/manual/middle/overview' target='_blank'>核心概念</a> | ||
- <a href='https://g6.antv.antgroup.com/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a> | ||
- <a href='https://g6.antv.antgroup.com/api/graph' target='_blank'>API</a> | ||
@@ -146,0 +146,0 @@ ## G6 图可视化交流群 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
1176195