Skip to content

Commit

Permalink
cleanup(misc): refactor file to fix typo
Browse files Browse the repository at this point in the history
pallette.ts -> palette.ts
NrwlPallette -> NrwlPalette
  • Loading branch information
vivekmore authored and vsavkin committed Mar 15, 2021
1 parent af27f97 commit caf5531
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions apps/dep-graph-client/src/app/styles-graph/edges.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { Stylesheet } from 'cytoscape';
import { NrwlPallette } from './pallette';
import { NrwlPalette } from './palette';

const allEdges: Stylesheet = {
selector: 'edge',
style: {
width: '1px',
'line-color': NrwlPallette.black,
'line-color': NrwlPalette.black,
'curve-style': 'straight',
'target-arrow-shape': 'triangle',
'target-arrow-fill': 'filled',
'target-arrow-color': NrwlPallette.black,
'target-arrow-color': NrwlPalette.black,
},
};

const affectedEdges: Stylesheet = {
selector: 'edge.affected',
style: {
'line-color': NrwlPallette.red,
'target-arrow-color': NrwlPallette.red,
'line-color': NrwlPalette.red,
'target-arrow-color': NrwlPalette.red,
},
};

Expand Down
16 changes: 8 additions & 8 deletions apps/dep-graph-client/src/app/styles-graph/nodes.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { Stylesheet } from 'cytoscape';
import { FONTS } from './fonts';
import { NrwlPallette } from './pallette';
import { NrwlPalette } from './palette';

const allNodes: Stylesheet = {
selector: 'node',
style: {
'font-size': '32px',
'font-family': FONTS,
'border-style': 'solid',
'border-color': NrwlPallette.black,
'border-color': NrwlPalette.black,
'border-width': '1px',
'text-halign': 'center',
'text-valign': 'center',
'padding-left': '16px',
label: 'data(id)',
width: 'label',
backgroundColor: NrwlPallette.white,
backgroundColor: NrwlPalette.white,
},
};

Expand Down Expand Up @@ -43,24 +43,24 @@ const e2eNodes: Stylesheet = {
const focusedNodes: Stylesheet = {
selector: 'node.focused',
style: {
color: NrwlPallette.twilight,
'border-color': NrwlPallette.twilight,
color: NrwlPalette.twilight,
'border-color': NrwlPalette.twilight,
},
};

const affectedNodes: Stylesheet = {
selector: 'node.affected',
style: {
'border-color': NrwlPallette.red,
'border-color': NrwlPalette.red,
},
};

const parentNodes: Stylesheet = {
selector: ':parent',
style: {
'background-opacity': 0.5,
'background-color': NrwlPallette.twilight,
'border-color': NrwlPallette.black,
'background-color': NrwlPalette.twilight,
'border-color': NrwlPalette.black,
label: 'data(label)',
'text-halign': 'center',
'text-valign': 'top',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum NrwlPallette {
export enum NrwlPalette {
blue = '#48c4e5',
lightBlue = '#96d8e9',
gray = '#333333',
Expand Down

0 comments on commit caf5531

Please sign in to comment.