-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polygon support #8
Conversation
@@ -83,12 +85,17 @@ var ShapeManager = function ShapeManager(elementId, width, height, options) { | |||
function(){ | |||
self.stopDrag.apply(self, arguments); | |||
}); | |||
// this.newShapeBg.click( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed
this._id = this.manager.getRandomId(); | ||
} | ||
this._points = options.points; | ||
// this._rotation = options.rotation || 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed
this.element.drag( | ||
function(dx, dy) { | ||
// DRAG, update location and redraw | ||
dx = dx / self._zoomFraction; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be 0
?
var rv = { | ||
'type': "Polygon", | ||
'points': this._points, | ||
// 'rotation': this._rotation, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed
this.element.attr({'path': path, | ||
'stroke': strokeColor, | ||
'stroke-width': strokeW}); | ||
// this.element.transform('r'+ this._rotation); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
handle = self.paper.rect(hx-hsize/2, hy-hsize/2, hsize, hsize); | ||
handle.attr({'cursor': 'move'}); | ||
handle.h_id = i; | ||
// handle.line = self; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove
You indicate that shape-editor was pushed to npm. |
Yes - I am the sole owner.
If you create an account https://docs.npmjs.com/cli/adduser I can add you as an owner https://docs.npmjs.com/cli/owner |
now we have a mismatch the version on npm and no tag on github |
As discussed briefly... Any changes to this PR, and merging with develop will make a version 3.1.1 that will need pushing to npm. But, we haven't tagged 3.1.0 on github yet. |
Merging as it is to match publicly available version |
The head of this branch was pushed to npm as version 3.1.0.
This includes all changes currently in ome/omero-figure#253 which loads shape-editor 3.1.0 from npm.