New Canvas

View: New views
3 Messages — Rating Filter:   Alert me  

New Canvas

by Mats Bengtsson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ANNOUNCE: tkpath 0.3.0

Tkpath 0.3.0 provides a new canvas widget that is supposed to be 100%
compatible with tk::canvas. My major motivation for creating
this package was to make something that maps well with SVG graphics
(http://www.w3.org/TR/SVG11/).

Tkpath adds mainly two things:

  1) A number of new item types with options that map easily to SVG objects.
  2) A display tree hierarchy with some fancy option inheritance.

The new items are:
    circle
    ellipse
    group
    path
    pimage
    pline
    polyline
    ppolygon
    prect
    ptext

Most of them can be configured using styles. Instead of setting similar
options for each of them, it is possible to create a style, and then
use this style for each similar item. When a style is configured, each
item using it will be redisplayed.

Using the group item you create a "directory" in the item hierarchy
which acts similar to a frame in the widget hierarchy except that
options set to the group may be inherited by child items.

The only documentation currently is
http://tclbitprint.sourceforge.net/tkpath/README.txt which is very sparse.

Perhaps the easists way to describe it is to look at the screen shots
at http://tclbitprint.sourceforge.net/, look at the tkpath links.

Note that previous tkpath releases used the tk::canvas item type
plugin model for the new item types. This is no longer possible.

Download: just do a cvs checkout (http://sourceforge.net/cvs/?group_id=84344)
and build yourself, or just use the pre-built binaries found in the
cvs tree. The only non-standard dependency is on cairo-graphics which
is getting common in later linux distros.

If anyone want to help then focus on documentations, test code, and
bug patches.

Enjoy,    Mats  (matsben@...)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: New Canvas

by Revar Desmera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some feedback on the latest Tkpath 0.3.0 release:
     Much more stable than 0.2.8.  Yay!
     The old clipping problems have been fixed.  Yay!
     Text now shows up where I expect it to when it's rotated.  Yay!
     Numeric dash patterns like -dash {2 4 6 4} segfault the  
interpreter.
     Symbolic dash patterns like -dash {.-} work just fine.
     Ovals with no -fill argument are defaulting to filling with  
black, but for compatibility, should default to no fill at all.
     The move to using a new super-canvas widget is an interesting  
choice, but fairly transparent and painless.
     I like the new group object.  It'll make certain parts of my CAD  
a bit easier to finish implementing.

So when do the new object types, especially rotated text and images,  
get added to the MacCarbonPrint extension?  :)

        - Revar


On Jul 17, 2008, at 11:25 PM, Mats Bengtsson wrote:

> ANNOUNCE: tkpath 0.3.0
>
> Tkpath 0.3.0 provides a new canvas widget that is supposed to be 100%
> compatible with tk::canvas. My major motivation for creating
> this package was to make something that maps well with SVG graphics
> (http://www.w3.org/TR/SVG11/).


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: New Canvas

by Mats Bengtsson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Jul 19, 2008 at 11:31 AM, Revar Desmera <revarbat@...> wrote:
> Some feedback on the latest Tkpath 0.3.0 release:
>    Much more stable than 0.2.8.  Yay!
>    The old clipping problems have been fixed.  Yay!
>    Text now shows up where I expect it to when it's rotated.  Yay!
>    Numeric dash patterns like -dash {2 4 6 4} segfault the interpreter.

Fixed.

>    Symbolic dash patterns like -dash {.-} work just fine.
>    Ovals with no -fill argument are defaulting to filling with black, but
> for compatibility, should default to no fill at all.

Fixed.

>    The move to using a new super-canvas widget is an interesting choice, but
> fairly transparent and painless.
>    I like the new group object.  It'll make certain parts of my CAD a bit
> easier to finish implementing.
>

There is now updated builds (and source code) in cvs where version was
bumped to 0.3.1.
Odd release numbers is between releases (!?). You know.

> So when do the new object types, especially rotated text and images, get
> added to the MacCarbonPrint extension?  :)
>

I thought there was a GSoC student doing printing.
In any case it is probably better to start out with tkp::canvas and modify
its code to draw into something else than the widget surface.
For Mac it is just (?) a matter to switch the widgets GraphicsContext to
the printers GraphicsContext. Probably easy to do with the path
defined item types,
but likely to be difficult with the "old" item types due to their
X11 emulation (one of my hate objects).

Mats

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac