@@ -6,7 +6,7 @@ import { GFEvents } from 'flowcharting_base';
66import { GFDrawio } from 'drawio_base' ;
77
88// Debug
9- const DEBUG = true ;
9+ const DEBUG = false ;
1010const _log = ( ...args : any ) => {
1111 DEBUG && console . log ( ...args ) ;
1212} ;
@@ -140,7 +140,7 @@ export class Flowchart {
140140 }
141141 this . data . csv = value ;
142142 }
143- this . change ( ) ;
143+ this . change ( ) ;
144144 }
145145 get source ( ) {
146146 return this . data . type === 'csv' ? this . data . csv : this . data . xml ;
@@ -152,7 +152,7 @@ export class Flowchart {
152152 return ;
153153 }
154154 this . data . download = value ;
155- this . change ( ) ;
155+ this . change ( ) ;
156156 }
157157 get download ( ) {
158158 return this . data . download ;
@@ -371,8 +371,8 @@ export class Flowchart {
371371 }
372372
373373 init_stateHandler ( ) : this {
374- if ( this . stateHandler ) {
375- this . stateHandler . free ( )
374+ if ( this . stateHandler ) {
375+ this . stateHandler . free ( ) ;
376376 }
377377 if ( this . xgraph ) {
378378 this . stateHandler = new StateHandler ( this . $gf , this . xgraph ) ;
@@ -701,16 +701,16 @@ export class Flowchart {
701701 }
702702 }
703703 } else {
704- if ( ! this . source || this . source . length === 0 ) {
704+ if ( ! this . source || this . source . length === 0 ) {
705705 content = await GFDrawio . getTemplate ( this . type ) ;
706- if ( this . type === 'xml' ) {
706+ if ( this . type === 'xml' ) {
707707 this . data . xml = content ;
708- } ;
709- if ( this . type === 'csv' ) {
708+ }
709+ if ( this . type === 'csv' ) {
710710 this . data . csv = content ;
711- } ;
711+ }
712712 }
713- if ( GFDrawio . isEncoded ( content ) ) {
713+ if ( GFDrawio . isEncoded ( content ) ) {
714714 content = GFDrawio . decode ( content ) ;
715715 }
716716 content = $GF . resolveVars ( this . source ) ;
@@ -763,7 +763,6 @@ export class Flowchart {
763763 return this ;
764764 }
765765
766-
767766 minify ( ) {
768767 this . data . xml = $GF . utils . minify ( this . data . xml ) ;
769768 }
0 commit comments