Giter Club home page Giter Club logo

scratch-blocks's People

Contributors

anmatanm avatar carlosperate avatar chrisgarrity avatar corydcode avatar cwillisf avatar daarond avatar dependabot-preview[bot] avatar drigz avatar edauterman avatar ericrosenbaum avatar espertus avatar fsih avatar gonfunko avatar kchadha avatar marisaleung avatar neilfraser avatar nikerabbit avatar paulkaplan avatar picklesrus avatar quachtina96 avatar rachel-fenichel avatar renovate-bot avatar renovate[bot] avatar rschamp avatar seanlip avatar semantic-release-bot avatar siebrand avatar thisandagain avatar tmickel avatar towerofnix avatar

Stargazers

 avatar

Watchers

 avatar  avatar

scratch-blocks's Issues

Horizontal rendering (noop)

Got confirmation from Chris that we don't need to support horizontal rendering.

Filing this and immediately closing so we don't lose that info.

Update Delete Blocks contextual menu item to not reference the number of blocks

When right clicking on a stack of blocks, a "Delete N Blocks" menu item is shown, with N corresponding to the number of blocks in the stack. In Scratch proper, this is shown as "Delete Block", regardless of the number of blocks in the stack. The code for handling procedure deletion also looks for the "Delete Block" string literal to patch the implementation to scour the workspace for references to the procedure and warn about them, which is currently broken as a result.

Investigate CSS attributes added for ScratchAddons

It looks like there have been a bunch of CSS attributes added to scratch to support https://github.com/ScratchAddons

Some PRs that did this:

Adding most of these CSS attributes involved monkey-patching things in Blockly, which is not happy =(

We need to figure out:

  1. Whether we need to continue supporting these CSS attributes. (Ask a scratch person)
  2. If so, what the attributes actually are. Which is going to be kinda tricky given that bugs won't show up in actual scratch. They'll only show up if you're using a given addon that references an attribute.
  3. If we want to pull those into core Blockly or figure out a way to add them in a non-monkey-patch-y way to scratch-blocks.

Review and clean up CSS

Scratch injects a great deal of CSS, some of which may be redundant/obsolete/etc. We should look through this (ideally in an automated way?) and clean up anything unnecessary.

Refactor block definitions patched in scratch-gui/src/lib/blocks.js

The scratch-gui package patches/overrides a number of block definitions in src/lib/blocks.js, generally when they need dynamic state depending on the state of the VM. We should likely do one of the following:

  • Remove the body of the block definitions in scratch-blocks, since they're being overwritten
  • Move the dynamic bits out of scratch-gui and into scratch-blocks
  • Perhaps something else?

Preserve Scratch's block duplication functionality

In core Blockly, the Duplicate contextual menu just makes a copy of a block offset slightly from the original. In Scratch, the menu attaches the copied block to the cursor as if it were mid-drag, and it follows the cursor until clicked to place it.

Fix dropdown menu rendering skew

The rendering of dropdowns differs between us and Scratch:

Screenshot 2024-05-06 at 2 39 06 PM
Screenshot 2024-05-06 at 2 39 00 PM

Scratch renders both the dropdown field and the menu with a slightly lighter background color, uses bold text in the menu, and does not display a darkened selection indicator behind the selected item when the menu is first opened.

Resolve angle picker skew

Our angle picker lacks the background color in the dropdown, extra padding, and arrow icon from Scratch. It also continuously follows the mouse, whereas the Scratch implementation requires clicking and dragging the arrow icon to change the angle.
Screenshot 2024-05-06 at 2 45 06 PM
Screenshot 2024-05-06 at 2 45 11 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.