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/intervalles-lKMyy77B.js.map
{"version":3,"file":"intervalles-lKMyy77B.js","sources":["../../src/lib/2d/intervalles.js"],"sourcesContent":["import { colorToLatexOrHTML, ObjetMathalea2D } from '../../modules/2dGeneralites.js'\nimport { context } from '../../modules/context.js'\nimport { point } from './points.js'\nimport { segment } from './segmentsVecteurs.js'\n\nexport function CrochetD (A, color = 'blue') {\n  ObjetMathalea2D.call(this, {})\n  this.epaisseur = 2\n  this.color = colorToLatexOrHTML(color)\n  this.taille = 0.2\n  this.svg = function (coeff) {\n    if (this.epaisseur !== 1) {\n      this.style += ` stroke-width=\"${this.epaisseur}\" `\n    }\n    switch (this.pointilles) {\n      case 1:\n        this.style += ' stroke-dasharray=\"6 10\" '\n        break\n      case 2:\n        this.style += ' stroke-dasharray=\"6 3\" '\n        break\n      case 3:\n        this.style += ' stroke-dasharray=\"3 2 6 2 \" '\n        break\n      case 4:\n        this.style += ' stroke-dasharray=\"1 2\" '\n        break\n      case 5:\n        this.style += ' stroke-dasharray=\"5 5\" '\n        break\n    }\n    \n    let code = `<polyline points=\"${A.xSVG(coeff) + this.taille * 20},${A.ySVG(coeff) +\n    2 * this.taille * 20 / coeff * coeff\n    } ${A.xSVG(coeff)},${A.ySVG(coeff) + 2 * this.taille * 20} ${A.xSVG(coeff)},${A.ySVG(coeff) +\n    -2 * this.taille * 20\n    } ${A.xSVG(coeff) + this.taille * 20},${A.ySVG(coeff) +\n    -2 * this.taille * 20\n    }\" fill=\"none\" stroke=\"${this.color[0]}\" ${this.style} />`\n    code += `\\n\\t<text x=\"${A.xSVG(coeff)}\" y=\"${A.ySVG(coeff) +\n    this.taille * 20 * 5\n    }\" text-anchor=\"middle\" dominant-baseline=\"central\" fill=\"${this.color[0]}\">${A.nom\n    }</text>\\n `\n    return code\n  }\n  this.tikz = function () {\n    let code = `\\\\draw[very thick,color=${this.color[1]}] (${A.x + this.taille / context.scale},${A.y + this.taille / context.scale})--(${A.x\n    },${A.y + this.taille / context.scale})--(${A.x},${A.y - this.taille / context.scale})--(${A.x + this.taille / context.scale},${A.y - this.taille / context.scale});`\n    code += `\\n\\t\\\\draw[color=${this.color[1]}] (${A.x},${A.y - this.taille / context.scale}) node[below] {$${A.nom}$};`\n    return code\n  }\n}\n\nexport function crochetD (...args) {\n  return new CrochetD(...args)\n}\n\nexport function CrochetG (A, color = 'blue') {\n  ObjetMathalea2D.call(this, {})\n  this.epaisseur = 2\n  this.color = colorToLatexOrHTML(color)\n  this.taille = 0.2\n  \n  this.svg = function (coeff) {\n    if (this.epaisseur !== 1) {\n      this.style += ` stroke-width=\"${this.epaisseur}\" `\n    }\n    switch (this.pointilles) {\n      case 1:\n        this.style += ' stroke-dasharray=\"6 10\" '\n        break\n      case 2:\n        this.style += ' stroke-dasharray=\"6 3\" '\n        break\n      case 3:\n        this.style += ' stroke-dasharray=\"3 2 6 2 \" '\n        break\n      case 4:\n        this.style += ' stroke-dasharray=\"1 2\" '\n        break\n      case 5:\n        this.style += ' stroke-dasharray=\"5 5\" '\n        break\n    }\n    \n    let code = `<polyline points=\"${A.xSVG(coeff) - this.taille * 20},${A.ySVG(coeff) +\n    2 * this.taille * 20\n    } ${A.xSVG(coeff)},${A.ySVG(coeff) + 2 * this.taille * 20} ${A.xSVG(coeff)},${A.ySVG(coeff) -\n    2 * this.taille * 20\n    } ${A.xSVG(coeff) - this.taille * 20},${A.ySVG(coeff) -\n    2 * this.taille * 20\n    }\" fill=\"none\" stroke=\"${this.color[0]}\" ${this.style} />`\n    code += `\\n\\t<text x=\"${A.xSVG(coeff)}\" y=\"${A.ySVG(coeff) +\n    5 * this.taille * 20\n    }\" text-anchor=\"middle\" dominant-baseline=\"central\" fill=\"${this.color[0]}\">${A.nom\n    }</text>\\n `\n    return code\n  }\n  this.tikz = function () {\n    let code = `\\\\draw[very thick,color=${this.color[1]}] (${A.x - this.taille / context.scale},${A.y + this.taille / context.scale})--(${A.x\n    },${A.y + this.taille / context.scale})--(${A.x},${A.y - this.taille / context.scale})--(${A.x - this.taille / context.scale},${A.y - this.taille / context.scale});`\n    code += `\\n\\t\\\\draw[color=${this.color[1]}] (${A.x},${A.y - this.taille / context.scale}) node[below] {$${A.nom}$};`\n    return code\n  }\n}\n\nexport function crochetG (...args) {\n  return new CrochetG(...args)\n}\n\nexport function intervalle (A, B, color = 'blue', h = 0) {\n  const A1 = point(A.x, A.y + h)\n  const B1 = point(B.x, B.y + h)\n  const s = segment(A1, B1, color)\n  // s.styleExtremites = '->'\n  \n  s.epaisseur = 3\n  return s\n}\n"],"names":["CrochetD","A","color","ObjetMathalea2D","colorToLatexOrHTML","coeff","code","context","crochetD","args","CrochetG","crochetG","intervalle","B","h","A1","point","B1","s","segment"],"mappings":"oEAKO,SAASA,EAAUC,EAAGC,EAAQ,OAAQ,CAC3CC,EAAgB,KAAK,KAAM,EAAE,EAC7B,KAAK,UAAY,EACjB,KAAK,MAAQC,EAAmBF,CAAK,EACrC,KAAK,OAAS,GACd,KAAK,IAAM,SAAUG,EAAO,CAI1B,OAHI,KAAK,YAAc,IACrB,KAAK,OAAS,kBAAkB,KAAK,SAAS,MAExC,KAAK,WAAU,CACrB,IAAK,GACH,KAAK,OAAS,4BACd,MACF,IAAK,GACH,KAAK,OAAS,2BACd,MACF,IAAK,GACH,KAAK,OAAS,gCACd,MACF,IAAK,GACH,KAAK,OAAS,2BACd,MACF,IAAK,GACH,KAAK,OAAS,2BACd,KACH,CAED,IAAIC,EAAO,qBAAqBL,EAAE,KAAKI,CAAK,EAAI,KAAK,OAAS,EAAE,IAAIJ,EAAE,KAAKI,CAAK,EAChF,EAAI,KAAK,OAAS,GAAKA,EAAQA,CACnC,IAAQJ,EAAE,KAAKI,CAAK,CAAC,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