Releases: codeddraig/ffau
Fix Blockly ID escaping
This minor update just prevents Blockly's generators from creating corrupted files.
Add export statement
Add an export statement to the Ffau class to allow for better integration with frameworks such as React.
Add auto-toolbox
Added tools to generate toolbox automatically. See README.md for more.
This release does not introduce any breaking changes.
Fix quote escaping and update Blockly
This version of the Ffau fixes a minor code generation issue to do with escaping quotes. It also increments the recommended Blockly commit hash.
Fix RGBA pickers and font names
This version fixes a few minor bugs:
- RGBA pickers were having some bugs with their escaping system, and this has now been fixed.
- Previously, spaces weren't supported in the
font-family:
CSS block (fontfamily
). This was annoying if you wanted to use a non-web-compatible font name such as 'Comic Sans MS'. Spaces are now allowed in this block.
Add support for custom arguments in events
The customFunction
parameter of Ffau.addEvent
can now be passed an array instead, of the format [f, [a, b, c]]
, where a
, b
and c
are parameters to be called with f
. This would have the effect of calling:
f(scope, a, b, c)
(as scope
is still passed as the first argument)
This is useful in many cases, especially when the callback function is accessed externally (i.e. not from within the context of the Ffau class, but someone doing ffau.editorCallbackFunction()
, in which case arguments cannot be bound to the function without updating it entirely/duplicating it.
Add support for more versatile setting structures
- Add nice scrollbars to setting menu
- Neaten up headings/padding for smooth scrolling
- Add sections to settings + separators
No backwards-incompatible changes, as settings menus still work (and look pretty) without sections, but they can optionally be added.
Patch cleared workspace items being moved to trash
When using reverse coding, the items present on the workspace when it is cleared between each new render of the blocks were previously moved to the trashcan history, quickly cluttering this space. This has now been patched.
Fix <div> behaviour and text generators
Updates generators and block definitions to handle text blocks better.
Update to work with new Blockly deprecation
Updated code to work with changes to Blockly.utils
helpers.