Public function

Signature
function useTransform(
  ref: React.RefObject<HTMLElement | SVGElement>,
  x?: number,
  y?: number,
  scale?: number,
  rotate?: number,
  additionalOffset?: VecLike
): void
Parameters
NameDescription

ref

React.RefObject<HTMLElement | SVGElement>

x

number

y

number

scale

number

rotate

number

additionalOffset

VecLike
Returns
void
References

VecLike

Source

packages/editor/src/lib/hooks/useTransform.ts

useTLStoreVec