mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-26 18:59:42 +02:00
remove unused .attributeBoxText and oldAttributeBoxTextColor
This commit is contained in:

parent
84dfc8ee4b
commit
777f888892
@@ -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;
|
||||||
|
@@ -5,4 +5,3 @@
|
|||||||
*/
|
*/
|
||||||
export const oldAttributeBackgroundColorOdd = '#ffffff';
|
export const oldAttributeBackgroundColorOdd = '#ffffff';
|
||||||
export const oldAttributeBackgroundColorEven = '#f2f2f2';
|
export const oldAttributeBackgroundColorEven = '#f2f2f2';
|
||||||
export const oldAttributeBoxTextColor = '#ff0000';
|
|
||||||
|
@@ -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 =
|
||||||
|
@@ -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 =
|
||||||
|
@@ -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 =
|
||||||
|
@@ -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 =
|
||||||
|
@@ -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 =
|
||||||
|
Reference in New Issue
Block a user