sesaparcours
    Preparing search index...

    MtgAppLecteur avec les méthodes de l'api ajoutées

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    abort activateField activateFirstEmptyField activateFirstInvalidField activateFirstInvalidOrEmptyField activateTraceMode addAbsMeasure addActionButton addAngleMark addArcDirectOAB addArcIndirectOAB addArcMajorOAB addArcMajorOAx addArcOAB addArcOAx addBrokenLine addCalc addCalcComp addCalcMat addCallBackToSVGListener addCircleIm addCircleOA addCircleOr addCurve addDerivative addDilation addDoc addDuplicatedObject addEltListener addEventListener addFreePoint addFunc addFuncComp addFunctionToQueue addImplicitMult addImPointDilation addImPointRotation addImPointSymAx addImPointSymCent addImPointTranslation addImPointTranslationxy addIntCircleCircle addIntLineCircle addIntLineLine addLatex addLengthMeasure addLineAB addLineAx addLineBisAOB addLineHor addLineIm addLineMedAB addLinePar addLinePerp addLineVer addLinkedLatex addLinkedPointCircle addLinkedPointLine addLinkedPointLocus addLinkedText addMatrix addMidpoint addObjectLocus addPointIm addPointLocus addPointXY addPointZ addPolygon addRay addRayIm addRotation addSegment addSegmentMark addSimilitude addSurface addSurfaceCircle addSurfacePoly addSvgListener addSymAx addSymCent addSystemOfAxis addTest addTestComp addText addTimerButton addTranslation addTranslationxy addVariable addVector addXMeasure addYMeasure addZMeasure addZoomButtons afficheTout calculate calculateAndDisplayAll calculateFirstTime calcVectOK createList deleteAfter deleteElt deleteObj deviceDown display displayOnTop executeMacro fieldsValidation fieldValidation fixPoint getBase64Code getCalcName getDoc getDocsIds getElement getFieldValue getFigDim getFormula getFuncImage getIdDocFromEvent getLatex getLatexCode getLatexFormula getList getMatValue getPointPosition getSimplifiedLatexFormula getSVGElement getValue giveFormula2 giveFormulaTo mousemove ondeviceup ontouchcancel ontouchend prepareTracesEtImageFond ready recalculate reclassAfter reclassBefore reclassMax reclassMin reDisplay releasePoint removeAllDoc removeCallBackToSVGListener removeDoc removeEltListener removeEventListener removePointLink removeSvgListener rename setActive setAngleUnity setApiDoc setBackgroundColor setColor setEditorCallBackOK setEditorCharset setEditorsEmpty setEditorsSize setEditorValue setFig setFormula4Prosca setFreePointPosition setHidden setLensPosition setLineStyle setLinkPointPoint setMarked setPointNameOffset setPointPosition setPointStyle setTag setText setThickness setUnity setUnmarked setVisible sleep syntaxValidation translate translateFig translatePoint updateDependantDisplay updateDisplay updateFigDisplay updateFigure valueOf zoom zoomFig

    Constructors

    • Parameters

      • OptionalzoomOnWheel: boolean
      • OptionaldecimalDot: boolean
      • Optionaltranslatable: boolean
      • OptionaluseLens: boolean

      Returns MtgAppLecteurApi

    Properties

    Methods

    • Annule la pile des actions en cours (affichages et chargements)

      Returns void

    • Fonction donnant le focus au premierr éditeur de formule asscoié au calcul ou à la fonction nommé nomCalcul dans le document d'id idDoc.

      Parameters

      • idDoc: string
      • nomCalcul: string

      Returns void

    • Fonction donnant le focus au premier éditeur de formule qui ne contient rien dans le document d'id idDoc

      Parameters

      • idDoc: string

      Returns void

    • Fonction activant le premier éditeur de formule contenant une formule qui n'est pas correcte sur le plan syntaxique dans le document d'id idDoc.

      Parameters

      • idDoc: string

      Returns void

    • Fonction activant le premier éditeur de formule vide ou contenant une formule qui n'est pas correcte sur le plan syntaxique dans le document d'id idDoc

      Parameters

      • idDoc: string

      Returns void

    • activates or deactivates trace mode on the figure syntax activates(true|false) is also allowed

      Parameters

      • bActivate: boolean

        true to activate trace mode, false to deactivate trace mode

      Returns void

    • Adds the abscissa measure of point b in (o, a) (the three points must be aligned) syntax addAbsMeasure(b, o, a, nameCalc) is also allowed

      Parameters

      • options: { a: string | CPt; b: string | CPt; nameCalc: string; o: string | CPt }
        • a: string | CPt

          extremity (abscissa of b in (O, a))

        • b: string | CPt

          point b the abscissa is wanted from

        • nameCalc: string

          Name of the created calculation (the x-coordinate measure))

        • o: string | CPt

          origin (abscissa of b in (O, a))

      Returns CMesureAbscisse

      the created measure

    • adds a button on the figure launching function callBack when clicked on syntaxes addActionButton(text, callBack), addActionButton(text, callBack, x, y) and addActionButton(text, callBack, x, y, tag) are allowed too where callBack is the launched function when the button is clicked

      Parameters

      • options: {
            callBack: (...params: any[]) => any;
            tag?: string;
            text: string;
            x?: string | number | CValDyn;
            y?: string | number | CValDyn;
        }
        • callBack: (...params: any[]) => any

          function to be called when clicked on the button

        • Optionaltag?: string

          Tag to be applied on the created text display (if present) returns {CCommentaire}

        • text: string

          The text displayed by the button

        • Optionalx?: string | number | CValDyn

          x coordinate of the top button zoom in svg coordinates or 10 if absent

        • Optionaly?: string | number | CValDyn

          y coordinate of the top button zoom in svg coordinates or 50 if absent

      Returns void

    • Adds an angle mark syntaxes addAngleMark(o, a, b, r), addAngleMark(o, a, b, r, color), addAngleMark(o, a, b, r, color, angleMarkStyle) and addAngleMark(o, a, b, r, color, angleMarkStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            angleMarkStyle?: string;
            b: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            r: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          a point of arc oab (name or tag if name is empty)

        • OptionalangleMarkStyle?: string

          Angle mark style (simple|simple-|simple--|simple---|simplex|full|full-|full--|full---|fullx)

        • b: string | CPt

          b point of arc oab (name or tag if name is empty)

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the angle mark masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          o point of arc oab (name or tag if name is empty)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • r: number

          arc radius in pixels

        • Optionaltag?: string

          Tag to be applied on the angle mark (if present)

        • Optionalthickness?: number

          Thickness of the stroke

      Returns Promise<undefined>

    • Adds the direct circle arc of center o starting from point a and ending at the intersection point of ray [o;b) and the circle syntaxes addArcDirectOAB(o, a, b), addArcDirectOAB(o, a, b, color), addArcDirectOAB(o, a, b, color, lineStyle) and addArcDirectOAB(o, a, b, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point or point name of the starting point of the arc

        • b: string | CPt

          Point or point name of the point providing the final extremity of the arc (by intersection of a ray of origin o with the circle)

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created arc masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Point or point name of the center point of the arc

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created arc (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CArcDeCercleDirect

      The created arc if isPromiseMode is false or promise that will be resolved when the arc is displayed

    • Adds the indirect circle arc of center o starting from point a and ending at the intersection point of ray [o;b) and the circle syntaxes addArcIndirectOAB(o, a, b), addArcIndirectOAB(o, a, b, color), addArcIndirectOAB(o, a, b, color, lineStyle) and addArcIndirectOAB(o, a, b, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point or point name of the starting point of the arc

        • b: string | CPt

          Point or point name of the point providing the final extremity of the arc (by intersection of a ray of origin o with the circle)

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created arc masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Point or point name of the center point of the arc

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created arc (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CArcDeCercleIndirect

      The created arc if isPromiseMode is false or promise that will be resolved when the arc is displayed

    • Adds the major circle arc of center o starting from point a and ending at the intersection point of ray [o;b) and the circle syntaxes addArcMajorOAB(o, a, b), addArcMajorOAB(o, a, b, color), addArcMajorOAB(o, a, b, coland, lineStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point or point name of the starting point of the arc

        • b: string | CPt

          Point or point name of the point providing the final extremity of the arc (by intersection of ray of origin o with the circle)

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created arc masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Point or point name of the center point of the arc

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created arc (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CGrandArcDeCercle

      The created arc if isPromiseMode is false or promise that will be resolved when the arc is displayed

    • Adds the major circle arc of center o starting from point a and angle x syntaxes addArcMajorOAx(o, a, x), addArcMajorOAx(o, a, x, color), addArcMajorOAx(o, a, x, color, and addArcMajorOAx(o, a, x, color, lineStyle, thickness)` are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
            x: string | number | CValDyn;
        }
        • a: string | CPt

          Point or point name of the starting point of the arc

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created arc masked

        • OptionallineStyle?: string

          line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Point or point name of the center point of the arc

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created arc (if present)

        • Optionalthickness?: number

          Stroke thickness

        • x: string | number | CValDyn

          Angle of the arc in the unity angle of the figure (number or valid formula)

      Returns Promise<undefined> | CGrandArcDeCercle

      The created arc if isPromiseMode is false or promise that will be resolved when the arc is displayed

    • Adds the minor circle arc of center o starting from point a and ending at the intersection point of ray [o;b) and the circle syntaxes addArcOAB(o, a, b), addArcOAB(o, a, b, color), addArcOAB(o, a, b, color, lineStyle) and addArcOAB(o, a, b, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point or point name of the starting point of the arc

        • b: string | CPt

          Point or point name of the point providing the final extremity of the arc (by intersection of ray of origin o with the circle)

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created arc masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Point or point name of the center of the arc

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created arc (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CArcDeCercle

      The created arc if isPromiseMode is false or promise that will be resolved when the arc is displayed

    • Adds the minor circle arc of center o, starting from a and angle x syntaxes addArcOAx(o, a, x), addArcOAx(o, a, x, color), addArcOAx(o, a, x, color, ineStyle) and addArcOAx(o, a, x, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
            x: string | number | CValDyn;
        }
        • a: string | CPt

          Point or point name of the starting point of the arc

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created arc masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Point or point name of the center point of the arc

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created arc (if present)

        • Optionalthickness?: number

          Stroke thickness

        • x: string | number | CValDyn

          Angle of the arc in the unity angle of the figure (number or valid formula)

      Returns Promise<undefined> | CArcDeCercle

      The created arc if isPromiseMode is false or promise that will be resolved when the arc is displayed

    • Adds a broken line vertexes of which are given in the array points (array of the vertexes points names) syntaxes addBrokenLine(points), addBrokenLine(points, color), addBrokenLine(points, color, lineStyle) and addBrokenLine(points, color, lineStyle, thickness) are allowed too, where points is an array of points or name of points

      Parameters

      • options: {
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            opacity?: number;
            points: string[];
            tag?: string;
            thickness?: number;
        }
        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the polygon masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • points: string[]

          array of the vertexes points names of the polygon

        • Optionaltag?: string

          Tag to be applied on the created broken line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CLigneBrisee

      the created polygon if isPromiseMode is false else promise that will be resolved when the object is displayed

    • Adds a real calculation of name nameCalc from formula contained in string formula syntax addCalc(nameCalc, fandmula) is also allowed

      Parameters

      • options: { formula: string; nameCalc: string }
        • formula: string

          Formula of the calculation to be created

        • nameCalc: string

          Name of the real calculation to be created

      Returns CCalcul

      the created measure

    • Adds a complex calculation of name nameCalc from formula contained in string formula syntax addCalcComp(nameCalc, formula) is also allowed

      Parameters

      • options: { formula: string; nameCalc: string }
        • formula: string

          Formula of the complex calculation to be created

        • nameCalc: string

          Name of the complex calculation to be created

      Returns CCalculComplexe

      the created measure

    • Adds a matricial calculation of name nameCalc from formula contained in string formula syntax addCalcMat(nameCalc, formula) is also allowed

      Parameters

      • options: { formula: string; nameCalc: string }
        • formula: string

          Formula of the matricial calculation to be created

        • nameCalc: string

          Name of the matricial calculation to be created

      Returns CCalcul

      the created measure

    • Ajoute un listener sur le doc (jamais utilisé dans notre code mais utilisé par des sections sesaparcours)

      Parameters

      • idDoc: string
      • eventName: string
      • callBack: (...params: any[]) => any

      Returns boolean

    • adds the image of circle (or circle arc) c by transformation transf syntaxes addCircleIm(c, transf), addCircleIm(c, transf, name), addCircleIm(c, transf, name, color), addCircleIm(c, transf, name, color, lineStyle) and addCircleIm(c, transf, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            c: CCercle;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
            transf: CTransformation;
        }
        • c: CCercle

          the circle (or circle arc) that is to be transformed

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

        • transf: CTransformation

          the transformation to aplly on line d

      Returns Promise<undefined> | CDroiteAB

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds the circle of center o and going through a syntaxes addCircleOA(o, a), addCircleOA(o, a, color), addCircleOA(o, a, color, lineStyle) and addCircleOA(o, a, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point or point name of the point the circle is going through

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created circle masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Point or point name of the center

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created circle (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CCercleOA

      The created circle if isPromiseMode is false or promise that will be resolved when the circle is displayed

    • Adds the circle of center o and radius r The figure must have a unity length syntaxes addCircleOr(o, r), addCircleOr(o, r, color), addCircleOr(o, r, color, lineStyle) and addCircleOr(o, r, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            r: string | number;
            tag?: string;
            thickness?: number;
        }
        • Optionalcolor?: string

          Color, blck by default

        • Optionalhidden?: boolean

          true to get the created circle masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Name (or tag if name is empty) of the center

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • r: string | number

          Radius of the circle or string giving a valid formula for the radius

        • Optionaltag?: string

          Tag to be applied on the created circle (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CCercleOR

      The created circle if isPromiseMode is false or promise that will be resolved when the circle is displayed

    • Adds the curve of a function in the system of axis frame syntaxes addCurve(calc, x), addCurve(calc, x, color), addCurve(calc, x, color, lineStyle), addCurve(calc, x, color, lineStyle, thickness) and addCurve(calc, x, color, lineStyle, thickness, rep) are allowed too

      Parameters

      • options: {
            calc: CFonc;
            closed?: boolean;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            opacity?: number;
            thickness?: number;
            x: number;
        }
        • calc: CFonc

          name of the function of function curve is to be created of

        • Optionalclosed?: boolean

          true to set the point locus closed

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the point locus masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionalthickness?: number

          Thickness of the stroke

        • x: number

          number of points used to create the curve (point locus)

      Returns void

    • Adds the derivative function of function calc (function name or function) syntax addDerivative(calc, nameCalc) is also allowed

      Parameters

      • options: { calc: string; nameCalc: string }
        • calc: string

          Name of the function to be derivated

        • nameCalc: string

          Name of the derivative function to be created

      Returns CCalcul

      the created measure

    • adds the dilation of center o and ratio x syntax addDilation(o, x) is also allowed

      Parameters

      • options: { o: string | CPt; x: string | number | CValDyn }
        • o: string | CPt

          center of the dilation

        • x: string | number | CValDyn

          the ratio of the dilation (number, object or string containing a valid formula)

      Returns CHomothetie

    • Ajoute le document par son id représenté par une chaîne chdoc en dataBase64

      Parameters

      • idDoc: string

        L'id du document qui sera celle du svg contenant la figure.

      • chdoc: string

        Chaine base64 décrivant la figure (obtenue via MathGraph32 par le menu Edition - Copier le code de la figure (pour html)

      • OptionaldisplayOnLoad: boolean

        true si la figure doit être affichée dès le démarrage de la page.

      • OptionalisActive: boolean

        true si la figure répond dès le démarrage aux actions souris et clavier.

      Returns void

    • Adds the duplicated object of object elt syntax addDuplicatedObject(elt) is also allowed

      Parameters

      • options: { elt: string; hidden?: boolean }
        • elt: string

          Tag of the object to be duplicated

        • Optionalhidden?: boolean

          true to get the duplicated object masked

      Returns Promise<undefined> | CObjetDuplique

      the created object if isPromiseMode is false else promise that will be resolved when the duplicated object is displayed

    • Adds an event listener to a graphical object of the figure The callBack function accepts three parameters (event, x, y) where x and y are the coordinates of the event relative to the svg containing the figure syntax addEltListener(elt, eventName, callBack) is also allowed

      Parameters

      • options: { callBack: EventSvgCallback; elt: string; eventName: string }
        • callBack: EventSvgCallback

          function to be launched when the event is triggered.

        • elt: string

          Tag of the graphical object the listener is to be added on

        • eventName: string

          Name of the event to be listened to

      Returns void

    • Associe un eventListener au svg Element représentant l'objet d'indice html ind dans la figure d'id idDoc

      Parameters

      • idDoc: string

        L'id de la figure

      • ind: string | number

        N° d'identification html de l'élément (entier) ou chaîne de caractères commençant par # et suivie du tag de l'élément

      • eventName: string

        Le nom de l'événement (par exemple mousemove)

      • callBack: (...params: any[]) => any

        La fonction de callBack de paramètre l'événement appelant

      Returns boolean

      : true si tout s'est bien passé, false sinon

    • Add a free point Syntax addFreePoint(x, y), addFreePoint(x, y, name), addFreePoint(x, y, name, color), addFreePoint(x, y, name, color, pointStyle) or addFreePoint(x, y, name, color, pointStyle, rep) allowed

      Parameters

      • options: {
            absCoord?: boolean;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            rep?: string;
            tag?: string;
            x: string | number | CValDyn;
            y: string | number | CValDyn;
        }
        • OptionalabsCoord?: boolean

          set to true if x,y should be considered absolute in the svg (in that case rep is ignored), useless if there is no frame (in that case x,y will be considered absolute regardless of this property)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the point masked

        • OptionalhiddenName?: boolean

          true to get the name point masked

        • Optionalname?: string

          Name of the point (if present)

        • OptionaloffsetX?: number

          x-shift of the name

        • OptionaloffsetY?: number

          y-shift of the name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the point (if present)

        • x: string | number | CValDyn

          starting x-coordinate when the point is created

        • y: string | number | CValDyn

          starting y-coordinate when the point is created

      Returns Promise<undefined> | CPointBase

      The created point if isPromiseMode is false else promise that will be resolved when the point is displayed

    • Adds a real fonction of variable x named nameCalc from formula contained in string formula syntaxes addFunc(nameCalc, formula) or addFunc(nameCalc, formula, varName) are allowed too

      Parameters

      • options: { formula: string; nameCalc: string; varName: string }
        • formula: string

          Formula of the function to be created (with x as variable)

        • nameCalc: string

          Name of the function to be created

        • varName: string

          Formal variable name used in the formula of the function. 'x' by default.

      Returns CCalcul

      the created measure

    • Adds a real fonction of variable z named nameCalc from formula contained in string formula syntaxes addFuncComp(nameCalc, fandmula) are allowed too

      Parameters

      • options: { formula: string; nameCalc: string; varName: string }
        • formula: string

          Formula of the calculation to be created (with z as variable)

        • nameCalc: string

          Name of the complex function to be created

        • varName: string

          Formal variable name used in the formula of the function. 'z' by default.

      Returns CCalcul

      the created measure

    • Fonction destinée à mettre une fonction sur la pile des appels. A utiliser de façon externe pour être sûr qu'une action soit faite après les affichages en cours

      Parameters

      • f: (...params: any[]) => any

      Returns void

    • Fonction renvoyant une chaîne de caractères correspondant à la formule contenue dans formula mais où les signes de multiplications implicites sont rajoutés en supposant que la formule ne contient pas de calculs ou de fonctions avace un nom de plus de un caractère.

      Parameters

      • idDoc: string

        L'id du comument à traiter

      • formula: string

        La formule à traiter

      Returns string

    • Adds an image point of a through a dilation of center o and ratio x syntaxes addImPointDilation(a, o, x), addImPointDilation(a, o, x, name), addImPointDilation(a, o, x, name, color), addImPointDilation(a, o, x, name, coland, pointStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            o: string | CPt;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
            x: string | number | CValDyn;
        }
        • a: string | CPt

          point that is to be transformed by the dilation (or point name)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          The name of the point to be created

        • o: string | CPt

          center point of the dilation (or point name)

        • OptionaloffsetX?: number

          x-shift of the name

        • OptionaloffsetY?: number

          y-shift of the name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

        • x: string | number | CValDyn

          Ratio of the dilation : number or vaid formula

      Returns Promise<undefined> | CPointImage

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds the image point of a through a rotation of center o and angle x syntaxes addImPointRotation(a, o, x), addImPointRotation(a, o, x, name), addImPointRotation(a, o, x, name, color) and addImPointRotation(a, o, x, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            o: string | CPt;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
            x: string | number | CValDyn;
        }
        • a: string | CPt

          point that is to be transformed by the rotation

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          The name of the point to be created

        • o: string | CPt

          The rotation center (or point name)

        • OptionaloffsetX?: number

          x-shift of the name

        • OptionaloffsetY?: number

          y-shift of the name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

        • x: string | number | CValDyn

          Angle of rotation : number or valid formula

      Returns Promise<undefined> | CPointImage

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds an image point of a through an axial symmetry of axis d syntaxes addImPointSymAx(a, d), addImPointSymAx(a, d, name), addImPointSymAx(a, d, name, color) and addImPointSymAx(a, d, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            d: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
        }
        • a: string | CPt

          point that is to be transformed by the symmetry (or point name)

        • Optionalcolor?: string

          Color, black by default

        • d: string

          The symmetry axis (line, segment or ray)

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          The name of the point to be created

        • OptionaloffsetX?: number

          x-shift of the name

        • OptionaloffsetY?: number

          y-shift of the name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

      Returns Promise<undefined> | CPointImage

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds an image point of a through the central symmetry of center o syntaxes addImPointSymCent(a, o), addImPointSymCent(a, o, name), addImPointSymCent(a, o, name, color) and addImPointSymCent(a, o, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            o: string | CPt;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
        }
        • a: string | CPt

          point that is to be transformed by the dilation (or point name)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          The name of the point to be created

        • o: string | CPt

          center of the symmetry (or point name)

        • OptionaloffsetX?: number

          x-shift of the name

        • OptionaloffsetY?: number

          y-shift of the name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

      Returns Promise<undefined> | CPointImage

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds an image point of o through a translation of vector ab syntaxes addImPointTranslation(o, a, b), addImPointTranslation(o, a, b, name), addImPointTranslation(o, a, b, name, color) and addImPointTranslation(o, a, b, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            o: string | CPt;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
        }
        • a: string | CPt

          Point (or point name) origin of the translation vector

        • b: string | CPt

          Point (or point name) extremity of the translation vector

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          The name of the point to be created (image point)

        • o: string | CPt

          Point (or point name) that is to be transformed by the translation

        • OptionaloffsetX?: number

          x-shift of the point name

        • OptionaloffsetY?: number

          y-shift of the point name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

      Returns Promise<undefined> | CPointImage

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds an image point of a through a translation of vector with coordinates (x, y) syntaxes addImPointTranslation(a, x, y), addImPointTranslation(a, x, y, name), addImPointTranslation(a, x, y, name, color) and addImPointTranslation(a, x, y, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            rep?: string;
            tag?: string;
            x: string | number | CValDyn;
            y: string | number | CValDyn;
        }
        • a: string | CPt

          Point (or point name) that is to be transformed by the translation

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          The name of the point to be created (image point)

        • OptionaloffsetX?: number

          x-shift of the point name

        • OptionaloffsetY?: number

          y-shift of the point name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

        • x: string | number | CValDyn

          the first coordinate of the translation vector

        • y: string | number | CValDyn

          the second coordinate of the translation vector

      Returns Promise<undefined> | CPointImage

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds the intersection between two circles without re-creating an intersection point already created syntaxes addIntCircleCircle(c, c2), addIntCircleCircle(c, c2, name), addIntCircleCircle(c, c2, name, name2), addIntCircleCircle(c, c2, name, name2, color) and addIntCircleCircle(c, c2, name, name2, color, pointStyle) are allowed too

      Parameters

      • options: {
            c: string;
            c2: string;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            name2?: string;
            opacity?: number;
            pointStyle?: string;
            smartIntersect?: boolean;
        }
        • c: string

          Tag of the first intersection circle (or circle arc)

        • c2: string

          Tag of the second intersection circle (or circle arc)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Size of the font used for the created intersection points

        • Optionalhidden?: boolean

          true to get the intersection points masked

        • OptionalhiddenName?: boolean

          true to get the intersection points name hidden

        • Optionalname?: string

          Name of the first intersection point created

        • Optionalname2?: string

          Name of the second intersection point created (if not already present in the figure)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)

        • OptionalsmartIntersect?: boolean

          Set to false to re-create points seen as already existing in circle intersection (with circle or line)

      Returns Promise<undefined> | CPointLieBipoint[]

      [point1, point2] where point1 and point2 are the intersection points if isPromiseMode is false or promise that will be resolved when the intersection points are displayed. If one of the intersection point exists, point1 is the new created point

    • Adds the intersection between a line and a circle without re-creating an intersection point already created syntaxes addIntLineCircle(d, c), addIntLineCircle(d, c, name), addIntLineCircle(d, c, name, name2), addIntLineCircle(d, c, name, name2, color) and addIntLineCircle(d, c, name, name2, color, pointStyle) are allowed too

      Parameters

      • options: {
            c: string;
            color?: string;
            d: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            name2?: string;
            opacity?: number;
            pointStyle?: string;
            smartIntersect?: boolean;
        }
        • c: string

          Tag of the intersection circle (or circle arc)

        • Optionalcolor?: string

          Color, black by default

        • d: string

          Tag of the first intersection line (or ray or segment)

        • OptionalfontSize?: number

          Size of the font used for the created intersection points

        • Optionalhidden?: boolean

          true to get the intersection points masked

        • OptionalhiddenName?: boolean

          true to get the intersection points name hidden

        • Optionalname?: string

          Name of the first intersection point created

        • Optionalname2?: string

          Name of the second intersection point created (if not already present in the figure)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)

        • OptionalsmartIntersect?: boolean

          Set to false to re-create points seen as already existing in circle intersection (with circle or line)

      Returns Promise<undefined> | CPointLieBipoint[]

      [point1, point2] where point1 and point2 are the intersection points if isPromiseMode is false or promise that will be resolved when the intersection points are displayed. If one of the intersection point exists, point1 is the new created point

    • Adds the intersection of 2 lines syntaxes addIntLineLine(d, d2), addIntLineLine(d, d2, name), addIntLineLine(d, d2, name, color) and addIntLineLine(d, d2, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            color?: string;
            d: string;
            d2: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
        }
        • Optionalcolor?: string

          Color, black by default

        • d: string

          Tag of the first intersection line (or ray or segment)

        • d2: string

          Tag of the second intersection line (or ray or segment)

        • OptionalfontSize?: number

          Size of the font used for the intersection point name

        • Optionalhidden?: boolean

          true to get the intersection point masked

        • OptionalhiddenName?: boolean

          true to get the intersection point name hidden

        • Optionalname?: string

          The name of the intersection point

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)

        • Optionaltag?: string

          Tag to be applied on the created LaTeX display (if present)

      Returns Promise<undefined> | CIntDroiteDroite

      The created point if isPromiseMode is false or promise that will be resolved when the intersection point is displayed

    • Adds a LaTeX diplay located at [x,y] syntaxes addLatex(latex, x, y) and addLatex(latex, x, y, color) are allowed too

      Parameters

      • options: {
            absCoord?: boolean;
            backgroundColor?: string;
            border?: string;
            color?: string;
            fontSize?: number;
            hAlign?: string;
            hidden?: boolean;
            latex: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            opaque?: boolean;
            rep?: string;
            tag?: string;
            vAlign?: string;
            x: number;
            y: string | number | CValDyn;
        }
        • OptionalabsCoord?: boolean

          set to true if x,y should be considered absolute in the svg (in that case rep is ignored), useless if there is no frame (in that case x,y will be considered absolute regardless of this property)

        • OptionalbackgroundColor?: string

          Background color if opaque is true

        • Optionalborder?: string

          The border style (none|simple|3D)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Size of the font used for the display (in pixels)

        • OptionalhAlign?: string

          Horizontal alignment left|center|right

        • Optionalhidden?: boolean

          true to get the created LaTeX display masked

        • latex: string

          The LaTeX code to be displayed

        • OptionaloffsetX?: number

          x-shift of the LaTeX display

        • OptionaloffsetY?: number

          xy-shift oof the LaTeX display

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionalopaque?: boolean

          true if the text or LaTeX displays erases its background. If true the color used to erase the background is the backgroundColor if present, else the background color of the figure

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the created LaTeX display (if present)

        • OptionalvAlign?: string

          Vertical alignment top|middle|bottom

        • x: number

          x-coordinate of the location the text is to be displayed at

        • y: string | number | CValDyn

          y-coordinate of the location the text is to be displayed at

      Returns Promise<undefined>

      Promise that will be resolved when the LaTeX is displayed

    • Adds the measure of length measure ab (distance between two points a and b) For this, the figure must have a unity length syntax addLengthMeasure(a, b) is also allowed

      Parameters

      • options: { a: string | CPt; b: string | CPt }
        • a: string | CPt

          point a (or point name) (Measure of length ab)

        • b: string | CPt

          point b (or point name) (measure of length ab)

      Returns CLongueur

      the created measure

    • Adds the line going through points a and b syntaxes addLineAB(a, b), addLineAB(a, b, name), addLineAB(a, b, name, color), addLineAB(a, b, name, color, lineStyle) and addLineAB(a, b, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          First point or point name (or tag if name is empty) the line is going through

        • b: string | CPt

          Second poinnt or point name (or tag if name is empty) the line is going through

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CDroiteAB

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds the line going through points a and with line slope x syntaxes addLineAx(a, x), addLineAx(a, x, name), addLineAx(a, x, name, color), addLineAx(a, x, name, color, lineStyle) and addLineAx(a, x, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
            x: string | number | CValDyn;
        }
        • a: string | CPt

          Point or point name the line is going through

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

        • x: string | number | CValDyn

          slope of the line (number or valid formula)

      Returns Promise<undefined> | CDroiteOm

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds the bisector line of angle a o b syntaxes addLineBisAOB(a, o, b), addLineBisAOB(a, o, b, name), addLineBisAOB(a, o, b, name, color), addLineBisAOB(a, o, b, name, color, lineStyle) and addLineBisAOB(a, o, b, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point a or point name for bisector of angle a o b

        • b: string | CPt

          Point b or point name for bisector of angle a o b

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • o: string | CPt

          Point o or point name for bisector of angle a o b (starting point of the bisector)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CDroiteAB

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds the horizontal line going through point a syntaxes addLineHor(a), addLineHor(a, name), addLineHor(a, name, color), addLineHor(a, name, color, lineStyle) and addLineHor(a, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          First point or point name (or tag if name is empty) the line is going through

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CDroiteDirectionFixe

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • adds the image of line d by transformation transf syntaxes addLineIm(d, transf), addLineIm(d, transf, name), addLineIm(d, transf, name, color), addLineIm(d, transf, name, color, lineStyle) and addLineIm(d, transf, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            color?: string;
            d: CDroiteAncetre;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
            transf: CTransformation;
        }
        • Optionalcolor?: string

          Color, black by default

        • d: CDroiteAncetre

          the line that is to be transformed

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

        • transf: CTransformation

          the transformation to aplly on line d

      Returns Promise<undefined> | CDroiteAB

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds the mediator line of segment [a, b] syntaxes addLineMedAB(a, b), addLineMedAB(a, b, name), addLineMedAB(a, b, name, color), addLineMedAB(a, b, name, color, lineStyle) and addLineMedAB(a, b, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          First point (or point name) line is mediator of

        • b: string | CPt

          Second point (or point name) line is mediator of

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CDroiteAB

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds the parallel line to d going through a syntaxes addLinePar(a, d), addLinePar(a, d, name), addLinePar(a, d, name, color), addLinePar(a, d, name, color, lineStyle) and addLinePar(a, d, name, coland, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            d: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          First point or point name (or tag if name is empty) the line is going through

        • Optionalcolor?: string

          Color, black by default

        • d: string

          line (or segment or ray) (or tag) the created line must be parallel to

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CDroiteParallele

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds the line perpendicular to d going through a syntaxes addLinePerp(a, d), addLinePerp(a, d, name), addLinePerp(a, d, name, color), addLinePerp(a, d, name, color, lineStyle) and addLinePerp(a, d, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            d: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point or point name the line is going through

        • Optionalcolor?: string

          Color, black by default

        • d: string

          line (or segment or ray) the created line must be perpendicular to

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CDroitePerpendiculaire

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds the vertical line going through point a syntaxes addLineVer(a), addLineVer(a, name), addLineVer(a, name, color), addLineVer(a, name, color, lineStyle) and addLineVer(a, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            name?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          First point or point name (or tag if name is empty) the line is going through

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalname?: string

          Name of the line to be created (if present)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CDroiteDirectionFixe

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Adds a LaTeX display linked to a point a syntaxes addLinkedLatex(latex, a) and addLinkedLatex(latex, a, color) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            backgroundColor?: string;
            border?: string;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            latex: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            opaque?: boolean;
            tag?: string;
            vAlign?: string;
        }
        • a: string | CPt

          Name (or tag if name is empty) of the point the text display is linked to

        • OptionalbackgroundColor?: string

          Background color if opaque is true *

        • Optionalborder?: string

          The border style (none|simple|3D)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Size of the font used for the display (in pixels)

        • Optionalhidden?: boolean

          true to get the created LaTeX display masked

        • latex: string

          The LaTeX code to be displayed

        • OptionaloffsetX?: number

          x-shift of the LaTeX display

        • OptionaloffsetY?: number

          y-shift of the LaTeX display

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionalopaque?: boolean

          true if the text or LaTeX displays erases its background. If true the color used to erase the background is the backgroundColor if present, else the background color of the figure

        • Optionaltag?: string

          Tag to be applied on the created LaTeX display (if present)

        • OptionalvAlign?: string

          Vertical alignment top|middle|bottom

      Returns Promise<undefined>

      Promise that will be resolved when the LaTeX is displayed

    • Adds a point linked to a circle (or a circle arc) syntaxes addLinkedPointCircle(c, x, y), addLinkedPointCircle(c, x, y, name), addLinkedPointCircle(c, x, y, name, color), addLinkedPointCircle(c, x, y, name, color, pointStyle) and addLinkedPointCircle(c, x, y, name, color, pointStyle, rep) are allowed too

      Parameters

      • options: {
            absCoord?: boolean;
            c: string;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            rep?: string;
            tag?: string;
            x: string | number | CValDyn;
            y: string | number | CValDyn;
        }
        • OptionalabsCoord?: boolean

          set to true if x,y should be considered absolute in the svg (in that case rep is ignored), useless if there is no frame (in that case x,y will be considered absolute regardless of this property)

        • c: string

          The tag of the circle the created point is to be linked to

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Size of the font used for the point name

        • Optionalhidden?: boolean

          true to get the created linked point mased

        • OptionalhiddenName?: boolean

          true to get the linked point name masked

        • Optionalname?: string

          Name of the linked point to be created

        • OptionaloffsetX?: number

          x-shift of the linked point name

        • OptionaloffsetY?: number

          y-shift of the linked point name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Points style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

        • x: string | number | CValDyn

          x-coordinate of the point that is to be joined from the circle center to get the starting position of the linked point

        • y: string | number | CValDyn

          y-coordinate of the point that is to be joined from the circle center to get the starting position of the linked point

      Returns Promise<undefined> | CPointLieCercle

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds a point linked to a line (or ray or segment) syntaxes addLinkedPointLine(d, x, y), addLinkedPointLine(d, x, y, name), addLinkedPointLine(d, x, y, name, color), addLinkedPointLine(d, x, y, name, color, pointStyle) and addLinkedPointLine(d, x, y, name, color, pointStyle, rep) are allowed too

      Parameters

      • options: {
            absCoord?: boolean;
            color?: string;
            d: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            rep?: string;
            tag?: string;
            x: string | number | CValDyn;
            y: string | number | CValDyn;
        }
        • OptionalabsCoord?: boolean

          set to true if x,y should be considered absolute in the svg (in that case rep is ignored), useless if there is no frame (in that case x,y will be considered absolute regardless of this property)

        • Optionalcolor?: string

          Color, black by default

        • d: string

          Tag of the line (or ray or segment) the point is to be linked to

        • OptionalfontSize?: number

          Size of the font used for the point name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the linked point name masked

        • Optionalname?: string

          Name of the linked point to be created

        • OptionaloffsetX?: number

          x-shift of the linked point name

        • OptionaloffsetY?: number

          y-shift of the linked point name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

        • x: string | number | CValDyn

          x-coordinate of the point used to establish the starting position of the linked point ((by orthogonal projection on the line)

        • y: string | number | CValDyn

          y-coordinate of the point used to establish the starting position of the linked point ((by orthogonal projection on the line)

      Returns Promise<undefined> | CPointLieCercle

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds a point linked to a line (or ray or segment) syntaxes addLinkedPointLocus(elt, x, y), addLinkedPointLocus(elt, x, y, name), addLinkedPointLocus(elt, x, y, name, color) , addLinkedPointLocus(elt, x, y, name, color, pointStyle) and addLinkedPointLocus(elt, x, y, name, color, pointStyle, rep) are allowed too

      Parameters

      • options: {
            absCoord?: boolean;
            color?: string;
            elt: string | CLieuDePoints;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            rep?: string;
            tag?: string;
            x: number;
            y: number;
        }
        • OptionalabsCoord?: boolean

          set to true if x,y should be considered absolute in the svg (in that case rep is ignored), useless if there is no frame (in that case x,y will be considered absolute regardless of this property)

        • Optionalcolor?: string

          Color, black by default

        • elt: string | CLieuDePoints

          point locus the point is to be linked to (or its tag)

        • OptionalfontSize?: number

          Size of the font used for the point name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the linked point name masked

        • Optionalname?: string

          Name of the linked point to be created

        • OptionaloffsetX?: number

          x-shift of the linked point name

        • OptionaloffsetY?: number

          y-shift of the linked point name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

        • x: number

          x-coordinate of the point used to establish the starting position of the linked point ((by orthogonal projection on the line)

        • y: number

          y-coordinate of the point used to establish the starting position of the linked point ((by orthogonal projection on the line)

      Returns Promise<undefined> | CPointLieCercle

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds a text display linked to a point a syntaxes addLinkedText(text, a) and addLinkedText(text, a, color) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            backgroundColor?: string;
            border?: string;
            color?: string;
            fontSize?: number;
            hAlign?: string;
            hidden?: boolean;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            opaque?: boolean;
            tag?: string;
            text: string;
            textAlign?: string;
            vAlign?: string;
        }
        • a: string | CPt

          Name (or tag if name is empty) of the point the text display must be linked to

        • OptionalbackgroundColor?: string

          Background color if opaque is true

        • Optionalborder?: string

          The border style (none|simple|3D)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Size of the font used for the display (in pixels)

        • OptionalhAlign?: string

          Horizontal alignment left|center|right

        • Optionalhidden?: boolean

          true to get the created text display masked

        • OptionaloffsetX?: number

          x-shift of the text display

        • OptionaloffsetY?: number

          y-shift of the text display

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionalopaque?: boolean

          true if the text or LaTeX displays erases its background. If true the color used to erase the background is the backgroundColor if present, else the background color of the figure

        • Optionaltag?: string

          Tag to be applied on the created text display (if present)

        • text: string

          The text to be displayed

        • OptionaltextAlign?: string

          Horizontal alignment of the text (if it contains several lines)

        • OptionalvAlign?: string

          Vertical alignment top|middle|bottom

      Returns Promise<undefined>

      Promise that will be resolved when the text is displayed

    • adds a real matrix of name calc syntax addMatrix(nameCalc, mat) is also allowed

      Parameters

      • options: { mat: (string[] | number[] | CElementBase[])[] }
        • mat: (string[] | number[] | CElementBase[])[]

          array containing the lines of the matrix, each line beeing an array containing either a number, a dynamic real object or a string containing a valid formula

      Returns CMatrice

    • Adds the midpoint of [a; b] syntaxes addMidpoint(a, b), addMidpoint(a, b, name), addMidpoint(a, b, name, color) and addMidpoint(a, b, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
        }
        • a: string | CPt

          First point a or point name (or tag if name is empty) (to create midpoint of [a; b])

        • b: string | CPt

          Second point b or point name (or tag if name is empty) (to create midpoint of [a; b])

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          Name of the midpoint to be created

        • OptionaloffsetX?: number

          x-shift of the point name

        • OptionaloffsetY?: number

          y-shift of the point name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

      Returns Promise<undefined> | CMilieu

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds the oject locus of elt generated by the positions of linked point a syntaxes addObjectLocus(elt, a, x) and addObjectLocus(elt, a, x, color) are allowed too

      Parameters

      • options: { a: string | CPt; color?: string; elt: CElementGraphique }
        • a: string | CPt

          linked point (or point name) positions of which will generate the point locus

        • Optionalcolor?: string

          Color, black by default

        • elt: CElementGraphique

          the graphical element traces are generated from

      Returns Promise<undefined> | CLieuObjetParPtLie

    • adds the image of point a by transformation transf syntaxes addPointIm(a, transf), addPointIm(a, transf, name), addPointIm(a, transf, name, color) and addPointIm(a, transf, name, color, pointStyle) are allowed too

      Parameters

      • options: {
            color?: string;
            d: CDroiteAncetre;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            tag?: string;
            transf: CTransformation;
        }
        • Optionalcolor?: string

          Color, black by default

        • d: CDroiteAncetre

          the line that is to be transformed

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          The name of the point to be created

        • OptionaloffsetX?: number

          x-shift of the name

        • OptionaloffsetY?: number

          y-shift of the name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionaltag?: string

          Tag to be applied on the created point (if present)

        • transf: CTransformation

          the transformation to aplly on line d

      Returns Promise<undefined> | CPointImage

      The created point if isPromiseMode is false or promise that will be resolved when the point is displayed

    • Adds the point locus of point a generated by the positions of linked point b syntaxes addPointLocus(a, b, x), addPointLocus(a, b, x, color), addPointLocus(a, b, x, color, lineStyle) and addPointLocus(a, b, x, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            closed?: boolean;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            opacity?: number;
            thickness?: number;
            x: number;
        }
        • a: string | CPt

          Point (or point name) traces of which will generate the point locus

        • b: string | CPt

          Linked point (or point name) positions of which will generate the point locus

        • Optionalclosed?: boolean

          true to set the point locus closed

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the point locus masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionalthickness?: number

          Thickness of the stroke

        • x: number

          number of the positions of point a generating the point locus

      Returns Promise<undefined> | CLieuDePoints

      the created object locus if isPromiseMode is false else promise that will be resolved when the duplicated object is displayed

    • Adds a point defined by (x; y) coordinates in a frame rep (system of axis). For a free point use addFreePoint and specify options.rep) syntaxes addPointXY(x, y), addPointXY(x, y, name), addPointXY(x, y, name, color), addPointXY(x, y, name, color, pointStyle) and addPointXY(x, y, name, color, pointStyle, rep) are allowed too

      Parameters

      • options: {
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            rep?: string;
            tag?: string;
            x: string | number | CValDyn;
            y: string | number | CValDyn;
        }
        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          Name of the point to be created

        • OptionaloffsetX?: number

          x-shift of the name

        • OptionaloffsetY?: number

          y-shift of the name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the point (if present)

        • x: string | number | CValDyn

          x-coordinate of the point : number or valid formula

        • y: string | number | CValDyn

          y-coordinate of the point : number or valid formula

      Returns Promise<undefined> | CPointDansRepere

      The created point if isPromiseMode is false else promise that will be resolved when the point is displayed

    • Adds a point defined by its complex affix in a frame rep (system of axis). syntaxes addPointZ(z), addPointZ(z, name), addPointZ(z, name, color) and addPointZ(z, name, coland, pointStyle) are allowed too

      Parameters

      • options: {
            absCoord?: boolean;
            color?: string;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            name?: string;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            pointStyle?: string;
            rep?: string;
            tag?: string;
            z: string | number | CValDyn;
        }
        • OptionalabsCoord?: boolean

          set to true if x,y should be considered absolute in the svg (in that case rep is ignored), useless if there is no frame (in that case x,y will be considered absolute regardless of this property)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created point masked

        • OptionalhiddenName?: boolean

          true to get the created point name masked

        • Optionalname?: string

          Name of the point to be created

        • OptionaloffsetX?: number

          x-shift of the name

        • OptionaloffsetY?: number

          y-shift of the name

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalpointStyle?: string

          Point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the point (if present)

        • z: string | number | CValDyn

          affix of the point : number or valid formula or complex calculation

      Returns Promise<undefined> | CPointParAffixe

      The created point if mtgOptions.isPromiseMode is false else promise that will be resolved when the point is displayed

    • Adds a polygon vertexes of which are given in the array points (array of the vertexes points names) syntaxes addPolygon(points), addPolygon(points, color), addPolygon(points, color, lineStyle) and addPolygon(points, color, lineStyle, thickness) are allowed too, where points is an array of points or name of points

      Parameters

      • options: { color?: string; lineStyle?: string; points: string[]; thickness?: number }
        • Optionalcolor?: string

          Color, black by default

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • points: string[]

          array of the vertexes points names of the polygon

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CPolygone

      the created polygon if isPromiseMode is false else promise that will be resolved when the object is displayed

    • Adds the ray [o,a) syntaxes addRay(o, a), addRay(o, a, color), addRay(o, a, color, lineStyle) and addRay(o, a, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point or point name the ray is going through

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created ray masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Point or point name of the starting edge of the ray

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created vector (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CDemiDroite

      The created ray if isPromiseMode is false or promise that will be resolved when the ray is displayed

    • adds the image of ray d by transformation transf syntaxes addRayIm(d, transf), addRayIm(d, transf, name), addRayIm(d, transf, name, color), addRayIm(d, transf, name, color, lineStyle) and addRayIm(d, transf, name, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            color?: string;
            d: CDemiDroite;
            fontSize?: number;
            hidden?: boolean;
            hiddenName?: boolean;
            lineStyle?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
            transf: CTransformation;
        }
        • Optionalcolor?: string

          Color, black by default

        • d: CDemiDroite

          the ray that is to be transformed

        • OptionalfontSize?: number

          Font size of the name

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionalhiddenName?: boolean

          true to get the created line name masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

        • transf: CTransformation

          the transformation to aplly on ray d

      Returns Promise<undefined> | CDroiteAB

      The created line if isPromiseMode is false or promise that will be resolved when the line is displayed

    • adds the rotation of center o and angle x syntax addRotation(o, x) is also allowed

      Parameters

      • options: { o: string | CPt; x: string | number | CValDyn }
        • o: string | CPt

          center of the rotation

        • x: string | number | CValDyn

          the angle of the rotation (number, object or string containing a valid formula)

      Returns CRotation

    • Adds the segment of extremities a et b syntaxes addSegment(a, b), addSegment(a, b, color), addSegment(a, b, color, lineStyle) and addSegment(a, b, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created line masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created line (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CSegment

      The created segment if isPromiseMode is false or promise that will be resolved when the line is displayed

    • Add a segment mark syntaxes addSegmentMark(elt, color), addSegmentMark(elt, color, segmentMarkStyle) and addSegmentMark(elt, color, segmentMarkStyle, thickness) are allowed too

      Parameters

      • options: {
            color?: string;
            elt: string;
            hidden?: boolean;
            lineStyle?: string;
            opacity?: number;
            segmentMarkStyle?: string;
            tag?: string;
            thickness?: number;
        }
        • Optionalcolor?: string

          Color, black by default

        • elt: string

          The tag of the segment the mark will be applied on

        • Optionalhidden?: boolean

          true to get the mark masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • OptionalsegmentMarkStyle?: string

          Angle mark style (-|--|---|x)

        • Optionaltag?: string

          Tag to be applied on the mark (if present)

        • Optionalthickness?: number

          thickness of the stroke

      Returns Promise<undefined>

      The created point if isPromiseMode is false else promise that will be resolved when the mark is displayed

    • adds the direct similitude of center o, angle x and ratio y syntax addSimilitude(o, x, y) is also allowed

      Parameters

      • options: { o: string | CPt; x: string | number | CValDyn; y: string | number | CValDyn }
        • o: string | CPt

          center of the similitude

        • x: string | number | CValDyn

          the angle of the similitude (number, object or string containing a valid formula)

        • y: string | number | CValDyn

          the ration of the similitude (number, object or string containing a valid formula)

      Returns CSimilitude

    • Adds a surface delimited by a polygon, a circle or an arc of circle syntaxes addSurface(edge), addSurface(edge, color), addSurface(edge, color, fillStyle) and addSurface(edge, color, fillStyle, opacity) are allowed too

      Parameters

      • options: {
            color?: string;
            edge: string;
            fillStyle?: string;
            hidden?: boolean;
            opacity?: number;
            tag?: string;
        }
        • Optionalcolor?: string

          Color, black by default

        • edge: string

          Tag or object (polygon, circle or circle arc or point locus)

        • OptionalfillStyle?: string

          Filling style (transp|fill|-|vert|hor|/|)

        • Optionalhidden?: boolean

          true to get the created surface masked

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          The tag to be applied on the created surface

      Returns Promise<undefined> | CSurfacePolygone

      the created surface if isPromiseMode is false else promise that will be resolved when the object is displayed

    • Adds a surface delimited by a circle or a circle arc (slice of pie) syntaxes addSurfaceCircle(c), addSurfaceCircle(c, color), addSurfaceCircle(c, color, fillStyle) and addSurfaceCircle(c, color, fillStyle, opacity) are allowed too

      Parameters

      • options: {
            c: string;
            color?: string;
            fillStyle?: string;
            hidden?: boolean;
            opacity?: number;
            tag?: string;
        }
        • c: string

          Tag of the circle (or the circle arc)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfillStyle?: string

          Filling style (transp|fill|-|vert|hor|/|)

        • Optionalhidden?: boolean

          true to get the created surface masked

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          The tag to be applied on the created surface

      Returns Promise<undefined> | CSurfaceDisque | CSurfaceSecteurCirculaire

      the created surface if isPromiseMode is false else promise that will be resolved when the object is displayed

    • Adds a surface delimited by a polygon syntaxes addSurfacePoly(poly), addSurfacePoly(poly, color), addSurfacePoly(poly, color, fillStyle) and addSurfacePoly(poly, color, fillStyle, opacity) are allowed too

      Parameters

      • options: {
            color?: string;
            fillStyle?: string;
            hidden?: boolean;
            opacity?: number;
            poly: string;
            tag?: string;
        }
        • Optionalcolor?: string

          Color, black by default

        • OptionalfillStyle?: string

          Filling style (transp|fill|-|vert|hor|/|)

        • Optionalhidden?: boolean

          true to get the created surface masked

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • poly: string

          Tag of the polygon

        • Optionaltag?: string

          The tag to be applied on the created surface

      Returns Promise<undefined> | CSurfacePolygone

      the created surface if isPromiseMode is false else promise that will be resolved when the object is displayed

    • Adds a listener on the doc (svg) owning the figure The callBack function accepts three parameters (event, x, y) where x and y are the coordinates of the event relative to the svg containing the figure syntax addSvgListener(eventName, callBack) is also allowed

      Parameters

      • options: { callBack: EventSvgCallback; eventName: string }
        • callBack: EventSvgCallback

          Function to be launched when the event is triggered

        • eventName: string

          Name of the event the listener is to be created on

      Returns void

    • adds the axial symmetry of center o syntax addSymAx(d) is also allowed

      Parameters

      Returns CSymetrieAxiale

    • adds the central symmetry of center o syntax addSymCent(o) is also allowed

      Parameters

      • options: { o: string | CPt }
        • o: string | CPt

          center of the dilation

      Returns CSymetrieCentrale

    • Adds a system of axis defined by points o, a and b (the origin will be o) syntaxes addSystemOfAxis(o, a, b), addSystemOfAxis(o, a, b, color), addSystemOfAxis(o, a, b, color, lineStyle), addSystemOfAxis(o, a, b, color, lineStyle, verticalGrid), addSystemOfAxis(o, a, b, color, lineStyle, verticalGrid, horizontalGrid), addSystemOfAxis(o, a, b, , color, lineStyle, verticalGrid, handizontalGrid, hidden), are allowed too

      Parameters

      • options: {
            a: string | CPt;
            b: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            o: string | CPt;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Name (or tag if name is empty) of the point of coordinates (1; 0) in the system of axis

        • b: string | CPt

          Name (or tag if name is empty) of the point of coordinates (0; 1) in the system of axis

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the system of axis masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • o: string | CPt

          Name (or tag if name is empty) of the point origin of the system of axis

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be associated to the object created

        • Optionalthickness?: number

          Thickness of the stroke

      Returns Promise<undefined> | CRepere

      the created object if isPromiseMode is false else promise that will be resolved when the duplicated object is displayed

    • Adds a existence test of a MathGraph32 dynamic real value x. This object will return 1 if x exists and 0 otherwise syntax addTest(x, nameCalc) is also allowed

      Parameters

      • options: { nameCalc: string; x: string | CValDyn }
        • nameCalc: string

          Name of the existence test to be created

        • x: string | CValDyn

          The numerical object existence of is to tested

      Returns CTestExistence

      the created measure

    • Adds a existence test of a MathGraph32 dynamic complex value z. This object will return 1 if x exists and 0 otherwise syntax addTest(z, nameCalc) is also allowed

      Parameters

      • options: { nameCalc: string; z: string | CValDyn }
        • nameCalc: string

          Name of the existence test to be created

        • z: string | CValDyn

          The numerical complex object existence of is to tested

      Returns CTestExistence

      the created measure

    • Adds a text diplay located at [x,y] syntaxes addText(text, x, y) and addText(text, x, y, color) are allowed too

      Parameters

      • options: {
            absCoord?: boolean;
            backgroundColor?: string;
            border?: string;
            color?: string;
            fontSize?: number;
            hAlign?: string;
            hidden?: boolean;
            offsetX?: number;
            offsetY?: number;
            opacity?: number;
            opaque?: boolean;
            rep?: string;
            tag?: string;
            text: string;
            textAlign?: string;
            vAlign?: string;
            x: number;
            y: string | number | CValDyn;
        }
        • OptionalabsCoord?: boolean

          set to true if x,y should be considered absolute in the svg (in that case rep is ignored), useless if there is no frame (in that case x,y will be considered absolute regardless of this property)

        • OptionalbackgroundColor?: string

          Background color, white by default

        • Optionalborder?: string

          The border style (none|simple|3D)

        • Optionalcolor?: string

          Color, black by default

        • OptionalfontSize?: number

          Size of the font used for the display (in pixels)

        • OptionalhAlign?: string

          Horizontal alignment left|center|right to the linked point (if any)

        • Optionalhidden?: boolean

          true to get the created text display masked

        • OptionaloffsetX?: number

          x-shift oof the text display

        • OptionaloffsetY?: number

          y-shift oof the text display

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionalopaque?: boolean

          true if the text or LaTeX displays erases its background. If true the color used to erase the background is the backgroundColor if present, else the background color of the figure

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • Optionaltag?: string

          Tag to be applied on the created text display (if present)

        • text: string

          The text to be displayed

        • OptionaltextAlign?: string

          Horizontal alignment of the text (if it contains several lines)

        • OptionalvAlign?: string

          Vertical alignement top|middle|bottom to the linked point (if any)

        • x: number

          x-coordinate of the location the text is to be displayed at

        • y: string | number | CValDyn

          y-coordinate of the location the text is to be displayed at

      Returns Promise<undefined>

      Promise that will be resolved when the text is displayed

    • adds to the top right corner of the figure two zoom buttons syntaxes addTimerButton(callBack, k) and addTimerButton(callBack, k, x, y) are allowed too where k is the increase ratio (k > 1) and callBack the used function

      Parameters

      • options: {
            callBack: (...params: any[]) => any;
            k: string;
            tag?: string;
            x?: string | number | CValDyn;
            y?: string | number | CValDyn;
        }
        • callBack: (...params: any[]) => any

          function to be called by the timer

        • k: string

          Frequency of the timer to be set (in seconds)

        • Optionaltag?: string

          Tag to be applied on the created text display (if present) returns {CCommentaire}

        • Optionalx?: string | number | CValDyn

          x coordinate of the top button zoom in svg coordinates

        • Optionaly?: string | number | CValDyn

          y coordinate of the top button zoom in svg coordinates

      Returns void

    • adds the translation of vector a b syntax addTranslation(a, b) is also allowed

      Parameters

      • options: { a: string | CPt; b: string | CPt }
        • a: string | CPt

          origin point of the translation vector

        • b: string | CPt

          ending point of the translation vector

      Returns CTranslation

    • adds the translation of vector with coordinates (x, y) syntaxes addTranslation(x, y) and addTranslation(x, y, rep) are allowed too

      Parameters

      • options: { rep?: string; x: string | number | CValDyn; y: string | number | CValDyn }
        • Optionalrep?: string

          frame (system of coordinates) or tag of the frame, mandatory only if the figure contains several frames

        • x: string | number | CValDyn

          x-coordinate of the translation vector

        • y: string | number | CValDyn

          y-coordinate of the translation vector

      Returns CTranslation

    • adds a variable of name nameCalc syntaxes addVariable(nameCalc, val, min, max, step) and `addVariable(nameCalc, val, min, max, step, dialog) are allowed too

      Parameters

      • options: {
            dialog?: boolean;
            max: number;
            min: number;
            nameCalc: string;
            step: number;
            val: number;
        }
        • Optionaldialog?: boolean

          true to associate to the variable a pane with buttons +, - and =

        • max: number

          maxi value of the variable

        • min: number

          mini value of the variable

        • nameCalc: string

          Name of the variable to be created

        • step: number

          step value of the variable

        • val: number

          current value of the variable

      Returns CVariableBornee

    • Adds vector ab syntaxes addVector(a, b), addVector(a, b, color), addVector(a, b, color, lineStyle) and addVector(a, b, color, lineStyle, thickness) are allowed too

      Parameters

      • options: {
            a: string | CPt;
            arrowStyle?: string;
            b: string | CPt;
            color?: string;
            hidden?: boolean;
            lineStyle?: string;
            opacity?: number;
            tag?: string;
            thickness?: number;
        }
        • a: string | CPt

          Point or point name of the origin of the vector

        • OptionalarrowStyle?: string

          Arrox style (short|long|shortfull|longfull)

        • b: string | CPt

          Point or point name of the extremety of the vector

        • Optionalcolor?: string

          Color, black by default

        • Optionalhidden?: boolean

          true to get the created vector masked

        • OptionallineStyle?: string

          Line style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)

        • Optionalopacity?: number

          opacity (0 to 1), 1 by default

        • Optionaltag?: string

          Tag to be applied on the created vector (if present)

        • Optionalthickness?: number

          Stroke thickness

      Returns Promise<undefined> | CVecteur

      The created point if isPromiseMode is false or promise that will be resolved when the vector is displayed

    • Adds the x-coordinate measure of point a in frame rep (system of coordinates) syntax addXMeasure(a, nameCalc, rep) is also allowed

      Parameters

      • options: { a: string | CPt; nameCalc: string; rep: string }
        • a: string | CPt

          Name (or tag if name is empty) of the point the x-coordinate is wanted from

        • nameCalc: string

          Name of the created calculation (the x-coordinate measure))

        • rep: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

      Returns CMesureX

      the created measure

    • Adds the y-coordinate measure of point a in frame rep (system of coordinates) syntaxes addYMeasure(a, nameCalc) and addYMeasure(a, nameCalc, rep) are allowed too

      Parameters

      • options: { a: string | CPt; nameCalc: string; rep?: string }
        • a: string | CPt

          Name (or tag if name is empty) of the point the y-coordinate is wanted from

        • nameCalc: string

          Name of the created calculation (the y-coordinate measure))

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

      Returns CMesureY

      the created measure

    • Adds the affix measure of point a in frame rep (system of coordinates) syntaxes addZMeasure(a, nameCalc, rep) is also allowed

      Parameters

      • options: { a: string | CPt; nameCalc: string; rep: string }
        • a: string | CPt

          Name (or tag if name is empty) of the point the affix is wanted from

        • nameCalc: string

          Name of the created calculation (the affix measure))

        • rep: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

      Returns CMesureAffixe

      the created measure

    • adds to the top right corner of the figure two zoom buttons syntax addZoomButtons(k) allowed where k is the increase ratio (k > 1)

      Parameters

      • options: { k: string }
        • k: string

          Increase zoom ratio (k > 1)

      Returns void

    • Fonction de callback appelée lorsque MathJax a traité toues les formules en LaTeX et que la figure est prête pour affichage.

      Parameters

      Returns void

    • Recalcule la figure d'identifiant idDoc

      Parameters

      • idDoc: string
      • brandom: boolean

      Returns void

    • Recalcule toutes les figures et les affiche

      Parameters

      • Optionalbrandom: boolean

        Passer true pour relancer les calculs aléatoires avec rand()

      Returns Promise<boolean>

      Résoud toujours avec true (les erreurs éventuelles sont en console)

    • Fonction devant être appelée quand on calcule la figure pour la première fois avant de l'afficher Dans le cas où la figure contient une macro de démarrage qui doit elle même construire des objets supplémentaires, cette macro est d'abord exécutée

      Parameters

      • idDoc: string
      • brandom: boolean

      Returns void

    • Fonction renvoyant true si chCalcul représente un calcul complexe correct syntaxiquement dans le doc d'idDoc et si ce calcul représente un calcul pouvant être interprété comme un calcul vectoriel sachant que le tableau tabNames contient des chaînes de caractères représentant les noms de calculs complexes pouvant être considérés comme des vecteurs

      Parameters

      • idDoc: string
      • chCalcul: string
      • tabNames: string[]

      Returns any

    • Renvoie un objet de type CListeObjets créé à partir d'une chaîne base64 d'une figure. Sert à gérer des objets de type calcul sans gérer une figure.

      Parameters

      • code: string

        Le code Base64 de la figure obtenu dans mtg32 par Edition - Copier le code de la figure.

      Returns CListeObjets

    • Destroys all objets form elt, including display of the destroyed objects syntax deleteAfter(elt) is also allowed

      Parameters

      • options: { elt: string; x?: string | number | CValDyn }
        • elt: string

          Tag of the element objects following will be destroyed

        • Optionalx?: string | number | CValDyn

          optional delay (in seconds) in the display before destroying the elements

      Returns void | Promise<undefined>

    • Destroys the graphical object of tag elt (along with objects depending on it) syntax deleteElt(elt) is also allowed

      Parameters

      • options: { elt: string }
        • elt: string

          Tag of the graphical object to be destroyed

      Returns void

    • destroys object obj alons with its dependant objects and their graphical implementation syntax deleteObj(obj) is also allowed

      Parameters

      • obj: any

        the ojject to be destroyed (an object created via MathGraph32 API)

      Returns void

    • Fonction appelée lors des événements mouseDown et touchstart sur la figure.

      Parameters

      • type: string

        : 'mouse' pour gérer le mousedown et 'touch' pour gérer le ontouchstart

      • evt: MouseEvent

        evt.id contient l'id de la figure sur laquelle agit l'événement.

      Returns void

    • Fonction affichant la figure d'identifiant idDoc après avoir retiré tous les éléments graphiques du svg de la figure.

      Parameters

      • idDoc: string

      Returns Promise<boolean>

      promesse qui sera résolue lorsque l'affichage sera terminé

    • Reclasses the graphic representation on elt at the top of the displayed elements syntax displayOnTop(elt) is also allowed

      Parameters

      • options: { elt: string }
        • elt: string

          object (or tag) display si to be reclassed on top

      Returns Promise<void>

    • Fonction exécutant la macro d'intitulé nameMacro dans la figure d'id idDoc.

      Parameters

      • idDoc: string
      • nameMacro: string

      Returns void

    • Fonction demandant la validation de tous les éditeurs de formule de la figure associée au document d'id idDoc. Si la formule qu'ils contiennent est incorrecte ils se trouvent encadrés de rouge. Renvoie true uniquement si aucun éditeur de formule ne contient de faute de syntaxe.

      Parameters

      • idDoc: string

      Returns boolean

    • Fonction renvoyant true si le premier champ d'édition de la figure associée au document d'id idDoc associé au calcul nomCalcul est non vide.

      Parameters

      • idDoc: string

        l'id du document contenant la figure interrogée.

      • nomCalcul: string

        Le nom du calcul auquel est associé l'éditeur.

      Returns boolean

    • Pins (fixes) point a so that this point is no longer movable with the mouse syntax fixPoint(a) is also allowed

      Parameters

      • options: { a: string | CPt }
        • a: string | CPt

          Name (or tag if name is empty) of the point to be pinned

      Returns void

    • Returns the Base 64 code of the current figure For the player use setApiDoc if more than one figure is used

      Returns string

    • returns the name of a calculation, measure or function calc

      Parameters

      • calc: any

        The calculation, measure or function object (not a string)

      Returns string

      the name of the calculation, measure or function

    • Renvoie le document d'id idDoc du tableau this.docs. S'il n'y en a pas, renvoie null.

      Parameters

      • idDoc: string

      Returns CMathGraphDoc | null

    • Retourne la liste des ids des documents

      Returns string[]

    • returns the graphical object with tag elt and, if not present, the point or line with name elt. If no object matches the name elt returns null Syntax getElement(elt) allowed where elt is a string

      Returns CElementGraphique

    • Fonction renvoyant le contenu du premier éditeur de formule asssocié au calcul nomCalcul dans le dcument d'id idDoc.

      Parameters

      • idDoc: string
      • nomCalcul: string

      Returns string

    • Returns the dimension of the SVG containing the figure

      Returns Dim

      array formed of [with, height] of the SVG containing the figure

    • Renvoie la formule en ligne (avec des *) du calcul ou de la fonction nommé nomCalcul contenue dans le document d'id idDoc.

      Parameters

      • idDoc: string
      • nomCalcul: string
      • OptionalbNocase: boolean

        passer true pour ne pas tenir compte de la casse (majuscule ou minuscule) dans la recherche de nomCalcul

      Returns string

    • Returns the image of number x through function calc syntax getFuncImage(calc, x) is also allowed

      Parameters

      • options: { calc: string; x: string }
        • calc: string

          Name of the function used to calculate the iamge of x

        • x: string

          Value the image of is to be returned (lust be a number)

      Returns number

      the iage of x through function calc

    • Fonction utilisée pour les exercices en ligne et qui, s'il existe un affichage LaTeX commençant par la chaîne startString renvoie le contenu cette chaîne tronqué de startString

      Parameters

      • idDoc: string
      • startString: string

      Returns string

    • Fonction renvoyant le code LaTeX de l'affichage LaTex d'indice ind dans la liste des objets créés (les indices commençant à zéro) dans le document d'id idDoc

      Parameters

      • idDoc: string
      • ind: number

      Returns string

    • Fonction renvoyant la formule LaTeX représentant le calcul ou la fonction dont le nom est nomCalcul dans le document d'id idDoc.

      Parameters

      • idDoc: string
      • nomCalcul: string

      Returns string

    • Renvoie la liste CListeObjets contenant les objets du document d'id idDoc.

      Parameters

      • idDoc: string

      Returns CListeObjets

    • syntax getValue(x) is also allowed

      Parameters

      • mat: any

        a MathGraph32 matrix object

      Returns number[][]

      an array of array of numbers representing the matrix value

    • returns (sync) the coordinates of point a in the frame rep (system of coordinates) if provided, otherwise in the svg coordinate system

      Parameters

      • options: { a: string | CPt; rep?: string }
        • a: string | CPt

          First point or point name (or tag if name is empty) the line is going through

        • Optionalrep?: string

          Same as params.rep when first parameter is a string. This second parameter is ignored if the first one is a params object.

      Returns Point

    • Fonction renvoyant la formule LaTeX représentant le calcul ou la fonction dont le nom est nomCalcul dans le document d'id idDoc, mais avec une formule simplifiée comme elle le serait dans un appel de \ForSimp{nomCalcul} dans un affichage LaTeX

      Parameters

      • idDoc: string
      • nomCalcul: string

      Returns string

    • Fonction renvoyant le composant SVG de l'élément d'id ind dans le document d'id idDoc Renvoie null s'il n'y a pas d'élément d'indice ind ou s'il n'existe pas où n'est pas affiché

      Parameters

      • idDoc: string
      • ind: string | number

        N° d'identification html de l'élément (entier) ou chaîne de caractères commençant par # et suivie du tag de l'élément

      Returns SVGElement | null

      C:\Users\yvesb.gradle C:\Projets_JavaScript\MathGraphJS\mathgraph_js C:\Users\yvesb.WebStorm2019.2\system

    • returns the value of the real value x (calculation or measure or other real value of the figure)

      Parameters

      • calcObjOrName: any

        The object of a real calculation or measure, or its name

      Returns number

    • Fonction changeant, dans le document d'id idDoc, la formule du calcul ou de la fonction (réelle ou complexe) de nom nomCalcul. La nouvelle formule est contenue dans la chaîne de caractères formule. Renvoie true si la formule était valide et false sinon.

      Parameters

      • idDoc: string
      • nomCalcul: string
      • formule: string

      Returns void

    • give to the calculation (or function) of name nameCalc the formula formula syntaxes giveFormulaTo(calc, fandmula) are allowed too

      Parameters

      • options: { calc: string; formula: string }
        • calc: string

          Name of the calculation or function formula is to be modified or calculation itself

        • formula: string

          formula to be given to calculation (or function) nameCal

      Returns Promise<void>

      the promise executed once the objects dependant on the calculation are redisplayed

    • Fonction de callBack appelée lors des événements mouseMove.

      Parameters

      • evt: MouseEvent

        evt.id contient l'id de la figure sur laquelle agit l'événement.

      • id: string

        L'id du document sur lequel agit l'événement

      • doc: CMathGraphDoc

        Le document sur lequel agit la figure

      Returns void

    • Fonction de callBack appelée lors des événements mouseUp.

      Parameters

      • evt: MouseEvent

        evt.id contient l'id de la figure sur laquelle agit l'événement.

      Returns void

    • Fonction de callBack appelée lors des événements touchCancel.

      Parameters

      • evt: TouchEvent

        evt.id contient l'id de la figure sur laquelle agit l'événement.

      Returns void

    • Fonction de callBack appelée lors des événements touchEnd.

      Parameters

      • evt: TouchEvent

        evt.id contient l'id de la figure sur laquelle agit l'événement.

      Returns void

    • Appellera cb quand tous les rendus seront terminés

      Parameters

      • Optionalcb: (...params: any[]) => any

        Si non fourni, ça retourne une promesse qui sera résolue quand l'appli est prête (tous les rendus lancés terminés)

      Returns Promise<void> | undefined

    • Recalculates the figure

      Parameters

      • OptionalbRandom: boolean

        if true random calculations are reset

      Returns void

    • Reclasses object elt after object elt2 (if the reclassement is possible) elt must be defined before elt2 syntax reclassAfter(elt, elt2) is also allowed

      Parameters

      • options: { elt: string; elt2: string }
        • elt: string

          object (or tag) to be reclassed after elt2

        • elt2: string

          object (or tag) that is to be reclassed after

      Returns Promise<unknown>

    • Reclasses object elt before object elt2 (if the reclassement is possible) elt must be defined after elt2 syntaxes reclassBefande(elt, elt2) are allowed too

      Parameters

      • options: { elt: string; elt2: string }
        • elt: string

          object (or tag) to be reclassed before elt2

        • elt2: string

          object (or tag) elt ist to be reclassed before

      Returns Promise<unknown>

    • Reclasses object of tag elt as far as possible towards the end of the list of created objects syntax reclassMax(elt) is also allowed

      Parameters

      • options: { elt: string }
        • elt: string

          object (or tag) to be reclassed

      Returns Promise<unknown>

    • Reclasses object of tag elt as far as possible towards the beginning of the list of created objects syntax reclassMin(elt) is also allowed

      Parameters

      • options: { elt: string }
        • elt: string

          Tobject (or tag) to be reclassed

      Returns Promise<unknown>

    • Erases all the element of the svg containing the figure then re-displays the figure in the svg Must be called after a reclassment of graphical objects

      Returns Promise<boolean> | Promise<unknown>

    • Releases a point that was pinned before (so the point can be captured with the mouse) syntax releasePoint(a) is also allowed

      Parameters

      • options: { a: string | CPt }
        • a: string | CPt

          Name (or tag if name is empty) of the point to be unpinned

      Returns void

    • Fonction retirant tous les documents et effaçant le contenu de tous les svg contenant des figures.

      Returns void

    • Retire un listener sur le doc (jamais utilisé dans notre code mais utilisé par des sections sesaparcours)

      Parameters

      • idDoc: any
      • eventName: any

      Returns boolean

    • Fonction retirant le document d'id idDoc, retirant les gestionnaires d'événements qui lui sont associés et effaçant touts les éléments graphiques du svg associé

      Parameters

      • idDoc: string

        L'id du document à retirer.

      Returns void

    • Removes an event listener from a graphical object of the figure syntax removeEltListener(elt, eventName) is also allowed

      Parameters

      • options: { elt: string; eventName: string }
        • elt: string

          Tag of the graphical object the listener is to be removed from

        • eventName: string

          Name of the event

      Returns void

    • Fonction retirant l'eventListener associé à svg element représentant l'objet d'indice html ind dans le document d'id idDoc

      Parameters

      • idDoc: string

        L'id du document

      • ind: string | number

        N° d'identification html de l'élément (entier) ou chaîne de caractères commençant par # et suivie du tag de l'élément

      • eventName: string

        Le nom de l'événement (par exemple mousemove)

      Returns boolean

      : true si tout s'est bien passé, false sinon

    • Withdraw the link of linked point a (thus a become a free point) syntax removePointLink(a) is also allowed

      Parameters

      • options: { a: string | CPt }
        • a: string | CPt

          Name (or tag if name is empty) of the point to be unlinked

      Returns void

    • Removes a listener from the doc (svg) owning the figure syntax removeSvgListener(eventName) is also allowed

      Parameters

      • options: { eventName: string }
        • eventName: string

          Name of the event the listener is to be removed from

      Returns void

    • Fonction destinée à être appelée de façon externe et remplaçant le nom du point ou de la droite nommé oldName par newName, à condition qu'aucun point n'ait déjà le nom newName

      Parameters

      • idDoc: string

        L'id du svg contenant la figure

      • oldName: string

        Le nom du point ou la droite à renommer

      • newName: string

        Le nouveau nom

      Returns void

    • Rend la figure d'id idDoc réactive ou inactive aux événements souris et clavier suivant la valeur du boolean ba.

      Parameters

      • idDoc: string
      • ba: boolean

        passer true pour activer et false pour désactiver

      Returns void

    • Set the angle unity of the figure.

      Parameters

      • unity: string

        'degree' or 'radian'

      Returns void

    • Change the current figure (the figure the following api methods will apply on), only for the MtgAppLecteurApi

      Parameters

      • OptionalidDoc: string

        If idDoc is not given, the first doc is taken

      Returns void

    • Assigns a background color to a text or LaTeX display syntaxes setBackgroundColor(elt, backgroundColand) are allowed too

      Parameters

      • options: { backgroundColor: Color; elt: string }
        • backgroundColor: Color

          The background color to be applied on the object

        • elt: string

          object (or tag) backgroundColor is to be applied on

      Returns void

    • Assigns a color to an object syntaxes setColor(elt, color) and setColor(elt, color, opacity) are allowed too

      Parameters

      • options: { color: string; opacity?: number }
        • color: string

          The color to be applied on the object (ignored if first arg is a params object, either mandatory)

        • Optionalopacity?: number

          opacity (0 to 1, ignored with options syntax)

      Returns void

    • Fonction associant, dans le document d'id idDoc, au premier éditeur associé à nomCalcul une fonction de callBack qui sera appelée quand l'utilisateur valide par OK le contenu de l'éditeur.

      Parameters

      • idDoc: string
      • nomCalcul: string
      • f: (...params: any[]) => any

        La fonction de callBack

      Returns void

    • Fonction attribuant à un éditeur de formule une chaîne de caractères contenant les caractères autorisés. Si cette chaîne est vide, tous les caractères seront autorisés.

      Parameters

      • idDoc: string
      • nomCalcul: string
      • st: string

      Returns void

    • Fonction vidant tous les éditeurs de formule de la figure d'id idDoc

      Parameters

      • idDoc: string

      Returns void

    • Fonction donnant à tous les éditeur de formule de la fiure d'id idDoc la taille size. Utilisé dans j3p.

      Parameters

      • idDoc: string
      • size: string

      Returns void

    • Fonction mettant dans l'éditeur la chaîne de caractères st et mettant à jour en conséquence l'affichage de formule LaTeX s'il est activé, dans le document d'id idDoc

      Parameters

      • idDoc: string
      • nomCalcul: string
      • st: string

      Returns void

    • Load a new figure (empty if not provided)

      Parameters

      • Optionaloptions: {
            container?: HTMLElement;
            fig?: string;
            height?: number;
            id?: string;
            removeAllDoc?: boolean;
            width?: number;
        }
        • Optionalcontainer?: HTMLElement

          The container bound to contain the created svg (mandatory for the mtgApp player if id isn't given, when there is not yet any document, ignored otherwise)

        • Optionalfig?: string

          The base 64 code of the figure

        • Optionalheight?: number
        • Optionalid?: string

          id (MtgApp player only) id of the figure to be replaced or created

        • OptionalremoveAllDoc?: boolean

          true to delete all the alredy existing figures of a MtgAp player before the creation of this one (nor accounted for in case of an MtgApp)

        • Optionalwidth?: number

      Returns Promise<void>

      Promise that will be resolved when the new figure is displayed

    • Change l'arbre de calcul du calcul complexe nomCalcul pour le remplacer par un calcul dans lequel les carrés de vecteurs sont remplacés par des carrés scalaires. Ce remplacement de formule doit être fait une fois que la figure a déjà été calculée

      Parameters

      • idDoc: string

        Le nom du document contenant du calcul

      • nomCalcul: string

        Le nom du calcul

      • tabNames: string[]

        : Tableau contenant les noms des calculs complexes considérés comme des vecteurs

      Returns void

    • Gives to the free point named a the coordinates x, y syntax setFreePointPosition(a, x, y) is also allowed

      Parameters

      • options: { a: string | CPt; x: number; y: string | number | CValDyn }
        • a: string | CPt

          Name of the free point coordinates are to be changed

        • x: number

          Value of the new x coordinate of the free point in the svg

        • y: string | number | CValDyn

          Value of the new y coordinate of the free point in the svg

      Returns void

    • Set the object of tag elt masked (if not already masked) syntax setHidden(elt) is also allowed

      Parameters

      • options: { elt: string }
        • elt: string

          Tag of the object taht is to become massked

      Returns void

    • Fonction positionnant le svg servant à obtenir une loupe aux coordonnées (x, y) dans les svg d'id idDoc

      Parameters

      • id: string

        l'id du document

      • x: number

        l'abscisse du centre de la loupe

      • y: number

        L'ordonnée du centre de la loupe

      Returns void

    • Assigns a line style to an object syntax setLineStyle(elt, lineStyle) is also allowed

      Parameters

      • options: { elt: string; lineStyle: string }
        • elt: string

          Tag of the object thickness of which is to be changed

        • lineStyle: string

          Line style to be applied on the object (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---), ignored if first arg is a params object, mandatory either

      Returns void

    • Replaces a free point by a point linked to another existing point syntax setLinkPointPoint(a, b) is also allowed

      Parameters

      • options: { a: string | CPt; b: string | CPt }
        • a: string | CPt

          Name (or tag if name is empty) of the free point that is to be linked to another point

        • b: string | CPt

          Name (or tag if name is empty) of the point the free point is to be linked to

      Returns void

    • once executed, point a will leave a trace of its positions (if trace mode is acivated) syntax setMarked(a) is also allowed

      Parameters

      • options: { a: string | CPt }
        • a: string | CPt

          Point (or point name) that is bound to leave a trace of its positions

      Returns void

    • modify the name position of point a (the default position is under the point, the right and under the point syntax setPointNameOffset(a, offsetX, offsetY) is also allowed

      Parameters

      • options: { a: string | CPt; offsetX: number; offsetY: number }
        • a: string | CPt

          name (or tag if name is empty) of the point name of which is to be repositionned

        • offsetX: number

          new x-shift of the name

        • offsetY: number

          new x-shift of the name

      Returns void

    • Fonction déplaçant un point libre aux coordonnées (x;y) dans le svg du document d'id idDoc

      Parameters

      • idDoc: string
      • name: string | number

        Le nom du point ou # suivi du tag du point ou son indice html (entier)

      • x: number

        Nouvelle abscisse à donner au point

      • y: number

        Nouvelle ordonnée à donner au point

      • OptionalbImmediat: boolean

        Si true la figure est réaffichée (et cette fct retourne une promesse)

      Returns boolean | Promise<undefined>

      false en cas de pb, une promesse si bImmediat vaut true

    • gives to point a the point style point style syntax setPointStyle(a, pointStyle) is also allowed

      Parameters

      • options: { a: string | CPt; pointStyle?: string }
        • a: string | CPt

          name (or tag if name is empty) of the point pointStyle is to be assigned to

        • OptionalpointStyle?: string

          the point style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)

      Returns void

    • Fonction donnant, dans le doc d'id idDoc, à l'élément d'id html id le tag tag

      Parameters

      • idDoc: string

        l'id du document oùse trouve l'élément cherché

      • id: string

        l'id html de l'élément recherché

      • tag: string

        le tag à affecter à cet élément

      Returns CElementBase | null

      Renvoie null si idDoc n'est pas une id de document valide ou s'il n'y a pas d'élément graphique d'id id dans le document ou si l'élément graphique d'id id a déjà un tag. Sinon renvoie un pointeur sur l'objet auquel le tag a été affecté

    • Fonction donnant à l'élément d'indice html ind dans le document d'id idDoc le texte txt. Cet élément peut être soit un CLatex soit un CCommentaire

      Parameters

      • idDoc: string
      • ind: string | number

        N° d'identification html de l'élément (entier) ou chaîne de caractères commençant par # et suivie du tag de l'élément

      • txt: string
      • OptionalbImmediat: boolean

        Passer false pour ne pas réafficher idDoc

      Returns boolean

      true si tout s'est bien passé, false sinon

    • Assigns a stroke thickness to an object syntax setThickness(elt, thickness) is also allowed

      Parameters

      • options: { elt: string; thickness: number }
        • elt: string

          Tag of the object thickness of which is to be changed

        • thickness: number

          Stroke thickness to be applied on the object

      Returns void

    • Adds a unity length to the figure (throws an error if a unity length is already present in the figure) Once a unity length is present in the figure, you can create length measures, circles by radius syntax setUnity(a, b) is also allowed

      Parameters

      • options: { a: string | CPt; b: string | CPt }
        • a: string | CPt

          Name (or tag if name is empty) of point a (first extremity of the unity length)

        • b: string | CPt

          Name (or tag if name is empty) of point b (second extremity of the unity length)

      Returns void

    • once executed point a will stop leave a trace of its positions syntax setUnmarked(a) is also allowed

      Parameters

      • options: { a: string | CPt }
        • a: string | CPt

          Point (or point name) that will no longer leave a trace of its positions

      Returns void

    • Pause sec seconds in the display before going on

      Parameters

      • sec: number

        the sleep delay in seconds

      Returns Promise<void>

    • Fonction vérifiant si, dans le document d'id idDoc on peut affecter au calcul (ou à la fonction) nommée calcName la formule contenue dans la chaîne de caractères formula

      Parameters

      • idDoc: string
      • calcName: string
      • formula: string
      • OptionalbSignesMultImplicit: any

        true si la formule a des signes de multiplication implicite (et donc n'utilise que des variables et calculs à 1 caractère) et false sinon

      Returns boolean

    • Fonction translatant tous les objets de la figure d'id idDoc d'un vecteur (decx, decy)

      Parameters

      • idDoc: string

        L'id de la figure

      • decx: number

        Première coordonnnée du vecteur de la translation

      • decy: number

        Deuxième coordonnnée du vecteur de la translation

      • OptionalbImmediat: boolean

        Passer false pour ne pas lancer le réaffichage de l'objet dont on a changé la couleur (attention, c'est async, utiliser app.ready() pour savoir quand c'est fini)

      Returns boolean

      : true si tout s'est bien passé, false sinon

    • Translates all the figure with a vector of coordinates (x; y) syntax translateFig(x, y) is also allowed

      Parameters

      • options: { x: number; y: string | number | CValDyn }
        • x: number

          x-coordinate of the translation (svg coordinates)

        • y: string | number | CValDyn

          y-coordinate of the translation (svg coordinates)

      Returns void

    • Fonction translatant un point libre du vecteur de coordonnées (deltax; deltay) dans le svg du document d'id idDoc

      Parameters

      • idDoc: string
      • name: string | number

        Le nom du point ou # suivi du tag du point ou son indice html (entier)

      • deltax: number

        Valeur à ajouter à l'abscisse du point

      • deltay: number

        Valeur à ajouter à l'ordonnée du point

      • OptionalbImmediat: boolean

        Si true la figure est tout de suite réaffichée

      Returns boolean

      : true si tout s'est bien passé, false sinon

    • Re-displays the figure elements depending on elt

      Parameters

      Returns void

    • Fonction mettant à jour les éléments graphiques de la figure d'idDoc.

      Parameters

      • idDoc: string

      Returns void

    • Re-displays the elements of the figure.

      Returns void

    • Remet à jour la figure du document idDoc après avoir modifié certains de ses objets directement (par exemple en utilisant translatePoint()

      Parameters

      • idDoc: string

        L'id du document à réafficher

      Returns boolean

      : true si tout s'est bien passé, false sinon

    • Renvoie la valeur actuelle du calcul réel nommé nomCalcul dans le document d'id idDoc. Renvoie -1 si le calcul n'existe pas.

      Parameters

      • idDoc: string
      • nomCalcul: string
      • OptionalbNoCase: boolean

        passer true pour ne pas tenir compte de la casse (majuscule ou minuscule) dans la recherche de nomCalcul

      Returns number

    • Fonction zoomant tous les éléments de la figure d'id idDoc par rapport au point de coordonnées (x; y) avec le rapport de zoom ratio

      Parameters

      • idDoc: string

        L'id de la figure

      • x: number

        abscisse du centre du zoom

      • y: number

        ordonnée du centre du zomm

      • ratio: number

        rapport du zoom

      • OptionalbImmediat: boolean

        Passer false pour ne pas lancer le réaffichage de l'objet dont on a changé la couleur (attention, c'est async, utiliser app.ready() pour savoir quand c'est fini)

      Returns boolean

      true si tout s'est bien passé, false sinon

    • Modifies the framing of the figure (by zooming from a point with a given ratio) syntax zoom(x, y, k) is also allowed

      Parameters

      • options: {
            absCoord?: boolean;
            k: number;
            rep?: string;
            x: number;
            y: string | number | CValDyn;
        }
        • OptionalabsCoord?: boolean

          set to true if x,y should be considered absolute in the svg (in that case rep is ignored), useless if there is no frame (in that case x,y will be considered absolute regardless of this property). Useless if the figure has no frame.

        • k: number

          zoom ratio

        • Optionalrep?: string

          tag of the frame (system of coordinates), mandatory only if the figure contains several frames

        • x: number

          x-coordinate of the center for zooming-unzooming

        • y: string | number | CValDyn

          y-coordinate of the center for zooming-unzooming

      Returns void