2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 import {GraphColors} from "app/utils";
22 export class ModulesNodesStyle {
24 public static getModuleGraphStyle = ():Array<Cy.Stylesheet> => {
28 selector: '.cy-expand-collapse-collapsed-node',
30 'background-image': 'data(img)',
33 'background-opacity': 0,
35 'label': 'data(displayName)',
38 'text-valign': 'bottom',
39 'text-halign': 'center',
45 selector: '.module-node',
47 'background-color': 'transparent',
48 'background-opacity': 0,
50 "border-color": GraphColors.NODE_SELECTED_BORDER_COLOR,
51 'border-style': 'dashed',
52 'label': 'data(displayName)',
55 'text-valign': 'bottom',
56 'text-halign': 'center',
61 selector: 'node:selected',
67 selector: '.simple-link:selected',
69 'line-color': GraphColors.BASE_LINK,
73 selector: '.vl-link:selected',
75 'line-color': GraphColors.VL_LINK,
79 selector: '.cy-expand-collapse-collapsed-node:selected',
81 "border-color": GraphColors.NODE_SELECTED_BORDER_COLOR,
83 'border-style': 'solid',
88 selector: '.module-node:selected',
90 "border-color": GraphColors.NODE_SELECTED_BORDER_COLOR,
95 selector: '.dummy-node',