Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.12: Support for backpack plugin integration & Fix several bugs #38

Merged
merged 8 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ options = {
// Keep the fields of multiple selected same-type blocks with the same value
multiFieldUpdate: true,

// Auto focus the workspace when the mouse enters.
workspaceAutoFocus: true,

// Use custom icon for the multi select controls.
multiselectIcon: {
hideIcon: false,
Expand Down Expand Up @@ -88,6 +91,7 @@ multiselectPlugin.init(options);
21. When you edit the fields while selecting multiple blocks, we will automatically apply that to all the blocks with the same type.
22. You can copy and paste blocks in the same workspace and across different tabs. This plugin collides with [blockly-plugin-cross-tab-copy-paste](https://www.npmjs.com/package/@blockly/plugin-cross-tab-copy-paste) so they should not be used together.
23. (MIT App Inventor-only feature) Double click to collapse/expand currently selected blocks, enable with Blockly option `useDoubleClick: true`.
24. In [@blockly/workspace-backpack](https://www.npmjs.com/package/@blockly/workspace-backpack), `Copy to backpack (Y)` will become `(X) Copy to backpack (Y)`, where `Y` represents the number of blocks that are already in the backpack, and `X` represents the number of top most blocks that can be copied to the backpack. The `Copy to backpack (Y)` menu will only be disabled when none of the selected blocks can be copied to the backpack, and it will only be applied to the selected most top block in the block stack.

## Known issues
- [ ] Currently, we rely on DragSelect to know which block gets selected. DragSelect seems to listen to the "blocks". However, it actually works by listening to the SVG path element, which is always a rectangle with some transparent parts forming a block. For irregularly shaped blocks, if you click on the transparent area that within the SVG rectangle, it will still get selected. (a mitigation has already been introduced in v0.1.4, but a proper fix should be that Blockly implements some kind of API, so that we can know for sure where the block actually locates.)
Expand Down
Loading