Quintiq file version 2.0
#parent: CustomDrawRC/CustomDrawDataLayerOperationInputGroupEdge
Response OnDetermineRegion (
  OperationInputGroupEdge object
) id:Response_CustomDrawRC_CustomDrawDataLayerOperationInputGroupEdge_OnDetermineRegion
{
  #keys: '[139394.0.1306656250]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDetermineRegion'
  QuillAction
  {
    Body:
    [*
      // Determine region for PISP operation input Edge
      region := construct( Polygon );
      x0 := object.FromX();
      y0 := object.FromY();
      x1 := object.ToX();
      y1 := object.ToY();
      padding := 6;
      
      // Adding points in a polygon must be in a clockwise manner
      region.AddPoint( x0, y0 - padding );
      region.AddPoint( x1, y1 - padding);
      region.AddPoint( x1, y1 + padding );
      region.AddPoint( x0, y0 + padding );
      
      layer.AddRegion( &region, 0 );
    *]
    GroupServerCalls: false
  }
}
