From: <ho...@us...> - 2012-03-01 18:21:58
|
Revision: 7676 http://skim-app.svn.sourceforge.net/skim-app/?rev=7676&view=rev Author: hofman Date: 2012-03-01 18:21:51 +0000 (Thu, 01 Mar 2012) Log Message: ----------- smaller diamond line ending in line well, as in PDFKit Modified Paths: -------------- trunk/SKLineWell.m Modified: trunk/SKLineWell.m =================================================================== --- trunk/SKLineWell.m 2012-03-01 18:09:15 UTC (rev 7675) +++ trunk/SKLineWell.m 2012-03-01 18:21:51 UTC (rev 7676) @@ -177,10 +177,10 @@ [path appendBezierPathWithOvalInRect:NSMakeRect(startPoint.x - 1.5 * lineWidth, startPoint.y - 1.5 * lineWidth, 3 * lineWidth, 3 * lineWidth)]; break; case kPDFLineStyleDiamond: - [path moveToPoint:NSMakePoint(startPoint.x - 2.0 * lineWidth, startPoint.y)]; - [path lineToPoint:NSMakePoint(startPoint.x, startPoint.y + 2.0 * lineWidth)]; - [path lineToPoint:NSMakePoint(startPoint.x + 2.0 * lineWidth, startPoint.y)]; - [path lineToPoint:NSMakePoint(startPoint.x, startPoint.y - 2.0 * lineWidth)]; + [path moveToPoint:NSMakePoint(startPoint.x - 1.5 * lineWidth, startPoint.y)]; + [path lineToPoint:NSMakePoint(startPoint.x, startPoint.y + 1.5 * lineWidth)]; + [path lineToPoint:NSMakePoint(startPoint.x + 1.5 * lineWidth, startPoint.y)]; + [path lineToPoint:NSMakePoint(startPoint.x, startPoint.y - 1.5 * lineWidth)]; [path closePath]; break; case kPDFLineStyleOpenArrow: @@ -209,10 +209,10 @@ [path appendBezierPathWithOvalInRect:NSMakeRect(endPoint.x - 1.5 * lineWidth, endPoint.y - 1.5 * lineWidth, 3 * lineWidth, 3 * lineWidth)]; break; case kPDFLineStyleDiamond: - [path moveToPoint:NSMakePoint(endPoint.x + 2.0 * lineWidth, endPoint.y)]; - [path lineToPoint:NSMakePoint(endPoint.x, endPoint.y + 2.0 * lineWidth)]; - [path lineToPoint:NSMakePoint(endPoint.x - 2.0 * lineWidth, endPoint.y)]; - [path lineToPoint:NSMakePoint(endPoint.x, endPoint.y - 2.0 * lineWidth)]; + [path moveToPoint:NSMakePoint(endPoint.x + 1.5 * lineWidth, endPoint.y)]; + [path lineToPoint:NSMakePoint(endPoint.x, endPoint.y + 1.5 * lineWidth)]; + [path lineToPoint:NSMakePoint(endPoint.x - 1.5 * lineWidth, endPoint.y)]; + [path lineToPoint:NSMakePoint(endPoint.x, endPoint.y - 1.5 * lineWidth)]; [path closePath]; break; case kPDFLineStyleOpenArrow: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |