@antv/layout
Advanced tools
Comparing version 1.2.10 to 1.2.11
@@ -1,2 +0,2 @@ | ||
declare type LinkedNode<T> = { | ||
type LinkedNode<T> = { | ||
prev?: LinkedNode<T>; | ||
@@ -3,0 +3,0 @@ next?: LinkedNode<T>; |
import { ID } from "@antv/graphlib"; | ||
import { Graph } from "../../types"; | ||
export declare type ConflictEntry = { | ||
export type ConflictEntry = { | ||
i: number; | ||
@@ -5,0 +5,0 @@ indegree?: number; |
import { ID, Node } from "@antv/graphlib"; | ||
import { DagreAlign, Graph as IGraph, NodeData } from "../../types"; | ||
declare type Conflicts = Record<ID, Record<ID, boolean>>; | ||
type Conflicts = Record<ID, Record<ID, boolean>>; | ||
export declare const findType1Conflicts: (g: IGraph, layering?: ID[][]) => {}; | ||
@@ -5,0 +5,0 @@ export declare const findType2Conflicts: (g: IGraph, layering?: ID[][]) => {}; |
@@ -10,3 +10,3 @@ import { Graph as IGraph, Node as INode, Edge as IEdge } from "@antv/graphlib"; | ||
} | ||
export declare type CalcNode = INode<CalcNodeData>; | ||
export type CalcNode = INode<CalcNodeData>; | ||
export interface CalcEdgeData extends EdgeData { | ||
@@ -16,4 +16,4 @@ linkDistance?: number; | ||
} | ||
export declare type CalcEdge = IEdge<CalcEdgeData>; | ||
export declare type CalcGraph = IGraph<CalcNodeData, CalcEdgeData>; | ||
export type CalcEdge = IEdge<CalcEdgeData>; | ||
export type CalcGraph = IGraph<CalcNodeData, CalcEdgeData>; | ||
interface FormatCentripetalOptions extends CentripetalOptions { | ||
@@ -20,0 +20,0 @@ leaf: (node: Node, nodes: Node[], edges: Edge[]) => number; |
@@ -6,3 +6,3 @@ import Quad from './quad'; | ||
*/ | ||
declare type BodyProps = { | ||
type BodyProps = { | ||
id?: Number; | ||
@@ -9,0 +9,0 @@ rx: number; |
@@ -6,3 +6,3 @@ import { PointTuple } from "../types"; | ||
*/ | ||
declare type QuadProps = { | ||
type QuadProps = { | ||
xmid: number; | ||
@@ -9,0 +9,0 @@ ymid: number; |
import type { Graph, Node, Point } from "../types"; | ||
export declare type RadialNonoverlapForceOptions = { | ||
export type RadialNonoverlapForceOptions = { | ||
positions: Point[]; | ||
@@ -4,0 +4,0 @@ focusIdx: number; |
@@ -44,8 +44,8 @@ import { Graph as IGraph, Node as INode, Edge as IEdge, PlainObject, GraphView as IGraphView, ID } from '@antv/graphlib'; | ||
/** input node */ | ||
export declare type Node = INode<NodeData>; | ||
export type Node = INode<NodeData>; | ||
/** output node */ | ||
export declare type OutNode = INode<OutNodeData>; | ||
export type OutNode = INode<OutNodeData>; | ||
/** input and output edge */ | ||
export declare type Edge = IEdge<EdgeData>; | ||
export declare type Degree = { | ||
export type Edge = IEdge<EdgeData>; | ||
export type Degree = { | ||
in: number; | ||
@@ -55,9 +55,9 @@ out: number; | ||
}; | ||
export declare type IndexMap = { | ||
export type IndexMap = { | ||
[nodeId: string]: number; | ||
}; | ||
export declare type Graph = IGraph<NodeData, EdgeData>; | ||
export declare type GraphView = IGraphView<NodeData, EdgeData>; | ||
export declare type PointTuple = [number, number] | [number, number, number]; | ||
export declare type Point = { | ||
export type Graph = IGraph<NodeData, EdgeData>; | ||
export type GraphView = IGraphView<NodeData, EdgeData>; | ||
export type PointTuple = [number, number] | [number, number, number]; | ||
export type Point = { | ||
x: number; | ||
@@ -67,4 +67,4 @@ y: number; | ||
}; | ||
export declare type Matrix = number[]; | ||
export declare type LayoutMapping = { | ||
export type Matrix = number[]; | ||
export type LayoutMapping = { | ||
nodes: OutNode[]; | ||
@@ -186,4 +186,4 @@ edges: Edge[]; | ||
} | ||
export declare type DagreRankdir = 'TB' | 'BT' | 'LR' | 'RL' | 'tb' | 'lr' | 'rl' | 'bt'; | ||
export declare type DagreAlign = 'UL' | 'UR' | 'DL' | 'DR'; | ||
export type DagreRankdir = 'TB' | 'BT' | 'LR' | 'RL' | 'tb' | 'lr' | 'rl' | 'bt'; | ||
export type DagreAlign = 'UL' | 'UR' | 'DL' | 'DR'; | ||
export interface DagreLayoutOptions { | ||
@@ -190,0 +190,0 @@ rankdir?: DagreRankdir; |
{ | ||
"name": "@antv/layout", | ||
"version": "1.2.10", | ||
"version": "1.2.11", | ||
"description": "graph layout algorithm", | ||
@@ -54,3 +54,3 @@ "license": "MIT", | ||
"scripts": { | ||
"clean": "rimraf dist lib", | ||
"clean": "rimraf dist lib tsconfig.tsbuildinfo", | ||
"dev": "webpack --config webpack.dev.config.js --mode development", | ||
@@ -57,0 +57,0 @@ "build": "npm run clean && npm run build:esm && npm run build:umd", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3672533
196
13985