Skip to content

Instantly share code, notes, and snippets.

@madhums
Last active December 29, 2015 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madhums/08ec24ed744ffbb6a729 to your computer and use it in GitHub Desktop.
Save madhums/08ec24ed744ffbb6a729 to your computer and use it in GitHub Desktop.
var layers = [
{
image: 'image 1',
x1: 0,
y1: 0,
x2: 100,
y2: 100
},
{
image: 'image 2',
x1: 10,
y1: 10,
x2: 20,
y2: 20
},
{
text: 'cool stuff',
x1: 10,
y1: 10,
x2: 20,
y2: 20
}
]
@madhums
Copy link
Author

madhums commented Dec 29, 2015

Object model:

{ 
  text: String, 
  image: String,
  x1: Number,
  y1: Number,
  x2: Number,
  y2: Number
}

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment