remove unused .attributeBoxText and oldAttributeBoxTextColor

This commit is contained in:
Ashley Engelund (weedySeaDragon @ github)
2022-09-22 12:27:13 -07:00
parent 84dfc8ee4b
commit 777f888892
7 changed files with 4 additions and 23 deletions

View File

@@ -14,11 +14,7 @@ const getStyles = (options) =>
fill: ${options.attributeBackgroundColorEven}; fill: ${options.attributeBackgroundColorEven};
stroke: ${options.nodeBorder}; stroke: ${options.nodeBorder};
} }
.attributeBoxText {
color: ${options.attributeTextColor};
}
.relationshipLabelBox { .relationshipLabelBox {
fill: ${options.tertiaryColor}; fill: ${options.tertiaryColor};
opacity: 0.7; opacity: 0.7;
@@ -28,9 +24,9 @@ const getStyles = (options) =>
} }
} }
.relationshipLine { .relationshipLine {
stroke: ${options.lineColor}; stroke: ${options.lineColor};
} }
`; `;
export default getStyles; export default getStyles;

View File

@@ -5,4 +5,3 @@
*/ */
export const oldAttributeBackgroundColorOdd = '#ffffff'; export const oldAttributeBackgroundColorOdd = '#ffffff';
export const oldAttributeBackgroundColorEven = '#f2f2f2'; export const oldAttributeBackgroundColorEven = '#f2f2f2';
export const oldAttributeBoxTextColor = '#ff0000';

View File

@@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
import { import {
oldAttributeBackgroundColorEven, oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues'; } from './erDiagram-oldHardcodedValues';
class Theme { class Theme {
@@ -229,7 +228,6 @@ class Theme {
/* -------------------------------------------------- */ /* -------------------------------------------------- */
/* EntityRelationship diagrams */ /* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd; this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
this.attributeBackgroundColorEven = this.attributeBackgroundColorEven =

View File

@@ -1,10 +1,5 @@
import { invert, lighten, darken, rgba, adjust } from 'khroma'; import { invert, lighten, darken, rgba, adjust } from 'khroma';
import { mkBorder } from './theme-helpers'; import { mkBorder } from './theme-helpers';
import {
oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues';
class Theme { class Theme {
constructor() { constructor() {
@@ -228,7 +223,6 @@ class Theme {
/* -------------------------------------------------- */ /* -------------------------------------------------- */
/* EntityRelationship diagrams */ /* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || lighten(this.background, 12); this.attributeBackgroundColorOdd || lighten(this.background, 12);
this.attributeBackgroundColorEven = this.attributeBackgroundColorEven =

View File

@@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
import { import {
oldAttributeBackgroundColorEven, oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues'; } from './erDiagram-oldHardcodedValues';
class Theme { class Theme {
@@ -266,7 +265,6 @@ class Theme {
/* -------------------------------------------------- */ /* -------------------------------------------------- */
/* EntityRelationship diagrams */ /* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd; this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
this.attributeBackgroundColorEven = this.attributeBackgroundColorEven =

View File

@@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
import { import {
oldAttributeBackgroundColorEven, oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues'; } from './erDiagram-oldHardcodedValues';
class Theme { class Theme {
@@ -229,7 +228,6 @@ class Theme {
/* -------------------------------------------------- */ /* -------------------------------------------------- */
/* EntityRelationship diagrams */ /* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd; this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
this.attributeBackgroundColorEven = this.attributeBackgroundColorEven =

View File

@@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
import { import {
oldAttributeBackgroundColorEven, oldAttributeBackgroundColorEven,
oldAttributeBackgroundColorOdd, oldAttributeBackgroundColorOdd,
oldAttributeBoxTextColor,
} from './erDiagram-oldHardcodedValues'; } from './erDiagram-oldHardcodedValues';
// const Color = require ( 'khroma/dist/color' ).default // const Color = require ( 'khroma/dist/color' ).default
@@ -270,7 +269,6 @@ class Theme {
/* -------------------------------------------------- */ /* -------------------------------------------------- */
/* EntityRelationship diagrams */ /* EntityRelationship diagrams */
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd =
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd; this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
this.attributeBackgroundColorEven = this.attributeBackgroundColorEven =