本文へ移動

@eightkk/vue-weave / core / cullGraphElements

Function: cullGraphElements() ​

cullGraphElements(bounds, view, keep?): GraphVisibleIds

Defined in: src/core/graphView.ts:207

Selects the nodes and edges whose bounds intersect or touch view (closed intervals, unlike graphRectsIntersect): the bounds leave out the stroke width, so an element whose bounds only touch the view edge can still draw into it. IDs listed in keep are always included when they exist, which lets a caller retain the selected, focused or currently edited elements.

Parameters ​

bounds ​

GraphBounds

view ​

GraphRect

keep? ​

GraphCullKeep = {}

Returns ​

GraphVisibleIds

MIT ライセンスで公開しています。