Skip to content

anim-format (runtime format) / joinOffsets

Function: joinOffsets() ​

ts
function joinOffsets(base, extra): 
  | Partial<Record<"length" | "x" | "y" | "rotation" | "scaleX" | "scaleY", number>>
  | undefined;

offsets put together: extra on top of base (add; scales multiply)

Parameters ​

ParameterType
base| Partial<Record<"length" | "x" | "y" | "rotation" | "scaleX" | "scaleY", number>> | undefined
extra| Partial<Record<"length" | "x" | "y" | "rotation" | "scaleX" | "scaleY", number>> | undefined

Returns ​

| Partial<Record<"length" | "x" | "y" | "rotation" | "scaleX" | "scaleY", number>> | undefined

HereSplash — 2D animation for the web