Liking cljdoc? Tell your friends :D

aerial.saite.core


add-ratomcljs

(add-ratom id val)

Add a ratom for a dashboard model. id is the key for the ratom in the dashboard model db and is typically a keyword, but must be a print readably object. val is the initial value for the model. Dashboard ratoms are used in conjunction with 'symbol translated' callback functions (see add-symxlate) to hold the state of reactive components in dashboards.

Add a ratom for a dashboard model. `id` is the key for the ratom in
the dashboard model db and is typically a keyword, but must be a
print readably object. `val` is the initial value for the
model. Dashboard ratoms are used in conjunction with 'symbol
translated' callback functions (see `add-symxlate`) to hold the
state of reactive components in dashboards.
sourceraw docstring

add-symxlatecljs

(add-symxlate sym val)

Add a symbol to function mapping to the symbol to function translation db. 'sym' must be a symbol. Typically it will be a symbol in the namespace of the tab issuing the call. 'val' must be a function. The symbol may then be used in place of the function in any associated hiccup and/or re-com components which require a function at the given location. The primary purpose is to enable saving and restoring reactive function parameters across document loads and server restarts.

Example:

;;; Set up the symbol translation for a slider component (let [sval (sc/add-ratom :m4 "1.0") chgfn #(density-fn % :rhist sval)] (sc/add-symxlate 'density-fn chgfn))

...

[slider :model (sc/get-ratom :m4 (str begden)) :min 0.2, :max 2.0, :step 0.2 :width "200px" :on-change 'density-fn]

Add a symbol to function mapping to the symbol to function
translation db. 'sym' must be a symbol.  Typically it will be a
symbol in the namespace of the tab issuing the call.  'val' must be
a function. The symbol may then be used in place of the function in
any associated hiccup and/or re-com components which require a
function at the given location.  The primary purpose is to enable
saving and restoring reactive function parameters across document
loads and server restarts.

Example:

;;; Set up the symbol translation for a slider component
(let [sval (sc/add-ratom :m4 "1.0")
      chgfn #(density-fn % :rhist sval)]
  (sc/add-symxlate 'density-fn chgfn))

...

[slider
  :model (sc/get-ratom :m4 (str begden))
  :min 0.2, :max 2.0, :step 0.2
  :width "200px"
  :on-change 'density-fn]
sourceraw docstring

add-update-framecljs

(add-update-frame picframe fid locid)
source

bar-slider-fncljs

(bar-slider-fn tid val)
source

calc-dimensionscljs

(calc-dimensions tid opts)
source

chk-and-xform-resclj

(chk-and-xform-res res)
source

config-infoclj

(config-info data-map)
source

dbgclj

source

default-cfgclj

source

default-start-tabcljs

(default-start-tab)
source

delete-framecljs

(delete-frame fid)
source

depsclj

(deps coords & {:keys [repos]})
source

file-loc-infoclj

(file-loc-info loc ftype?)
source

final-xformclj

(final-xform x)
source

frame-callbackcljs

(frame-callback)
(frame-callback spec frame)
source

get-cm-cbcljs

(get-cm-cb)
source

get-cur-cmcljs

(get-cur-cm)
source

get-cur-datecljs

(get-cur-date)
source

get-current-cm-frame-infocljs

(get-current-cm-frame-info)
source

get-ratomcljs

(get-ratom id)

Return the ratom associated with id in the dashboard model db. See add-ratom for more details.

Return the ratom associated with `id` in the dashboard model db.  See
`add-ratom` for more details.
sourceraw docstring

get-symxlatecljs

(get-symxlate sym)
source

home-pathclj

source

initclj

(init port)
source

instrumentorcljs

(instrumentor {:keys [tabid spec]})
source

load-configclj

(load-config)
source

mathjax-chancljs

source

mathjax-putcljs

(mathjax-put fid)
source

mdcmcljs

(mdcm & opts)
source

newdoc-datacljs

source

(print-str-res? x)
source

react-hackcljs

(react-hack)

Monkey patching ... sigh ... This changes the (incorrect) behavior of React's removeChild and insertBefore functions which do not properly track changes in the DOM as effected by 3rd party libs. MathJax, Google Translate, etc. For details see https://github.com/facebook/react/issues/11538

Monkey patching ... sigh ... This changes the (incorrect) behavior of
React's removeChild and insertBefore functions which do not properly
track changes in the DOM as effected by 3rd party libs. MathJax,
Google Translate, etc. For details see
`https://github.com/facebook/react/issues/11538`
sourceraw docstring

read-datacljs

(read-data path)
source

run-prom-chaincljs

(run-prom-chain prom bodyfn)
source

saite-headercljs

(saite-header)
source

selfhost-jvm-evalcljs

(selfhost-jvm-eval code)
source

SEQ-PATHclj

source

set-md-defaultscljs

(set-md-defaults optsmap)

Set the tab defaults for various markdown and codemirror document parameters.optsmap is a nested map with two top level keys: :md and :cm for general markdown parameters and parameters specific to the layout and behavior of codemirror elements respectively.

:md a map of the following keys and associated values: :vmargin <a string giving CSS size - typically 'xxxpx'> The vertical spacing of a markdown element from others :margin <a string giving a CSS size - typically 'xxxpx'> The horizontal spacing of a markdown element from others :width <a string giving a CSS size - typically 'xxxpx'> The width of the textual field for a markdown element :font-size <a string giving a CSS size - typically 'xxxpx'> Size of the font for the markdown element text (including LaTex)

:cm a map of the following keys and associated values: :width <a string giving a size in pixels 'xxxpx'> The width of the editor pane :height <a string giving a size in pixels 'xxxpx'> The height of the editor pane :out-width <a string giving a size in pixels 'xxxpx'> The width of the associated output pane if editor is live :out-height <a string giving a size in pixels 'xxxpx'> The height of the associated output pane if editor is live :readonly <boolean true or false> Whether the editor is live (editable) or a static pane If :readonly is true editor is a static pane w/o an output pane :layout <:left-right or :up-down> Orientation (relative placement) of the editor and its output pane. :ed-out-order <:first-last or :last-first> The order of the editor and its output wrt the layout. If :first-last the editor matches 'left' or 'up' and output pane matches 'right' or 'down'. Vice-versa for :last-first.

Set the tab defaults for various markdown and codemirror document
parameters.`optsmap` is a nested map with two top level keys: `:md`
and `:cm` for general markdown parameters and parameters specific to
the layout and behavior of codemirror elements respectively.

`:md` a map of the following keys and associated values:
`:vmargin` <a string giving CSS size - typically 'xxxpx'>
The vertical spacing of a markdown element from others
`:margin` <a string giving a CSS size - typically 'xxxpx'>
The horizontal spacing of a markdown element from others
`:width` <a string giving a CSS size - typically 'xxxpx'>
The width of the textual field for a markdown element
`:font-size` <a string giving a CSS size - typically 'xxxpx'>
Size of the font for the markdown element text (including LaTex)

`:cm` a map of the following keys and associated values:
`:width` <a string giving a size in pixels 'xxxpx'>
The width of the editor pane
`:height` <a string giving a size in pixels 'xxxpx'>
The height of the editor pane
`:out-width` <a string giving a size in pixels 'xxxpx'>
The width of the associated output pane if editor is live
`:out-height` <a string giving a size in pixels 'xxxpx'>
The height of the associated output pane if editor is live
`:readonly` <boolean true or false>
Whether the editor is live (editable) or a static pane
If `:readonly` is true editor is a static pane w/o an output pane
`:layout` <:left-right or :up-down>
Orientation (relative placement) of the editor and its output pane.
`:ed-out-order` <:first-last or :last-first>
The order of the editor and its output wrt the layout. If :first-last
the editor matches 'left' or 'up' and output pane matches 'right' or
'down'.  Vice-versa for :last-first.
sourceraw docstring

startclj

(start port)
source

stopclj

(stop)
source

symxlate-callbackcljs

(symxlate-callback sym)
source

techml-obj?clj

(techml-obj? x)
source

try+cljmacro

(try+ msg & body)
source

uncomplicate-obj?clj

(uncomplicate-obj? x)
source

update-datacljs

(update-data data-maps)

Originally meant as general updater of vis plot/chart data values. But to render these, requires knowledge of the application pages/structure. So, this is not currently used. If we can figure out Vega chageSets and how they update, we may be able to make this a general op in Hanami.

Originally meant as general updater of vis plot/chart data
values. But to _render_ these, requires knowledge of the application
pages/structure. So, this is not currently used. If we can figure
out Vega chageSets and how they update, we may be able to make this
a general op in Hanami.
sourceraw docstring

xform-cljformclj

(xform-cljform clj-form)
source

xform-tab-defaultscljs

(xform-tab-defaults defaults)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close