Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 979 Bytes

position.md

File metadata and controls

17 lines (14 loc) · 979 Bytes

Colors

Thankfully, all versions of ProPresenter represent object positions and sizes in the same way, so this project can have a centralized/shared way to work with them. This short documentation page is shared by all the file parsers and builders this project contains

The IProElementPosition Object

The property names are self descriptive. Keep in mind that while the z property exists, almost all of the time it will have a value of 0 since most people don't position slide elements in 3D space. All values are represented in pixels

Here is an example position object that shows an element that is 984px wide, 728px high, and is 20px offset from the top and left sides of the slide. In this example object we can assume the slide is 1024px wide by 768px high, but has 20px of "padding" on all sides: (1024 - (20 * 2) = 984 and 768 - (20 * 2) = 728)

{
  height: 728,
  width: 984, 
  x: 20,      
  y: 20,      
  z: 0        
}