Liking cljdoc? Tell your friends :D

org.parkerici.blockoid.core


add-workspace-xmlcljs

(add-workspace-xml xml)
source

area-divcljs

source

auto-resize-workspacecljs

(auto-resize-workspace div)

Call this after define-workspace to enable automatic resizing

Call this after `define-workspace` to enable automatic resizing
sourceraw docstring

block-xmlcljs

(block-xml block)
source

block-xml-stringcljs

(block-xml-string block)
source

blockly-divcljs

source

callback-keycljs

(callback-key label handler)
source

callback-keyscljs

source

clear-workspacecljs

(clear-workspace)
source

compactcljs

(compact block-xml & [ids?])
source

compact-1cljs

(compact-1 ids? block-xml)

Turns raw Block XML into compact form

Turns raw Block XML into compact form
sourceraw docstring

define-blockscljs

(define-blocks blockdefs)

Define new block types. Blockdefs is a seq of maps that are converted to JSON as per https://developers.google.com/blockly/guides/configure/web/custom-blocks

Define new block types. Blockdefs is a seq of maps that are converted to JSON as per https://developers.google.com/blockly/guides/configure/web/custom-blocks
sourceraw docstring

define-workspacecljs

(define-workspace div toolbox-xml options change-handler)

Initialize Blockly. Args: div: Name of the HTML div element in which to inject Blockly toolbox-xml: XML in EDN format. Usually generated by toolbox. options: map of additional options to inject, eg: {:zoom true}. See https://developers.google.com/blockly/guides/get-started/web#configuration

change-handler: a fn of one argument (event) that gets called on any changes to the workspace.

Initialize Blockly. Args:
 div:  Name of the HTML div element in which to inject Blockly
toolbox-xml: XML in EDN format. Usually generated by `toolbox`. 
options: map of additional options to `inject`, eg: `{:zoom true}`. See https://developers.google.com/blockly/guides/get-started/web#configuration
  
change-handler: a fn of one argument (event) that gets called on any changes to the workspace. 
sourceraw docstring

get-blockcljs

(get-block block-id)

Returns the block js object

Returns the block js object
sourceraw docstring

get-block-field-valuecljs

(get-block-field-value block-id field-name)

Get the value of a block field

Get the value of a block field
sourceraw docstring

selected-blockcljs

(selected-block)
source

set-block-field-valuecljs

(set-block-field-value block-id field-name value)

Set the value of a block field

Set the value of a block field
sourceraw docstring

set-workspace-xmlcljs

(set-workspace-xml xml)
source

toolboxcljsmultimethod

Translate a toolbox definition form into EDNified XML

Translate a toolbox definition form into EDNified XML
sourceraw docstring

update-toolboxcljs

(update-toolbox toolbox-def)

Update the toolbox, keeping workspace the same (warning: dangerous)

Update the toolbox, keeping workspace the same (warning: dangerous)
sourceraw docstring

workspacecljs

source

workspace-selected-xmlcljs

(workspace-selected-xml)

Returns the XML of the selected block group, or the upper left one if none is selected

Returns the XML of the selected block group, or the upper left one if none is selected
sourceraw docstring

workspace-xmlcljs

(workspace-xml)
source

workspace-xml-stringcljs

(workspace-xml-string)
source

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

× close