scratchfoundation / scratchfoundation/scratch-blocks

Add handle to move the My Block definition upon creation

Open
#2,039 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority 4
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

Expected Behavior

As a developer of Scratch-based software I would like to be able to set the XY position of the My Block definition when creating a new My Block to ensure it doesn't conflict with other UI elements.

Actual Behavior

Currently the My Block definition is spawned in the top-left corner of the canvas. In the LEGO Spike software it conflict with our hub-dashboard.

Screenshot 2020-02-12 at 13 52 39

@knandersen

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the code path that creates a My Block definition and inspect how its initial canvas position is selected. Define how a creation-time XY handle should be exposed and verify that callers can place the definition away from the top-left position without disrupting existing creation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.