MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / canBeRotated

Method canBeRotated

src/utils.ts:770–772  ·  view source on GitHub ↗

true if the item can be rotated (checking for prop, not space available)

(n: GridStackNode)

Source from the content-addressed store, hash-verified

768
769 /** true if the item can be rotated (checking for prop, not space available) */
770 public static canBeRotated(n: GridStackNode): boolean {
771 return !(!n || n.w === n.h || n.locked || n.noResize || n.grid?.opts.disableResize || (n.minW && n.minW === n.maxW) || (n.minH && n.minH === n.maxH));
772 }
773}

Callers 3

_keyEventMethod · 0.80
rotateMethod · 0.80
utils-spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected