@graphty/graphty-element / index / isAccelerationPolicy
Function: isAccelerationPolicy() ​
isAccelerationPolicy(
value):value is AccelerationPolicy
Defined in: graphty-element/src/acceleration/types.ts:74
Whether a value is one of the three acceleration policies.
A host that offers the choice gets the value back from storage, a query string or a change handler, where it is an unknown string. This is the check the element itself runs on the acceleration attribute, so a host cannot accept a value the element would refuse.
Parameters ​
value ​
unknown
Anything at all.
Returns ​
value is AccelerationPolicy
True when value is "auto", "off" or "required".