question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PanOffSet not working anymore

See original GitHub issue

Describe the bug I design control elements in which the user can move my graph using arrow keys. In an earlier version I could move the graph by adding/subtracting values from the current panOffsetY & panOffsetX. However, after upgrading to v. 6.1.0 setting panOffsetX & Y does not change the position anymore.

To Reproduce Steps to reproduce the behavior:

<ngx-graph #graphWrapper [nodes]="hierarchicalGraph.nodes" [links]="hierarchicalGraph.links" [panOffsetY]="panOffsetY" [panOffsetX]="panOffsetX" [zoomLevel]="zoom" [curve]="curve" [view]="" [layoutSettings]="layoutSettings" [scheme]="colorScheme" > ... </ngx-graph>

@ViewChild('graphWrapper') el: NgxGraphInterface;

move(y, x) { this.panOffsetX = this.el.panOffsetX + x; this.panOffsetY = this.el.panOffsetY + y; }

Expected behavior panOffsetX & panOffsetY should update the position of the graph again.

ngx-graph version v. 6.1.0

Thanks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
assafsuncommented, Jan 4, 2020
1reaction
assafsuncommented, Jan 4, 2020

Hi,

  1. I think that keyboard navigation is something that should come from ngx-graph. I started to work on this and hope to release a PR soon.

  2. Regrading the pan value, is it related to the pan to node functionality?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RadCartesianChart DateTimeCategoricalAxis Performance ...
I have a rad cartesian chart that displays temperature data that are fed at 1s interval. There are several series. After about 5-10min, ......
Read more >
Three.js OrbitControls Orthographic Panning
I've tried .panSpeed, but that doesn't work, and .panSpeed doesn't seem to exist anymore in OrbitControls.js. Is there another function that I ...
Read more >
Release Notes 1.7 - Release Notes - Help pages of MA Lighting ...
Now you are ready to work with the grandMA3 software. It is as easy as that! ... Copying objects from one pool to...
Read more >
64 floor pan offset? | Chevy Nova Forum
My question is I have everything back in place, clamped up and my floorpan looks to have the trans tunnel offset to the...
Read more >
Bosch Releaseletter CPP7.3 FW 7.84.0023
After changing the selectable camera mode via alarm input the switch back to a previous mode doesn't work anymore. • Firmware upload stops...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found