Class Angle
Extends
Sector.
The angle element is used to denote an angle defined by three points. Visually it is just a Sector
element with a radius not defined by the parent elements but by an attribute radius. As opposed to the sector,
an angle has two angle points and no radius point.
Sector is displayed if type=="sector".
If type=="square", instead of a sector a parallelogram is displayed.
In case of type=="auto", a square is displayed if the angle is near orthogonal.
If no name is provided the angle label is automatically set to a lower greek letter.
Defined in: Sector.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Angle(p1,p2,p1)
|
Field Attributes | Field Name and Description |
---|---|
Indicates a right angle.
|
|
Sensitivity (in degrees) to declare an angle as right angle.
|
|
Display type of the angle field in case of a right angle.
|
|
The point defining the radius of the angle element.
|
|
Helper point for angles of type 'square'.
|
|
Radius of the sector, displaying the angle.
|
|
The point defining the radius of the angle element.
|
|
Display type of the angle field.
|
- Fields borrowed from class Sector:
- point1, point2, point3
- Fields borrowed from class JXG.Curve:
- curveType, handDrawing, numberPoints
- Fields borrowed from class JXG.GeometryElement:
- addEvent, ancestors, board, childElements, descendants, draft, dump, elementClass, elType, eventHandlers, fillOpacity, fixed, frozen, getAttribute, hasLabel, highlighted, highlightFillOpacity, highlightStrokeOpacity, highlightStrokeWidth, id, isDraggable, isReal, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, removeEvent, scalable, stdform, strokeOpacity, subs, symbolic, trace, traceAttributes, traces, transformations, visProp, withLabel
- Methods borrowed from class Sector:
- hasPointSector, Radius
- Methods borrowed from class JXG.Curve:
- addTransform, allocatePoints, generateTerm, hasPoint, isDistOK, isSegmentOutside, maxX, minX, notifyParents, setPosition, setPositionDirectly, update, updateCurve, updateDataArray, updateParametricCurve, updateParametricCurveNaive, updateRenderer, updateTransform, Z
- Methods borrowed from class JXG.GeometryElement:
- addChild, addRotation, animate, bounds, clearTrace, cloneToBackground, createLabel, dash, fillColor, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, hideElement, highlight, highlightFillColor, highlightStrokeColor, labelColor, noHighlight, off, on, remove, resolveShortcuts, setArrow, setAttribute, setLabelText, setProperty, shadow, showElement, snapToGrid, strokeColor, strokeWidth, triggerEventHandlers, visible
- Events borrowed from class JXG.GeometryElement:
- attribute, attribute:<attribute><attribute>, down, drag, mousedown, mousedrag, mousemove, mouseout, mouseover, mouseup, move, out, over, touchdown, touchdrag, touchup, up
Class Detail
Angle(p1,p2,p1)
// Create an arc out of three free points var p1 = board.create('point', [5.0, 3.0]), p2 = board.create('point', [1.0, 0.5]), p3 = board.create('point', [1.5, 5.0]), a = board.create('angle', [p1, p2, p3]);
- Parameters:
- {JXG.Point_JXG.Point_JXG.Point} p1,p2,p1
- An angle is always drawn counterclockwise from p1 to p3 around p2.
- Throws:
- {Error}
- If the element cannot be constructed with the given parent objects an exception is thrown.
Field Detail
{JXG.Point}
dot
Indicates a right angle. Invisible by default, use dot.visible: true to show.
Though this dot indicates a right angle, it can be visible even if the angle is not a right
one.
{Number}
orthoSensitivity
Sensitivity (in degrees) to declare an angle as right angle.
If the angle measure is inside this distance from a rigth angle, the orthoType
of the angle is used for display.
Defined in: Options.js.
Defined in: Options.js.
- See:
- Angle#orthoType
- Default Value:
- 1.0
{String}
orthoType
Display type of the angle field in case of a right angle. Possible values are
'sector' or 'sectordot' or 'square' or 'none'.
Defined in: Options.js.
Defined in: Options.js.
- Default Value:
- square
{JXG.Point}
point
The point defining the radius of the angle element. Alias for Angle.prototype#radiuspoint.
{JXG.Point}
pointsquare
Helper point for angles of type 'square'.
{Number}
radius
Radius of the sector, displaying the angle.
Defined in: Options.js.
Defined in: Options.js.
- Default Value:
- 0.5
{JXG.Point}
radiuspoint
The point defining the radius of the angle element.
{String}
type
Display type of the angle field. Possible values are
'sector' or 'sectordot' or 'square' or 'none'.
Defined in: Options.js.
Defined in: Options.js.
- Default Value:
- sector