updating docs
This commit is contained in:
parent
f302414f9a
commit
ef37593cd3
|
@ -626,6 +626,10 @@ Here are a collection of web-world demos:
|
||||||
@itemize[
|
@itemize[
|
||||||
@item{@link["http://hashcollision.org/whalesong/examples/attr-animation/attr-animation.html"]{attr-animation.html} [@link["http://hashcollision.org/whalesong/examples/attr-animation/attr-animation.rkt"]{src}] Uses @racket[update-view-attr] and @racket[on-tick] to perform a simple color animation.}
|
@item{@link["http://hashcollision.org/whalesong/examples/attr-animation/attr-animation.html"]{attr-animation.html} [@link["http://hashcollision.org/whalesong/examples/attr-animation/attr-animation.rkt"]{src}] Uses @racket[update-view-attr] and @racket[on-tick] to perform a simple color animation.}
|
||||||
|
|
||||||
|
|
||||||
|
@item{@link["http://hashcollision.org/whalesong/examples/boid/boid.html"]{boid.html} [@link["http://hashcollision.org/whalesong/examples/boid/boid.rkt"]{src}] Uses @racket[update-view-css] and @racket[on-tick] to perform an animation of a flock of @link["http://en.wikipedia.org/wiki/Boids"]{boids}.}
|
||||||
|
|
||||||
|
|
||||||
@item{@link["http://hashcollision.org/whalesong/examples/dwarves/dwarves.html"]{dwarves.html}
|
@item{@link["http://hashcollision.org/whalesong/examples/dwarves/dwarves.html"]{dwarves.html}
|
||||||
[@link["http://hashcollision.org/whalesong/examples/dwarves/dwarves.rkt"]{src}]
|
[@link["http://hashcollision.org/whalesong/examples/dwarves/dwarves.rkt"]{src}]
|
||||||
Uses @racket[view-show] and @racket[view-hide] to manipulate a view. Click on a dwarf to make them hide.
|
Uses @racket[view-show] and @racket[view-hide] to manipulate a view. Click on a dwarf to make them hide.
|
||||||
|
@ -871,6 +875,14 @@ Get the attribute @racket[name] at the focus.
|
||||||
Update the attribute @racket[n] with the value @racket[v] at the focus.
|
Update the attribute @racket[n] with the value @racket[v] at the focus.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@defproc[(view-css [v view] [name String]) view]{
|
||||||
|
Get the css value @racket[name] at the focus.
|
||||||
|
}
|
||||||
|
|
||||||
|
@defproc[(update-view-css [v view] [name String] [value String]) view]{
|
||||||
|
Update the css value @racket[n] with the value @racket[v] at the focus.
|
||||||
|
}
|
||||||
|
|
||||||
@defproc[(view-id [v view]) world]{
|
@defproc[(view-id [v view]) world]{
|
||||||
Get the unique identifier of the node at the focus.
|
Get the unique identifier of the node at the focus.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user