캔버스 » Api
  
drawpolyline
  
Description
SVG에 꺽은 선을 그리는 API이다.
꼭지점 좌표배열을 기준으로 꺽은선을 그린다.
  
  
Parameters
  
    
      | Parameters | 
      Type | 
      Description | 
    
  
  
        
    
        | arrPoint | 
        Array | 
 	꼭지점좌표배열 | 
      
    
    
        | nLineWidth | 
        short | 
 	[옵션]선 두께 | 
      
    
    
        | nLineStyle | 
        short | 
 	[옵션]선 스타일 | 
      
    
    
        | clrLineColor | 
        COLOR | 
 	[옵션]선 색상 | 
      
    
    
        | nArrowStyle | 
        short | 
 	[옵션]화살표 스타일 | 
      
    
    
        | nIdConnStartItem | 
        short | 
 	[옵션]시작점에 연결할 아이템아이디 | 
      
    
    
        | nPosConnStartItem | 
        short | 
 	[옵션]시작점에 연결할 아이템의 연결점 인덱스 | 
      
    
    
        | nIdConnEndItem | 
        short | 
 	[옵션]끝점에 연결할 아이템아이디 | 
      
    
    
        | nPosConnEndItem | 
        short | 
 	[옵션]끝점에 연결할 아이템의 연결점 인덱스 | 
      
  
  
Return Value
  
    
      | Type | 
      Description | 
    
  
  
    
      | short | 
      아이템 ID | 
    
  
Remark
* 옵션파라미터중 기본값이 명시되어 있지 않은 파라미터는 캔버스에 설정된 속성을 따른다.
** 연결점 인덱스
사각형/모서리둥근사각형/마름모/원/타원은 12시, 3시, 6시, 9시 방향을 기준으로 한 인덱스(0베이스)
그 외의 다각형은 왼쪽상단방향의 꼭지점을 기준으로 시계방향 각 꼭지점을 기준으로 한 인덱스(0베이스)
  
 
  
Example
function canvas_on_click(objInst, nXPoint, nYPoint, nPageXPoint, nPageYPoint, nItemId)
{
	// └ 모양 꺽은선 그리기
	var points = [];
	points.push({x:nXPoint, y:nYPoint});
	points.push({x:nXPoint, y:nYPoint+30});
	points.push({x:nXPoint+30, y:nYPoint+30});
	canvas.drawpolyline(points);
}
  
See Also
drawline
drawrect
drawcircle
drawellipse
  
Viewer Ver.
9.1.1.1
  
Update Date
 20211210