[sdc] rebase update
[sdc.git] / catalog-ui / src / typings / cytoscape / cytoscape-extension.ts
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 /**
22  * Created by obarda on 12/21/2016.
23  */
24 declare module Cy {
25
26     interface Instance {
27
28         expandCollapse(options?: ExpandCollapseOptions);
29         collapseAll(options?: ExpandCollapseOptions);
30     }
31
32
33
34     interface CollectionNodes {
35
36         qtip(tooltipOptions: TooltipOption);
37     }
38
39
40     interface TooltipOption {
41         content?: string | Function;
42         position?: any;
43         style?: any;
44         show?:any;
45         hide?:any;
46         includeLabels?: boolean;
47     }
48
49     interface ExpandCollapseOptions {
50         layoutBy:any;
51         fisheye: boolean;
52         undoable: boolean;
53         expandCueImage: string;
54         collapseCueImage: string;
55         expandCollapseCueSize: number;
56         expandCollapseCueSensitivity: number;
57         cueOffset: number;
58       //  expandCollapseCuePosition: string;
59     }
60 }