hometoolipsToolipsSVG
search
search
ToolipsSVG

contents

ToolipsSVG is a minimalist framework for working with SVGs in the form of ToolipsServables Components with some extra extravagant features added on top. ToolipsSVG provides a few useful functions for creating and mutating SVG shapes and canvases in Julia using Components.

components

Above all, ToolipsSVG provides a few extra Component constants specifically for working with SVG elements. Here is a full list (click to view documentation):

With two special shape components:

functions

ToolipsSVG also establishes a consistent size/set_size! and position/set_position! with multiple dispatch that will work with any Component. This makes it easier to size both a circle and a square using the same generic function call, for example. There is also get_shape and set_shape for changing the shape of SVG elements. Here is a full list of functions for this purpose:

Finally, there is also a simple API for editing paths through convenient Function macros, these functions will all be called directly on a Component{:path}:

chifidocs is currently offline; you are viewing a cached version of the site. Some functionality might be missing. Click this message to try for a live version of chifidocs again.