ピボット / GraphRenderer
抽象的なインターフェース: GraphRenderer
メソッド
clearEmphasis()
abstractclearEmphasis():void
返品
void
clearForecast()
abstractclearForecast():void
返品
void
clearHighlightedElements()
abstractclearHighlightedElements():void
返品
void
destroy()
destroy():
void
レンダラーが所有するリソース (オブザーバー、リスナー) をティアダウン時に解放します。 デフォルトでは何も操作しません。そのようなリソースを保持するレンダラーはこれをオーバーライドします。
返品
void
emphasiseElements()
abstractemphasiseElements(elements):void
パラメータ
elements
返品
void
enterNoteEditMode()
abstractenterNoteEditMode(note):void
パラメータ
note
返品
void
fitAndCenter()
abstractfitAndCenter(forceScale?):void
パラメータ
forceScale?
number
返品
void
fitAndCenterWhenSettled()
fitAndCenterWhenSettled(
forceScale?):Promise<void>
コンテンツのサイズ変更が停止したら、中央に合わせて配置します。横たわるレンダラー SIM が停止した後、数フレームにわたって出力 (例: 拡張されたクラスター) これをオーバーライドして、安定した bbox を待機します。デフォルトはすぐに適合します。 フィットが適用されると解決されます。
パラメータ
forceScale?
number
返品
Promise<void>
focusElement()
abstractfocusElement(element):void
パラメータ
element
返品
void
getCanvas()
getCanvas():
HTMLElement
返品
HTMLElement
getCanvasSelection()
abstractgetCanvasSelection():unknown
返品
unknown
getClosestElementToCursor()
abstractgetClosestElementToCursor(maxDistance?):Node|Edge|Note|null
パラメータ
maxDistance?
number
返品
getContentBounds()
abstractgetContentBounds():GraphBounds|null
返品
GraphBounds | null
getEdgeStyle()
abstractgetEdgeStyle(edge):EdgeStyle
パラメータ
edge
返品
getGraphInteraction()
abstractgetGraphInteraction():GraphInteractions<unknown>
返品
GraphInteractions<unknown>
getNodeClosestToCursor()
abstractgetNodeClosestToCursor(maxDistance?):Node|null
パラメータ
maxDistance?
number
返品
Node | null
getNodeStyle()
abstractgetNodeStyle(node,tier?):NodeStyle
スタイル node で描画します。 tier では、その 1 つの描画のスタイルが ズームが選択する 1 つ: フロア スタイルの -1、またはノードの tiers へのインデックス。
パラメータ
node
tier?
number
返品
getOptions()
abstractgetOptions():GraphRendererOptions
返品
getRootContainer()
getRootContainer():
HTMLElement
グラフのルート コンテナ — クロムを含むすべて。意図的に区別する getCanvas から: クロムが開くたびにキャンバスが縮小します (サイドバー、 データ ドック)、コンテナーはその周囲のページが変更された場合にのみ変更されます。何でも クロムに反応してはいけないものは、代わりにこれを測定します。
返品
HTMLElement
getSelectionBox()
abstractgetSelectionBox():AbstractSelectionBox|null
返品
AbstractSelectionBox | null
getShadowEdgeEnd()
getShadowEdgeEnd():
Point|null
プレビュー エッジが終了するグラフ空間の点、または何も描画されていない場合は null。
返品
Point | null
getZoomBehavior()
abstractgetZoomBehavior():unknown
返品
unknown
getZoomGroup()
abstractgetZoomGroup():HTMLElement|SVGElement|null
返品
HTMLElement | SVGElement | null
graphToScreenCoordinates()
abstractgraphToScreenCoordinates(graphX,graphY):Point
パラメータ
graphX
number
graphY
number
返品
Point
hideShadowEdge()
abstracthideShadowEdge():void
返品
void
highlightElement()
abstracthighlightElement(element):void
パラメータ
element
返品
void
init()
abstractinit():void
返品
void
nextTick()
abstractnextTick():void
返品
void
nextTickFor()
abstractnextTickFor(nodes):void
パラメータ
nodes
Node[]
返品
void
screenToGraphCoordinates()
abstractscreenToGraphCoordinates(screenX,screenY):Point
パラメータ
screenX
number
screenY
number
返品
Point
setupRendering()
setupRendering():
void
返品
void
setViewport()
abstractsetViewport(target):void
パラメータ
target
返品
void
showForecast()
abstractshowForecast(forecast):void
パラメータ
forecast
返品
void
showShadowEdge()
abstractshowShadowEdge(params):void
パラメータ
params
invalid?
boolean
source
targetNode?
targetPosition?
{ x: number; y: number; }
targetPosition.x
number
targetPosition.y
number
返品
void
toggleLassoMode()
abstracttoggleLassoMode(enabled):void
パラメータ
enabled
boolean
返品
void
unHighlightElement()
abstractunHighlightElement(element):void
パラメータ
element
返品
void
update()
abstractupdate(dataChanged):void
パラメータ
dataChanged
boolean
返品
void
updateLayoutProgress()
updateLayoutProgress(
progress,elapsedTime,progressType):void
パラメータ
progress
number
elapsedTime
number
progressType
ProgressType
返品
void
zoomIn()
abstractzoomIn():void
返品
void
zoomOut()
abstractzoomOut():void
返品
void