* WIP merge from upstream google/blockly
* fixing some merging bugs. Getting the drag surface to work, updating some function calls, etc.
* make the trash can lid animate again and fix the cursor to show an x when things will be removed.
* Fix text rendering logic in fields
* Hand apply some more changes from blockly flyout.js to flyout_base.js.
Also revert 08efd1381c
in scratch-blocks since it breaks variables and there is more work fenichel is planning
to do here.
* Fix drop-down field rendering
* Resolve issue with text input field widths on init
* Remove unused blockly (built) files
* Remove unused language files
* Resolve lint issues and rebuild
* Add blockly build targets to cleanup script
* Return 0 if 'this.arrow_' does not exist in a dropdown field
* Remove unused / irrelevant comments
* Refactor drop-down positioning to encapsulate block positioning
Moves block-positioning logic to the DropDownDiv class. Since icon menus use a special offset for the secondary mode, add an option for that.
* Swap out field_dropdown's use of WidgetDiv with DropDownDiv
* Update CSS for goog-menus in DropDownDivs
* Fix hiding behavior when showEditor_ is called again
This matches the style of the rest of Blockly, and means that the
dropdowns can be tested with Chrome's Device Mode, which was not
possible before due to this bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=133915
This also adds listeners for mousedown/mouseup - this should be better
on PCs with touchscreens (#305), although we'll need a further change to
open the numpad on touch events.
* Implement basic field_number type
* Add whole number and positive number
* Remove bad arguments for showEditor_
* Basic implementation and styling of num-pad
* Remove virtual keyboards; add selection and read-only
* Add editing for the number pad
* Add backspace button to number pad
* Fix text padding for font-weight and extra magic
* Don't show decimal point for integers
* Re-update default WeDo numbers
* Refactor and improve documentation of field_number
* Update all assets from Carl
* Update when-broadcast-received and dropdown sizes
* Update icon menu sizing
* Update padding on drop-down div
* Update WeDo and event blocks; defaults
* Update multi_playground and vertical_playground
* Recompile with CSS updates
* Updating default icon reference for wedo_motorspeed
* Icon menu and drop-down stubs
* Recompile 4/15
* Fix stubs to draw shadow block for drop-down
* Fix rendering of shadow for icon menu
* Add arrow to dropdown button
* Add drop-down buttons to rest of examples
* Implementation of drop-down div including positioning
* Drop-downs take colours from the blocks
* Fix scaled secondary position of drop-downs
* Fix arrow positioning for RTL
* Use SVG parentNode for sizing dropdown
* Use transform for drop-down positioning
* Add basic DropDownDiv hide
* Add animation-in to dropdown
* More subtle drop-down animation and shadow
* Add icon menu example
* Use options style of Blockly FieldImage for drop-down
* Add default value for iconmenu
* Add example hover, active states for iconmenu buttons
* Update dropdown_icon example
* Implement icon-menu value handling and default value
* Add updating the parent block image field to dropdown
* Drop-down animates out; add hooks to hide for various Blockly happenings
* Add pointer cursor for drop-down icons
* Improve documentation for drop-downs and minor refactor
* Factor out getSrcForValue in iconmenu
* Blocks take on the icon of their icon-menu
* Add basic accessibility properties, similar to closure
* Remove extra drop-down example; update playgrounds
* Remove unnecessary colour overrides
* Add onHide, colour changing, fix references in dropdowndiv
* Flip arrow when the drop-down is rendered above
* Hide the icon menu drop-down on second tap of button
* Add preventDefault to button ontouchstart
* Updates to drop-down from Carl
* Add icon-menu placeholders and a crazy demo
* Fix naming to normalize (drop-down, DropDown)
* Add license header