I'm happy to hear that.

I understand that Bloc is low-level, but I wanted to start getting familiar 
with it (Roassal3 should eventually be on top of it, so I need to understand 
the basics anyway).

> It is very doable. Please, don't forget that Bloc is a low level framework
> that does not contain any widgets (existing ones will be deleted,
> especially BlLine, BlText and BlTextElement).

I am not sure how am I to interpret removal of BlText and BlTextElement. Does 
this mean that I would have to compose characters (is there BlCharacter) by 
myself? (I am not sure what the complexity implications are).

But I am happy that all the things are in place, so I can slowly (weeks, 
months) start playing with it.

Thanks!

Peter

On Wed, Feb 22, 2017 at 10:02:28PM +0100, Aliaksei Syrel wrote:
> Hi Peter
> 
>  I wanted to ask about Bloc:
> 
> Thanks for your interest :)
> 
> 1) how stable is the API? e.g. if some overhaul changes to unify/whatever
> > are planned
> 
> 
> Api itself is in "final" state, however naming might be improved (changed
> with or without depreciations). But don't worry user-side api is already in
> a very good shape, at least from our perspective :)
> 
> 2) I saw in the techtalk that you can align elements (to center, bottom,
> > ...), however is that possible with lines? Lines have to rotate, morph
> > shape, etc.
> 
> 3) Are non-straight lines possible? (e.g. bezier, arc)
> 
> 
> Exactly :) Lines are just bloc elements as anything else: buttons, text
> images. They can be linear, can be arcs or bezier curves (both quadratic or
> cubic). Default canvas used for rendering in Bloc (SpartaCanvas) has very
> good support of vector shapes and lines.
> 
>  The idea for me is to make a simple mindmap
> >         - elements with some text, icons, math symbols inside
> >         - connectors (non-straight lines) between elements
> 
> 
> It is very doable. Please, don't forget that Bloc is a low level framework
> that does not contain any widgets (existing ones will be deleted,
> especially BlLine, BlText and BlTextElement). The only responsibility Bloc
> has is to provide a basic infrastructure that does not put any constraints
> on users. Which means that if you want to have a bezier line you have to
> subclass BlElement, implement corresponding accessors for anchor points and
> override drawPathOnSpartaCanvas: in order to display you line. You can
> learn more about canvas by checking SpartaCanvas class comment and method
> comments in 'api' protocol.
> 
> Layouts, alignment, transformations are part of bloc and are available to
> all subclasses of BlElement.
> 
> Cheers,
> Alex
> 
> On 22 February 2017 at 21:32, Peter Uhnak <[email protected]> wrote:
> 
> >  Hi,
> >
> >  I wanted to ask about Bloc:
> >
> >  1) how stable is the API? e.g. if some overhaul changes to unify/whatever
> > are planned
> >  2) I saw in the techtalk that you can align elements (to center, bottom,
> > ...), however is that possible with lines? Lines have to rotate, morph
> > shape, etc.
> >  3) Are non-straight lines possible? (e.g. bezier, arc)
> >
> >  The idea for me is to make a simple mindmap
> >         - elements with some text, icons, math symbols inside
> >         - connectors (non-straight lines) between elements
> >
> >  To me (apart from the lines) it seems like it should be already doable.
> >
> >  Also either my (Morphic) Pharo is really slow, or Bloc (in the video) is
> > superfast (everything is happening instantly).
> >
> >  Thanks,
> >  Peter
> > _______________________________________________
> > Moose-dev mailing list
> > [email protected]
> > https://www.list.inf.unibe.ch/listinfo/moose-dev
> >

> _______________________________________________
> Moose-dev mailing list
> [email protected]
> https://www.list.inf.unibe.ch/listinfo/moose-dev


Reply via email to