Capítulo 273 de 411

Chapter 273: MotionPathPlugin.convertCoordinates()

Core Idea

Converts a point from one element's local coordinate space into another element's local coordinate space, correctly accounting for any number of nested transforms on either element.

Reference Tables

ParameterTypeDescription
fromElementElement | windowsource coordinate space
toElementElement | windowtarget coordinate space
pointObject (optional){x, y} in fromElement's space

Returns: the converted point (or a Matrix2D if no point is supplied).

Connects To

  • Align transformOrigin of two elements (Helper): built directly on top of this method.
  • MotionPathPlugin.getGlobalMatrix(): the lower-level matrix this builds on.