clean up indentation and move arrows to the front, while I'm here
original commit: fa891703a8317415cef1408156783012b597ec75
This commit is contained in:
parent
0f37e9e790
commit
fa6aa8e1a6
|
@ -30,75 +30,66 @@
|
|||
|
||||
(define-local-member-name get-parent-links)
|
||||
|
||||
(provide/contract (add-links
|
||||
(case->
|
||||
((is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
. -> .
|
||||
void?)
|
||||
((is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
. -> .
|
||||
void?)
|
||||
((is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f string?)
|
||||
. -> .
|
||||
void?)
|
||||
((is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
number?
|
||||
number?
|
||||
. -> .
|
||||
void?)
|
||||
((is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
number?
|
||||
number?
|
||||
(or/c #f string?)
|
||||
. -> .
|
||||
void?)))
|
||||
(add-links/text-colors
|
||||
((is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c color%))
|
||||
(or/c #f (is-a?/c color%))
|
||||
number?
|
||||
number?
|
||||
(or/c #f string?)
|
||||
. -> .
|
||||
void?))
|
||||
(remove-links
|
||||
((is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
. -> .
|
||||
void?))
|
||||
(set-link-label
|
||||
((is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f string?)
|
||||
. -> .
|
||||
void?)))
|
||||
(provide/contract
|
||||
[add-links
|
||||
(case->
|
||||
(-> (is-a?/c graph-snip<%>) (is-a?/c graph-snip<%>) void?)
|
||||
(-> (is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
void?)
|
||||
(-> (is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f string?)
|
||||
void?)
|
||||
(-> (is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
number?
|
||||
number?
|
||||
void?)
|
||||
(-> (is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
number?
|
||||
number?
|
||||
(or/c #f string?)
|
||||
void?))]
|
||||
[add-links/text-colors
|
||||
(-> (is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c pen%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c brush%))
|
||||
(or/c #f (is-a?/c color%))
|
||||
(or/c #f (is-a?/c color%))
|
||||
number?
|
||||
number?
|
||||
(or/c #f string?)
|
||||
void?)]
|
||||
[remove-links
|
||||
(-> (is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
void?)]
|
||||
[set-link-label
|
||||
(-> (is-a?/c graph-snip<%>)
|
||||
(is-a?/c graph-snip<%>)
|
||||
(or/c #f string?)
|
||||
void?)])
|
||||
|
||||
(define self-offset 10)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user