| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method SupplyChainDiagramSelectArea ( |  |   Number x, |  |   Number y |  | ) id:Method_FormSupplyChainOverview_SupplyChainDiagramSelectArea |  | { |  |   #keys: '[113694.2.1023688786]' |  |   Body: |  |   [* |  |     // select area |  |     ValueHolderX.UserData(); |  |     ValueHolderY.UserData(); |  |      |  |     x1 := minvalue( ValueHolderX.UserData(), x ); |  |     y1 := minvalue( ValueHolderY.UserData(), y ); |  |     width := maxvalue( ValueHolderX.UserData(), x ) - x1; |  |     height := maxvalue( ValueHolderY.UserData(), y ) - y1; |  |      |  |     selected := selectset( DataHolderView.Data(), |  |                            Node, |  |                            n, |  |                            n.IsVisible() |  |                            and n.Overlap( x1, y1, width, height ) |  |                            and guard( n.GetNodeVisibility( DataHolderFocusedUnit.Data(), |  |                                                            DataHolderFocusedSP.Data(), |  |                                                            DataHolderView.Data() |  |                                                           ), false), |  |                            true ); |  |     DataHolderHighlight.Data( selected.Copy() ); |  |      |  |     this.SupplyChainDiagramForceRepaintAll(); |  |   *] |  | } | 
 |