mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 12:23:03 +01:00
remove getDefaultTool from circle and ellipse since it was moved to a mapping file
This commit is contained in:
parent
99ceec4cd1
commit
73f318c05a
2 changed files with 0 additions and 14 deletions
|
|
@ -39,13 +39,6 @@ export class Circle extends SketchObject {
|
|||
normalDistance(aim) {
|
||||
return Math.abs(math.distance(aim.x, aim.y, this.c.x, this.c.y) - this.r.get());
|
||||
}
|
||||
|
||||
getDefaultTool(viewer, alternative) {
|
||||
if (alternative) {
|
||||
return super.getDefaultTool(viewer, alternative);
|
||||
} else {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Circle.prototype._class = 'TCAD.TWO.Circle';
|
||||
|
|
|
|||
|
|
@ -89,13 +89,6 @@ export class Ellipse extends SketchObject {
|
|||
static findMinorRadius(majorRadius, pntRadius, pntAngle) {
|
||||
return Math.abs( Math.sin(pntAngle) / Math.sqrt(1 / sq(pntRadius) - sq(Math.cos(pntAngle) / majorRadius)) );
|
||||
}
|
||||
|
||||
getDefaultTool(viewer, alternative) {
|
||||
if (alternative) {
|
||||
return super.getDefaultTool(viewer, alternative);
|
||||
} else {
|
||||
}
|
||||
}
|
||||
}
|
||||
Ellipse.prototype._class = 'TCAD.TWO.Ellipse';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue