phenotips / open-pedigree

A free and open-source pedigree tool by PhenoTips®
GNU Lesser General Public License v2.1
46 stars 25 forks source link

add node without parent #73

Open mohadesegharakhanlo opened 1 month ago

mohadesegharakhanlo commented 1 month ago

hi, i want add a person without parent in template.js file , how do it?

dconlan commented 1 month ago

The first entry in the file (proband) is for a person without parents.

What are you trying to accomplish? The template.js file is used for the starting templates when a new diagram is started.

mohadesegharakhanlo commented 1 month ago

Thank you for the response . I want to create a shape like this picture lt shows biological parents are unknown. I want to add a JSON to template.js file which can make this picture but I couldn't create correct JSON for this

Can you help me with this?

On Sun, 18 Aug 2024, 01:47 David Conlan, @.***> wrote:

The first entry in the file (proband) is for a person without parents.

What are you trying to accomplish? The template.js file is used for the starting templates when a new diagram is started.

— Reply to this email directly, view it on GitHub https://github.com/phenotips/open-pedigree/issues/73#issuecomment-2295000922, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLEMR6VOPJXTHD3AXZ5AELZR7DXDAVCNFSM6AAAAABMVEWCPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGAYDAOJSGI . You are receiving this because you authored the thread.Message ID: @.***>

dconlan commented 1 month ago

I can't see the picture.

If you just want it in the template popup, you should be able to just change the associated svg in the templates.js file. If you want to change the representation in the actual editor then you probably want to look at personVisuals.js

mohadesegharakhanlo commented 1 month ago

It is important that you can see the image . If it is possible for you we talk on a platform like WhatsApp or Telegram so that I can send image to you Thank you

On Tue, 20 Aug 2024, 09:23 mohadese gharakhanlo, < @.***> wrote:

On Mon, 19 Aug 2024, 01:33 David Conlan, @.***> wrote:

I can't see the picture.

If you just want it in the template popup, you should be able to just change the associated svg in the templates.js file. If you want to change the representation in the actual editor then you probably want to look at personVisuals.js

— Reply to this email directly, view it on GitHub https://github.com/phenotips/open-pedigree/issues/73#issuecomment-2295411583, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLEMR22E6QMGLZCT2CHPVDZSEK2ZAVCNFSM6AAAAABMVEWCPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGQYTCNJYGM . You are receiving this because you authored the thread.Message ID: @.***>

dconlan commented 1 month ago

I have a keybase account; info here https://gist.github.com/dconlan/d38fe8b1bf9051fe2185a3081f01d97e

otherwise just email me at david.conlan+github@gmail.com