mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 05:49:43 +02:00
Removed illegal logging
This commit is contained in:
@@ -220,7 +220,7 @@ const render = function(id, _txt, cb, container) {
|
|||||||
// console.warn('Render fetching config');
|
// console.warn('Render fetching config');
|
||||||
|
|
||||||
const cnf = configApi.getConfig();
|
const cnf = configApi.getConfig();
|
||||||
console.warn('Render with config after adding new directives', cnf.fontFamily);
|
// console.log('Render with config after adding new directives', cnf.fontFamily);
|
||||||
// Check the maximum allowed text size
|
// Check the maximum allowed text size
|
||||||
if (_txt.length > cnf.maxTextSize) {
|
if (_txt.length > cnf.maxTextSize) {
|
||||||
txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';
|
txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';
|
||||||
@@ -552,7 +552,7 @@ function reinitialize() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function initialize(options) {
|
function initialize(options) {
|
||||||
console.warn(`mermaidAPI.initialize: v${pkg.version} `, options);
|
// console.warn(`mermaidAPI.initialize: v${pkg.version} `, options);
|
||||||
|
|
||||||
// Handle legacy location of font-family configuration
|
// Handle legacy location of font-family configuration
|
||||||
// console.warn('Conf - ', options.themeVariables.fontFamily);
|
// console.warn('Conf - ', options.themeVariables.fontFamily);
|
||||||
|
@@ -29,7 +29,7 @@ const themes = {
|
|||||||
export const calcThemeVariables = (theme, userOverRides) => theme.calcColors(userOverRides);
|
export const calcThemeVariables = (theme, userOverRides) => theme.calcColors(userOverRides);
|
||||||
|
|
||||||
const getStyles = (type, userStyles, options) => {
|
const getStyles = (type, userStyles, options) => {
|
||||||
console.warn('options in styles: ', options);
|
// console.log('options in styles: ', options);
|
||||||
return ` {
|
return ` {
|
||||||
font-family: ${options.fontFamily};
|
font-family: ${options.fontFamily};
|
||||||
font-size: ${options.fontSize};
|
font-size: ${options.fontSize};
|
||||||
|
@@ -13,7 +13,7 @@ class Theme {
|
|||||||
|
|
||||||
// this.secondaryColor = adjust(this.primaryColor, { h: 120 });
|
// this.secondaryColor = adjust(this.primaryColor, { h: 120 });
|
||||||
this.tertiaryColor = adjust(this.primaryColor, { h: -160 });
|
this.tertiaryColor = adjust(this.primaryColor, { h: -160 });
|
||||||
console.warn('primary color', this.primaryColor, 'tertiary - color', this.tertiaryColor);
|
// console.log('primary color', this.primaryColor, 'tertiary - color', this.tertiaryColor);
|
||||||
this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode);
|
this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode);
|
||||||
this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode);
|
this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode);
|
||||||
this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode);
|
this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode);
|
||||||
|
Reference in New Issue
Block a user