|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 52 minutes ago
Posts: 3,424,
Visits: 26,476
|
The attached replacement template file genomap.svg corrects some errors in the Beta15 version. i.e.- Internal hyperlinks do not work, i.e. they redisplay the same map instead of the target map.
- All Label text appears in the 1st label only.
This code also adds the following improvements: - Arrow objects now have arrowheads.
- All lines are drawn with rounded ends and joins and so look more like the corresponding GenoPro diagram.
- Genomaps are now initially scaled and placed such that the whole genomap is visible, provided that the 'boundary_rect' property is present. If it is not then a warning appears in the message log. To correct this, simply visit each such GenoMap and make a dummy update, e.g. select an object, delete it then undo the deletion.
- Some redundant code is removed.
N.B. the attachment is named genomap.txt. After it is downlaoded it must be renamed to genomap.svg. Unfortunately this forum does not permit attachments with file extension svg. I am hoping to introduce scroll bars and zoom in/out buttons in a later version to make navigation more intuitive. UPdate 14/11/2005 new version of attachment genomap.txt
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Edited: Monday, November 14, 2005 by
Ron
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, April 29, 2025
Posts: 4,886,
Visits: 22,780
|
Great work Ron. I have re-packaged the file InstallGenoProBeta.exe to include the new stuff. All you need is to re-download the file http://www.genopro.com/beta/InstallGenoProBeta.exe and you will get the new SVG template.Ron (11/9/2005) Genomaps are now initially scaled and placed such that the whole genomap is visible, provided that the 'boundary_rect' property is present. If it is not then a warning appears in the message log. To correct this, simply visit each such GenoMap and make a dummy update, e.g. select an object, delete it then undo the deletion.The earlier betas were not saving the boundary rectangle in the .gno file, so you need to modify each GenoMap at least once to have a valid boundary rectangle.
|
|
|
Gamma Customers Important Contributors FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Wednesday, April 23, 2025
Posts: 257,
Visits: 2,861
|
In line with my previous post concerning zooming on the particular person in SVG might be this one too.So far hyperlink only switches the view among genomaps if persons are in different genomaps, and then only to default genomap view... so if there is internal hyperlink (within genomap) view just jumps to default view of particular genomap... ...and I don't know why (most probably SVG issue) but lines are a bit smudged if not zoomed in really close...
- "εν οιδα οτι ουδεν οιδα" (Σωκρατησ) - "The only thing that I know is that I don't know anything" (Socrates)
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Friday, October 18, 2013
Posts: 142,
Visits: 3,822
|
GenoProSupport (11/9/2005)
Great work Ron. I have re-packaged the file InstallGenoProBeta.exe to include the new stuff. All you need is to re-download the file http://www.genopro.com/beta/InstallGenoProBeta.exe and you will get the new SVG template. Ron (11/9/2005) Genomaps are now initially scaled and placed such that the whole genomap is visible, provided that the 'boundary_rect' property is present. If it is not then a warning appears in the message log. To correct this, simply visit each such GenoMap and make a dummy update, e.g. select an object, delete it then undo the deletion.The earlier betas were not saving the boundary rectangle in the .gno file, so you need to modify each GenoMap at least once to have a valid boundary rectangle. Dan, this is not good for me. The previous version enabled me to see most of my tree at a time, yet enable me to zoom in enough to be able to read the individuals. Now, with the size of my tree so large, when I zoom in to the maximum allowed, I cannot read the names of the individuals. Can the number of zooms be increased? Or perhaps, is there a way to start from a size that will enable under maximum zoom to be able to read the names? If not, how can I go back to the previous version of the SVG?
Danny
|
|
|
Administrators Moderators Customers Gamma FamilyTrees.GenoPro.com Translator GenoPro version: 3.1.0.1
Last Login: Tuesday, April 29, 2025
Posts: 4,886,
Visits: 22,780
|
I think a zoom at 100% would be best. This way, the user could zoom-in and zoom-out if desired.
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 52 minutes ago
Posts: 3,424,
Visits: 26,476
|
Yes I see your problem with a large tree Danny. I am still looking for a way to place the selected individual/family in the centre of the map area. Meanwhile to revert to previous unscaled display change genomap.svg as follows: replace the following lines ' if GenoMap bounding box present, transform map to fit window If g.boundary_rect <> "" Then ' scale & transform to fit GenoMap into frame. coords=split(replace(replace(g.boundary_rect,"(",""),")",""),",") strWidth=coords(2) - coords(0) strHeight=- coords(3) + coords(1) If (1000 / strWidth) < (400 / strHeight) Then strScale = 1000 / strWidth Else strScale = 400 / strHeight End If Report.WriteFormattedLn "<g transform=""translate({0},{1})scale({2})"">", - coords(0) * strScale, coords(1) * strScale, strScale Else ' assume GenoMap is 'balanced at the origin' and display without scaling. Report.WriteLn "<g transform=""translate(500, 320)"">" Report.LogError "Warning: GenoMap '" & g.name & "' has no boundary rectangle property, perform a dummy update on this GenoMap to correct this." End Ifwith Report.WriteLn "<g transform=""translate(500, 320)"">" |
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Friday, October 18, 2013
Posts: 142,
Visits: 3,822
|
Thank you Ron. I will use the code you just included. However, I was hoping for a more global solution that will be appropriate for everyone. Thanks again for the quick reply.
Danny
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 52 minutes ago
Posts: 3,424,
Visits: 26,476
|
I have now made a few more improvements such as correct rendering of the new relationship types and using the same colours for lines and fills as in GenoPro itself. I have also added a Config.xml parameter to allow either initial 'zoom to extent' to show the whole GenoMap or no initial zoom centred around the orgin for a non-zoomed, i.e. 100%, view. Modified Config.xml and genomap.txt files are attached. N.B. You will need to rename genomap.txt to genomap.svg after downloading. Update: 14/11/2005 new version of attachment genomap.txt
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Edited: Monday, November 14, 2005 by
Ron
|
|
|
Customers Important Contributors GenoPro version: 3.1.0.1
Last Login: Tuesday, April 29, 2025
Posts: 443,
Visits: 7,632
|
Ron (11/11/2005) I have now made a few more improvements such as correct rendering of the new relationship types and using the same colours for lines and fills as in GenoPro itself.Ron, the full colour version is great. However, the Report is still not picking up a divorce on the last marriage for an individual with multiple marriages (although it says they had no children).
I have also added a Config.xml parameter to allow either initial 'zoom to extent' to show the whole GenoMap or no initial zoom centred around the orgin for a non-zoomed, i.e. 100%, view. How do you access this - do you have to edit the config.xml file?
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 52 minutes ago
Posts: 3,424,
Visits: 26,476
|
I have also added a Config.xml parameter to allow either initial 'zoom to extent' to show the whole GenoMap or no initial zoom centred around the orgin for a non-zoomed, i.e. 100%, view. How do you access this - do you have to edit the config.xml file? Yes, if you download my Config.xml file from above post you will see an additional line Just change "Y" to "N" to have no initial zoom and centred around the origin.However, the Report is still not picking up a divorce on the last marriage for an individual with multiple marriages (although it says they had no children). This thread deals with just the SVG generation. I have not delved into the non-SVG issues in Beta 15 as yet. Maybe Dan has?
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|