@@ -104,8 +104,8 @@ function getFlag(context, refrush) {
104
104
path . curveToPoint_controlPoint1_controlPoint2 ( NSMakePoint ( 0 , 48 * scale ) , NSMakePoint ( 15.375 * scale , 36 * scale ) , NSMakePoint ( 0 , 48 * scale ) ) ;
105
105
path . curveToPoint_controlPoint1_controlPoint2 ( NSMakePoint ( 22 * scale , 60 * scale ) , NSMakePoint ( 0 , 48 * scale ) , NSMakePoint ( 15.375 * scale , 60 * scale ) ) ;
106
106
path . closePath ( ) ;
107
- path = MSPath . pathWithBezierPath ( path ) ;
108
- var flag = MSShapeGroup . shapeWithBezierPath ( path ) ;
107
+ // path = MSPath.pathWithBezierPath(path);
108
+ var flag = MSShapePathLayer . layerWithPath ( MSPath . pathWithBezierPath ( path ) ) ;
109
109
flag . style ( ) . addStylePartOfType ( 0 ) . setColor ( MSImmutableColor . colorWithRed_green_blue_alpha ( colorLineR , colorLineG , colorLineB , 0.3 ) ) ;
110
110
flag . style ( ) . addStylePartOfType ( 1 ) . setColor ( MSImmutableColor . colorWithRed_green_blue_alpha ( colorLineR , colorLineG , colorLineB , 1 ) ) ;
111
111
flag . absoluteRect ( ) . setX ( linexl ) ;
@@ -130,7 +130,7 @@ function getFlag(context, refrush) {
130
130
131
131
doc . currentPage ( ) . addLayers ( [ flag , textLayer ] ) ;
132
132
var connectionLayers = MSLayerArray . arrayWithLayers ( [ flag , textLayer ] ) ;
133
- connectionsGroup = MSLayerGroup . groupFromLayers ( connectionLayers ) ;
133
+ connectionsGroup = MSLayerGroup . groupWithLayers ( connectionLayers ) ;
134
134
connectionsGroup . setName ( dom . objectID ( ) ) ;
135
135
return connectionsGroup ;
136
136
}
@@ -155,8 +155,8 @@ function getFlag(context, refrush) {
155
155
path . curveToPoint_controlPoint1_controlPoint2 ( NSMakePoint ( 34 * scale , 12 * scale ) , NSMakePoint ( 18.625 * scale , 0 * scale ) , NSMakePoint ( 34 * scale , 12 * scale ) ) ;
156
156
path . curveToPoint_controlPoint1_controlPoint2 ( NSMakePoint ( 12 * scale , 24 * scale ) , NSMakePoint ( 34 * scale , 12 * scale ) , NSMakePoint ( 18.625 * scale , 24 * scale ) ) ;
157
157
path . closePath ( ) ;
158
- path = MSPath . pathWithBezierPath ( path ) ;
159
- var flag = MSShapeGroup . shapeWithBezierPath ( path ) ;
158
+ // path = MSPath.pathWithBezierPath(path);
159
+ var flag = MSShapePathLayer . layerWithPath ( MSPath . pathWithBezierPath ( path ) ) ;
160
160
flag . style ( ) . addStylePartOfType ( 0 ) . setColor ( MSImmutableColor . colorWithRed_green_blue_alpha ( colorLineR , colorLineG , colorLineB , 0.3 ) ) ;
161
161
flag . style ( ) . addStylePartOfType ( 1 ) . setColor ( MSImmutableColor . colorWithRed_green_blue_alpha ( colorLineR , colorLineG , colorLineB , 1 ) ) ;
162
162
flag . absoluteRect ( ) . setX ( linexr ) ;
@@ -181,7 +181,7 @@ function getFlag(context, refrush) {
181
181
182
182
doc . currentPage ( ) . addLayers ( [ flag , textLayer ] ) ;
183
183
var connectionLayers = MSLayerArray . arrayWithLayers ( [ flag , textLayer ] ) ;
184
- connectionsGroup = MSLayerGroup . groupFromLayers ( connectionLayers ) ;
184
+ connectionsGroup = MSLayerGroup . groupWithLayers ( connectionLayers ) ;
185
185
connectionsGroup . setName ( dom . objectID ( ) ) ;
186
186
return connectionsGroup ;
187
187
}
@@ -309,7 +309,7 @@ function getFlag(context, refrush) {
309
309
}
310
310
311
311
var connectionLayers = MSLayerArray . arrayWithLayers ( flags ) ;
312
- connectionsGroup = MSLayerGroup . groupFromLayers ( connectionLayers ) ;
312
+ connectionsGroup = MSLayerGroup . groupWithLayers ( connectionLayers ) ;
313
313
connectionsGroup . setName ( "___flags" ) ;
314
314
connectionsGroup . setIsLocked ( 1 ) ;
315
315
context . command . setValue_forKey_onLayer_forPluginIdentifier ( true , "isflagContainer" , connectionsGroup , kPluginDomainFlag ) ;
0 commit comments