Promotic

lineJoin - property of the CanvasCtx object

Description:
The property returns or sets the type of corner created, when two lines touch.
Syntax:
String lineJoin
Values:
miter (default) - Creates a sharp corner
bevel - Creates a skewed corner
round - Creates a rounded corner
Note:
Property access for read and write.
 
This property is also functional in Web panels.
See also:
Example:
The ctx variable represents the drawing canvas (CanvasCtx). The setup is done on the "Draw" tab at the beginning of the script of drawing event onDraw as follows:
 
var ctx = pEvent.GetCtx(1);
JavaScriptSelect and copy to clipboard

ctx.lineJoin = "miter";

History:
Pm8.02.06: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.