Class JXG.createSector
Extends
JXG.GeometryElement.
Sector stores all style and functional properties that are required
to draw a sector on a board.
Defined in: Sector.js.
Constructor Attributes | Constructor Name and Description |
---|---|
JXG.createSector(board, p1, p2, p3, ids, names, id, name)
Creates a new instance of Sector.
|
- Fields borrowed from class JXG.GeometryElement:
- ancestors, board, childElements, dash, descendants, draft, fillColor, fillOpacity, fixed, hasLabel, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isReal, layer, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, shadow, stdform, strokeColor, strokeOpacity, strokeWidth, symbolic, trace, traces, transformations, visible, visProp
- Methods borrowed from class JXG.GeometryElement:
- addChild, addLabelToElement, animate, clearTrace, hideElement, highlight, labelColor, noHighlight, remove, setArrow, setProperty, showElement, update
Class Detail
JXG.createSector(board, p1, p2, p3, ids, names, id, name)
Creates a new instance of Sector.
- Parameters:
- {JXG.Board} board
- Reference to the board the sector is drawn on.
- {JXG.Point} p1
- Midpoint of the sector.
- {JXG.Point} p2
- Point defining the sectors radius
- {JXG.Point} p3
- This point defines the angle of the sectors section.
- {Array} ids
- Unique identifiers for the derived objects (arc, endpoint of the arc, line from p1 to p2, line from p1 to the endpoint of the arc) . Must be Strings. If null or an empty string is given to any of these, an unique id will be generated.
- {Array} names
- Names for the derived objects (arc, endpoint of the arc, line from p1 to p2, line from p1 to the endpoint of the arc) . Must be Strings. If null or an empty string is given to any of these, an unique id will be generated.
- {String} id
- Unique identifier for this object. If null or an empty string is given, an unique id will be generated by Board
- {String} name
- Not necessarily unique name, displayed on the board. If null or an empty string is given, an unique name will be generated.
- See:
- JXG.Board#addSector