mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-15 06:23:24 -08:00
Compare commits
3 Commits
develop
...
gui-add-la
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d613a9b42 | ||
|
|
09f1302646 | ||
|
|
c39045171e |
@@ -51,17 +51,16 @@ export let Circle = (function() {
|
|||||||
this.lineWidth = options["lineWidth"] || 2;
|
this.lineWidth = options["lineWidth"] || 2;
|
||||||
this.selectionColor = options["selectionColor"] || '#00ff00';
|
this.selectionColor = options["selectionColor"] || '#00ff00';
|
||||||
this.hoverColor = options["hoverColor"] || undefined;
|
this.hoverColor = options["hoverColor"] || undefined;
|
||||||
this.opacity = options['opacity'] || 1;
|
|
||||||
|
|
||||||
// TODO : all graphic overlays should have an id
|
// TODO : all graphic overlays should have an id
|
||||||
this.id = 'circle-' + Utils.uuidv4();
|
this.id = 'circle-' + Utils.uuidv4();
|
||||||
|
|
||||||
this.setCenter(centerRaDec);
|
this.setCenter(centerRaDec);
|
||||||
this.setRadius(radius);
|
this.setRadius(radius);
|
||||||
this.overlay = null;
|
this.overlay = null;
|
||||||
|
|
||||||
this.isShowing = true;
|
this.isShowing = true;
|
||||||
this.isSelected = false;
|
this.isSelected = false;
|
||||||
this.isHovered = false;
|
this.isHovered = false;
|
||||||
this.frame = options.frame || "icrs";
|
this.frame = options.frame || "icrs";
|
||||||
};
|
};
|
||||||
@@ -268,7 +267,6 @@ export let Circle = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx.lineWidth = this.lineWidth;
|
ctx.lineWidth = this.lineWidth;
|
||||||
ctx.globalAlpha = this.opacity;
|
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
ctx.arc(this.center.x, this.center.y, this.radius, 0, 2*Math.PI, false);
|
ctx.arc(this.center.x, this.center.y, this.radius, 0, 2*Math.PI, false);
|
||||||
if (!noStroke) {
|
if (!noStroke) {
|
||||||
|
|||||||
Reference in New Issue
Block a user