# JSXGraph 1.11.1 Reference

## JavaScript must be enabled in order for you to use JSXGraph and JSXGraph reference. However, it seems JavaScript is either disabled or not supported by your browser.

Class Index | File Index

Elements

- Angle
- Arc
- Arrow
- Arrowparallel
- Axes3D
- Axis
- Axis3D
- Bisector
- Bisectorlines
- Boxplot
- Button
- Cardinalspline
- Chart
- Checkbox
- Circle
- Circle3D
- Circumcenter
- Circumcircle
- CircumcircleArc
- CircumcircleSector
- Comb
- Conic
- Curve
- Curve3D
- CurveDifference
- CurveIntersection
- CurveUnion
- Derivative
- Ellipse
- Face3D
- ForeignObject
- Functiongraph
- Functiongraph3D
- Glider
- Grid
- Group
- Hatch
- Hyperbola
- Image
- ImplicitCurve
- Incenter
- Incircle
- Inequality
- Input
- Integral
- Intersection
- IntersectionCircle3D
- IntersectionLine3D
- Label
- Legend
- Line
- Line3D
- MajorArc
- MajorSector
- Measurement
- Mesh3D
- Metapostspline
- Midpoint
- MinorArc
- MinorSector
- MirrorElement
- MirrorPoint
- NonReflexAngle
- Normal
- Orthogonalprojection
- OtherIntersection
- Parabola
- Parallel
- Parallelogram
- Parallelpoint
- ParametricSurface3D
- Perpendicular
- PerpendicularPoint
- PerpendicularSegment
- Plane3D
- Point
- Point3D
- PolarLine
- PolePoint
- Polygon
- Polygon3D
- PolygonalChain
- Polyhedron3D
- RadicalAxis
- Reflection
- ReflexAngle
- RegularPolygon
- Riemannsum
- Sector
- Segment
- Semicircle
- Slider
- Slopefield
- Slopetriangle
- Smartlabel
- Sphere3D
- Spline
- Stepfunction
- Tangent
- TangentTo
- Tapemeasure
- Text
- Text3D
- Ticks
- Ticks3D
- Tracecurve
- Transformation
- Transformation3D
- Turtle
- Vectorfield
- Vectorfield3D
- View3D

Classes

- _global_
- JXG
- JXG.AbstractRenderer
- JXG.Board
- JXG.Board.infobox
- JXG.C
- JXG.CA
- JXG.CanvasRenderer
- JXG.Chart
- JXG.Circle
- JXG.Circle3D
- JXG.Complex
- JXG.Composition
- JXG.Coords
- JXG.CoordsElement
- JXG.Curve
- JXG.Curve3D
- JXG.Dump
- JXG.EventEmitter
- JXG.Expect
- JXG.Face3D
- JXG.ForeignObject
- JXG.GeometryElement
- JXG.GeometryElement3D
- JXG.GeonextParser
- JXG.Group
- JXG.Image
- JXG.JessieCode
- JXG.JSXGraph
- JXG.Legend
- JXG.Line
- JXG.Line3D
- JXG.Math
- JXG.Math.BoxQuadtree
- JXG.Math.Clip
- JXG.Math.Extrapolate
- JXG.Math.Geometry
- JXG.Math.ImplicitPlot
- JXG.Math.IntervalArithmetic
- JXG.Math.Metapost
- JXG.Math.Nlp
- JXG.Math.Numerics
- JXG.Math.Plot
- JXG.Math.Poly
- JXG.Math.Poly.Monomial
- JXG.Math.Poly.Polynomial
- JXG.Math.Poly.Ring
- JXG.Math.ProbFuncs
- JXG.Math.Quadtree
- JXG.Math.Statistics
- JXG.NoRenderer
- JXG.Options
- JXG.Plane3D
- JXG.Point
- JXG.Point3D
- JXG.Polygon
- JXG.Polygon3D
- JXG.PrefixParser
- JXG.Sphere3D
- JXG.Surface3D
- JXG.SVGRenderer
- JXG.Text
- JXG.Text3D
- JXG.Ticks
- JXG.Transformation
- JXG.Turtle
- JXG.Util
- JXG.Util.Base64
- JXG.Util.Unzip
- JXG.Util.UTF8
- JXG.View3D
- JXG.VMLRenderer
- JXG.XML

# Namespace JXG.EventEmitter

↳ JXG.EventEmitter

Defined in: event.js.

Namespace Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| JXG.EventEmitter Event namespace

Field Summary
Field Attributes | Field Name and Description
--- | ---
<static> | JXG.EventEmitter.eventHandlers Holds the registered event handlers.
<static> | JXG.EventEmitter.suspended Events can be suspended to prevent endless loops.

Method Summary
Method Attributes | Method Name and Description
--- | ---
<static> | JXG.EventEmitter.eventify(o) Implements the functionality from this interface in the given object.
<static> | JXG.EventEmitter.off(event, handler) Unregister an event handler.
<static> | JXG.EventEmitter.on(event, handler, context) Register a new event handler.
<static> | JXG.EventEmitter.trigger(event, args) Triggers all event handlers of this element for a given event.

Namespace Detail
JXG.EventEmitter
Event namespace
Field Detail
<static> {Object} JXG.EventEmitter.eventHandlers
Holds the registered event handlers.

<static> {Object} JXG.EventEmitter.suspended
Events can be suspended to prevent endless loops.
Method Detail
<static> JXG.EventEmitter.eventify(o)
Implements the functionality from this interface in the given object. All objects getting their event handling capabilities from this method should document it by adding the `on, off, triggerEventHandlers` via the borrows tag as methods to their documentation:

    @borrows JXG.EventEmitter#on as this.on

Parameters:
{Object} o

<static> JXG.EventEmitter.off(event, handler)
Unregister an event handler.

Parameters:
{String} event
{Function} handler Optional

Returns:
  Reference to the object.

<static> JXG.EventEmitter.on(event, handler, context)
Register a new event handler. For a list of possible events see documentation of the elements and objects implementing the EventEmitter interface. As of version 1.5.0, it is only possible to access the element via "this" if the event listener is supplied as regular JavaScript function and not as arrow function.

Parameters:
{String} event
{Function} handler
{Object} context Optional
  The context the handler will be called in, default is the element itself.

Returns:
  Reference to the object.

<static> JXG.EventEmitter.trigger(event, args)
Triggers all event handlers of this element for a given event.

Parameters:
{Array} event
{Array} args
  The arguments passed onto the event handler

Returns:
  Reference to the object.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Apr 04 2025 09:22:40 GMT+0200 (Mitteleuropäische Sommerzeit)