jsxgraph 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/distrib/README.md +24 -0
- package/distrib/geogebra.min.js +1 -1
- package/distrib/geonext.min.js +1 -1
- package/distrib/index.d.ts +27 -7
- package/distrib/intergeo.min.js +1 -1
- package/distrib/jsxgraphcore.js +3 -3
- package/distrib/jsxgraphsrc.js +464 -273
- package/distrib/sketch.min.js +1 -1
- package/package.json +1 -1
- package/src/3d/point3d.js +38 -0
- package/src/3d/view3d.js +1 -1
- package/src/base/board.js +134 -65
- package/src/base/constants.js +1 -1
- package/src/base/text.js +42 -13
- package/src/base/ticks.js +1 -1
- package/src/jsxgraph.js +2 -1
- package/src/math/nlp.js +205 -173
- package/src/options.js +27 -5
- package/src/parser/jessiecode.js +1 -1
- package/src/utils/env.js +10 -10
package/README.md
CHANGED
|
@@ -19,6 +19,30 @@ to optimize the performance.
|
|
|
19
19
|
Lehrstuhl für Mathematik und ihre Didaktik
|
|
20
20
|
University of Bayreuth, Germany
|
|
21
21
|
|
|
22
|
+
Upcoming event: 3rd JSXGraph conference (online)
|
|
23
|
+
--------------
|
|
24
|
+
|
|
25
|
+
Date: October 4th - 6th, 2022
|
|
26
|
+
|
|
27
|
+
Conference homepage: <https://jsxgraph.org/conf2022/>
|
|
28
|
+
|
|
29
|
+
The conference will bring together developers and teachers, instructors and designers who are interested or already experienced in using JSXGraph (https://jsxgraph.org) to enhance digital learning of STEM topics.
|
|
30
|
+
|
|
31
|
+
The conference will be an entirely online conference. All participants are required to register (https://jsxgraph.org/conf2022/registration/), registration is free.
|
|
32
|
+
|
|
33
|
+
We invite all participants to contribute a talk or workshop and
|
|
34
|
+
|
|
35
|
+
- report about their concepts, experience, and workflow,
|
|
36
|
+
- present their applications and best practices,
|
|
37
|
+
- discuss pedagogical concepts involving JSXGraph.
|
|
38
|
+
|
|
39
|
+
Deadline for submission of talks / presentations: 31. August 2022
|
|
40
|
+
|
|
41
|
+
Details about the conference software will be announced at a later stage.
|
|
42
|
+
|
|
43
|
+
The 3nd International JSXGraph conference 2022 will be organized by the center of Mobile Learning with Digital Technology (https://mobiles-lernen.uni-bayreuth.de/) at the University of Bayreuth, Germany.
|
|
44
|
+
|
|
45
|
+
|
|
22
46
|
Website
|
|
23
47
|
-------
|
|
24
48
|
|
package/distrib/README.md
CHANGED
|
@@ -19,6 +19,30 @@ to optimize the performance.
|
|
|
19
19
|
Lehrstuhl für Mathematik und ihre Didaktik
|
|
20
20
|
University of Bayreuth, Germany
|
|
21
21
|
|
|
22
|
+
Upcoming event: 3rd JSXGraph conference (online)
|
|
23
|
+
--------------
|
|
24
|
+
|
|
25
|
+
Date: October 4th - 6th, 2022
|
|
26
|
+
|
|
27
|
+
Conference homepage: <https://jsxgraph.org/conf2022/>
|
|
28
|
+
|
|
29
|
+
The conference will bring together developers and teachers, instructors and designers who are interested or already experienced in using JSXGraph (https://jsxgraph.org) to enhance digital learning of STEM topics.
|
|
30
|
+
|
|
31
|
+
The conference will be an entirely online conference. All participants are required to register (https://jsxgraph.org/conf2022/registration/), registration is free.
|
|
32
|
+
|
|
33
|
+
We invite all participants to contribute a talk or workshop and
|
|
34
|
+
|
|
35
|
+
- report about their concepts, experience, and workflow,
|
|
36
|
+
- present their applications and best practices,
|
|
37
|
+
- discuss pedagogical concepts involving JSXGraph.
|
|
38
|
+
|
|
39
|
+
Deadline for submission of talks / presentations: 31. August 2022
|
|
40
|
+
|
|
41
|
+
Details about the conference software will be announced at a later stage.
|
|
42
|
+
|
|
43
|
+
The 3nd International JSXGraph conference 2022 will be organized by the center of Mobile Learning with Digital Technology (https://mobiles-lernen.uni-bayreuth.de/) at the University of Bayreuth, Germany.
|
|
44
|
+
|
|
45
|
+
|
|
22
46
|
Website
|
|
23
47
|
-------
|
|
24
48
|
|
package/distrib/geogebra.min.js
CHANGED
package/distrib/geonext.min.js
CHANGED
package/distrib/index.d.ts
CHANGED
|
@@ -557,6 +557,12 @@ declare namespace JXG {
|
|
|
557
557
|
*/
|
|
558
558
|
addRotation(angle: number): void;
|
|
559
559
|
|
|
560
|
+
/**
|
|
561
|
+
* Get the value of the property key.
|
|
562
|
+
* @param key The name of the property you are looking for.
|
|
563
|
+
*/
|
|
564
|
+
getAttribute(key: string): any;
|
|
565
|
+
|
|
560
566
|
/**
|
|
561
567
|
* Returns the element name.
|
|
562
568
|
*/
|
|
@@ -583,7 +589,7 @@ declare namespace JXG {
|
|
|
583
589
|
* @param handler
|
|
584
590
|
* @returns Reference to the object.
|
|
585
591
|
*/
|
|
586
|
-
off(event: string, handler
|
|
592
|
+
off(event: string, handler?: (e: Event) => void): this;
|
|
587
593
|
|
|
588
594
|
/**
|
|
589
595
|
* Register a new event handler.
|
|
@@ -1855,6 +1861,11 @@ declare namespace JXG {
|
|
|
1855
1861
|
}
|
|
1856
1862
|
export interface HyperbolaAttributes extends ConicAttributes { }
|
|
1857
1863
|
|
|
1864
|
+
export interface Parabola extends Conic {
|
|
1865
|
+
setAttribute(attributes: ParabolaAttributes): this;
|
|
1866
|
+
}
|
|
1867
|
+
export interface ParabolaAttributes extends ConicAttributes { }
|
|
1868
|
+
|
|
1858
1869
|
/**
|
|
1859
1870
|
*
|
|
1860
1871
|
*/
|
|
@@ -2824,7 +2835,7 @@ declare namespace JXG {
|
|
|
2824
2835
|
* Attributes for the axis label.
|
|
2825
2836
|
*/
|
|
2826
2837
|
label?: LabelOptions;
|
|
2827
|
-
lastArrow?: ArrowSpecification;
|
|
2838
|
+
lastArrow?: boolean | ArrowSpecification;
|
|
2828
2839
|
margin?: number;
|
|
2829
2840
|
/**
|
|
2830
2841
|
* Attributes for the first point on the axis.
|
|
@@ -3022,7 +3033,7 @@ declare namespace JXG {
|
|
|
3022
3033
|
/**
|
|
3023
3034
|
*
|
|
3024
3035
|
*/
|
|
3025
|
-
generateLabelText?: ((labeled: Coords, center: Coords) => string) | null;
|
|
3036
|
+
generateLabelText?: ((labeled: Coords, center: Coords, value: null | Number | String) => string) | null;
|
|
3026
3037
|
/**
|
|
3027
3038
|
*
|
|
3028
3039
|
*/
|
|
@@ -3098,10 +3109,10 @@ declare namespace JXG {
|
|
|
3098
3109
|
defaultDistance?: number;
|
|
3099
3110
|
drawLabels?: boolean;
|
|
3100
3111
|
drawZero?: boolean;
|
|
3101
|
-
face?: '|';
|
|
3112
|
+
face?: '|' | '<' | '>';
|
|
3102
3113
|
fillColor?: string;
|
|
3103
|
-
generateLabelText?: ((one: Coords, two: Coords) => void) | null;
|
|
3104
|
-
generateLabelValue?: ((
|
|
3114
|
+
generateLabelText?: ((one: Coords, two: Coords, value: null|Number|String) => void) | null;
|
|
3115
|
+
generateLabelValue?: ((labeled: Coords, center: Coords) => string) | null;
|
|
3105
3116
|
highlightFillColor?: string;
|
|
3106
3117
|
highlightStrokeColor?: string;
|
|
3107
3118
|
includeBoundaries?: boolean | number;
|
|
@@ -4071,7 +4082,7 @@ declare namespace JXG {
|
|
|
4071
4082
|
* @param parents
|
|
4072
4083
|
* @param attributes
|
|
4073
4084
|
*/
|
|
4074
|
-
create(elementType: 'hyperbola', parents: unknown[], attributes?:
|
|
4085
|
+
create(elementType: 'hyperbola', parents: unknown[], attributes?: HyperbolaAttributes): Hyperbola;
|
|
4075
4086
|
/**
|
|
4076
4087
|
*
|
|
4077
4088
|
* @param elementType 'image'
|
|
@@ -4149,6 +4160,13 @@ declare namespace JXG {
|
|
|
4149
4160
|
* @param attributes
|
|
4150
4161
|
*/
|
|
4151
4162
|
create(elementType: 'normal', parents: unknown[], attributes?: NormalAttributes): Normal;
|
|
4163
|
+
/**
|
|
4164
|
+
*
|
|
4165
|
+
* @param elementType 'parabola'
|
|
4166
|
+
* @param parents
|
|
4167
|
+
* @param attributes
|
|
4168
|
+
*/
|
|
4169
|
+
create(elementType: 'parabola', parents: unknown[], attributes?: ParabolaAttributes): Parabola;
|
|
4152
4170
|
/**
|
|
4153
4171
|
*
|
|
4154
4172
|
* @param elementType 'perpendicular'
|
|
@@ -4406,11 +4424,13 @@ declare namespace JXG {
|
|
|
4406
4424
|
setZoom(fX: number, fY: number): Board;
|
|
4407
4425
|
showDependencies(): this;
|
|
4408
4426
|
showXML(): this;
|
|
4427
|
+
startResizeObserver(): unknown;
|
|
4409
4428
|
startSelectionMode(): unknown;
|
|
4410
4429
|
/**
|
|
4411
4430
|
* Cancels all running animations.
|
|
4412
4431
|
*/
|
|
4413
4432
|
stopAllAnimation(): Board;
|
|
4433
|
+
stopResizeObserver(): unknown;
|
|
4414
4434
|
stopSelectionMode(): [Coords, Coords];
|
|
4415
4435
|
/**
|
|
4416
4436
|
* Stop updates of the board.
|
package/distrib/intergeo.min.js
CHANGED