Skip to content

Commit 7a95194

Browse files
committed
Remove logs
1 parent c3038ba commit 7a95194

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,6 @@ function addCommands(app: JupyterFrontEnd, tracker: IDrawioTracker): void {
12531253
tracker.currentWidget === app.shell.currentWidget
12541254
) {
12551255
const wdg = app.shell.currentWidget as DrawIODocumentWidget;
1256-
console.debug('fill Color:', wdg.getAction('fillColor').enabled);
12571256
return wdg.getAction('fillColor').enabled;
12581257
} else {
12591258
return false;

src/model.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export class DrawIODocumentModel implements DocumentRegistry.IModel {
8787
}
8888

8989
toString(): string {
90-
console.debug('toString');
9190
let source = '<mxGraphModel';
9291
this.sharedModel.attrs.forEach((value, key) => {
9392
source += ` ${key}="${value}"`;
@@ -104,7 +103,6 @@ export class DrawIODocumentModel implements DocumentRegistry.IModel {
104103
}
105104

106105
fromString(source: string): void {
107-
console.debug('fromString');
108106
const patternGraph = new RegExp(/<mxGraphModel(?:[^<]?)*>/g);
109107
const graph = source.match(patternGraph);
110108

@@ -176,7 +174,6 @@ export class DrawIODocumentModel implements DocumentRegistry.IModel {
176174
sender: YDrawIO,
177175
changes: IDrawIOChange
178176
): void => {
179-
console.debug('_onSharedModelChanged');
180177
if (changes.stateChange && changes.stateChange.has('dirty')) {
181178
const dirty = changes.stateChange.get('dirty');
182179
this._stateChanged.emit({

src/panel.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export class DrawIOWidget extends Widget {
4848
super();
4949
this._context = context;
5050
this._context.ready.then(value => {
51-
console.debug('DrawIOWidget context ready');
5251
Private.ensureMx().then(mx => {
5352
this._loadDrawIO(mx);
5453
this._context.model.sharedModelChanged.connect(this._onContentChanged);
@@ -368,7 +367,6 @@ export class DrawIOWidget extends Widget {
368367

369368
private _onReady(): void {
370369
this._context.model.mutex(() => {
371-
console.debug('_onReady');
372370
const data = this._context.model.toString();
373371
const xml = this._mx.mxUtils.parseXml(data);
374372
this._editor.editor.setGraphXml(xml.documentElement);
@@ -381,14 +379,12 @@ export class DrawIOWidget extends Widget {
381379
sender: DrawIODocumentModel,
382380
changes: IDrawIOChange
383381
): void => {
384-
console.debug('_onContentChanged');
385382
if (this._editor === undefined) {
386383
return;
387384
}
388385

389386
if (changes.cellChange) {
390387
this._context.model.mutex(() => {
391-
console.debug('Changing graph');
392388
const root = new this._mx.mxCell();
393389
root.insert(new this._mx.mxCell());
394390
this._editor.editor.graph.model.setRoot(root);
@@ -412,13 +408,11 @@ export class DrawIOWidget extends Widget {
412408
};
413409

414410
private _onDrawIOModelChanged = (sender: any, evt: any) => {
415-
console.debug('_onDrawIOModelChanged');
416411
const changes = evt.getProperty('edit').changes;
417412
const encoder = new this._mx.mxCodec();
418413

419414
this._context.model.mutex(() => {
420415
this._context.model.transact(() => {
421-
console.debug('Updating model');
422416
for (let i = 0; i < changes.length; i++) {
423417
const change = changes[i];
424418

src/widget.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export class DrawIODocumentWidget extends DocumentWidget<
8080
this._menubar.addMenu(this._menuInsert, { rank: 2 });
8181

8282
this.context.ready.then(async value => {
83-
console.debug('Context ready');
8483
await this.content.ready.promise;
8584

8685
this._addToolbarItems();

0 commit comments

Comments
 (0)