node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »



Simple script to layout slides using angles and distances for impress.js

Reads HTML from standard input and writes HTML into standard output.


The script will consider the following attributes of the step to calculate position and scale

  • data-angles - a series of pairs separated by spaces. Angles are in degrees.


The script will calculate the following attributes

  • data-x - cos(angle1) * distance1 + cos(angle2) * distance2 + cos(angle3) * distance3 + ...
  • data-y - sin(angle1) * distance1 + sin(angle2) * distance2 + sin(angle3) * distance3 + ...