exporting a roassal view in plain html

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

exporting a roassal view in plain html

abergel
In the last version of Roassal, you can do:
-=—=-=—=-=—=-=—=
b := ROMondrianViewBuilder new.
b nodes: Collection withAllSubclasses.
b edgesFrom: #superclass.
b treeLayout.
b applyLayout.
view := b raw.

ROPharoHTMLExporter new
        view: view;
        extractUnderFileName: 'foo.html’
-=—=-=—=-=—=-=—=

https://www.facebook.com/photo.php?fbid=567001390053129&set=a.557271187692816.1073741836.340543479365589&type=3&theater

Thanks Kevin por pushing me on this :-)

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: exporting a roassal view in plain html

Tudor Girba-2
I just tested it. It looks good! I also tried with nesting, and it seems to work fine.

Doru


On Fri, Jan 3, 2014 at 1:34 PM, Alexandre Bergel <[hidden email]> wrote:
In the last version of Roassal, you can do:
-=—=-=—=-=—=-=—=
b := ROMondrianViewBuilder new.
b nodes: Collection withAllSubclasses.
b edgesFrom: #superclass.
b treeLayout.
b applyLayout.
view := b raw.

ROPharoHTMLExporter new
        view: view;
        extractUnderFileName: 'foo.html’
-=—=-=—=-=—=-=—=

https://www.facebook.com/photo.php?fbid=567001390053129&set=a.557271187692816.1073741836.340543479365589&type=3&theater

Thanks Kevin por pushing me on this :-)

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: exporting a roassal view in plain html

Kevin Lanvin
In reply to this post by abergel
In fact i'm using a GETDiagramBuilder and it's almost working : in the html file, node[ ] and links[ ] are still empty ...


"
var dataset = {
                 nodes:[  ],  links:[  ] };
"

----- Mail original -----

> De: "Alexandre Bergel" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Vendredi 3 Janvier 2014 13:34:53
> Objet: [Moose-dev] exporting a roassal view in plain html
>
> In the last version of Roassal, you can do:
> -=—=-=—=-=—=-=—=
> b := ROMondrianViewBuilder new.
> b nodes: Collection withAllSubclasses.
> b edgesFrom: #superclass.
> b treeLayout.
> b applyLayout.
> view := b raw.
>
> ROPharoHTMLExporter new
> view: view;
> extractUnderFileName: 'foo.html’
> -=—=-=—=-=—=-=—=
>
> https://www.facebook.com/photo.php?fbid=567001390053129&set=a.557271187692816.1073741836.340543479365589&type=3&theater
>
> Thanks Kevin por pushing me on this :-)
>
> Cheers,
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: exporting a roassal view in plain html

Kevin Lanvin
Problem almost solved. I didn't initialize the ROView as I should. But axis are still missing :s

----- Mail original -----

> De: "Kevin Lanvin" <[hidden email]>
> À: "Moose-related development" <[hidden email]>
> Envoyé: Vendredi 3 Janvier 2014 13:56:59
> Objet: [Moose-dev] Re: exporting a roassal view in plain html
>
> In fact i'm using a GETDiagramBuilder and it's almost working : in
> the html file, node[ ] and links[ ] are still empty ...
>
>
> "
> var dataset = {
> nodes:[  ],  links:[  ] };
> "
>
> ----- Mail original -----
> > De: "Alexandre Bergel" <[hidden email]>
> > À: "Moose-related development" <[hidden email]>
> > Envoyé: Vendredi 3 Janvier 2014 13:34:53
> > Objet: [Moose-dev] exporting a roassal view in plain html
> >
> > In the last version of Roassal, you can do:
> > -=—=-=—=-=—=-=—=
> > b := ROMondrianViewBuilder new.
> > b nodes: Collection withAllSubclasses.
> > b edgesFrom: #superclass.
> > b treeLayout.
> > b applyLayout.
> > view := b raw.
> >
> > ROPharoHTMLExporter new
> > view: view;
> > extractUnderFileName: 'foo.html’
> > -=—=-=—=-=—=-=—=
> >
> > https://www.facebook.com/photo.php?fbid=567001390053129&set=a.557271187692816.1073741836.340543479365589&type=3&theater
> >
> > Thanks Kevin por pushing me on this :-)
> >
> > Cheers,
> > Alexandre
> >
> > --
> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> > Alexandre Bergel  http://www.bergel.eu
> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> >
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: exporting a roassal view in plain html

abergel
In reply to this post by Kevin Lanvin
Hi Kevin,

Try to send code that exactly shows the problems. I guess you are trying to export a view generated by GraphET.
Does the following helps?

| diag |
diag := GETDiagramBuilder new.
diag lineDiagram
height: 200;
models: (-20 to: 20 by: 0.05);
y: [ :x | ((x negated) exp)*((100*x) cos) ];
color: Color black;
regularAxisAsInteger.
diag interaction popUpText.
diag openIn: diag rawView.

ROPharoHTMLExporter new
view: diag rawView;
extractUnderFileName: ‘graphet.html'

For the curious, it generates an html file which uses SVG to render this:


Cheers,


On Jan 3, 2014, at 9:56 AM, Kevin Lanvin <[hidden email]> wrote:

In fact i'm using a GETDiagramBuilder and it's almost working : in the html file, node[ ] and links[ ] are still empty ...


"
var dataset = {
 nodes:[  ],  links:[  ]  };
"

----- Mail original -----
De: "Alexandre Bergel" <[hidden email]>
À: "Moose-related development" <[hidden email]>
Envoyé: Vendredi 3 Janvier 2014 13:34:53
Objet: [Moose-dev] exporting a roassal view in plain html

In the last version of Roassal, you can do:
-=—=-=—=-=—=-=—=
b := ROMondrianViewBuilder new.
b nodes: Collection withAllSubclasses.
b edgesFrom: #superclass.
b treeLayout.
b applyLayout.
view := b raw.

ROPharoHTMLExporter new
view: view;
extractUnderFileName: 'foo.html’
-=—=-=—=-=—=-=—=

https://www.facebook.com/photo.php?fbid=567001390053129&set=a.557271187692816.1073741836.340543479365589&type=3&theater

Thanks Kevin por pushing me on this :-)

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: exporting a roassal view in plain html

Kevin Lanvin
Ok its working well :)
I was using generateIn: instead of openIn: , your code helped me a lot , thank you for helping !


De: "Alexandre Bergel" <[hidden email]>
À: "Moose-related development" <[hidden email]>
Envoyé: Vendredi 3 Janvier 2014 14:09:49
Objet: [Moose-dev] Re: exporting a roassal view in plain html

Hi Kevin,

Try to send code that exactly shows the problems. I guess you are trying to export a view generated by GraphET.
Does the following helps?

| diag |
diag := GETDiagramBuilder new.
diag lineDiagram
height: 200;
models: (-20 to: 20 by: 0.05);
y: [ :x | ((x negated) exp)*((100*x) cos) ];
color: Color black;
regularAxisAsInteger.
diag interaction popUpText.
diag openIn: diag rawView.

ROPharoHTMLExporter new
view: diag rawView;
extractUnderFileName: ‘graphet.html'

For the curious, it generates an html file which uses SVG to render this:


Cheers,


On Jan 3, 2014, at 9:56 AM, Kevin Lanvin <[hidden email]> wrote:

In fact i'm using a GETDiagramBuilder and it's almost working : in the html file, node[ ] and links[ ] are still empty ...


"
var dataset = {
 nodes:[  ],  links:[  ]  };
"

----- Mail original -----
De: "Alexandre Bergel" <[hidden email]>
À: "Moose-related development" <[hidden email]>
Envoyé: Vendredi 3 Janvier 2014 13:34:53
Objet: [Moose-dev] exporting a roassal view in plain html

In the last version of Roassal, you can do:
-=—=-=—=-=—=-=—=
b := ROMondrianViewBuilder new.
b nodes: Collection withAllSubclasses.
b edgesFrom: #superclass.
b treeLayout.
b applyLayout.
view := b raw.

ROPharoHTMLExporter new
view: view;
extractUnderFileName: 'foo.html’
-=—=-=—=-=—=-=—=

https://www.facebook.com/photo.php?fbid=567001390053129&set=a.557271187692816.1073741836.340543479365589&type=3&theater

Thanks Kevin por pushing me on this :-)

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev