diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 2471b0e..1e43429 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -20,7 +20,7 @@ const copy_to_plugins = { name: 'copy_to_plugins', setup(build) { build.onEnd(() => { - const plugin_path = path.join(process.env.OBSIDIAN_PLUGINS_PATH, "smart-connections-graph-view"); + const plugin_path = path.join(process.env.OBSIDIAN_PLUGINS_PATH, "smart-connections-visualizer"); if (!fs.existsSync(plugin_path)) { fs.mkdirSync(plugin_path); @@ -61,7 +61,7 @@ const context = await esbuild.context({ format: "cjs", target: "es2018", logLevel: "info", - sourcemap: prod ? false : "inline", + sourcemap: "inline", treeShaking: true, outfile: "main.js", plugins: [ diff --git a/main.ts b/main.ts index d07ee54..d837fec 100644 --- a/main.ts +++ b/main.ts @@ -1171,9 +1171,9 @@ class ScGraphItemView extends ItemView { } simulationTickHandler() { - console.log("Checking node positions during tick:"); + // console.log("Checking node positions during tick:"); this.linkLabelSelection.each((d: any) => { - console.log(`Source: (${d.source.x}, ${d.source.y}), Target: (${d.target.x}, ${d.target.y} ${d.source})`); + // console.log(`Source: (${d.source.x}, ${d.source.y}), Target: (${d.target.x}, ${d.target.y} ${d.source})`); }); this.nodeSelection.attr('cx', (d: any) => d.x).attr('cy', (d: any) => d.y).style('cursor', 'pointer'); this.linkSelection.attr('x1', (d: any) => d.source.x || 0).attr('y1', (d: any) => d.source.y || 0).style('cursor', 'pointer')