basant307/AI_Governance_Project
048
1var CRp = {};2 3CRp.nodeShapeImpl = function( name, context, centerX, centerY, width, height, points, corners ){4 switch( name ){5 case 'ellipse':6 return this.drawEllipsePath( context, centerX, centerY, width, height );7 case 'polygon':8 return this.drawPolygonPath( context, centerX, centerY, width, height, points );9 case 'round-polygon':10 return this.drawRoundPolygonPath(context, centerX, centerY, width, height, points, corners );11 case 'roundrectangle':12 case 'round-rectangle':13 return this.drawRoundRectanglePath( context, centerX, centerY, width, height, corners );14 case 'cutrectangle':15 case 'cut-rectangle':16 return this.drawCutRectanglePath( context, centerX, centerY, width, height, points, corners );17 case 'bottomroundrectangle':18 case 'bottom-round-rectangle':19 return this.drawBottomRoundRectanglePath( context, centerX, centerY, width, height, corners );20 case 'barrel':21 return this.drawBarrelPath( context, centerX, centerY, width, height );22 }23};24 25export default CRp;26 