Liking cljdoc? Tell your friends :D

baremirror.alpha.places

The places of keyed nodes in the document. A key is a string, and a container is a parent with an optional :before anchor, the key of a node and an optional part in it, or a part alone, which gives the node of every key a container.

The places of keyed nodes in the document. A key is a string, and a container is a parent
with an optional `:before` anchor, the key of a node and an optional part in it, or a part
alone, which gives the node of every key a container.
raw docstring

attr-keycljs

source

keyedcljs

(keyed node)

The key of node and the node, when it has a key.

The key of `node` and the node, when it has a key.
sourceraw docstring

perform!cljs

(perform! {:keys [containers nodes]}
          {removed :remove placements :place}
          make-node)

Performs plan on what read-places returned, with make-node making the node of a new key. Returns the node of each key that remains. Throws before any write to the page when the plan cannot be performed as given.

Performs `plan` on what `read-places` returned, with `make-node` making the node of a new key.
Returns the node of each key that remains. Throws before any write to the page when the plan
cannot be performed as given.
sourceraw docstring

read-placescljs

(read-places containers)

The current places of containers, with the node of each key, a parent in one container. A container named by a key with no node has no keys, and a part alone gives every key found its container but is not in the places. With a part alone, every keyed node has that part.

The current places of `containers`, with the node of each key, a parent in one container.
A container named by a key with no node has no keys, and a part alone gives every key found
its container but is not in the places. With a part alone, every keyed node has that part.
sourceraw docstring

release!cljs

(release! node)

Gives node up: it keeps its place in the document and loses its key.

Gives `node` up: it keeps its place in the document and loses its key.
sourceraw docstring

sync!cljs

(sync! containers wanted make-node)

Brings containers to the wanted places, with make-node making the node of a new key. Returns the node of each key that remains. Throws before any write to the page when the containers or the wanted places cannot be performed.

Brings `containers` to the `wanted` places, with `make-node` making the node of a new key.
Returns the node of each key that remains. Throws before any write to the page when the
containers or the wanted places cannot be performed.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close