@@ -66,7 +66,7 @@ export class Flowchart {
66
66
const funcName = 'refresh' ;
67
67
GFLog . debug ( `${ this . constructor . name } .${ funcName } () : ${ this . uid } ` ) ;
68
68
this . xgraph ?. update ( ) ;
69
- this . setBackgroundColor ( this . data . bgColor ) ;
69
+ this . _setBackgroundColor ( this . data . bgColor ) ;
70
70
this . events . emit ( 'flowchart_updated' , this ) ;
71
71
}
72
72
@@ -145,7 +145,8 @@ export class Flowchart {
145
145
//BACKGROUND
146
146
set background ( value : string ) {
147
147
if ( value !== this . data . bgColor ) {
148
- this . data . bgColor = value ;
148
+ // this.data.bgColor = value;
149
+ this . _setBackgroundColor ( value ) ;
149
150
}
150
151
}
151
152
@@ -497,7 +498,7 @@ export class Flowchart {
497
498
* @returns {this }
498
499
* @memberof Flowchart
499
500
*/
500
- setBackgroundColor ( bgColor : string | null ) : this {
501
+ private _setBackgroundColor ( bgColor : string | null ) : this {
501
502
this . data . bgColor = bgColor ;
502
503
if ( bgColor ) {
503
504
this . container . style . backgroundColor = bgColor ;
@@ -643,15 +644,15 @@ export class Flowchart {
643
644
* @returns {this }
644
645
* @memberof Flowchart
645
646
*/
646
- setGraphContent ( content : string ) : this {
647
- if ( this . data . type === 'xml' ) {
648
- this . data . xml = content ;
649
- }
650
- if ( this . data . type === 'csv' ) {
651
- this . data . csv = content ;
652
- }
653
- return this ;
654
- }
647
+ // setGraphContent(content: string): this {
648
+ // if (this.data.type === 'xml') {
649
+ // this.data.xml = content;
650
+ // }
651
+ // if (this.data.type === 'csv') {
652
+ // this.data.csv = content;
653
+ // }
654
+ // return this;
655
+ // }
655
656
656
657
/**
657
658
* Load source from url
0 commit comments