Reference for the editor

Graphics Classes

Board

This object represents the entire animation

let myBoard = new Board(1280, 720);

Parameters for Initialization

Methods (for complex changes)

↑ To Top

Group

Group of graphic objects

let myGroup = new Group();

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Rectangle

Rectangular graphic element

let myRectangle = new Rectangle(200, 100, 0xff0000);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Circle

Circular graphic element

let myCircle = new Circle(50, 0x00ff00);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Polygon

Polygon graphic element

let myPolygon = new Polygon(6, 60, 0x0000ff);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

LinePath

Line path from points

let myLinePath = new LinePath([[0,0], [100,50], [200,100]], 0xff0000, 3);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

BezierPath

Bezier curve with control points

let myBezierPath = new BezierPath([[0,0,10,-10], [100,50,120,30], [200,100,180,120]], 0xff0000, 3);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

SplinePath

Spline curve from points

let mySplinePath = new SplinePath([[0,0], [100,50], [200,100]], 0xff0000, 3);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Arrow

Arrow with line and head

let myArrow = new Arrow(0, 0, 100, 50, 0xff0000, 3, 15, 8);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Parallelogram

Parallelogram from two vectors

let myParallelogram = new Parallelogram(0, 0, 100, 0, 50, 50, 0x00ff00);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

PointLabel

Label for a point

let myPointLabel = new PointLabel(100, 100, "P", 15, -15, "Arial", 16, 0x000000);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

LineLabel

Label for a line segment

let myLineLabel = new LineLabel(0, 0, 100, 50, "AB", 15, "Arial", 16, 0x000000);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

AngleLabel

Angle label with text

let myAngleLabel = new AngleLabel(100, 100, 150, 100, 150, 150, 30, "α", "Arial", 16, 0x444444, 1, 0x444444);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Line

Simple line

let myLine = new Line(0, 0, 100, 50, 0xff0000, 2);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Ruler

Ruler with ticks

let myRuler = new Ruler("right", [0, 10, 20, 30, 40], 50, 0, 0xff0000, 2, 15, 16, 0x000000, true, 1, ".");

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

CoordinateSystem

Coordinate system with axes

let myCoordinateSystem = new CoordinateSystem(100, 100, 100, 100, 0x000000, 10, 6, 1);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

SimpleSVG

SVG graphic as object

let mySVG = new SimpleSVG("<svg>...</svg>");

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Timer

Timer for animations

let myTimer = new Timer(5000, true, false);

Parameters for Initialization

Methods (for complex changes)

↑ To Top

SimplePNG

PNG image as object

let myPNG = new SimplePNG("image.png");

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Component Classes

Button

Button with click event

let myButton = new Button("Click me", 100, 40);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Checkbox

Checkbox with on/off state

let myCheckbox = new Checkbox(true, 20, "Select option");

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

RadioButton

Radio button for group selection

let myRadio = new RadioButton("group1", false, 20, "Option 1");

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

NumericStepper

Numeric stepper with plus/minus buttons

let myStepper = new NumericStepper(50, 0, 100, 5, 120);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Dropdown

Dropdown menu for selecting from a list of options

let myDropdown = new Dropdown(["Option 1", "Option 2"], 200, 40);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

ButtonSlider

Slider with draggable button

let mySlider = new ButtonSlider(0, 100, 50, 1, 20, 200);

Parameters for Initialization

Setter Parameters (for later changes)

↑ To Top

MathForm

Mathematical formula with MathJax rendering

let myFormula = new MathForm("x^2 + y^2 = r^2");

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Text

Text element with formatting

let myText = new Text("Hello World", "Arial", 16, 0x000000, "center");

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

ParameterTable

Parameter table with editable values

let myTable = new ParameterTable([{name: "Speed", value: 50}], 300);

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top

Model3D

3D model viewer as iframe with postMessage API

let myModel = new Model3D("https: constructor: { url: { name: "url", info: { en: "URL of the 3D model viewer to embed", de: "URL des einzubettenden 3D-Modell-Viewers", }, }, width: { name: "width", info: { en: "Width of the iframe in pixels", de: "Breite des iframes in Pixeln", }, }, height: { name: "height", info: { en: "Height of the iframe in pixels", de: "Höhe des iframes in Pixeln", }, }, }, setter: { x: { name: "x", info: { en: "Horizontal position of the element", de: "Horizontale Position des Elements", }, example: "x = 100", }, y: { name: "y", info: { en: "Vertical position of the element", de: "Vertikale Position des Elements", }, example: "y = 200", }, width: { name: "width", info: { en: "Width of the iframe in pixels", de: "Breite des iframes in Pixeln", }, example: "width = 600", }, height: { name: "height", info: { en: "Height of the iframe in pixels", de: "Höhe des iframes in Pixeln", }, example: "height = 400", }, visible: { name: "visible", info: { en: "Visibility of the element (true/false)", de: "Sichtbarkeit des Elements (true/false)", }, example: "visible = true", }, }, methods: { setProperty: { name: "setProperty", info: { en: "Sets a property of an object in the 3D scene", de: "Setzt eine Eigenschaft eines Objekts in der 3D-Szene", }, example:

Parameters for Initialization

Setter Parameters (for later changes)

Methods (for complex changes)

↑ To Top