HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/betaRepere-o9LLH0wM.js.map
{"version":3,"file":"betaRepere-o9LLH0wM.js","sources":["../../src/exercices/beta/betaRepere.js"],"sourcesContent":["import RepereBuilder from '../../lib/2d/RepereBuilder'\nimport { fixeBordures, mathalea2d } from '../../modules/2dGeneralites.js'\nimport { listeQuestionsToContenu } from '../../modules/outils.js'\nimport Exercice from '../Exercice'\n\nexport const titre = 'essai de RepereBuilder'\nexport const uuid = '95699'\nexport const ref = 'betaRepere'\nexport const dateDePublication = '22/07/2023' // La date de publication initiale au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\n// export const uuid = '' // @todo à changer dans un nouvel exo (utiliser pnpm getNewUuid)\n// export const ref = 'betaRepere'// @todo à modifier aussi\n\n/**\n * Un constructeur de Repère amélioré\n * @author Jean-Claude Lhote\n * Référence (betaRepere)\n */\nexport default class BetaRepere extends Exercice {\n  constructor () {\n    super()\n    this.titre = titre\n    this.sup = '-5;5;-2;2'\n    this.nbQuestions = 1 // Nombre de questions par défaut\n    this.nbQuestionsModifiable = false\n    this.besoinFormulaireTexte = ['xMin, xMax, yMin, yMax séparés par des ; ']\n  }\n\n  nouvelleVersion () {\n    this.listeQuestions = [] // Liste de questions\n    this.listeCorrections = [] // Liste de questions corrigées\n    let xMin, xMax, yMin, yMax\n    do {\n      [xMin, xMax, yMin, yMax] = this.sup.split(';').map(el => Number(el))\n    } while (isNaN(yMax))\n    //\n    const repere = new RepereBuilder({ xMin, xMax, yMin, yMax })\n      .setUniteX(3)\n      .setUniteY(3)\n      .setThickX({ xMin: -5, xMax: 5, dx: Math.PI / 4 })\n      .setThickY({ yMin: -1.5, yMax: 1.5, dy: 0.5 })\n      .setGrille({ grilleX: { dx: Math.PI / 4, xMin: -5, xMax: 5 }, grilleY: { dy: 1, yMin: -2, yMax: 2 } })\n      .setLabelX({ dx: Math.PI / 4, xMin: -5, xMax: 5 })\n      .setLabelY({ dy: 1, yMin: -1.5, yMax: 1.5 })\n      .buildTrigo(4)\n    const texteEnonce = mathalea2d(Object.assign({}, fixeBordures([repere.objets])), repere.objets)\n    this.listeQuestions.push(texteEnonce)\n    listeQuestionsToContenu(this)// On envoie l'exercice à la fonction de mise en page\n  }\n}\n"],"names":["titre","uuid","ref","dateDePublication","BetaRepere","Exercice","xMin","xMax","yMin","yMax","el","repere","RepereBuilder","texteEnonce","mathalea2d","fixeBordures","listeQuestionsToContenu"],"mappings":"gLAKY,MAACA,EAAQ,yBACRC,EAAO,QACPC,EAAM,aACNC,EAAoB,aASlB,MAAMC,UAAmBC,CAAS,CAC/C,aAAe,CACb,MAAO,EACP,KAAK,MAAQL,EACb,KAAK,IAAM,YACX,KAAK,YAAc,EACnB,KAAK,sBAAwB,GAC7B,KAAK,sBAAwB,CAAC,2CAA2C,CAC1E,CAED,iBAAmB,CACjB,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,IAAIM,EAAMC,EAAMC,EAAMC,EACtB,EACE,CAACH,EAAMC,EAAMC,EAAMC,CAAI,EAAI,KAAK,IAAI,MAAM,GAAG,EAAE,IAAIC,GAAM,OAAOA,CAAE,CAAC,QAC5D,MAAMD,CAAI,GAEnB,MAAME,EAAS,IAAIC,EAAc,CAAE,KAAAN,EAAM,KAAAC,EAAM,KAAAC,EAAM,KAAAC,EAAM,EACxD,UAAU,CAAC,EACX,UAAU,CAAC,EACX,UAAU,CAAE,KAAM,GAAI,KAAM,EAAG,GAAI,KAAK,GAAK,EAAG,EAChD,UAAU,CAAE,KAAM,KAAM,KAAM,IAAK,GAAI,GAAK,EAC5C,UAAU,CAAE,QAAS,CAAE,GAAI,KAAK,GAAK,EAAG,KAAM,GAAI,KAAM,GAAK,QAAS,CAAE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