Module Inkactions

module Inkactions: sig .. end

Inkscape-actions


type actions 

actions that can be sent to the cli-interface of inkscape

val actions_new : unit -> actions

initialises a new list of actions

val file_open : filename:string -> actions -> actions

opens an .svg file

Selections

val select : id:string -> actions -> actions

select an element by its id

val unselect : id:string -> actions -> actions
val select_all : actions -> actions
val selection_top : actions -> actions

move the selection to the top

val selection_bottom : actions -> actions
val selection_lower : actions -> actions
val selection_raise : actions -> actions
val selection_group : actions -> actions
val delete_selection : actions -> actions

delete selection

Boolean Operations

val path_union : actions -> actions
val path_exclusion : actions -> actions
val path_difference : actions -> actions
val transform_scale : scale:float -> actions -> actions
val transform_translate : translate:float * float -> actions -> actions
val transform_rotate : rotate:float -> actions -> actions

angle in degrees

Stroke to Path

val stroke_to_path : actions -> actions

Export and Close

save the result .svg file

val export_filename : filename:string -> actions -> actions
val export_do : actions -> actions
val file_close : actions -> actions
val export_plain_svg : actions -> actions

Print the Actions

val actions_line : actions -> unit

outputs a one liner for the --actions= parameter of the inkscape command

val actions_file : actions -> unit

produces a file, which can be sent to the stdin of inkscape --shell