CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
node-shapes.mjs26 linesDownload Raw Back to canvas
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 
basant307/AI_Governance_Project · CoolFace