(css-custom-property-value nm)
(css-custom-property-value el nm)
Gets computed style for css custom property. First checks for the computed sytle on the element, if supplied. If element is not supplied, checks for the computed style on the root html. Returns a string.
Gets computed style for css custom property. First checks for the computed sytle on the element, if supplied. If element is not supplied, checks for the computed style on the root html. Returns a string.
(css-custom-property-value-data nm)
(css-custom-property-value-data el nm)
Gets computed style for css custom property. First checks for the computed style on the element, if supplied. If element is not supplied, checks for the computed style on the root html. Returns a map of values.
Gets computed style for css custom property. First checks for the computed style on the element, if supplied. If element is not supplied, checks for the computed style on the root html. Returns a map of values.
(el-idx el)
Get index of element, relative to its parent
Get index of element, relative to its parent
(observe-intersection {:keys [element intersecting not-intersecting f threshold]
:or {threshold 0.1}})
(screen-quadrant node)
Pass a dom node and get a tuple back reprenting the quadrant in which the center of the node lives. (screen-quadrant (js/document.getElementById "my-id")) => [:top :left]
Pass a dom node and get a tuple back reprenting the quadrant in which the center of the node lives. (screen-quadrant (js/document.getElementById "my-id")) => [:top :left]
(screen-quadrant-from-point x y)
Pass an x and y val and get a tuple back reprenting the quadrant in which the point lives. (screen-quadrant 10 20) => [:top :left]
Pass an x and y val and get a tuple back reprenting the quadrant in which the point lives. (screen-quadrant 10 20) => [:top :left]
(scroll-into-view! el)
(scroll-into-view! el
{:keys [inline block behavior]
:or {block "start" inline "nearest" behavior "auto"}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close