Skip to content

Instantly share code, notes, and snippets.

@rcstr
Created November 5, 2014 16:36
Show Gist options
  • Select an option

  • Save rcstr/ac63486c5a50b1a81a70 to your computer and use it in GitHub Desktop.

Select an option

Save rcstr/ac63486c5a50b1a81a70 to your computer and use it in GitHub Desktop.
// is text or equation?
if (target.data.type === 'text') {
boundingBox.deleteIcon.position = {
x: target.bounds.topRight._x + 30,
y: target.bounds.topRight._y + 20
};
} else if(target.data.type === 'equation') {
boundingBox.deleteIcon.position = {
x: target.bounds.topRight._x + 90,
y: target.bounds.topRight._y + 40
};
} else {
boundingBox.deleteIcon.position = {
x: target.bounds.topRight._x - 20,
y: target.bounds.topRight._y + 20
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment