| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the 'License'); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| 17 | */ |
| 18 | /** |
| 19 | * @file Model for NS topology related information. |
| 20 | */ |
| 21 | |
| 22 | /** Interface for the GRAPHDETAILS */ |
| 23 | export interface GRAPHDETAILS { |
| 24 | width: number; |
| 25 | height: number; |
| 26 | nodeHeight: number; |
| 27 | nodeWidth: number; |
| 28 | textX: number; |
| 29 | textY: number; |
| 30 | radius: number; |
| 31 | distance: number; |
| 32 | strength: number; |
| 33 | forcex: number; |
| 34 | forcey: number; |
| 35 | sourcePaddingYes: number; |
| 36 | sourcePaddingNo: number; |
| 37 | targetPaddingYes: number; |
| 38 | targetPaddingNo: number; |
| 39 | alphaTarget: number; |
| 40 | imageX: number; |
| 41 | imageY: number; |
| 42 | shiftKeyCode: number; |
| 43 | } |
| 44 | /** Interface for the Path */ |
| 45 | export interface TickPath { |
| 46 | x: number; |
| 47 | y: number; |
| 48 | id: string; |
| 49 | 'type'?: string; |
| 50 | } |
| 51 | /** Interface for the Tick */ |
| 52 | export interface Tick { |
| 53 | target: TickPath; |
| 54 | source: TickPath; |
| 55 | left: boolean; |
| 56 | right: boolean; |
| 57 | } |