MCPcopy
hub / github.com/mathuo/dockview / getLocationOrientation

Function getLocationOrientation

packages/dockview-core/src/gridview/gridview.ts:187–194  ·  view source on GitHub ↗
(
    rootOrientation: Orientation,
    location: number[]
)

Source from the content-addressed store, hash-verified

185}
186
187export function getLocationOrientation(
188 rootOrientation: Orientation,
189 location: number[]
190): Orientation {
191 return location.length % 2 === 0
192 ? orthogonal(rootOrientation)
193 : rootOrientation;
194}
195
196export interface IViewSize {
197 width?: number;

Callers 1

getRelativeLocationFunction · 0.85

Calls 1

orthogonalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…