scratchfoundation / scratchfoundation/scratch-blocks
Add handle to move the My Block definition upon creation
Nobody has claimed this yet.
- 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.
@knandersen
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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