math-exercises 2.2.15 → 2.2.16

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.
Files changed (123) hide show
  1. package/lib/exercises/exercise.d.ts +28 -32
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/calcul/ordering/framing.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/ordering/framing.js +0 -1
  5. package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -1
  6. package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.js +6 -6
  7. package/lib/exercises/math/derivation/derivativeNumberReading.d.ts.map +1 -1
  8. package/lib/exercises/math/derivation/derivativeNumberReading.js +5 -6
  9. package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts.map +1 -1
  10. package/lib/exercises/math/functions/affines/affineExpressionReading.js +5 -6
  11. package/lib/exercises/math/functions/affines/interceptReading.d.ts.map +1 -1
  12. package/lib/exercises/math/functions/affines/interceptReading.js +5 -6
  13. package/lib/exercises/math/functions/affines/leadingCoefficient.js +5 -5
  14. package/lib/exercises/math/functions/basics/graphicEquation.js +5 -5
  15. package/lib/exercises/math/functions/basics/graphicInequation.d.ts.map +1 -1
  16. package/lib/exercises/math/functions/basics/graphicInequation.js +4 -6
  17. package/lib/exercises/math/functions/basics/imageFunctionGeogebra.d.ts.map +1 -1
  18. package/lib/exercises/math/functions/basics/imageFunctionGeogebra.js +2 -4
  19. package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -1
  20. package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.js +4 -6
  21. package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts.map +1 -1
  22. package/lib/exercises/math/functions/basics/twoFunctionsEquation.js +4 -6
  23. package/lib/exercises/math/functions/basics/twoFunctionsInequation.d.ts.map +1 -1
  24. package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +4 -6
  25. package/lib/exercises/math/functions/parity/parityFromGraph.js +6 -6
  26. package/lib/exercises/math/functions/trinoms/rootsReading.d.ts.map +1 -1
  27. package/lib/exercises/math/functions/trinoms/rootsReading.js +4 -7
  28. package/lib/exercises/math/functions/trinoms/summitReading.d.ts.map +1 -1
  29. package/lib/exercises/math/functions/trinoms/summitReading.js +5 -4
  30. package/lib/exercises/math/geometry/areas/rightTriangleArea.d.ts.map +1 -1
  31. package/lib/exercises/math/geometry/areas/rightTriangleArea.js +5 -4
  32. package/lib/exercises/math/geometry/areas/triangleArea.d.ts.map +1 -1
  33. package/lib/exercises/math/geometry/areas/triangleArea.js +5 -4
  34. package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLine.d.ts.map +1 -1
  35. package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLine.js +8 -8
  36. package/lib/exercises/math/geometry/cartesian/directionVector.d.ts.map +1 -1
  37. package/lib/exercises/math/geometry/cartesian/directionVector.js +6 -5
  38. package/lib/exercises/math/geometry/cartesian/drawAlineInGGB.d.ts.map +1 -1
  39. package/lib/exercises/math/geometry/cartesian/drawAlineInGGB.js +9 -8
  40. package/lib/exercises/math/geometry/cartesian/placeAPoint.d.ts.map +1 -1
  41. package/lib/exercises/math/geometry/cartesian/placeAPoint.js +9 -7
  42. package/lib/exercises/math/geometry/cartesian/pointCoordinates.d.ts.map +1 -1
  43. package/lib/exercises/math/geometry/cartesian/pointCoordinates.js +12 -6
  44. package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.d.ts.map +1 -1
  45. package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.js +7 -6
  46. package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.js +6 -6
  47. package/lib/exercises/math/geometry/pythagore/pythagore.d.ts.map +1 -1
  48. package/lib/exercises/math/geometry/pythagore/pythagore.js +5 -4
  49. package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.d.ts.map +1 -1
  50. package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.js +5 -4
  51. package/lib/exercises/math/geometry/thales/thales.d.ts.map +1 -1
  52. package/lib/exercises/math/geometry/thales/thales.js +5 -4
  53. package/lib/exercises/math/geometry/thales/thalesCalcul.d.ts.map +1 -1
  54. package/lib/exercises/math/geometry/thales/thalesCalcul.js +5 -4
  55. package/lib/exercises/math/geometry/vectors/coordinatesReading.d.ts.map +1 -1
  56. package/lib/exercises/math/geometry/vectors/coordinatesReading.js +5 -6
  57. package/lib/exercises/math/geometry/vectors/drawAVectorInGGB.d.ts.map +1 -1
  58. package/lib/exercises/math/geometry/vectors/drawAVectorInGGB.js +10 -8
  59. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +5 -5
  60. package/lib/exercises/math/geometry/volumes/coneVolume.js +6 -6
  61. package/lib/exercises/math/geometry/volumes/parallelepipedVolume.js +6 -6
  62. package/lib/exercises/math/geometry/volumes/sphereVolume.js +6 -6
  63. package/lib/exercises/math/geometry/volumes/volumeOfCube.d.ts.map +1 -1
  64. package/lib/exercises/math/geometry/volumes/volumeOfCube.js +5 -4
  65. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.d.ts.map +1 -1
  66. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.js +5 -4
  67. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.d.ts.map +1 -1
  68. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.js +12 -11
  69. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.d.ts.map +1 -1
  70. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.js +5 -4
  71. package/lib/exercises/math/limits/limitReading.js +6 -6
  72. package/lib/exercises/math/probaStat/probabilityTree.d.ts.map +1 -1
  73. package/lib/exercises/math/probaStat/probabilityTree.js +5 -4
  74. package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.d.ts.map +1 -1
  75. package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.js +5 -4
  76. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +13 -13
  77. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.js +10 -10
  78. package/lib/exercises/math/sequences/sequencePlot.d.ts.map +1 -1
  79. package/lib/exercises/math/sequences/sequencePlot.js +10 -12
  80. package/lib/exercises/math/trigonometry/trigonometry.d.ts.map +1 -1
  81. package/lib/exercises/math/trigonometry/trigonometry.js +5 -4
  82. package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.d.ts.map +1 -1
  83. package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.js +5 -4
  84. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.d.ts.map +1 -1
  85. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +5 -4
  86. package/lib/exercises/pc/calibrationCurveOfSolution.d.ts.map +1 -1
  87. package/lib/exercises/pc/calibrationCurveOfSolution.js +11 -8
  88. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -1
  89. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +15 -5
  90. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -1
  91. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +0 -1
  92. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts.map +1 -1
  93. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +7 -6
  94. package/lib/exercises/pc/mecanicalWaves/elongationReading.d.ts.map +1 -1
  95. package/lib/exercises/pc/mecanicalWaves/elongationReading.js +7 -6
  96. package/lib/exercises/pc/mole/concentrationReading.d.ts.map +1 -1
  97. package/lib/exercises/pc/mole/concentrationReading.js +8 -6
  98. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts.map +1 -1
  99. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.js +2 -3
  100. package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -1
  101. package/lib/exercises/pc/motion/typeOfAcceleration.js +5 -4
  102. package/lib/exercises/pc/motion/typeOfMovement.js +4 -4
  103. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts.map +1 -1
  104. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.js +5 -4
  105. package/lib/exercises/pc/sound/findPeriodFromGraph.d.ts.map +1 -1
  106. package/lib/exercises/pc/sound/findPeriodFromGraph.js +7 -5
  107. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts.map +1 -1
  108. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.js +7 -6
  109. package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -1
  110. package/lib/exercises/utils/getDistinctQuestions.js +2 -1
  111. package/lib/geogebra/geogebraConstructor.d.ts +18 -23
  112. package/lib/geogebra/geogebraConstructor.d.ts.map +1 -1
  113. package/lib/geogebra/geogebraConstructor.js +23 -16
  114. package/lib/index.d.ts +1 -76
  115. package/lib/index.d.ts.map +1 -1
  116. package/lib/index.js +1 -57
  117. package/lib/prototypesEnhancement.d.ts +14 -0
  118. package/lib/prototypesEnhancement.d.ts.map +1 -0
  119. package/lib/prototypesEnhancement.js +26 -0
  120. package/lib/server.d.ts +1 -12
  121. package/lib/server.d.ts.map +1 -1
  122. package/lib/server.js +1 -24
  123. package/package.json +3 -2
@@ -11,6 +11,28 @@ export type Proposition = {
11
11
  isRightAnswer: boolean;
12
12
  format: "tex" | "raw";
13
13
  };
14
+ export type GeogebraAxisOptions = {
15
+ steps?: number;
16
+ hiddden?: boolean;
17
+ showNumbers?: boolean;
18
+ label?: string;
19
+ natural?: boolean;
20
+ };
21
+ export type GeogebraOptions = {
22
+ customToolBar?: string;
23
+ forbidShiftDragZoom?: boolean;
24
+ commands?: string[];
25
+ coords: number[];
26
+ is3D?: boolean;
27
+ gridDistance?: [number, number] | false;
28
+ hideGrid?: boolean;
29
+ hideAxes?: boolean;
30
+ isGridBold?: boolean;
31
+ isGridSimple?: boolean;
32
+ lockedAxesRatio?: number | false;
33
+ xAxis?: GeogebraAxisOptions;
34
+ yAxis?: GeogebraAxisOptions;
35
+ };
14
36
  export interface Question<TIdentifiers = {}> {
15
37
  instruction: string;
16
38
  hint?: string;
@@ -20,34 +42,8 @@ export interface Question<TIdentifiers = {}> {
20
42
  answerFormat?: "tex" | "raw";
21
43
  ggbAnswer?: string[];
22
44
  keys?: (KeyId | KeyProps)[];
23
- commands?: string[];
24
- coords?: number[];
25
- options?: {
26
- gridDistance?: [number, number] | false;
27
- hideGrid?: boolean;
28
- hideAxes?: boolean;
29
- isGridBold?: boolean;
30
- isGridSimple?: boolean;
31
- isAxesRatioFixed?: boolean;
32
- isXAxesNatural?: boolean;
33
- is3D?: boolean;
34
- };
35
- studentGgbOptions?: {
36
- customToolBar?: string;
37
- gridDistance?: [number, number];
38
- hideGrid?: boolean;
39
- hideAxes?: boolean;
40
- isGridBold?: boolean;
41
- isGridSimple?: boolean;
42
- isAxesRatioFixed?: boolean;
43
- isXAxesNatural?: boolean;
44
- xAxisSteps?: number;
45
- yAxisSteps?: number;
46
- enableShiftDragZoom?: boolean;
47
- coords?: number[];
48
- initialCommands?: string[];
49
- axisLabels?: string[];
50
- };
45
+ ggbOptions?: GeogebraOptions;
46
+ studentGgbOptions?: GeogebraOptions;
51
47
  style?: {
52
48
  tableHasNoHeader?: boolean;
53
49
  };
@@ -68,15 +64,15 @@ export interface Exercise<TIdentifiers = {}> {
68
64
  id: string;
69
65
  isSingleStep: boolean;
70
66
  label: string;
71
- sections: (MathSection | PCSection)[];
72
- levels: MathLevel[];
67
+ sections?: (MathSection | PCSection)[];
68
+ levels?: MathLevel[];
73
69
  connector?: "=" | "\\iff" | "\\approx";
74
70
  generator: (n: number) => Question<TIdentifiers>[];
75
71
  maxAllowedQuestions?: number;
76
72
  answerType?: "GGB" | "QCM" | "free" | "QCU";
77
73
  isQCM?: boolean;
78
- qcmTimer: number;
79
- freeTimer: number;
74
+ qcmTimer?: number;
75
+ freeTimer?: number;
80
76
  ggbTimer?: number;
81
77
  getPropositions?: QCMGenerator<{
82
78
  answer: string;
@@ -1 +1 @@
1
- {"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,iBAAiB,UACrB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAUtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,WAAW,EAAE,KAAK,MAAM,kBAE3D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AACF,MAAM,WAAW,QAAQ,CAAC,YAAY,GAAG,EAAE;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,CAAC,KAAK,GAAG,QAAQ,CAAC,EAAE,CAAC;IAE5B,QAAQ,CAAC,EAAE,MAAM,EAAE,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b,4BAA4B,GAC5B,oBAAoB,GACpB,WAAW,GACX,iBAAiB,GACjB,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"framing.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/ordering/framing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAyJF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,CAazC,CAAC"}
1
+ {"version":3,"file":"framing.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/ordering/framing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAwJF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,CAazC,CAAC"}
@@ -105,7 +105,6 @@ const getPropositions = (n, { answer, nbIds, nbValue, pow }) => {
105
105
  (0, exercise_1.addValidProp)(propositions, answer);
106
106
  const dec = new decimal_1.Decimal(nbValue);
107
107
  const node = nodeConstructor_1.NodeConstructor.fromIdentifiers(nbIds);
108
- console.log(nbValue, pow);
109
108
  while (propositions.length < n) {
110
109
  const fakePower = -(0, randint_1.randint)(1, 4, [pow]);
111
110
  const fakeDec = new decimal_1.Decimal(dec.value * (0, randint_1.randint)(-3, 3, [0, 1]));
@@ -1 +1 @@
1
- {"version":3,"file":"thirdDegreeFunctionVariation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAkBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAwHF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAwB9D,CAAC"}
1
+ {"version":3,"file":"thirdDegreeFunctionVariation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAkBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAuHF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAwB9D,CAAC"}
@@ -47,9 +47,9 @@ const getThirdDegreeFunctionVariation = () => {
47
47
  const yMin = Math.min(y1, y2);
48
48
  const xMax = Math.max(racine1, racine2);
49
49
  const xMin = Math.min(racine1, racine2);
50
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
51
- isAxesRatioFixed: false,
52
- isGridSimple: true,
50
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
51
+ commands,
52
+ lockedAxesRatio: false,
53
53
  gridDistance: false,
54
54
  });
55
55
  const question = {
@@ -58,9 +58,9 @@ const getThirdDegreeFunctionVariation = () => {
58
58
  answer,
59
59
  keys: ["lbracket", "rbracket", "semicolon", "infty", "cup"],
60
60
  answerFormat: "tex",
61
- coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
62
- commands: ggb.commands,
63
- options: ggb.getOptions(),
61
+ ggbOptions: ggb.getOptions({
62
+ coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
63
+ }),
64
64
  identifiers: { racine1, racine2, coin, a },
65
65
  };
66
66
  return question;
@@ -1 +1 @@
1
- {"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/derivation/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,CAAC,EAAE,MAAM,EAAE,CAAC;CACb,CAAC;AA2FF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAezD,CAAC"}
1
+ {"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/derivation/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,CAAC,EAAE,MAAM,EAAE,CAAC;CACb,CAAC;AA0FF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAezD,CAAC"}
@@ -49,18 +49,17 @@ const getDerivativeNumberReading = () => {
49
49
  const yMin = Math.min(yA, yB);
50
50
  const xMax = Math.max(xA, xB);
51
51
  const yMax = Math.max(yA, yB);
52
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
53
- isGridSimple: true,
52
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
53
+ commands,
54
54
  });
55
55
  const answer = penteTree.toTex();
56
56
  const question = {
57
57
  instruction,
58
58
  startStatement: "a",
59
59
  answer,
60
- commands: ggb.commands,
61
- // coords: ggb.getAdaptedCoords({ xMax, xMin, yMax, yMin }),
62
- coords: [xMin - 5, xMax + 5, yMin - 5, yMax + 5],
63
- options: ggb.getOptions(),
60
+ ggbOptions: ggb.getOptions({
61
+ coords: [xMin - 5, xMax + 5, yMin - 5, yMax + 5],
62
+ }),
64
63
  answerFormat: "tex",
65
64
  keys: [],
66
65
  identifiers: { A: [xA, yA], B: [xB, yB] },
@@ -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;AAgHF,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;AA+GF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAezD,CAAC"}
@@ -29,17 +29,16 @@ const getAffineExpressionReadingQuestion = () => {
29
29
  `SetColor(l, "${(0, colors_1.randomColor)()}")`,
30
30
  "SetFixed(l, true)",
31
31
  ];
32
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
33
- gridDistance: [1, 1],
34
- isGridSimple: true,
32
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
33
+ commands,
35
34
  });
36
35
  const question = {
37
36
  answer,
38
37
  instruction: `Ci-dessous est tracée la courbe représentative d'une fonction affine $f$. Déterminer graphiquement l'expression algébrique de $f(x)$.`,
39
38
  keys: ["fx", "equal", "x"],
40
- commands: ggb.commands,
41
- coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
42
- options: ggb.getOptions(),
39
+ ggbOptions: ggb.getOptions({
40
+ coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
41
+ }),
43
42
  answerFormat: "tex",
44
43
  identifiers: { b, secondPoint },
45
44
  };
@@ -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;AAyDF,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;AAwDF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAelD,CAAC"}
@@ -21,17 +21,16 @@ const getInterceptReadingQuestion = () => {
21
21
  `SetColor(l, "${(0, colors_1.randomColor)()}")`,
22
22
  "SetFixed(l, true)",
23
23
  ];
24
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
25
- gridDistance: [1, 1],
26
- isGridSimple: true,
24
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
25
+ commands,
27
26
  });
28
27
  const question = {
29
28
  answer,
30
29
  instruction: `Ci-dessous est tracée la courbe représentative d'une fonction affine $f$. Déterminer graphiquement l'ordonnée à l'origine $b$ de la fonction $f$.`,
31
30
  keys: [],
32
- commands: ggb.commands,
33
- coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
34
- options: ggb.getOptions(),
31
+ ggbOptions: ggb.getOptions({
32
+ coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
33
+ }),
35
34
  answerFormat: "tex",
36
35
  identifiers: { b, secondPoint },
37
36
  };
@@ -29,17 +29,17 @@ const getLeadingCoefficientQuestion = () => {
29
29
  `f(x) = (${aString}) * x + (${bString})`,
30
30
  `SetColor(f, "${(0, colors_1.randomColor)()}")`,
31
31
  ];
32
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
33
- isGridSimple: true,
32
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
33
+ commands,
34
34
  });
35
35
  const answer = aTree.toTex();
36
36
  const question = {
37
37
  instruction: "Déterminer le coefficient directeur de la droite représentée ci-dessous : ",
38
38
  answer,
39
39
  keys: [],
40
- commands: ggb.commands,
41
- coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
42
- options: ggb.getOptions(),
40
+ ggbOptions: ggb.getOptions({
41
+ coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
42
+ }),
43
43
  answerFormat: "tex",
44
44
  identifiers: { xA, xB, yA, yB },
45
45
  };
@@ -58,17 +58,17 @@ const getGraphicEquationQuestion = () => {
58
58
  "SetFixed(S, true)",
59
59
  `SetColor(S, "${(0, colors_1.randomColor)()}")`,
60
60
  ];
61
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
62
- isGridSimple: true,
61
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
62
+ commands,
63
63
  });
64
64
  const question = {
65
65
  answer,
66
66
  instruction: `Déterminer graphiquement les solutions de l'équation $f(x) = ${yValue}$ où $f$ est la fonction représentée ci-dessous.`,
67
67
  keys: discreteSetKeys_1.discreteSetKeys,
68
68
  answerFormat: "tex",
69
- commands: ggb.commands,
70
- options: ggb.getOptions(),
71
- coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
69
+ ggbOptions: ggb.getOptions({
70
+ coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
71
+ }),
72
72
  identifiers: { yValue, splinePoints },
73
73
  };
74
74
  return question;
@@ -1 +1 @@
1
- {"version":3,"file":"graphicInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAM5D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;AA8LF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAenD,CAAC"}
1
+ {"version":3,"file":"graphicInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAM5D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;AA4LF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAenD,CAAC"}
@@ -85,9 +85,7 @@ const getGraphicInequationQuestion = () => {
85
85
  "SetFixed(S, true)",
86
86
  `SetColor(S, "${(0, colors_1.randomColor)()}")`,
87
87
  ];
88
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
89
- isGridSimple: true,
90
- });
88
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
91
89
  const question = {
92
90
  answer,
93
91
  instruction: `Déterminer graphiquement les solutions de l'inéquation $f(x)${isAskingSup ? (isStrict ? ">" : "\\geq") : isStrict ? "<" : "\\leq"}${yValue}$ où $f$ est la fonction représentée ci-dessous.`,
@@ -103,9 +101,9 @@ const getGraphicInequationQuestion = () => {
103
101
  "varnothing",
104
102
  ],
105
103
  answerFormat: "tex",
106
- commands: ggb.commands,
107
- options: ggb.getOptions(),
108
- coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
104
+ ggbOptions: ggb.getOptions({
105
+ coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
106
+ }),
109
107
  identifiers: {
110
108
  yValue,
111
109
  splinePoints,
@@ -1 +1 @@
1
- {"version":3,"file":"imageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/imageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA2EF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAcvD,CAAC"}
1
+ {"version":3,"file":"imageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/imageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAyEF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAcvD,CAAC"}
@@ -38,16 +38,14 @@ const getImageFunctionGeogebra = () => {
38
38
  `f(x) = ${rand ? polynome1.toString() : polynome2.toString()}`,
39
39
  `SetColor(f, "${(0, colors_1.randomColor)()}")`,
40
40
  ];
41
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, { isGridSimple: true });
41
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
42
42
  const answerTex = answer + "";
43
43
  const question = {
44
44
  instruction: statement,
45
45
  startStatement: `f(${xValue})`,
46
46
  answer: answerTex,
47
47
  keys: [],
48
- commands: ggb.commands,
49
- options: ggb.getOptions(),
50
- coords: [-10, 10, -10, 10],
48
+ ggbOptions: ggb.getOptions({ coords: [-10, 10, -10, 10] }),
51
49
  answerFormat: "tex",
52
50
  identifiers: {
53
51
  poly1: polynome1.coefficients,
@@ -1 +1 @@
1
- {"version":3,"file":"inverseImageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/inverseImageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AA4IF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAe9D,CAAC"}
1
+ {"version":3,"file":"inverseImageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/inverseImageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AA0IF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAe9D,CAAC"}
@@ -62,16 +62,14 @@ const getInverseImageFunctionGeogebra = () => {
62
62
  ];
63
63
  }
64
64
  const statement = `Lire graphiquement le ou les antécédents de $${yValue}$ par la fonction $f$ représentée ci dessous.`;
65
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
66
- isGridSimple: true,
67
- });
65
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
68
66
  const question = {
69
67
  instruction: statement,
70
68
  answer,
71
69
  keys: ["et", "aucun"],
72
- commands: ggb.commands,
73
- options: ggb.getOptions(),
74
- coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
70
+ ggbOptions: ggb.getOptions({
71
+ coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
72
+ }),
75
73
  answerFormat: "tex",
76
74
  identifiers: {
77
75
  xValue,
@@ -1 +1 @@
1
- {"version":3,"file":"twoFunctionsEquation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/twoFunctionsEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;CAC3B,CAAC;AA2IF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CActD,CAAC"}
1
+ {"version":3,"file":"twoFunctionsEquation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/twoFunctionsEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;CAC3B,CAAC;AAyIF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CActD,CAAC"}
@@ -81,18 +81,16 @@ const getTwoFunctionsEquationQuestion = () => {
81
81
  `SetCaption(T, "$g$")`,
82
82
  `ShowLabel(T, true)`,
83
83
  ];
84
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
85
- isGridSimple: true,
86
- });
84
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
87
85
  const question = {
88
86
  answer,
89
87
  instruction: `Déterminer graphiquement les solutions de l'équation $f(x) = g(x)$ où $f$ et $g$ sont les fonctions représentées ci-dessous.`,
90
88
  keys: discreteSetKeys_1.discreteSetKeys,
91
89
  answerFormat: "tex",
92
90
  identifiers: { yValue, fSplinePoints, gSplinePoints },
93
- commands: ggb.commands,
94
- coords: ggb.getAdaptedCoords({ xMax, xMin, yMax, yMin }),
95
- options: ggb.getOptions(),
91
+ ggbOptions: ggb.getOptions({
92
+ coords: ggb.getAdaptedCoords({ xMax, xMin, yMax, yMin }),
93
+ }),
96
94
  };
97
95
  return question;
98
96
  };
@@ -1 +1 @@
1
- {"version":3,"file":"twoFunctionsInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/twoFunctionsInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAK3C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAQ5D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;AAuOF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
1
+ {"version":3,"file":"twoFunctionsInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/twoFunctionsInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAK3C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAQ5D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;AAqOF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
@@ -105,9 +105,7 @@ const getTwoFunctionsInequationQuestion = () => {
105
105
  `SetCaption(T, "$g$")`,
106
106
  `ShowLabel(T, true)`,
107
107
  ];
108
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
109
- isGridSimple: true,
110
- });
108
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
111
109
  const intervalsNodes = intervals.map((i) => new intervalNode_1.IntervalNode(new numberNode_1.NumberNode(i.a), new numberNode_1.NumberNode(i.b), i.closure));
112
110
  const answer = intervalsNodes.length === 1
113
111
  ? `S=${intervalsNodes[0].toTex()}`
@@ -134,9 +132,9 @@ const getTwoFunctionsInequationQuestion = () => {
134
132
  ineqSymbol: ineq.symbol,
135
133
  intervals,
136
134
  },
137
- commands: ggb.commands,
138
- coords: ggb.getAdaptedCoords({ xMax, xMin, yMax, yMin }),
139
- options: ggb.getOptions(),
135
+ ggbOptions: ggb.getOptions({
136
+ coords: ggb.getAdaptedCoords({ xMax, xMin, yMax, yMin }),
137
+ }),
140
138
  };
141
139
  return question;
142
140
  };
@@ -84,17 +84,17 @@ const getParityFromGraphQuestion = () => {
84
84
  break;
85
85
  }
86
86
  const commands = [`f(x) = ${fct}`, `SetColor(f, "${(0, colors_1.randomColor)()}")`];
87
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
88
- isGridSimple: true,
89
- isAxesRatioFixed: false,
87
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
88
+ commands,
89
+ lockedAxesRatio: false,
90
90
  });
91
91
  const question = {
92
92
  answer,
93
93
  instruction: `La fonction $f$ représentée ci-dessous est-elle paire, impaire, ou ni paire ni impaire ?`,
94
94
  keys: [],
95
- options: ggb.getOptions(),
96
- commands: ggb.commands,
97
- coords: [-10, 10, -10, 10],
95
+ ggbOptions: ggb.getOptions({
96
+ coords: [-10, 10, -10, 10],
97
+ }),
98
98
  answerFormat: "tex",
99
99
  identifiers: { type, fctCmd: fct },
100
100
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rootsReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/trinoms/rootsReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAuDF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAa9C,CAAC"}
1
+ {"version":3,"file":"rootsReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/trinoms/rootsReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqDF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAa9C,CAAC"}
@@ -14,10 +14,9 @@ const getRootsReadingQuestion = () => {
14
14
  `f(x) = ${trinom.toString()}`,
15
15
  `SetColor(f, "${(0, colors_1.randomColor)()}")`,
16
16
  ];
17
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
18
- isGridSimple: true,
19
- isAxesRatioFixed: false,
20
- gridDistance: false,
17
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
18
+ commands,
19
+ lockedAxesRatio: false,
21
20
  });
22
21
  const answer = roots.length === 1 ? roots[0].toString() : roots.join("\\text{ et }");
23
22
  const question = {
@@ -25,9 +24,7 @@ const getRootsReadingQuestion = () => {
25
24
  instruction: `Déterminer graphiquement le ou les racine(s) du polynôme du second degré représenté ci-dessous : `,
26
25
  keys: ["et", "aucun"],
27
26
  answerFormat: "tex",
28
- commands: ggb.commands,
29
- options: ggb.getOptions(),
30
- coords: trinom.getCoords(),
27
+ ggbOptions: ggb.getOptions({ coords: trinom.getCoords() }),
31
28
  identifiers: { a: trinom.a, b: trinom.b, c: trinom.c },
32
29
  };
33
30
  return question;
@@ -1 +1 @@
1
- {"version":3,"file":"summitReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/trinoms/summitReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAsDF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAa/C,CAAC"}
1
+ {"version":3,"file":"summitReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/trinoms/summitReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAuDF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAa/C,CAAC"}
@@ -14,7 +14,8 @@ const getSummitReadingQuestion = () => {
14
14
  `f(x) = ${trinom.toString()}`,
15
15
  `SetColor(f, "${(0, colors_1.randomColor)()}")`,
16
16
  ];
17
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
17
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
18
+ commands,
18
19
  isGridSimple: true,
19
20
  });
20
21
  const answer = trinom.getSommet().toCoords();
@@ -22,9 +23,9 @@ const getSummitReadingQuestion = () => {
22
23
  answer,
23
24
  instruction: `Déterminer les coordonnées du sommet de la parabole représentée ci-dessous :`,
24
25
  keys: ["leftParenthesis", "semicolon", "rightParenthesis"],
25
- commands: ggb.commands,
26
- options: ggb.getOptions(),
27
- coords: trinom.getCoords(),
26
+ ggbOptions: ggb.getOptions({
27
+ coords: trinom.getCoords(),
28
+ }),
28
29
  answerFormat: "tex",
29
30
  identifiers: { a: trinom.a, b: trinom.b, c: trinom.c },
30
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rightTriangleArea.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/areas/rightTriangleArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AA+EF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAcnD,CAAC"}
1
+ {"version":3,"file":"rightTriangleArea.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/areas/rightTriangleArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAgFF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAcnD,CAAC"}
@@ -30,7 +30,8 @@ const getRightTriangleArea = () => {
30
30
  ];
31
31
  const answer = ((sidesLengths[0] * sidesLengths[1]) / 2 + "").replace(".", ",");
32
32
  const answerTex = answer + "\\text{cm}^2";
33
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
33
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
34
+ commands,
34
35
  hideAxes: true,
35
36
  hideGrid: true,
36
37
  });
@@ -38,9 +39,9 @@ const getRightTriangleArea = () => {
38
39
  instruction: `Calculer l'aire du triangle $${triangle.getTriangleName()}$ rectangle en ${triangle.getRightAngle()} sachant que $${triangle.getSideBName()} = ${sidesLengths[0]}$ cm et $${triangle.getSideCName()} = ${sidesLengths[1]}$ cm.`,
39
40
  answer: answerTex,
40
41
  keys: ["cm", "cm2"],
41
- commands: ggb.commands,
42
- coords: triangle.generateCoords(),
43
- options: ggb.getOptions(),
42
+ ggbOptions: ggb.getOptions({
43
+ coords: triangle.generateCoords(),
44
+ }),
44
45
  answerFormat: "tex",
45
46
  identifiers: { sidesLengths },
46
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"triangleArea.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/areas/triangleArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG,EAAE,CAAC;AA4GtB,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAc9C,CAAC"}
1
+ {"version":3,"file":"triangleArea.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/areas/triangleArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG,EAAE,CAAC;AA6GtB,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAc9C,CAAC"}
@@ -52,7 +52,8 @@ const getTriangleArea = () => {
52
52
  `alpha = Angle(${vertices[randoms[0]]},poi ,${vertices[randoms[1]]}, Line(${vertices[randoms[0]]},poi))`,
53
53
  `ShowLabel(alpha, false)`,
54
54
  ];
55
- const ggb = new geogebraConstructor_1.GeogebraConstructor(commands, {
55
+ const ggb = new geogebraConstructor_1.GeogebraConstructor({
56
+ commands,
56
57
  hideAxes: true,
57
58
  hideGrid: true,
58
59
  });
@@ -62,9 +63,9 @@ const getTriangleArea = () => {
62
63
  instruction: `Calculer l'aire du triangle $${triangle.getTriangleName()}$ sachant que $${sides[randoms[0]]} = ${sidesLengths[randoms[0]]}$ cm et $${vertices[randoms[0]]}${interceptName} = ${height}$ cm.`,
63
64
  answer: answerTex,
64
65
  keys: ["cm", "cm2"],
65
- commands: ggb.commands,
66
- options: ggb.getOptions(),
67
- coords: triangle.generateCoords(),
66
+ ggbOptions: ggb.getOptions({
67
+ coords: triangle.generateCoords(),
68
+ }),
68
69
  answerFormat: "tex",
69
70
  identifiers: { sidesLengths },
70
71
  };
@@ -1 +1 @@
1
- {"version":3,"file":"cartesianEquationOfLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/cartesianEquationOfLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAclC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AA+NF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
1
+ {"version":3,"file":"cartesianEquationOfLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/cartesianEquationOfLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAclC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAgOF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}