math-exercises 2.1.0 → 2.1.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"affineExpressionReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AA+GF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAezD,CAAC"}
1
+ {"version":3,"file":"affineExpressionReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAgHF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAezD,CAAC"}
@@ -27,6 +27,7 @@ const getAffineExpressionReadingQuestion = () => {
27
27
  const commands = [
28
28
  `l = Line((0, ${b}), (${secondPoint[0]}, ${secondPoint[1]}))`,
29
29
  `SetColor(l, "${(0, colors_1.randomColor)()}")`,
30
+ "SetFixed(l, true)",
30
31
  ];
31
32
  const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
32
33
  gridDistance: [1, 1],
@@ -1 +1 @@
1
- {"version":3,"file":"interceptReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/interceptReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAwDF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAelD,CAAC"}
1
+ {"version":3,"file":"interceptReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/interceptReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAyDF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAelD,CAAC"}
@@ -19,6 +19,7 @@ const getInterceptReadingQuestion = () => {
19
19
  const commands = [
20
20
  `l = Line((0, ${b}), (${secondPoint[0]}, ${secondPoint[1]}))`,
21
21
  `SetColor(l, "${(0, colors_1.randomColor)()}")`,
22
+ "SetFixed(l, true)",
22
23
  ];
23
24
  const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
24
25
  gridDistance: [1, 1],
@@ -1 +1 @@
1
- {"version":3,"file":"recognizeArithmeticFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AA4EF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAe9D,CAAC"}
1
+ {"version":3,"file":"recognizeArithmeticFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AA6EF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAe9D,CAAC"}
@@ -42,7 +42,10 @@ const getRecognizeArithmeticFromGraphQuestion = () => {
42
42
  ? new Array(5).fill(0).map((el, index) => firstAriTerm + reason * index)
43
43
  : getRandomFirstNonAriTerms();
44
44
  const answer = isAri ? "Oui" : "Non";
45
- const commands = sequence.map((nb, index) => new point_1.Point(`A_${index}`, index.toTree(), nb.toTree()).toGGBCommand());
45
+ const commands = sequence.flatMap((nb, index) => [
46
+ new point_1.Point(`A_${index}`, index.toTree(), nb.toTree()).toGGBCommand(),
47
+ `SetFixed(A_${index}, true)`,
48
+ ]);
46
49
  const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
47
50
  isAxesRatioFixed: false,
48
51
  isXAxesNatural: true,
@@ -1 +1 @@
1
- {"version":3,"file":"recognizeReasonFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAgDF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAe1D,CAAC"}
1
+ {"version":3,"file":"recognizeReasonFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAiDF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAe1D,CAAC"}
@@ -14,7 +14,10 @@ const getRecognizeReasonFromGraphQuestion = () => {
14
14
  .map((el, index) => firstTerm + index * reason);
15
15
  const yMin = Math.min(...sequence);
16
16
  const yMax = Math.max(...sequence);
17
- const commands = sequence.map((nb, index) => new point_1.Point(`A_${index}`, index.toTree(), nb.toTree()).toGGBCommand());
17
+ const commands = sequence.flatMap((nb, index) => [
18
+ new point_1.Point(`A_${index}`, index.toTree(), nb.toTree()).toGGBCommand(),
19
+ `SetFixed(A_${index}, true)`,
20
+ ]);
18
21
  const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
19
22
  isGridSimple: true,
20
23
  isXAxesNatural: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [