Jump to content
TNG Community
fluffy82

Vertical descendant chart

Recommended Posts

theKiwi
2 hours ago, tngrlkrz said:

Since a couple folks have tested the mod, and there is interest, I have put it on the TNG wiki as Zoom_Charts .  It is only English in this early release.  I hope it is only a temporary mod until Darrin incorporates this ability into TNG.  Again, thanks to Cathrin Jegersberg for making this possible.

I've just installed this on my testing site - it works great, but...

Is it possible to disable the zooming in and out that happens now when I try to scroll the page with my trackpad on my MacBook Pro? That is kind of annoying that instead of the page going up and down the chart zooms out and in.

Roger

Share this post


Link to post
Share on other sites
tngrlkrz

Not sure.  If you noticed, Cathrin's original demo has the same behavior.   Yes, would be nice to not have to go to the scroll bars to move up and down. Sort of a tradeoff even on the laptop. It might be possible to check is 'standard' device' or not to disable that behavior and only have the buttons for zooming.    

Share this post


Link to post
Share on other sites
tngrlkrz
17 hours ago, theKiwi said:

Is it possible to disable the zooming in and out that happens now when I try to scroll the page with my trackpad on my MacBook Pro?

Roger,  in testing, the wheel zoom can be disabled leaving just the buttons, restoring the normal screen scroll...I just have to figure out how to code a conditional based on a parameter, in the java script.   Will do more tests.

 

Share this post


Link to post
Share on other sites
Michel KIRSCH

Hi Ron,

tested your Mod with success. (but %fileoptional:% and $text['tng_reset'] )

Nice Idea from CFJ !

Thanks to all

Michel

Share this post


Link to post
Share on other sites
tngrlkrz
3 hours ago, tngrlkrz said:

Is it possible to disable the zooming in and out that happens now when I try to scroll the page with my trackpad on my MacBook Pro?

Roger, Can't you use the right scroll bars on the Mac Pro?  That's what I use in lieu of the mouse wheel scroll which is replaced by the zoom on the Windows10  laptop.

Share this post


Link to post
Share on other sites
tngrlkrz
7 hours ago, Michel KIRSCH said:

but %fileoptional:% and $text['tng_reset'] )

Thanks Michel,

%fileoptional for languages....and $text['reset'] will be added and fixed in v13.0.0.1a. Still having an issue with translation for verticalchart.php variables due to the code placement.

I am trying to understand when the %fileoptional is needed or not.  Is it recommended for all languages other than English?  

Share this post


Link to post
Share on other sites
Ken Roy

%fileoptional  should be used for all languages other than English and English-UTF8.  There are still users who delete the language folders for the languages they do not use on their site.

 

Share this post


Link to post
Share on other sites
manofmull

Ken

Is it perfectly safe to delete the language folders?

I trust that I would have to keep both English and English-UTF8?

I'm getting close to allowed 1gb content and need to free up space without impacting anything.

Share this post


Link to post
Share on other sites
tngrlkrz
2 hours ago, manofmull said:

Is it perfectly safe to delete the language folders?

Not speaking for Ken, but that's the reason for the %fileoptional:%, introduced because many were deleting and the mods wouldn't install. But now with that  in place, you should be able to delete any languages unused by users, except, yes, you need both English folders.

Share this post


Link to post
Share on other sites
Ken Roy

I am not sure that deleting the language folders for unused languages on your site substantially reduces your space utilization.

Share this post


Link to post
Share on other sites
tngrlkrz

Agree with Ken, while the number of files in the  language folders is relatively high at 540+, the space taken is a mere 9 mb.  A few media items will easily surpass that size.  I should have added that there might be mods you have installed that are not yet using the %fileoptional statement, so they might not install with missing language files.

Share this post


Link to post
Share on other sites
theKiwi
On 10/8/2020 at 4:44 PM, tngrlkrz said:

Roger, Can't you use the right scroll bars on the Mac Pro?  That's what I use in lieu of the mouse wheel scroll which is replaced by the zoom on the Windows10  laptop.

Yeah, but that's not the way I use my computer - I use the trackpad on both the Mac Pro and the MacBook Pro to scroll all the pages I look at - two fingers on the trackpad scrolls almost any possible thing - the exceptions are situations like the Zoom Chart Mod, or some implementations of Google maps where as soon as the page scrolls under the pointer, the page stops and the Google maps scrolls in or out, leading to immediate annoyance.

Roger

Share this post


Link to post
Share on other sites
tngrlkrz
16 minutes ago, theKiwi said:

I use the trackpad on both the Mac Pro and the MacBook Pro to scroll all the pages I look at

Roger, did you try out the cfg file I sent you which disables the wheel zoom?

 

Share this post


Link to post
Share on other sites
theKiwi
7 hours ago, tngrlkrz said:

Roger, did you try out the cfg file I sent you which disables the wheel zoom?

 

Not yet - won't be until later today - I have to run a Zoom online webinar all day for our genealogy society.

Roger

Share this post


Link to post
Share on other sites
Ken Roy

Ron,

The Zoom In does not appear to work correctly with the new Vertical Descendant chart.   I have not tested all charts because I still have a couple published mods that I need to update for TNG v13 as well as clean up several errors on my production site for my cemetery and veteran search pages. 

Share this post


Link to post
Share on other sites
tngrlkrz
3 hours ago, Ken Roy said:

The Zoom In does not appear to work correctly with the new Vertical Descendant chart. 

Yes, I was aware of this when testing with descendvert.php.  Of all the charts, only the Descendant Vertical zooms differently in that the zoom moves the position of the chart to the right or left so that dragging might be necessary to recenter.  Seems to happen when the chart exceeds the width of the screen, which is common when a generation of descendants become horizontal.  The behavior is the same whether using the buttons or the mouse to zoom.   However, I still find it useful for moving about in a larger or smaller sized chart quickly. I presume you were trying the cfg file w/o the wheel zoom? 

The other 2 Descendant charts and 4 Pedigree charts do appear to zoom correctly.  Hopefully, if Darrin integrates zooming, he can improve/fix the Descendant Vertical zoom behavior.  Or, of course, before then, anyone is who knows java script is welcome to take a look at the js script in the mod :) . It derives from this source: https://timmywil.com/panzoom/ .

 

Share this post


Link to post
Share on other sites
Ken Roy

Actually, all I got were 2 lines with no boxes, so I have no clue as to where the boxes got moved.   The same behavior happens on a standard Descendant chart, so the whole thing might be data related.  Too bad Darrin never implemented something like the scrollbox mod which would have kept the chart within the visible screen area and provide scroll bars to navigate. 

I am sure the behavior is also very different if you have a touchscreen computer.  Sorry I do not attempt to zoom using a touchpad, since I have disabled the Apple-type gestures

 

Share this post


Link to post
Share on other sites
tngrlkrz

Thanks for the feedback, Ken.  I just had a test with my wife's iPad 5th gen, and it worked actually quite well, ...exactly like on my laptop.  In fact, it was quite zippy compared to my thinkpad.  I think iPad's are OK.

What device are you using? I don't recall.  I know Roger hasn't tested yet with his Mac Pro.

Ron

Share this post


Link to post
Share on other sites
theKiwi
13 minutes ago, tngrlkrz said:

I know Roger hasn't tested yet with his Mac Pro.

I got a chance to install it, and it works fine with my Mac Pro - now I can scroll the page up and down without zooming the actual chart.

Roger

Share this post


Link to post
Share on other sites
Ken Roy

Ron,

I only tested on my Dell Inspiron laptop and only in a couple of charts.  As I said, the zoom on the Descendant charts might very well be data related and be a challenge to navigate for families with a large number of children.

Share this post


Link to post
Share on other sites
tngrlkrz

Ken,  if it was a very large chart, the lines you saw were likely the connectors between boxes, and the 'container' seems to be left aligned, so the top generations end up being far to the right.   However, I had descendant rows that numbered in the hundreds after a couple generations and didn't experience it to the degree you did. 

I guess 'your mileage may vary' with the panzoom routines based on Roger's better results.  I may put a second version on the wiki with the mouse wheel zoom disabled until I figure out how to make it conditional on an Edit Option for the java script statement.  

Share this post


Link to post
Share on other sites
Ken Roy

Ron,

I installed the mod on Internet accessible sandbox and it appears to behave very differently there, and more in line with what I was expecting.

Will send you the credentials off list so you can take a look.  Not sure why the behavior on my WampServer is different

Share this post


Link to post
Share on other sites
theKiwi
20 minutes ago, Ken Roy said:

Ron,

I installed the mod on Internet accessible sandbox and it appears to behave very differently there, and more in line with what I was expecting.

Will send you the credentials off list so you can take a look.  Not sure why the behavior on my WampServer is different

Ken - the Mod is using some online javascript library(s) so that might explain why it won't work offline.

Roger

Share this post


Link to post
Share on other sites
Ken Roy

I understand Roger,

My WampServer is online. It appears to behave like I would have expected on my hosting service sandbox.  Both of them are running PHP 7.4 (hosting service at 7.4.9 and local WampServer at 7.4.1)  From what I can see it will be a welcomed addition to the TNG charts.  

 

Share this post


Link to post
Share on other sites
tngrlkrz

Have posted Zoom_Charts_Buttons, a variety of the Zoom Charts mod which offers the same zoom buttons but mouse wheel zooming is disabled, retaining scrolling.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×