コンテンツへスキップ

pivotick v3.0.0


ピボット / GraphRenderer

抽象的なインターフェース: GraphRenderer ​

定義: GraphRenderer.ts:75

メソッド ​

clearEmphasis() ​

abstract clearEmphasis(): void

定義: GraphRenderer.ts:123

返品 ​

void


clearForecast() ​

abstract clearForecast(): void

定義: GraphRenderer.ts:125

返品 ​

void


clearHighlightedElements() ​

abstract clearHighlightedElements(): void

定義: GraphRenderer.ts:121

返品 ​

void


destroy() ​

destroy(): void

定義: GraphRenderer.ts:150

レンダラーが所有するリソース (オブザーバー、リスナー) をティアダウン時に解放します。 デフォルトでは何も操作しません。そのようなリソースを保持するレンダラーはこれをオーバーライドします。

返品 ​

void


emphasiseElements() ​

abstract emphasiseElements(elements): void

定義: GraphRenderer.ts:122

パラメータ ​

elements ​

(Node | Edge)[]

返品 ​

void


enterNoteEditMode() ​

abstract enterNoteEditMode(note): void

定義: GraphRenderer.ts:133

パラメータ ​

note ​

Note

返品 ​

void


fitAndCenter() ​

abstract fitAndCenter(forceScale?): void

定義: GraphRenderer.ts:115

パラメータ ​

forceScale? ​

number

返品 ​

void


fitAndCenterWhenSettled() ​

fitAndCenterWhenSettled(forceScale?): Promise<void>

定義: GraphRenderer.ts:141

コンテンツのサイズ変更が停止したら、中央に合わせて配置します。横たわるレンダラー SIM が停止した後、数フレームにわたって出力 (例: 拡張されたクラスター) これをオーバーライドして、安定した bbox を待機します。デフォルトはすぐに適合します。 フィットが適用されると解決されます。

パラメータ ​

forceScale? ​

number

返品 ​

Promise<void>


focusElement() ​

abstract focusElement(element): void

定義: GraphRenderer.ts:118

パラメータ ​

element ​

Node | Edge | Note

返品 ​

void


getCanvas() ​

getCanvas(): HTMLElement

定義: GraphRenderer.ts:152

返品 ​

HTMLElement


getCanvasSelection() ​

abstract getCanvasSelection(): unknown

定義: GraphRenderer.ts:111

返品 ​

unknown


getClosestElementToCursor() ​

abstract getClosestElementToCursor(maxDistance?): Node | Edge | Note | null

定義: GraphRenderer.ts:107

パラメータ ​

maxDistance? ​

number

返品 ​

Node | Edge | Note | null


getContentBounds() ​

abstract getContentBounds(): GraphBounds | null

定義: GraphRenderer.ts:116

返品 ​

GraphBounds | null


getEdgeStyle() ​

abstract getEdgeStyle(edge): EdgeStyle

定義: GraphRenderer.ts:99

パラメータ ​

edge ​

Edge

返品 ​

EdgeStyle


getGraphInteraction() ​

abstract getGraphInteraction(): GraphInteractions<unknown>

定義: GraphRenderer.ts:110

返品 ​

GraphInteractions<unknown>


getNodeClosestToCursor() ​

abstract getNodeClosestToCursor(maxDistance?): Node | null

定義: GraphRenderer.ts:108

パラメータ ​

maxDistance? ​

number

返品 ​

Node | null


getNodeStyle() ​

abstract getNodeStyle(node, tier?): NodeStyle

定義: GraphRenderer.ts:98

スタイル node で描画します。 tier では、その 1 つの描画のスタイルが ズームが選択する 1 つ: フロア スタイルの -1、またはノードの tiers へのインデックス。

パラメータ ​

node ​

Node

tier? ​

number

返品 ​

NodeStyle


getOptions() ​

abstract getOptions(): GraphRendererOptions

定義: GraphRenderer.ts:100

返品 ​

GraphRendererOptions


getRootContainer() ​

getRootContainer(): HTMLElement

定義: GraphRenderer.ts:162

グラフのルート コンテナ — クロムを含むすべて。意図的に区別する getCanvas から: クロムが開くたびにキャンバスが縮小します (サイドバー、 データ ドック)、コンテナーはその周囲のページが変更された場合にのみ変更されます。何でも クロムに反応してはいけないものは、代わりにこれを測定します。

返品 ​

HTMLElement


getSelectionBox() ​

abstract getSelectionBox(): AbstractSelectionBox | null

定義: GraphRenderer.ts:109

返品 ​

AbstractSelectionBox | null


getShadowEdgeEnd() ​

getShadowEdgeEnd(): Point | null

定義: GraphRenderer.ts:130

プレビュー エッジが終了するグラフ空間の点、または何も描画されていない場合は null。

返品 ​

Point | null


getZoomBehavior() ​

abstract getZoomBehavior(): unknown

定義: GraphRenderer.ts:103

返品 ​

unknown


getZoomGroup() ​

abstract getZoomGroup(): HTMLElement | SVGElement | null

定義: GraphRenderer.ts:112

返品 ​

HTMLElement | SVGElement | null


graphToScreenCoordinates() ​

abstract graphToScreenCoordinates(graphX, graphY): Point

定義: GraphRenderer.ts:105

パラメータ ​

graphX ​

number

graphY ​

number

返品 ​

Point


hideShadowEdge() ​

abstract hideShadowEdge(): void

定義: GraphRenderer.ts:127

返品 ​

void


highlightElement() ​

abstract highlightElement(element): void

定義: GraphRenderer.ts:119

パラメータ ​

element ​

Node | Edge

返品 ​

void


init() ​

abstract init(): void

定義: GraphRenderer.ts:92

返品 ​

void


nextTick() ​

abstract nextTick(): void

定義: GraphRenderer.ts:101

返品 ​

void


nextTickFor() ​

abstract nextTickFor(nodes): void

定義: GraphRenderer.ts:102

パラメータ ​

nodes ​

Node[]

返品 ​

void


screenToGraphCoordinates() ​

abstract screenToGraphCoordinates(screenX, screenY): Point

定義: GraphRenderer.ts:104

パラメータ ​

screenX ​

number

screenY ​

number

返品 ​

Point


setupRendering() ​

setupRendering(): void

定義: GraphRenderer.ts:197

返品 ​

void


setViewport() ​

abstract setViewport(target): void

定義: GraphRenderer.ts:117

パラメータ ​

target ​

ViewportTarget

返品 ​

void


showForecast() ​

abstract showForecast(forecast): void

定義: GraphRenderer.ts:124

パラメータ ​

forecast ​

GraphForecast

返品 ​

void


showShadowEdge() ​

abstract showShadowEdge(params): void

定義: GraphRenderer.ts:126

パラメータ ​

params ​
invalid? ​

boolean

source ​

Node | Note

targetNode? ​

Node

targetPosition? ​

{ x: number; y: number; }

targetPosition.x ​

number

targetPosition.y ​

number

返品 ​

void


toggleLassoMode() ​

abstract toggleLassoMode(enabled): void

定義: GraphRenderer.ts:106

パラメータ ​

enabled ​

boolean

返品 ​

void


unHighlightElement() ​

abstract unHighlightElement(element): void

定義: GraphRenderer.ts:120

パラメータ ​

element ​

Node | Edge

返品 ​

void


update() ​

abstract update(dataChanged): void

定義: GraphRenderer.ts:93

パラメータ ​

dataChanged ​

boolean

返品 ​

void


updateLayoutProgress() ​

updateLayoutProgress(progress, elapsedTime, progressType): void

定義: GraphRenderer.ts:166

パラメータ ​

progress ​

number

elapsedTime ​

number

progressType ​

ProgressType

返品 ​

void


zoomIn() ​

abstract zoomIn(): void

定義: GraphRenderer.ts:113

返品 ​

void


zoomOut() ​

abstract zoomOut(): void

定義: GraphRenderer.ts:114

返品 ​

void