Cover the seventh canvas tool and handle FCP callback timing
这个提交包含在:
1 父节点
320f4c5f91
当前提交
a2a6e57c13
4 个文件已更改
+23
-10
没有与搜索条件相匹配的文件
@@ -20,6 +20,14 @@ static void DYDrawDistortionGrid(NSRect rect,NSColor *color){
|
||||
}
|
||||
[color setStroke];[grid stroke];
|
||||
}
|
||||
static void DYDrawLevel(NSRect rect,NSColor *ink){
|
||||
CGFloat size=NSWidth(rect),x=NSMinX(rect),y=NSMinY(rect);
|
||||
NSBezierPath *guide=[NSBezierPath bezierPath];
|
||||
[guide moveToPoint:NSMakePoint(x+size*.12,y+size*.75)];[guide lineToPoint:NSMakePoint(x+size*.88,y+size*.75)];
|
||||
[guide moveToPoint:NSMakePoint(x+size*.19,y+size*.56)];[guide lineToPoint:NSMakePoint(x+size*.81,y+size*.22)];
|
||||
guide.lineWidth=MAX(1.,size*.085);guide.lineCapStyle=NSLineCapStyleRound;
|
||||
[ink setStroke];[guide stroke];
|
||||
}
|
||||
static void DYDrawCloneStamp(NSRect rect,NSColor *color){
|
||||
CGFloat side=NSWidth(rect),x=NSMinX(rect),y=NSMinY(rect);
|
||||
NSBezierPath *handle=[NSBezierPath bezierPathWithRoundedRect:NSMakeRect(x+side*.31,y+side*.05,side*.38,side*.43) xRadius:side*.16 yRadius:side*.16];
|
||||
@@ -130,6 +138,7 @@ NSRect bounds=NSMakeRect(0,0,size.width,size.height),v=_hasViewport?NSIntersecti
|
||||
NSRect glyph=NSMakeRect(NSMidX(r)-side/2,NSMidY(r)-side/2,side,side);
|
||||
if([a[@"symbol"]isEqual:@"pincushion-grid"])DYDrawDistortionGrid(NSInsetRect(glyph,1,1),ink);
|
||||
else if([a[@"symbol"]isEqual:@"clone-stamp"])DYDrawCloneStamp(glyph,ink);
|
||||
else if([a[@"symbol"]isEqual:@"level"])DYDrawLevel(glyph,ink);
|
||||
else{
|
||||
NSImage *icon=[NSImage imageWithSystemSymbolName:a[@"symbol"] accessibilityDescription:a[@"title"]];
|
||||
NSImageSymbolConfiguration *configuration=[[NSImageSymbolConfiguration configurationWithPointSize:14*s weight:NSFontWeightRegular]configurationByApplyingConfiguration:[NSImageSymbolConfiguration configurationWithPaletteColors:@[ink]]];
|
||||
|
||||
在新工单中引用
屏蔽一个用户