OptionalzoomOnWheel: booleanOptionaldecimalDot: booleanOptionaltranslatable: booleanOptionaluseLens: booleanAnnule la pile des actions en cours (affichages et chargements)
Fonction donnant le focus au premierr éditeur de formule asscoié au calcul ou à la fonction nommé nomCalcul dans le document d'id idDoc.
Fonction donnant le focus au premier éditeur de formule qui ne contient rien dans le document d'id idDoc
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.
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
activates or deactivates trace mode on the figure
syntax activates(true|false) is also allowed
true to activate trace mode, false to deactivate trace mode
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
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
function to be called when clicked on the button
Optionaltag?: stringTag to be applied on the created text display (if present) returns {CCommentaire}
The text displayed by the button
Optionalx?: string | number | CValDynx coordinate of the top button zoom in svg coordinates or 10 if absent
Optionaly?: string | number | CValDyny coordinate of the top button zoom in svg coordinates or 50 if absent
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
a point of arc oab (name or tag if name is empty)
OptionalangleMarkStyle?: stringAngle mark style (simple|simple-|simple--|simple---|simplex|full|full-|full--|full---|fullx)
b point of arc oab (name or tag if name is empty)
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the angle mark masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
o point of arc oab (name or tag if name is empty)
Optionalopacity?: numberopacity (0 to 1), 1 by default
arc radius in pixels
Optionaltag?: stringTag to be applied on the angle mark (if present)
Optionalthickness?: numberThickness of the stroke
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
Point or point name of the starting point of the arc
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?: stringColor, black by default
Optionalhidden?: booleantrue to get the created arc masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Point or point name of the center point of the arc
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created arc (if present)
Optionalthickness?: numberStroke thickness
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
Point or point name of the starting point of the arc
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?: stringColor, black by default
Optionalhidden?: booleantrue to get the created arc masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Point or point name of the center point of the arc
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created arc (if present)
Optionalthickness?: numberStroke thickness
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
Point or point name of the starting point of the arc
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?: stringColor, black by default
Optionalhidden?: booleantrue to get the created arc masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Point or point name of the center point of the arc
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created arc (if present)
Optionalthickness?: numberStroke thickness
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
Point or point name of the starting point of the arc
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the created arc masked
OptionallineStyle?: stringline style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Point or point name of the center point of the arc
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created arc (if present)
Optionalthickness?: numberStroke thickness
Angle of the arc in the unity angle of the figure (number or valid formula)
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
Point or point name of the starting point of the arc
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?: stringColor, black by default
Optionalhidden?: booleantrue to get the created arc masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Point or point name of the center of the arc
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created arc (if present)
Optionalthickness?: numberStroke thickness
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
Point or point name of the starting point of the arc
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the created arc masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Point or point name of the center point of the arc
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created arc (if present)
Optionalthickness?: numberStroke thickness
Angle of the arc in the unity angle of the figure (number or valid formula)
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
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the polygon masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
array of the vertexes points names of the polygon
Optionaltag?: stringTag to be applied on the created broken line (if present)
Optionalthickness?: numberStroke thickness
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
Formula of the calculation to be created
Name of the real calculation to be created
the created measure
Adds a complex calculation of name nameCalc from formula contained in string formula
syntax addCalcComp(nameCalc, formula) is also allowed
Formula of the complex calculation to be created
Name of the complex calculation to be created
the created measure
Adds a matricial calculation of name nameCalc from formula contained in string formula
syntax addCalcMat(nameCalc, formula) is also allowed
Formula of the matricial calculation to be created
Name of the matricial calculation to be created
the created measure
Ajoute un listener sur le doc (jamais utilisé dans notre code mais utilisé par des sections sesaparcours)
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
the circle (or circle arc) that is to be transformed
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
the transformation to aplly on line d
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
Point or point name of the point the circle is going through
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the created circle masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Point or point name of the center
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created circle (if present)
Optionalthickness?: numberStroke thickness
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
Optionalcolor?: stringColor, blck by default
Optionalhidden?: booleantrue to get the created circle masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Name (or tag if name is empty) of the center
Optionalopacity?: numberopacity (0 to 1), 1 by default
Radius of the circle or string giving a valid formula for the radius
Optionaltag?: stringTag to be applied on the created circle (if present)
Optionalthickness?: numberStroke thickness
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
name of the function of function curve is to be created of
Optionalclosed?: booleantrue to set the point locus closed
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the point locus masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionalthickness?: numberThickness of the stroke
number of points used to create the curve (point locus)
Adds the derivative function of function calc (function name or function)
syntax addDerivative(calc, nameCalc) is also allowed
Name of the function to be derivated
Name of the derivative function to be created
the created measure
adds the dilation of center o and ratio x
syntax addDilation(o, x) is also allowed
Ajoute le document par son id représenté par une chaîne chdoc en dataBase64
L'id du document qui sera celle du svg contenant la figure.
Chaine base64 décrivant la figure (obtenue via MathGraph32 par le menu Edition - Copier le code de la figure (pour html)
OptionaldisplayOnLoad: booleantrue si la figure doit être affichée dès le démarrage de la page.
OptionalisActive: booleantrue si la figure répond dès le démarrage aux actions souris et clavier.
Adds the duplicated object of object elt
syntax addDuplicatedObject(elt) is also allowed
Tag of the object to be duplicated
Optionalhidden?: booleantrue to get the duplicated object masked
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
function to be launched when the event is triggered.
Tag of the graphical object the listener is to be added on
Name of the event to be listened to
Associe un eventListener au svg Element représentant l'objet d'indice html ind dans la figure d'id idDoc
L'id de la figure
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
Le nom de l'événement (par exemple mousemove)
La fonction de callBack de paramètre l'événement appelant
: 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
OptionalabsCoord?: booleanset 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?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the point masked
OptionalhiddenName?: booleantrue to get the name point masked
Optionalname?: stringName of the point (if present)
OptionaloffsetX?: numberx-shift of the name
OptionaloffsetY?: numbery-shift of the name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the point (if present)
starting x-coordinate when the point is created
starting y-coordinate when the point is created
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
Formula of the function to be created (with x as variable)
Name of the function to be created
Formal variable name used in the formula of the function. 'x' by default.
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
Formula of the calculation to be created (with z as variable)
Name of the complex function to be created
Formal variable name used in the formula of the function. 'z' by default.
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
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.
L'id du comument à traiter
La formule à traiter
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
point that is to be transformed by the dilation (or point name)
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringThe name of the point to be created
center point of the dilation (or point name)
OptionaloffsetX?: numberx-shift of the name
OptionaloffsetY?: numbery-shift of the name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionaltag?: stringTag to be applied on the created point (if present)
Ratio of the dilation : number or vaid formula
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
point that is to be transformed by the rotation
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringThe name of the point to be created
The rotation center (or point name)
OptionaloffsetX?: numberx-shift of the name
OptionaloffsetY?: numbery-shift of the name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionaltag?: stringTag to be applied on the created point (if present)
Angle of rotation : number or valid formula
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
point that is to be transformed by the symmetry (or point name)
Optionalcolor?: stringColor, black by default
The symmetry axis (line, segment or ray)
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringThe name of the point to be created
OptionaloffsetX?: numberx-shift of the name
OptionaloffsetY?: numbery-shift of the name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionaltag?: stringTag to be applied on the created point (if present)
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
point that is to be transformed by the dilation (or point name)
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringThe name of the point to be created
center of the symmetry (or point name)
OptionaloffsetX?: numberx-shift of the name
OptionaloffsetY?: numbery-shift of the name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionaltag?: stringTag to be applied on the created point (if present)
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
Point (or point name) origin of the translation vector
Point (or point name) extremity of the translation vector
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringThe name of the point to be created (image point)
Point (or point name) that is to be transformed by the translation
OptionaloffsetX?: numberx-shift of the point name
OptionaloffsetY?: numbery-shift of the point name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionaltag?: stringTag to be applied on the created point (if present)
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
Point (or point name) that is to be transformed by the translation
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringThe name of the point to be created (image point)
OptionaloffsetX?: numberx-shift of the point name
OptionaloffsetY?: numbery-shift of the point name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the created point (if present)
the first coordinate of the translation vector
the second coordinate of the translation vector
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
Tag of the first intersection circle (or circle arc)
Tag of the second intersection circle (or circle arc)
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberSize of the font used for the created intersection points
Optionalhidden?: booleantrue to get the intersection points masked
OptionalhiddenName?: booleantrue to get the intersection points name hidden
Optionalname?: stringName of the first intersection point created
Optionalname2?: stringName of the second intersection point created (if not already present in the figure)
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)
OptionalsmartIntersect?: booleanSet to false to re-create points seen as already existing in circle intersection (with circle or line)
[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
Tag of the intersection circle (or circle arc)
Optionalcolor?: stringColor, black by default
Tag of the first intersection line (or ray or segment)
OptionalfontSize?: numberSize of the font used for the created intersection points
Optionalhidden?: booleantrue to get the intersection points masked
OptionalhiddenName?: booleantrue to get the intersection points name hidden
Optionalname?: stringName of the first intersection point created
Optionalname2?: stringName of the second intersection point created (if not already present in the figure)
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)
OptionalsmartIntersect?: booleanSet to false to re-create points seen as already existing in circle intersection (with circle or line)
[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
Optionalcolor?: stringColor, black by default
Tag of the first intersection line (or ray or segment)
Tag of the second intersection line (or ray or segment)
OptionalfontSize?: numberSize of the font used for the intersection point name
Optionalhidden?: booleantrue to get the intersection point masked
OptionalhiddenName?: booleantrue to get the intersection point name hidden
Optionalname?: stringThe name of the intersection point
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)
Optionaltag?: stringTag to be applied on the created LaTeX display (if present)
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
OptionalabsCoord?: booleanset 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?: stringBackground color if opaque is true
Optionalborder?: stringThe border style (none|simple|3D)
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberSize of the font used for the display (in pixels)
OptionalhAlign?: stringHorizontal alignment left|center|right
Optionalhidden?: booleantrue to get the created LaTeX display masked
The LaTeX code to be displayed
OptionaloffsetX?: numberx-shift of the LaTeX display
OptionaloffsetY?: numberxy-shift oof the LaTeX display
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionalopaque?: booleantrue 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?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the created LaTeX display (if present)
OptionalvAlign?: stringVertical alignment top|middle|bottom
x-coordinate of the location the text is to be displayed at
y-coordinate of the location the text is to be displayed at
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
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
First point or point name (or tag if name is empty) the line is going through
Second poinnt or point name (or tag if name is empty) the line is going through
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
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
Point or point name the line is going through
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
slope of the line (number or valid formula)
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
Point a or point name for bisector of angle a o b
Point b or point name for bisector of angle a o b
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Point o or point name for bisector of angle a o b (starting point of the bisector)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
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
First point or point name (or tag if name is empty) the line is going through
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
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
Optionalcolor?: stringColor, black by default
the line that is to be transformed
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
the transformation to aplly on line d
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
First point (or point name) line is mediator of
Second point (or point name) line is mediator of
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
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
First point or point name (or tag if name is empty) the line is going through
Optionalcolor?: stringColor, black by default
line (or segment or ray) (or tag) the created line must be parallel to
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
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
Point or point name the line is going through
Optionalcolor?: stringColor, black by default
line (or segment or ray) the created line must be perpendicular to
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
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
First point or point name (or tag if name is empty) the line is going through
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalname?: stringName of the line to be created (if present)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
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
Name (or tag if name is empty) of the point the text display is linked to
OptionalbackgroundColor?: stringBackground color if opaque is true *
Optionalborder?: stringThe border style (none|simple|3D)
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberSize of the font used for the display (in pixels)
Optionalhidden?: booleantrue to get the created LaTeX display masked
The LaTeX code to be displayed
OptionaloffsetX?: numberx-shift of the LaTeX display
OptionaloffsetY?: numbery-shift of the LaTeX display
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionalopaque?: booleantrue 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?: stringTag to be applied on the created LaTeX display (if present)
OptionalvAlign?: stringVertical alignment top|middle|bottom
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
OptionalabsCoord?: booleanset 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)
The tag of the circle the created point is to be linked to
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberSize of the font used for the point name
Optionalhidden?: booleantrue to get the created linked point mased
OptionalhiddenName?: booleantrue to get the linked point name masked
Optionalname?: stringName of the linked point to be created
OptionaloffsetX?: numberx-shift of the linked point name
OptionaloffsetY?: numbery-shift of the linked point name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoints style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the created point (if present)
x-coordinate of the point that is to be joined from the circle center to get the starting position of the linked point
y-coordinate of the point that is to be joined from the circle center to get the starting position of the linked point
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
OptionalabsCoord?: booleanset 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?: stringColor, black by default
Tag of the line (or ray or segment) the point is to be linked to
OptionalfontSize?: numberSize of the font used for the point name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the linked point name masked
Optionalname?: stringName of the linked point to be created
OptionaloffsetX?: numberx-shift of the linked point name
OptionaloffsetY?: numbery-shift of the linked point name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the created point (if present)
x-coordinate of the point used to establish the starting position of the linked point ((by orthogonal projection on the line)
y-coordinate of the point used to establish the starting position of the linked point ((by orthogonal projection on the line)
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
OptionalabsCoord?: booleanset 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?: stringColor, black by default
point locus the point is to be linked to (or its tag)
OptionalfontSize?: numberSize of the font used for the point name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the linked point name masked
Optionalname?: stringName of the linked point to be created
OptionaloffsetX?: numberx-shift of the linked point name
OptionaloffsetY?: numbery-shift of the linked point name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the created point (if present)
x-coordinate of the point used to establish the starting position of the linked point ((by orthogonal projection on the line)
y-coordinate of the point used to establish the starting position of the linked point ((by orthogonal projection on the line)
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
Name (or tag if name is empty) of the point the text display must be linked to
OptionalbackgroundColor?: stringBackground color if opaque is true
Optionalborder?: stringThe border style (none|simple|3D)
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberSize of the font used for the display (in pixels)
OptionalhAlign?: stringHorizontal alignment left|center|right
Optionalhidden?: booleantrue to get the created text display masked
OptionaloffsetX?: numberx-shift of the text display
OptionaloffsetY?: numbery-shift of the text display
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionalopaque?: booleantrue 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?: stringTag to be applied on the created text display (if present)
The text to be displayed
OptionaltextAlign?: stringHorizontal alignment of the text (if it contains several lines)
OptionalvAlign?: stringVertical alignment top|middle|bottom
Promise that will be resolved when the text is displayed
adds a real matrix of name calc
syntax addMatrix(nameCalc, mat) is also allowed
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
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
First point a or point name (or tag if name is empty) (to create midpoint of [a; b])
Second point b or point name (or tag if name is empty) (to create midpoint of [a; b])
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringName of the midpoint to be created
OptionaloffsetX?: numberx-shift of the point name
OptionaloffsetY?: numbery-shift of the point name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (square|round|cross|mult|littleround|diamond|pixel|biground|bigmult)
Optionaltag?: stringTag to be applied on the created point (if present)
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
linked point (or point name) positions of which will generate the point locus
Optionalcolor?: stringColor, black by default
the graphical element traces are generated from
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
Optionalcolor?: stringColor, black by default
the line that is to be transformed
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringThe name of the point to be created
OptionaloffsetX?: numberx-shift of the name
OptionaloffsetY?: numbery-shift of the name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionaltag?: stringTag to be applied on the created point (if present)
the transformation to aplly on line d
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
Point (or point name) traces of which will generate the point locus
Linked point (or point name) positions of which will generate the point locus
Optionalclosed?: booleantrue to set the point locus closed
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the point locus masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionalthickness?: numberThickness of the stroke
number of the positions of point a generating the point locus
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
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringName of the point to be created
OptionaloffsetX?: numberx-shift of the name
OptionaloffsetY?: numbery-shift of the name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the point (if present)
x-coordinate of the point : number or valid formula
y-coordinate of the point : number or valid formula
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
OptionalabsCoord?: booleanset 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?: stringColor, black by default
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created point masked
OptionalhiddenName?: booleantrue to get the created point name masked
Optionalname?: stringName of the point to be created
OptionaloffsetX?: numberx-shift of the name
OptionaloffsetY?: numbery-shift of the name
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalpointStyle?: stringPoint style (o|O|OO|x|X|+|<>|[]|.) or (littleround|round|biground|mult|bigmult|cross|diamond|square|pixel|)
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the point (if present)
affix of the point : number or valid formula or complex calculation
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
Optionalcolor?: stringColor, black by default
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
array of the vertexes points names of the polygon
Optionalthickness?: numberStroke thickness
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
Point or point name the ray is going through
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the created ray masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Point or point name of the starting edge of the ray
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created vector (if present)
Optionalthickness?: numberStroke thickness
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
Optionalcolor?: stringColor, black by default
the ray that is to be transformed
OptionalfontSize?: numberFont size of the name
Optionalhidden?: booleantrue to get the created line masked
OptionalhiddenName?: booleantrue to get the created line name masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
the transformation to aplly on ray d
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
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
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the created line masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created line (if present)
Optionalthickness?: numberStroke thickness
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
Optionalcolor?: stringColor, black by default
The tag of the segment the mark will be applied on
Optionalhidden?: booleantrue to get the mark masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
OptionalsegmentMarkStyle?: stringAngle mark style (-|--|---|x)
Optionaltag?: stringTag to be applied on the mark (if present)
Optionalthickness?: numberthickness of the stroke
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
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
Optionalcolor?: stringColor, black by default
Tag or object (polygon, circle or circle arc or point locus)
OptionalfillStyle?: stringFilling style (transp|fill|-|vert|hor|/|)
Optionalhidden?: booleantrue to get the created surface masked
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringThe tag to be applied on the created surface
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
Tag of the circle (or the circle arc)
Optionalcolor?: stringColor, black by default
OptionalfillStyle?: stringFilling style (transp|fill|-|vert|hor|/|)
Optionalhidden?: booleantrue to get the created surface masked
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringThe tag to be applied on the created surface
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
Optionalcolor?: stringColor, black by default
OptionalfillStyle?: stringFilling style (transp|fill|-|vert|hor|/|)
Optionalhidden?: booleantrue to get the created surface masked
Optionalopacity?: numberopacity (0 to 1), 1 by default
Tag of the polygon
Optionaltag?: stringThe tag to be applied on the created surface
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
Function to be launched when the event is triggered
Name of the event the listener is to be created on
adds the axial symmetry of center o
syntax addSymAx(d) is also allowed
adds the central symmetry of center o
syntax addSymCent(o) is also allowed
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
Name (or tag if name is empty) of the point of coordinates (1; 0) in the system of axis
Name (or tag if name is empty) of the point of coordinates (0; 1) in the system of axis
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the system of axis masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Name (or tag if name is empty) of the point origin of the system of axis
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be associated to the object created
Optionalthickness?: numberThickness of the stroke
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
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
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
OptionalabsCoord?: booleanset 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?: stringBackground color, white by default
Optionalborder?: stringThe border style (none|simple|3D)
Optionalcolor?: stringColor, black by default
OptionalfontSize?: numberSize of the font used for the display (in pixels)
OptionalhAlign?: stringHorizontal alignment left|center|right to the linked point (if any)
Optionalhidden?: booleantrue to get the created text display masked
OptionaloffsetX?: numberx-shift oof the text display
OptionaloffsetY?: numbery-shift oof the text display
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionalopaque?: booleantrue 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?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
Optionaltag?: stringTag to be applied on the created text display (if present)
The text to be displayed
OptionaltextAlign?: stringHorizontal alignment of the text (if it contains several lines)
OptionalvAlign?: stringVertical alignement top|middle|bottom to the linked point (if any)
x-coordinate of the location the text is to be displayed at
y-coordinate of the location the text is to be displayed at
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
function to be called by the timer
Frequency of the timer to be set (in seconds)
Optionaltag?: stringTag to be applied on the created text display (if present) returns {CCommentaire}
Optionalx?: string | number | CValDynx coordinate of the top button zoom in svg coordinates
Optionaly?: string | number | CValDyny coordinate of the top button zoom in svg coordinates
adds the translation of vector a b
syntax addTranslation(a, b) is also allowed
adds the translation of vector with coordinates (x, y)
syntaxes addTranslation(x, y) and addTranslation(x, y, rep) are allowed too
adds a variable of name nameCalc
syntaxes addVariable(nameCalc, val, min, max, step) and `addVariable(nameCalc, val, min, max, step, dialog) are allowed too
Optionaldialog?: booleantrue to associate to the variable a pane with buttons +, - and =
maxi value of the variable
mini value of the variable
Name of the variable to be created
step value of the variable
current value of the variable
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
Point or point name of the origin of the vector
OptionalarrowStyle?: stringArrox style (short|long|shortfull|longfull)
Point or point name of the extremety of the vector
Optionalcolor?: stringColor, black by default
Optionalhidden?: booleantrue to get the created vector masked
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
Optionalopacity?: numberopacity (0 to 1), 1 by default
Optionaltag?: stringTag to be applied on the created vector (if present)
Optionalthickness?: numberStroke thickness
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
Name (or tag if name is empty) of the point the x-coordinate is wanted from
Name of the created calculation (the x-coordinate measure))
tag of the frame (system of coordinates), mandatory only if the figure contains several frames
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
Name (or tag if name is empty) of the point the y-coordinate is wanted from
Name of the created calculation (the y-coordinate measure))
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
the created measure
Adds the affix measure of point a in frame rep (system of coordinates)
syntaxes addZMeasure(a, nameCalc, rep) is also allowed
Name (or tag if name is empty) of the point the affix is wanted from
Name of the created calculation (the affix measure))
tag of the frame (system of coordinates), mandatory only if the figure contains several frames
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)
Increase zoom ratio (k > 1)
Fonction de callback appelée lorsque MathJax a traité toues les formules en LaTeX et que la figure est prête pour affichage.
Le svg contenant la figure.
le document à afficher.
Recalcule la figure d'identifiant idDoc
Recalcule toutes les figures et les affiche
Optionalbrandom: booleanPasser true pour relancer les calculs aléatoires avec rand()
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
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
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.
Le code Base64 de la figure obtenu dans mtg32 par Edition - Copier le code de la figure.
Destroys all objets form elt, including display of the destroyed objects
syntax deleteAfter(elt) is also allowed
Destroys the graphical object of tag elt (along with objects depending on it)
syntax deleteElt(elt) is also allowed
Tag of the graphical object to be destroyed
destroys object obj alons with its dependant objects and their graphical implementation
syntax deleteObj(obj) is also allowed
the ojject to be destroyed (an object created via MathGraph32 API)
Fonction appelée lors des événements mouseDown et touchstart sur la figure.
: 'mouse' pour gérer le mousedown et 'touch' pour gérer le ontouchstart
evt.id contient l'id de la figure sur laquelle agit l'événement.
Fonction affichant la figure d'identifiant idDoc après avoir retiré tous les éléments graphiques du svg de la figure.
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
object (or tag) display si to be reclassed on top
Fonction exécutant la macro d'intitulé nameMacro dans la figure d'id idDoc.
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.
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.
l'id du document contenant la figure interrogée.
Le nom du calcul auquel est associé l'éditeur.
Returns the Base 64 code of the current figure For the player use setApiDoc if more than one figure is used
returns the name of a calculation, measure or function calc
The calculation, measure or function object (not a 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.
Retourne la liste des ids des documents
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
Fonction renvoyant le contenu du premier éditeur de formule asssocié au calcul nomCalcul dans le dcument d'id idDoc.
Returns the dimension of the SVG containing the figure
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.
OptionalbNocase: booleanpasser true pour ne pas tenir compte de la casse (majuscule ou minuscule) dans la recherche de nomCalcul
Returns the image of number x through function calc
syntax getFuncImage(calc, x) is also allowed
Name of the function used to calculate the iamge of x
Value the image of is to be returned (lust be a number)
the iage of x through function calc
Retourne l'id du SVG de la figure à partir d'un événement déclenché sur un des éléments SVG de la figure ou sur le svg de la figure lui-même
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
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
Fonction renvoyant la formule LaTeX représentant le calcul ou la fonction dont le nom est nomCalcul dans le document d'id idDoc.
Renvoie la liste CListeObjets contenant les objets du document d'id idDoc.
syntax getValue(x) is also allowed
a MathGraph32 matrix object
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
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
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é
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
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)
The object of a real calculation or measure, or its name
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.
give to the calculation (or function) of name nameCalc the formula formula
syntaxes giveFormulaTo(calc, fandmula) are allowed too
Name of the calculation or function formula is to be modified or calculation itself
formula to be given to calculation (or function) nameCal
the promise executed once the objects dependant on the calculation are redisplayed
Fonction de callBack appelée lors des événements mouseMove.
evt.id contient l'id de la figure sur laquelle agit l'événement.
L'id du document sur lequel agit l'événement
Le document sur lequel agit la figure
Fonction de callBack appelée lors des événements mouseUp.
evt.id contient l'id de la figure sur laquelle agit l'événement.
Fonction de callBack appelée lors des événements touchCancel.
evt.id contient l'id de la figure sur laquelle agit l'événement.
Fonction de callBack appelée lors des événements touchEnd.
evt.id contient l'id de la figure sur laquelle agit l'événement.
Appellera cb quand tous les rendus seront terminés
Optionalcb: (...params: any[]) => anySi non fourni, ça retourne une promesse qui sera résolue quand l'appli est prête (tous les rendus lancés terminés)
Recalculates the figure
OptionalbRandom: booleanif true random calculations are reset
Reclasses object elt after object elt2 (if the reclassement is possible)
elt must be defined before elt2
syntax reclassAfter(elt, elt2) is also allowed
object (or tag) to be reclassed after elt2
object (or tag) that is to be reclassed after
Reclasses object elt before object elt2 (if the reclassement is possible)
elt must be defined after elt2
syntaxes reclassBefande(elt, elt2) are allowed too
object (or tag) to be reclassed before elt2
object (or tag) elt ist to be reclassed before
Reclasses object of tag elt as far as possible towards the end of the list of created objects
syntax reclassMax(elt) is also allowed
object (or tag) to be reclassed
Reclasses object of tag elt as far as possible towards the beginning of the list of created objects
syntax reclassMin(elt) is also allowed
Tobject (or tag) to be reclassed
Fonction retirant tous les documents et effaçant le contenu de tous les svg contenant des figures.
Retire un listener sur le doc (jamais utilisé dans notre code mais utilisé par des sections sesaparcours)
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é
L'id du document à retirer.
Removes an event listener from a graphical object of the figure
syntax removeEltListener(elt, eventName) is also allowed
Tag of the graphical object the listener is to be removed from
Name of the event
Fonction retirant l'eventListener associé à svg element représentant l'objet d'indice html ind dans le document d'id idDoc
L'id du document
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
Le nom de l'événement (par exemple mousemove)
: true si tout s'est bien passé, false sinon
Removes a listener from the doc (svg) owning the figure
syntax removeSvgListener(eventName) is also allowed
Name of the event the listener is to be removed from
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
L'id du svg contenant la figure
Le nom du point ou la droite à renommer
Le nouveau nom
Rend la figure d'id idDoc réactive ou inactive aux événements souris et clavier suivant la valeur du boolean ba.
passer true pour activer et false pour désactiver
Set the angle unity of the figure.
'degree' or 'radian'
Change the current figure (the figure the following api methods will apply on), only for the MtgAppLecteurApi
OptionalidDoc: stringIf idDoc is not given, the first doc is taken
Assigns a background color to a text or LaTeX display
syntaxes setBackgroundColor(elt, backgroundColand) are allowed too
Assigns a color to an object
syntaxes setColor(elt, color) and setColor(elt, color, opacity) are allowed too
The color to be applied on the object (ignored if first arg is a params object, either mandatory)
Optionalopacity?: numberopacity (0 to 1, ignored with options syntax)
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.
La fonction de callBack
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.
Fonction vidant tous les éditeurs de formule de la figure d'id idDoc
Fonction donnant à tous les éditeur de formule de la fiure d'id idDoc la taille size. Utilisé dans j3p.
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
Load a new figure (empty if not provided)
Optionaloptions: {Optionalcontainer?: HTMLElementThe 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?: stringThe base 64 code of the figure
Optionalheight?: numberOptionalid?: stringid (MtgApp player only) id of the figure to be replaced or created
OptionalremoveAllDoc?: booleantrue 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?: numberPromise 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
Le nom du document contenant du calcul
Le nom du calcul
: Tableau contenant les noms des calculs complexes considérés comme des vecteurs
Gives to the free point named a the coordinates x, y
syntax setFreePointPosition(a, x, y) is also allowed
Set the object of tag elt masked (if not already masked)
syntax setHidden(elt) is also allowed
Tag of the object taht is to become massked
Fonction positionnant le svg servant à obtenir une loupe aux coordonnées (x, y) dans les svg d'id idDoc
l'id du document
l'abscisse du centre de la loupe
L'ordonnée du centre de la loupe
Assigns a line style to an object
syntax setLineStyle(elt, lineStyle) is also allowed
Tag of the object thickness of which is to be changed
Line style to be applied on the object (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---), ignored if first arg is a params object, mandatory either
Replaces a free point by a point linked to another existing point
syntax setLinkPointPoint(a, b) is also allowed
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
Fonction déplaçant un point libre aux coordonnées (x;y) dans le svg du document d'id idDoc
Le nom du point ou # suivi du tag du point ou son indice html (entier)
Nouvelle abscisse à donner au point
Nouvelle ordonnée à donner au point
OptionalbImmediat: booleanSi true la figure est réaffichée (et cette fct retourne une promesse)
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
Fonction donnant, dans le doc d'id idDoc, à l'élément d'id html id le tag tag
l'id du document oùse trouve l'élément cherché
l'id html de l'élément recherché
le tag à affecter à cet élément
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
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
OptionalbImmediat: booleanPasser false pour ne pas réafficher idDoc
true si tout s'est bien passé, false sinon
Assigns a stroke thickness to an object
syntax setThickness(elt, thickness) is also allowed
Tag of the object thickness of which is to be changed
Stroke thickness to be applied on the object
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
Set the object of tag elt visible (if not already visible)
syntax setVisible(elt) is also allowed
Tag of the object taht is to become visible
Pause sec seconds in the display before going on
the sleep delay in seconds
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
OptionalbSignesMultImplicit: anytrue si la formule a des signes de multiplication implicite (et donc n'utilise que des variables et calculs à 1 caractère) et false sinon
Fonction translatant tous les objets de la figure d'id idDoc d'un vecteur (decx, decy)
L'id de la figure
Première coordonnnée du vecteur de la translation
Deuxième coordonnnée du vecteur de la translation
OptionalbImmediat: booleanPasser 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)
: 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
Fonction translatant un point libre du vecteur de coordonnées (deltax; deltay) dans le svg du document d'id idDoc
Le nom du point ou # suivi du tag du point ou son indice html (entier)
Valeur à ajouter à l'abscisse du point
Valeur à ajouter à l'ordonnée du point
OptionalbImmediat: booleanSi true la figure est tout de suite réaffichée
: true si tout s'est bien passé, false sinon
Fonction mettant à jour les éléments graphiques de la figure d'idDoc.
Re-displays the elements of the figure.
Remet à jour la figure du document idDoc après avoir modifié certains de ses objets directement (par exemple en utilisant translatePoint()
L'id du document à réafficher
: 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.
OptionalbNoCase: booleanpasser true pour ne pas tenir compte de la casse (majuscule ou minuscule) dans la recherche de nomCalcul
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
L'id de la figure
abscisse du centre du zoom
ordonnée du centre du zomm
rapport du zoom
OptionalbImmediat: booleanPasser 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)
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
OptionalabsCoord?: booleanset 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.
zoom ratio
Optionalrep?: stringtag of the frame (system of coordinates), mandatory only if the figure contains several frames
x-coordinate of the center for zooming-unzooming
y-coordinate of the center for zooming-unzooming
MtgAppLecteur avec les méthodes de l'api ajoutées