Ok its working well :)
I was using generateIn: instead of openIn: , your code helped me a lot , thank you for
helping !
----- Mail original -----
De: "Alexandre Bergel" <alexandre.bergel(a)me.com>
À: "Moose-related development" <moose-dev(a)iam.unibe.ch>
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 < kevin.lanvin(a)inria.fr
>
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" <
alexandre.bergel(a)me.com >
>
> > À: "Moose-related development" < moose-dev(a)iam.unibe.ch >
>
> > 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
>
> > Moose-dev(a)iam.unibe.ch
>
> >
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev