dml

API Reference

dml

Diagram Make Language for common lisp

DML.NODE

define node symbol by path.
  • Function DRAW-NODE (node)
  • Function DUMP-NODE-TO-PS (node &key (to-scale 7) (file-name nil) (margin 10))
  • Function DUMP-NODE-TO-PNG (node &key (to-scale 10) (file-name nil) (margin 10))
  • Variable NODE-STICK-MAN
    `(:width 4 :height 10 :commands
      ((cl-cairo2:arc 2 1 1 0 ,(* 2 pi)) (cl-cairo2:move-to 2 2)
       (cl-cairo2:line-to 2 6) (cl-cairo2:move-to 0 4) (cl-cairo2:line-to 4 4)
       (cl-cairo2:move-to 0 10) (cl-cairo2:line-to 2 6) (cl-cairo2:line-to 4 10)
       (cl-cairo2:stroke)))

DML.SEQ.GRID

  • Class GRID
    H-LINES
    V-LINES
  • Function FIT-LEFT (grid index space)
  • Function FIT-RIGHT (grid index space)
  • Function FIT-UP (grid index space)
  • Function FIT-DOWN (grid index space)
  • Function GET-WIDTH (grid)
  • Function GET-HEIGHT (grid)
  • Function GET-Y-BY-INDEX (grid v-index)
  • Function GET-X-BY-INDEX (grid h-index)