There's a problem when you try to connect a connector to the same item it originates from in a Jacaranda Diagram. This is the sort of thing you might do in a state diagram to indicate a self-transition. The connector ends up pointing more or less at infinity in some seemingly random direction. Oddly if I just grab the item (say a state) out of the Jacaranda diagram and drop it in the world I can create a self-transition just fine. Drag the state back in, edit the self-transition connector a little bit and it's OK.
Ken
On Friday 24 January 2003 11:29 am, Ken Causey wrote:
There's a problem when you try to connect a connector to the same item it originates from in a Jacaranda Diagram. This is the sort of thing you might do in a state diagram to indicate a self-transition. The connector ends up pointing more or less at infinity in some seemingly random direction. Oddly if I just grab the item (say a state) out of the Jacaranda diagram and drop it in the world I can create a self-transition just fine. Drag the state back in, edit the self-transition connector a little bit and it's OK.
Yeah, the container in Jacaranda should probably be a PasteUpMorph instead of just a Morph.
Hi, I am only guessing right now but my guess is that when the connectors is trying to compute the points to make the curly it might use a global point for reference (the mouse event point for example) without a #globalToLocalPoint: translation to obtain a point in the diagram pasteUpMorph coordinate system.
Ned, would you point me where in your NCConnectorMorph code is this curly connectors logic, so I can check it? Thanks
regards, Hernán
-----Mensaje original----- De: Ken Causey [mailto:ken@kencausey.com] Enviado el: Viernes, 24 de Enero de 2003 16:29 Para: Squeak Devel List CC: Hernan Tylim Asunto: [Bug] [Jacaranda] Problems with self-transitions
There's a problem when you try to connect a connector to the same item it originates from in a Jacaranda Diagram. This is the sort of thing you might do in a state diagram to indicate a self-transition. The connector ends up pointing more or less at infinity in some seemingly random direction. Oddly if I just grab the item (say a state) out of the Jacaranda diagram and drop it in the world I can create a self-transition just fine. Drag the state back in, edit the self-transition connector a little bit and it's OK.
Ken
Did you see this message from Ned:?
"Yeah, the container in Jacaranda should probably be a PasteUpMorph instead of just a Morph.
On Saturday 25 January 2003 10:18 am, Ken Causey wrote:
Did you see this message from Ned:?
"Yeah, the container in Jacaranda should probably be a PasteUpMorph instead of just a Morph.
it is, now
Hi, I am subscribed to the list in daily digest mode so I didn't see Ned message after I answered yours first.
Regarding Ned's answer, I'm not sure why a PasteUpMorph isn't the appropiate choice.
Ned, Would you explain me why you think it's not? What I wanted for a container was a morph who would accept others morphs on drag&drop. The PasteUpMorph gridding capabilities added to the decision also. Thanks.
Regards, Hernán
-----Mensaje original----- De: Ken Causey [mailto:ken@kencausey.com] Enviado el: Sábado, 25 de Enero de 2003 15:19 Para: The general-purpose Squeak developers list CC: ned@bike-nomad.com; Hernan Tylim Asunto: RE: [Bug] [Jacaranda] Problems with self-transitions
Did you see this message from Ned:?
"Yeah, the container in Jacaranda should probably be a PasteUpMorph instead of just a Morph.
-- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE"
On Sat, 2003-01-25 at 08:25, Hernan Tylim wrote:
Hi, I am only guessing right now but my guess is that when the
connectors is
trying to compute the points to make the curly it might use a
global point
for reference (the mouse event point for example) without a #globalToLocalPoint: translation to obtain a point in the diagram pasteUpMorph coordinate system.
Ned, would you point me where in your NCConnectorMorph code
is this curly
connectors logic, so I can check it? Thanks
regards, Hernán
-----Mensaje original----- De: Ken Causey [mailto:ken@kencausey.com] Enviado el: Viernes, 24 de Enero de 2003 16:29 Para: Squeak Devel List CC: Hernan Tylim Asunto: [Bug] [Jacaranda] Problems with self-transitions
There's a problem when you try to connect a connector to the same item it originates from in a Jacaranda Diagram. This is the sort of thing you might do in a state diagram to indicate a self-transition. The connector ends up pointing more or less at infinity in some seemingly random direction. Oddly if I just grab the item (say a state) out of the Jacaranda diagram and drop it in the world I can create a self-transition just fine. Drag the state back in, edit the self-transition connector a little bit and it's OK.
Ken
Hi list! Sorry for the big delay on the release of this fix but I didn't have enough time for squeak until the day before yesterday.
What this change set will do is insert the following in: NCConnectorMorph>>fixDegenerateLine
"p1 and p2 are in SourceMorph coordinate system" transform := owner transformFromWorld composedWithLocal: (self sourceMorph transformFromWorld inverseTransformation). p1 := transform globalPointToLocal: p1. p2 := transform globalPointToLocal: p2.
The thing happening was that the inner vertexes of the line were computed on the connected shape coordinate system while the outer vertexes in the world's one.
from the preamble: "This change set will fix the problem in connectors when you connect both ends of a NCConnectorMorph to the same shape and the morph owner isn't the world."
Ned, Should I add this .cs to Jacaranda or you are gonna add it in Connectors?
Thanks.
Regards, Hernán
-----Mensaje original----- De: Ken Causey [mailto:ken@kencausey.com] Enviado el: Viernes, 24 de Enero de 2003 16:29 Para: Squeak Devel List CC: Hernan Tylim Asunto: [Bug] [Jacaranda] Problems with self-transitions
There's a problem when you try to connect a connector to the same item it originates from in a Jacaranda Diagram. This is the sort of thing you might do in a state diagram to indicate a self-transition. The connector ends up pointing more or less at infinity in some seemingly random direction. Oddly if I just grab the item (say a state) out of the Jacaranda diagram and drop it in the world I can create a self-transition just fine. Drag the state back in, edit the self-transition connector a little bit and it's OK.
Ken
On Thursday 06 February 2003 08:42 am, Hernan Tylim wrote:
"This change set will fix the problem in connectors when you connect both ends of a NCConnectorMorph to the same shape and the morph owner isn't the world."
Ned, Should I add this .cs to Jacaranda or you are gonna add it in Connectors?
I'll add it to Connectors.
Thanks,
squeak-dev@lists.squeakfoundation.org