thechiselgroup / biomixer

BioMixer
http://bio-mixer.appspot.com/
16 stars 13 forks source link

Arcs Shifting and Getting Hidden #469

Closed everbeek closed 9 years ago

everbeek commented 9 years ago

As discovered in #447, property relation arcs change their anchor point on nodes depending on which endpoint has most recently been dragged by the user, or if an endpoint's node menu has opened. See ligamentum arteriosum, and the expanded nodes ductus arteriosus and recurrent laryngeal nerve in this graph:

http://127.0.0.1:8888/conceptPathToRoot.html?gwt.codesvr=127.0.0.1:9997&initial_vis=term_neighborhood&ontology_acronym=UBERON&full_concept_id=http%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FUBERON_0006591&restURLPrefix=data.bioontology.org

everbeek commented 9 years ago

Actually, the easiest is observing the Artery concept in that link, and simply clicking it to see how the arc moves.

everbeek commented 9 years ago

Oh what a bug! I have a boolean optional flag. If the function is passed to a D3 or Jquery each() call that provides a number in that position, then the Typescript's generated Javascript will have a value that is not undefined, and it will leave it untouched, and numeric in my case. This was short circuiting my logic. I wonder if this is a "bug" in typescript...