From 8bd74acaad60d8fb578300f3e0787d9a49f279fe Mon Sep 17 00:00:00 2001 From: doubleluo Date: Thu, 10 May 2018 11:20:53 +0800 Subject: [PATCH] version 50 --- WeSketch.sketchplugin/Contents/Sketch/flag.js | 2 ++ .../Contents/Sketch/i18n/manifest-enUS.json | 2 +- .../Contents/Sketch/i18n/manifest-jaJP.json | 2 +- .../Contents/Sketch/i18n/manifest-zhCN.json | 2 +- .../Contents/Sketch/i18n/manifest-zhTW.json | 2 +- WeSketch.sketchplugin/Contents/Sketch/link.js | 5 +++-- WeSketch.sketchplugin/Contents/Sketch/manifest.json | 2 +- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/WeSketch.sketchplugin/Contents/Sketch/flag.js b/WeSketch.sketchplugin/Contents/Sketch/flag.js index 667ba15..ce97f04 100644 --- a/WeSketch.sketchplugin/Contents/Sketch/flag.js +++ b/WeSketch.sketchplugin/Contents/Sketch/flag.js @@ -104,6 +104,7 @@ function getFlag(context, refrush) { path.curveToPoint_controlPoint1_controlPoint2(NSMakePoint(0, 48 * scale), NSMakePoint(15.375 * scale, 36 * scale), NSMakePoint(0, 48 * scale)); path.curveToPoint_controlPoint1_controlPoint2(NSMakePoint(22 * scale, 60 * scale), NSMakePoint(0, 48 * scale), NSMakePoint(15.375 * scale, 60 * scale)); path.closePath(); + path = MSPath.pathWithBezierPath(path); var flag = MSShapeGroup.shapeWithBezierPath(path); flag.style().addStylePartOfType(0).setColor(MSImmutableColor.colorWithRed_green_blue_alpha(colorLineR, colorLineG, colorLineB, 0.3)); flag.style().addStylePartOfType(1).setColor(MSImmutableColor.colorWithRed_green_blue_alpha(colorLineR, colorLineG, colorLineB, 1)); @@ -154,6 +155,7 @@ function getFlag(context, refrush) { path.curveToPoint_controlPoint1_controlPoint2(NSMakePoint(34 * scale, 12 * scale), NSMakePoint(18.625 * scale, 0 * scale), NSMakePoint(34 * scale, 12 * scale)); path.curveToPoint_controlPoint1_controlPoint2(NSMakePoint(12 * scale, 24 * scale), NSMakePoint(34 * scale, 12 * scale), NSMakePoint(18.625 * scale, 24 * scale)); path.closePath(); + path = MSPath.pathWithBezierPath(path); var flag = MSShapeGroup.shapeWithBezierPath(path); flag.style().addStylePartOfType(0).setColor(MSImmutableColor.colorWithRed_green_blue_alpha(colorLineR, colorLineG, colorLineB, 0.3)); flag.style().addStylePartOfType(1).setColor(MSImmutableColor.colorWithRed_green_blue_alpha(colorLineR, colorLineG, colorLineB, 1)); diff --git a/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-enUS.json b/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-enUS.json index 62cf298..a2c9ddf 100755 --- a/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-enUS.json +++ b/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-enUS.json @@ -1,7 +1,7 @@ { "name": "Miaow", "author": "Tencent WeChat", - "version": "1.4.2", + "version": "1.4.3", "identifier": "cn.wechat", "description": "A set of plugins for Sketch include drawing links & marks, UI Kit & Color sync, font & text replacing", "icon": "minicon.png", diff --git a/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-jaJP.json b/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-jaJP.json index 7b20445..c697543 100644 --- a/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-jaJP.json +++ b/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-jaJP.json @@ -1,7 +1,7 @@ { "name": "Miaow", "author": "Tencent WeChat", - "version": "1.4.2", + "version": "1.4.3", "identifier": "cn.wechat", "description": "A set of plugins for Sketch include drawing links & marks, UI Kit & Color sync, font & text replacing", "icon": "minicon.png", diff --git a/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-zhCN.json b/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-zhCN.json index 4420fb0..16ab5a7 100755 --- a/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-zhCN.json +++ b/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-zhCN.json @@ -1,7 +1,7 @@ { "name": "Miaow", "author": "Tencent WeChat", - "version": "1.4.2", + "version": "1.4.3", "identifier": "cn.wechat", "description": "A set of plugins for Sketch include drawing links & marks, UI Kit & Color sync, font & text replacing", "icon": "minicon.png", diff --git a/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-zhTW.json b/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-zhTW.json index 95daf19..6c8a1a1 100644 --- a/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-zhTW.json +++ b/WeSketch.sketchplugin/Contents/Sketch/i18n/manifest-zhTW.json @@ -1,7 +1,7 @@ { "name": "Miaow", "author": "Tencent WeChat", - "version": "1.4.2", + "version": "1.4.3", "identifier": "cn.wechat", "description": "A set of plugins for Sketch include drawing links & marks, UI Kit & Color sync, font & text replacing", "icon": "minicon.png", diff --git a/WeSketch.sketchplugin/Contents/Sketch/link.js b/WeSketch.sketchplugin/Contents/Sketch/link.js index e1f24ba..5fbb933 100755 --- a/WeSketch.sketchplugin/Contents/Sketch/link.js +++ b/WeSketch.sketchplugin/Contents/Sketch/link.js @@ -1009,7 +1009,7 @@ function getLink(context, refursh) { } } } - + linePath = MSPath.pathWithBezierPath(linePath); var lineSh = MSShapeGroup.shapeWithBezierPath(linePath); var hitAreaBorder = lineSh.style().addStylePartOfType(1); hitAreaBorder.setColor(MSImmutableColor.colorWithIntegerRed_green_blue_alpha(colorLineLinkR, colorLineLinkG, colorLineLinkB, 255).newMutableCounterpart()); @@ -1021,6 +1021,7 @@ function getLink(context, refursh) { var drawRound = function (x, y) { var linkRect = NSInsetRect(NSMakeRect(x, y, 0, 0), -5, -5); var path = NSBezierPath.bezierPathWithOvalInRect(linkRect); + path = MSPath.pathWithBezierPath(path); var hitAreaLayer = MSShapeGroup.shapeWithBezierPath(path); hitAreaLayer.style().addStylePartOfType(0).setColor(MSImmutableColor.colorWithIntegerRed_green_blue_alpha(colorLineLinkR, colorLineLinkG, colorLineLinkB, 76.5).newMutableCounterpart()); hitAreaLayer.style().addStylePartOfType(1).setColor(MSImmutableColor.colorWithIntegerRed_green_blue_alpha(colorLineLinkR, colorLineLinkG, colorLineLinkB, 255).newMutableCounterpart()); @@ -1053,7 +1054,7 @@ function getLink(context, refursh) { arrowPath.lineToPoint(NSMakePoint(x, y)); arrowPath.lineToPoint(NSMakePoint(x - arrowOffset, y + arrowOffset)); } - + arrowPath = MSPath.pathWithBezierPath(arrowPath); var arrow = MSShapeGroup.shapeWithBezierPath(arrowPath); var arrowStyle = arrow.style().addStylePartOfType(1); arrowStyle.setThickness(lineThicknessLink); diff --git a/WeSketch.sketchplugin/Contents/Sketch/manifest.json b/WeSketch.sketchplugin/Contents/Sketch/manifest.json index 62cf298..a2c9ddf 100755 --- a/WeSketch.sketchplugin/Contents/Sketch/manifest.json +++ b/WeSketch.sketchplugin/Contents/Sketch/manifest.json @@ -1,7 +1,7 @@ { "name": "Miaow", "author": "Tencent WeChat", - "version": "1.4.2", + "version": "1.4.3", "identifier": "cn.wechat", "description": "A set of plugins for Sketch include drawing links & marks, UI Kit & Color sync, font & text replacing", "icon": "minicon.png",