Repository navigation
v0.2.1
Morphic Blocks 0.2.1 makes sure the framework itself never loads anything from an external server, and draws toolbox tiles the way the workspace draws its blocks. No breaking changes.
Fixes
- No Blockly media from Google's server for toolbox tiles. The hidden workspace that draws toolbox tiles ignored your Blockly settings and loaded its sounds from Blockly's default server (
blockly-demo.appspot.com), even when you setblockly.media. It now uses your workspace's media path and never loads sounds, since nothing plays there. - Tiles match the workspace. Toolbox tiles now use your workspace's
renderer,rendererOverrides,themeandrtl. Before, withrenderer: "zelos"the tiles were drawn with a different renderer than the blocks in the workspace.
No external requests
The framework makes no requests to external services, and a new test keeps it that way. Blockly itself loads its images and sounds from Google's server unless blockly.media points to a copy on your own site. The new guide Privacy & External Requests shows how to serve them yourself with one small copy script that works with every package manager:
await engine.mount({
workspaceContainer: document.getElementById("workspace")!,
blockly: { media: "blockly-media/" },
});Full changelog: v0.2.0...v0.2.1