Skip to content

Commit

Permalink
dev: update cetz-editor logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Nov 2, 2023
1 parent f805976 commit e68268a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/cetz-editor/src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class PreviewState {

let isMain = () => false;
if (this.previewingDef === '' || this.previewingDef == 'main') {
console.log('previewing main', $typst, this);
// console.log('previewing main', $typst, this);
content = await this.drawInteractive();
isMain = () => true;
} else {
Expand Down Expand Up @@ -381,7 +381,7 @@ import cetz.draw: *
${instances.join(INEW_LINE)}
}, length: 1pt)
`;
console.log({ mainContent });
// console.log({ mainContent });

switch (kind) {
case 'svg':
Expand Down Expand Up @@ -523,12 +523,12 @@ import cetz.draw: *
sigs.push(def.sig);
}
});
console.log(sigs);
// console.log(sigs);
return sigs;
}

flushDefinitions(editor: EditorState) {
console.log('flushDefinitions', editor);
// console.log('flushDefinitions', editor);
if (editor.definitions) {
this.definitions = new Map();
for (const def of editor.definitions) {
Expand Down

0 comments on commit e68268a

Please sign in to comment.