cleanup(misc): refactor file to fix typo
pallette.ts -> palette.ts NrwlPallette -> NrwlPalette
This commit is contained in:
parent
af27f975a4
commit
caf553132c
@ -1,23 +1,23 @@
|
|||||||
import { Stylesheet } from 'cytoscape';
|
import { Stylesheet } from 'cytoscape';
|
||||||
import { NrwlPallette } from './pallette';
|
import { NrwlPalette } from './palette';
|
||||||
|
|
||||||
const allEdges: Stylesheet = {
|
const allEdges: Stylesheet = {
|
||||||
selector: 'edge',
|
selector: 'edge',
|
||||||
style: {
|
style: {
|
||||||
width: '1px',
|
width: '1px',
|
||||||
'line-color': NrwlPallette.black,
|
'line-color': NrwlPalette.black,
|
||||||
'curve-style': 'straight',
|
'curve-style': 'straight',
|
||||||
'target-arrow-shape': 'triangle',
|
'target-arrow-shape': 'triangle',
|
||||||
'target-arrow-fill': 'filled',
|
'target-arrow-fill': 'filled',
|
||||||
'target-arrow-color': NrwlPallette.black,
|
'target-arrow-color': NrwlPalette.black,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const affectedEdges: Stylesheet = {
|
const affectedEdges: Stylesheet = {
|
||||||
selector: 'edge.affected',
|
selector: 'edge.affected',
|
||||||
style: {
|
style: {
|
||||||
'line-color': NrwlPallette.red,
|
'line-color': NrwlPalette.red,
|
||||||
'target-arrow-color': NrwlPallette.red,
|
'target-arrow-color': NrwlPalette.red,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { Stylesheet } from 'cytoscape';
|
import { Stylesheet } from 'cytoscape';
|
||||||
import { FONTS } from './fonts';
|
import { FONTS } from './fonts';
|
||||||
import { NrwlPallette } from './pallette';
|
import { NrwlPalette } from './palette';
|
||||||
|
|
||||||
const allNodes: Stylesheet = {
|
const allNodes: Stylesheet = {
|
||||||
selector: 'node',
|
selector: 'node',
|
||||||
@ -8,14 +8,14 @@ const allNodes: Stylesheet = {
|
|||||||
'font-size': '32px',
|
'font-size': '32px',
|
||||||
'font-family': FONTS,
|
'font-family': FONTS,
|
||||||
'border-style': 'solid',
|
'border-style': 'solid',
|
||||||
'border-color': NrwlPallette.black,
|
'border-color': NrwlPalette.black,
|
||||||
'border-width': '1px',
|
'border-width': '1px',
|
||||||
'text-halign': 'center',
|
'text-halign': 'center',
|
||||||
'text-valign': 'center',
|
'text-valign': 'center',
|
||||||
'padding-left': '16px',
|
'padding-left': '16px',
|
||||||
label: 'data(id)',
|
label: 'data(id)',
|
||||||
width: 'label',
|
width: 'label',
|
||||||
backgroundColor: NrwlPallette.white,
|
backgroundColor: NrwlPalette.white,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -43,15 +43,15 @@ const e2eNodes: Stylesheet = {
|
|||||||
const focusedNodes: Stylesheet = {
|
const focusedNodes: Stylesheet = {
|
||||||
selector: 'node.focused',
|
selector: 'node.focused',
|
||||||
style: {
|
style: {
|
||||||
color: NrwlPallette.twilight,
|
color: NrwlPalette.twilight,
|
||||||
'border-color': NrwlPallette.twilight,
|
'border-color': NrwlPalette.twilight,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const affectedNodes: Stylesheet = {
|
const affectedNodes: Stylesheet = {
|
||||||
selector: 'node.affected',
|
selector: 'node.affected',
|
||||||
style: {
|
style: {
|
||||||
'border-color': NrwlPallette.red,
|
'border-color': NrwlPalette.red,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -59,8 +59,8 @@ const parentNodes: Stylesheet = {
|
|||||||
selector: ':parent',
|
selector: ':parent',
|
||||||
style: {
|
style: {
|
||||||
'background-opacity': 0.5,
|
'background-opacity': 0.5,
|
||||||
'background-color': NrwlPallette.twilight,
|
'background-color': NrwlPalette.twilight,
|
||||||
'border-color': NrwlPallette.black,
|
'border-color': NrwlPalette.black,
|
||||||
label: 'data(label)',
|
label: 'data(label)',
|
||||||
'text-halign': 'center',
|
'text-halign': 'center',
|
||||||
'text-valign': 'top',
|
'text-valign': 'top',
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
export enum NrwlPallette {
|
export enum NrwlPalette {
|
||||||
blue = '#48c4e5',
|
blue = '#48c4e5',
|
||||||
lightBlue = '#96d8e9',
|
lightBlue = '#96d8e9',
|
||||||
gray = '#333333',
|
gray = '#333333',
|
||||||
Loading…
x
Reference in New Issue
Block a user