Re: [Pharo-users] From Roassal RTView to html
The link clicking works (takes me to a different chrome tab link), but when I go back to the model page, the mouse movements cause the clicked element to move, same like before. On Feb 6, 2018 8:50 AM, "Alexandre Bergel" <alexandre.bergel@me.com> wrote: Can you try to update Roassal via the world menu: Cheers, Alexandre On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <lispercat@gmail.com> wrote: Updated roassal via: Gofer new smalltalkhubUser: 'ObjectProfile' project: 'Roassal'; package: 'ConfigurationOfRoassal'; load. (Smalltalk at: #ConfigurationOfRoassal) load The problems is still the same: added ".html" suffix. On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <alexandre.bergel@me.com
wrote: Andrei, let us know how it goes
Cheers Alexandre Envoyé de mon iPad Le 5 févr. 2018 à 16:51, milton mamani <akevalion@gmail.com> a écrit : Your need to load the last version of roassal, I change it that 2018-02-05 16:44 GMT-03:00 Andrei Stebakov <lispercat@gmail.com>: Milton, thanks for the example. I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"? On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <akevalion@gmail.com> wrote: Hi Andrei, This is some example. Let me know if this is what you want. Run this in a playground with the last version of roassal: .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=. .=..=..=..=..=..=..=..=..=..=..=..=. b := RTMondrian new. b shape text color: [Color random]. b nodes: { 'https://facebook.com'. 'https://twitter.com'. ' https://plus.google.com' }. b build. link := RTLinkView new name: [ :model | model ] "#yourself"; view: nil. b view elements @ link. RTHTML5Exporter new fileName: 'roassalfile.html'; export: b view. b view .=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=. .=..=..=..=..=..=..=..=..=..=..=..=. Best regards, Milton 2018-02-05 14:16 GMT-03:00 Andrei Stebakov <lispercat@gmail.com>: I'll try to find if there is a way to embed a clickable interaction. Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it. On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <alexandre.bergel@me.com
wrote: Hi Milton,
Can you answer to Andrei please? I know in Roassal there is a way to embed clickable interaction. Cheers, Alexandre Begin forwarded message: From: Andrei Stebakov <lispercat@gmail.com> Subject: [Pharo-users] From Roassal RTView to html Date: February 2, 2018 at 1:53:50 PM GMT-3 To: Any question about pharo is welcome <pharo-users@lists.pharo.org> Reply-To: Any question about pharo is welcome <pharo-users@lists.pharo.org> I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?
I debugged the JavaScript a little and there is a function in roassal.js mousedown: function(e){ this.rtmouseClick(e); this.trmouseDragBegin(e); } I guess since the click takes me to a different tab, there is no subsequent mouseUp/DragEnd events. Naturally, if I remove trmouseDragBegin then the problem goes away but the dragging obviously doesn't work. So here we have a collision of a link click and mouse drag, so somehow we need to enable one or the other. On Feb 6, 2018 2:37 PM, "Andrei Stebakov" <lispercat@gmail.com> wrote:
The link clicking works (takes me to a different chrome tab link), but when I go back to the model page, the mouse movements cause the clicked element to move, same like before.
On Feb 6, 2018 8:50 AM, "Alexandre Bergel" <alexandre.bergel@me.com> wrote:
Can you try to update Roassal via the world menu:
Cheers, Alexandre
On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <lispercat@gmail.com> wrote:
Updated roassal via: Gofer new smalltalkhubUser: 'ObjectProfile' project: 'Roassal'; package: 'ConfigurationOfRoassal'; load. (Smalltalk at: #ConfigurationOfRoassal) load
The problems is still the same: added ".html" suffix.
On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <alexandre.bergel@me.com
wrote: Andrei, let us know how it goes
Cheers Alexandre
Envoyé de mon iPad
Le 5 févr. 2018 à 16:51, milton mamani <akevalion@gmail.com> a écrit :
Your need to load the last version of roassal, I change it that
2018-02-05 16:44 GMT-03:00 Andrei Stebakov <lispercat@gmail.com>: Milton, thanks for the example. I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?
On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <akevalion@gmail.com> w rote: Hi Andrei,
This is some example.
Let me know if this is what you want.
Run this in a playground with the last version of roassal:
.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=. .=..=..=..=..=..=..=..=..=..=..=..=.
b := RTMondrian new. b shape text color: [Color random]. b nodes: { 'https://facebook.com'. 'https://twitter.com'. ' https://plus.google.com' }. b build. link := RTLinkView new name: [ :model | model ] "#yourself"; view: nil. b view elements @ link.
RTHTML5Exporter new fileName: 'roassalfile.html'; export: b view. b view
.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=. .=..=..=..=..=..=..=..=..=..=..=..=.
Best regards, Milton
2018-02-05 14:16 GMT-03:00 Andrei Stebakov <lispercat@gmail.com>: I'll try to find if there is a way to embed a clickable interaction. Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.
On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <alexandre.bergel@me.com
wrote: Hi Milton,
Can you answer to Andrei please? I know in Roassal there is a way to embed clickable interaction.
Cheers, Alexandre
Begin forwarded message:
From: Andrei Stebakov <lispercat@gmail.com> Subject: [Pharo-users] From Roassal RTView to html Date: February 2, 2018 at 1:53:50 PM GMT-3 To: Any question about pharo is welcome <pharo-users@lists.pharo.org> Reply-To: Any question about pharo is welcome <pharo-users@lists.pharo.org
I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?
As soon as I removed @ RTDraggable, it fixed the problem, silly me :) On Feb 6, 2018 2:57 PM, "Andrei Stebakov" <lispercat@gmail.com> wrote:
I debugged the JavaScript a little and there is a function in roassal.js mousedown: function(e){ this.rtmouseClick(e); this.trmouseDragBegin(e); } I guess since the click takes me to a different tab, there is no subsequent mouseUp/DragEnd events. Naturally, if I remove trmouseDragBegin then the problem goes away but the dragging obviously doesn't work. So here we have a collision of a link click and mouse drag, so somehow we need to enable one or the other.
On Feb 6, 2018 2:37 PM, "Andrei Stebakov" <lispercat@gmail.com> wrote:
The link clicking works (takes me to a different chrome tab link), but when I go back to the model page, the mouse movements cause the clicked element to move, same like before.
On Feb 6, 2018 8:50 AM, "Alexandre Bergel" <alexandre.bergel@me.com> wrote:
Can you try to update Roassal via the world menu:
Cheers, Alexandre
On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <lispercat@gmail.com> wrote:
Updated roassal via: Gofer new smalltalkhubUser: 'ObjectProfile' project: 'Roassal'; package: 'ConfigurationOfRoassal'; load. (Smalltalk at: #ConfigurationOfRoassal) load
The problems is still the same: added ".html" suffix.
On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <alexandre.bergel@me.com
wrote: Andrei, let us know how it goes
Cheers Alexandre
Envoyé de mon iPad
Le 5 févr. 2018 à 16:51, milton mamani <akevalion@gmail.com> a écrit :
Your need to load the last version of roassal, I change it that
2018-02-05 16:44 GMT-03:00 Andrei Stebakov <lispercat@gmail.com>: Milton, thanks for the example. I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?
On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <akevalion@gmail.com> w rote: Hi Andrei,
This is some example.
Let me know if this is what you want.
Run this in a playground with the last version of roassal:
.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=. .=..=..=..=..=..=..=..=..=..=..=..=.
b := RTMondrian new. b shape text color: [Color random]. b nodes: { 'https://facebook.com'. 'https://twitter.com'. ' https://plus.google.com' }. b build. link := RTLinkView new name: [ :model | model ] "#yourself"; view: nil. b view elements @ link.
RTHTML5Exporter new fileName: 'roassalfile.html'; export: b view. b view
.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=. .=..=..=..=..=..=..=..=..=..=..=..=.
Best regards, Milton
2018-02-05 14:16 GMT-03:00 Andrei Stebakov <lispercat@gmail.com>: I'll try to find if there is a way to embed a clickable interaction. Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.
On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <alexandre.bergel@me.com
wrote: Hi Milton,
Can you answer to Andrei please? I know in Roassal there is a way to embed clickable interaction.
Cheers, Alexandre
Begin forwarded message:
From: Andrei Stebakov <lispercat@gmail.com> Subject: [Pharo-users] From Roassal RTView to html Date: February 2, 2018 at 1:53:50 PM GMT-3 To: Any question about pharo is welcome <pharo-users@lists.pharo.org> Reply-To: Any question about pharo is welcome < pharo-users@lists.pharo.org>
I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?
Thanks Andrei for your effort Cheers, Alexandre
On Feb 6, 2018, at 5:23 PM, Andrei Stebakov <lispercat@gmail.com> wrote:
As soon as I removed @ RTDraggable, it fixed the problem, silly me :)
On Feb 6, 2018 2:57 PM, "Andrei Stebakov" <lispercat@gmail.com> wrote: I debugged the JavaScript a little and there is a function in roassal.js mousedown: function(e){ this.rtmouseClick(e); this.trmouseDragBegin(e); } I guess since the click takes me to a different tab, there is no subsequent mouseUp/DragEnd events. Naturally, if I remove trmouseDragBegin then the problem goes away but the dragging obviously doesn't work. So here we have a collision of a link click and mouse drag, so somehow we need to enable one or the other.
On Feb 6, 2018 2:37 PM, "Andrei Stebakov" <lispercat@gmail.com> wrote: The link clicking works (takes me to a different chrome tab link), but when I go back to the model page, the mouse movements cause the clicked element to move, same like before.
On Feb 6, 2018 8:50 AM, "Alexandre Bergel" <alexandre.bergel@me.com> wrote: Can you try to update Roassal via the world menu:
<Screenshot 2018-02-06 10.49.35.png>
Cheers, Alexandre
On Feb 5, 2018, at 5:12 PM, Andrei Stebakov <lispercat@gmail.com> wrote:
Updated roassal via: Gofer new smalltalkhubUser: 'ObjectProfile' project: 'Roassal'; package: 'ConfigurationOfRoassal'; load. (Smalltalk at: #ConfigurationOfRoassal) load
The problems is still the same: added ".html" suffix.
On Mon, Feb 5, 2018 at 3:09 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote: Andrei, let us know how it goes
Cheers Alexandre
Envoyé de mon iPad
Le 5 févr. 2018 à 16:51, milton mamani <akevalion@gmail.com> a écrit :
Your need to load the last version of roassal, I change it that
2018-02-05 16:44 GMT-03:00 Andrei Stebakov <lispercat@gmail.com>: Milton, thanks for the example. I wonder why the link it takes me to has an appended ".html" at the end like "https://twitter.com.html"?
On Mon, Feb 5, 2018 at 12:55 PM, milton mamani <akevalion@gmail.com> wrote: Hi Andrei,
This is some example.
Let me know if this is what you want.
Run this in a playground with the last version of roassal:
.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
b := RTMondrian new. b shape text color: [Color random]. b nodes: { 'https://facebook.com'. 'https://twitter.com'. 'https://plus.google.com' }. b build. link := RTLinkView new name: [ :model | model ] "#yourself"; view: nil. b view elements @ link.
RTHTML5Exporter new fileName: 'roassalfile.html'; export: b view. b view
.=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=..=.
Best regards, Milton
2018-02-05 14:16 GMT-03:00 Andrei Stebakov <lispercat@gmail.com>: I'll try to find if there is a way to embed a clickable interaction. Looks like since there is no response to the topic, I was wondering if it's a non-pharo/roassal way to do it or it's just not so many people tried it.
On Sat, Feb 3, 2018 at 5:42 AM, Alexandre Bergel <alexandre.bergel@me.com> wrote: Hi Milton,
Can you answer to Andrei please? I know in Roassal there is a way to embed clickable interaction.
Cheers, Alexandre
Begin forwarded message:
From: Andrei Stebakov <lispercat@gmail.com> Subject: [Pharo-users] From Roassal RTView to html Date: February 2, 2018 at 1:53:50 PM GMT-3 To: Any question about pharo is welcome <pharo-users@lists.pharo.org> Reply-To: Any question about pharo is welcome <pharo-users@lists.pharo.org>
I was wondering if it's a good idea to expose some of the Roassal models via web (say Seaside) using the ability of Roassal to generate HTML for the view. In this case how could I "spice up" the HTML making for example those ellipces or lablels clickabe so the click could take me to some web page bases on the data in the model?
participants (2)
-
Alexandre Bergel -
Andrei Stebakov