dovy / Pedigree-Viewer

Real-Time Collaboration is open sourcing the effort they made to create a fully html5 pedigree viewer. This works on most modern browsers and features panning, zooming, and view modifications.
GNU Affero General Public License v3.0
23 stars 11 forks source link

Is it possible to split the marriages up into two different boxes? #15

Open runningrandall opened 10 years ago

stuporglue commented 10 years ago

Hi runningrandall,

It's not possible yet. We haven't yet figured out how we want to deal with multiple spouses -- is that what you mean?

You can see a demo here where a list of names lets you access all the spouses, but there's no good way to see a list of someone's spouses yet or to cleanly switch between them.

It's on my eventual todo list, but in the mean time pull requests are welcome!

Michael Moore

runningrandall commented 10 years ago

Hi Michael,

Thanks for the quick response!

Not even multiple spouses...more like forcing each individual into their own box rather than a shared box between couples. Something similar to this:

showreportimage

stuporglue commented 10 years ago

Each ancestor is in its own div already, their spouse just looks like they're combined.

Are you wanting to not display the focus person spouse at all?

dovy commented 10 years ago

He wants to separate out the boxes to show a person, not a couple per node.

stuporglue commented 10 years ago

So the spouses are not shown at all then?

dovy commented 10 years ago

yea, he wants a more granular view. Each person is it's down box and you're only showing the direct ancestors of each person.

I don't really see the point of the view, but that's what he's asking for.

stuporglue commented 10 years ago

@runningrandall

In the input JSON doesn't list a spouse I think it should make boxes as you're requesting:

Eg. if this file had

"husb": [], "wife":[]

for each ancestor, then I think it should show the tree you're describing.

runningrandall commented 10 years ago

I was able to just use CSS to style it that way. How can I create the lines to connect the boxes? Here's what I've got:

capture

stuporglue commented 10 years ago

I'm afraid you're going to need to dig into the source code for that one. I don't recall of the top of my head and I won't have time to dig back into the code until at least January.