Skip to content

Commit

Permalink
Merge pull request #3 from brianpetro/main
Browse files Browse the repository at this point in the history
minor: build script + mute logs
  • Loading branch information
Mossy1022 authored Jun 14, 2024
2 parents 35744af + 3fc78c3 commit 612a83c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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: [
Expand Down
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 612a83c

Please sign in to comment.