mirror of
https://github.com/mossy1022/Smart-Connections-Visualizer.git
synced 2026-07-22 10:20:27 +00:00
Merge branch 'main' of https://github.com/Mossy1022/Smart-Connections-Visualizer
This commit is contained in:
commit
acbdc6c42a
2 changed files with 3 additions and 5 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
4
main.ts
4
main.ts
|
|
@ -1199,9 +1199,7 @@ class ScGraphItemView extends ItemView {
|
|||
}
|
||||
|
||||
simulationTickHandler() {
|
||||
this.nodeSelection.attr('cx', (d: any) => {
|
||||
return d.x;
|
||||
}).attr('cy', (d: any) => d.y).style('cursor', 'pointer');
|
||||
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')
|
||||
.attr('x2', (d: any) => d.target.x || 0).attr('y2', (d: any) => d.target.y || 0);
|
||||
this.linkLabelSelection.attr('x', (d: any) => ((d.source.x + d.target.x) / 2))
|
||||
|
|
|
|||
Loading…
Reference in a new issue