Commit Graph

431 Commits

Author SHA1 Message Date
alschmiedt 8b1b7f3d7f Merge branch 'develop' of https://github.com/google/blockly into block_drag 2021-06-10 13:45:26 -07:00
Monica Kozbial d2579a7369 Add removeComponent to ComponentManager (#4884) 2021-06-09 22:29:33 -07:00
alschmiedt f2431b94da Merge branch 'develop' of https://github.com/google/blockly into block_drag 2021-06-09 17:25:17 -07:00
Monica Kozbial 11390341b1 Adding IDragTarget support. (#4852) 2021-06-09 13:59:22 -07:00
Neil Fraser cff7b359f4 Make comments more consistent. 2021-06-09 11:41:42 -07:00
Neil Fraser 76b5517008 Use null-prototype objects for maps
A {} has a bunch of names already defined on it (like ‘toString’).  When using an object as a map with arbitrary keys, it should not inherit from Object.prototype.
2021-06-09 11:41:42 -07:00
Neil Fraser e661c92a36 More JSDoc improvements 2021-05-27 21:30:26 -07:00
Neil Fraser d919b0af21 Update JSDoc from Array.<> to Array<>
Same with Object.
2021-05-27 21:30:26 -07:00
Monica Kozbial 5344ad6c21 Add support for IAutoHideable (#4855) 2021-05-27 17:01:11 -07:00
Monica Kozbial 1cadbb94bd Rename PluginManager and related elements (#4857)
* Rename PluginManager and related elements to use component instead of plugin

* Rename types to capabilities
2021-05-27 16:14:33 -07:00
alschmiedt ab70d6b1da Caches ws scroll on block drag surface (#4841) 2021-05-21 15:35:48 -07:00
Neil Fraser dd0314bc0b Normalize comments 2021-05-19 09:57:14 -07:00
Sam El-Husseini f2f878db8c Fix multiple strict require warnings (#4793) 2021-04-21 16:46:04 -07:00
alschmiedt bef88626cd Init block dragger (#4781) 2021-04-14 14:03:59 -07:00
alschmiedt 869e4eb366 Update flyout metrics to work with the new metrics manager (#4684) 2021-03-09 17:09:49 -08:00
Monica Kozbial bea85cda1c Positionables bugfix (#4685)
* Apply fixes to positionable logic

* Update variable name and add @private annotation
2021-03-08 11:20:30 -08:00
Rachel Fenichel 855185c6cf Merge pull request #4682 from rachel-fenichel/toolbox_constants
Use Blockly.utils.toolbox.Position enum everywhere
2021-03-08 10:52:58 -08:00
Monica Kozbial f837f1e44e Add zoom support for single-direction-scroll (#4653)
* Add zoom support for single-direction scroll
2021-03-05 14:37:41 -08:00
Rachel Fenichel f7e0d5f4ea Use existing toolbox position enum 2021-03-05 14:16:43 -08:00
alschmiedt 26104d280d Update metrics to support mutators (#4679) 2021-03-05 11:44:29 -08:00
Monica Kozbial 0246e2a132 Fix flyout metrics and workspace scroll (#4674)
* Fix flyout metrics and max scroll logic in scroll

* Fix horizontal scroll wheel logic
2021-03-05 11:34:29 -08:00
Sam El-Husseini 63d26dc186 Add extra requires check (#4677)
* Add extra requires check
2021-03-05 09:50:51 -08:00
Monica Kozbial ef8a5a1fe1 Add PluginManager (#4672)
* Add PluginManager.
2021-03-04 16:51:06 -08:00
Monica Kozbial 4844a1038c Adding single-direction scroll options to inject options (#4651)
* Adding single directions scroll config to inject options
2021-03-03 12:29:10 -08:00
Monica Kozbial f2cec81584 Adding Positionable interface (#4669)
* Adding IPositionable interface.
2021-03-02 16:17:17 -08:00
Monica Kozbial 57749e6eb8 Updating bump logic to support single-direction scrollbars (#4652)
* Updating bump logic to support single-direction scrollbars
2021-03-01 12:20:12 -08:00
Sam El-Husseini 5780399750 Use registry for creating the no-category flyout (#4659)
* Use registry for creating the horizontal / vertical flyout
2021-03-01 10:00:47 -08:00
Sam El-Husseini f97730e83c Sort requires (#4658)
* Cleanup gulp method to sort requires
2021-02-25 17:17:42 -08:00
Sam El-Husseini ab8a11784d Fix event related missing requires (#4656)
* Fix event related missing requires
2021-02-25 14:28:11 -08:00
Rachel Fenichel 0b09d179ae Merge pull request #4642 from rachel-fenichel/event_data_type
Move bind/unbind events functions to new file, with example usage.
2021-02-25 12:00:22 -08:00
Monica Kozbial dd7e365882 Scrolling readability refactor (#4643)
* Refactors scrolling logic in scrollbars and adds comments to be more readable
* Updates JSDoc description for ScrollbarPair.set and Scrollbar.set
2021-02-24 15:09:43 -08:00
Monica Kozbial f942736a1e Erratic scroll fix (#4650)
* Resize fix

* Update fix
2021-02-23 14:35:21 -08:00
Rachel Fenichel ad37d9e5c6 More renaming 2021-02-23 10:21:46 -08:00
Rachel Fenichel f20b06faa8 Rename checkAndBind and update comments. 2021-02-23 10:20:13 -08:00
Rachel Fenichel 54c4e8de39 Rename Blockly.eventHandling->Blockly.browserEvents and replace all Blockly.EventData annotations 2021-02-22 13:23:19 -08:00
Rachel Fenichel 2a3f5040e6 Move bind/unbind events functions to new file, with example usage. 2021-02-19 14:34:45 -08:00
Rachel Fenichel 2360a12493 Fix remaining trivial missing requireTypes 2021-02-19 13:17:14 -08:00
alschmiedt d81703a745 Metrics register (#4630) 2021-02-12 16:16:33 -08:00
alschmiedt a8f28c6b11 Metrics refactor (#4627) 2021-02-10 16:19:56 -08:00
Rachel Fenichel 9002492476 Fix missing require types in workspace svg 2021-02-09 15:01:05 -08:00
Monica Kozbial 17d7d1b449 Use ScrollbarPair and WorkspaceDragger in flyouts (#4607)
* Use ScrollbarPair for flyouts

* Address PR comments

* Fix compile error
2021-02-02 11:46:06 -08:00
alschmiedt efdcb89b5c Register cursors (#4599) 2021-01-21 16:01:31 -08:00
alschmiedt a3adc42e8a Remove keyboard navigation from core (#4593) 2021-01-19 11:50:51 -08:00
Maribeth Bottorff 2de6c9ec7a Make sure el can be blurred before doing so (#4506) 2020-12-08 16:07:58 -08:00
Monica Kozbial adb521f705 Remove TODO and add workspace comment create event (#4494) 2020-12-03 12:55:21 -08:00
Monica Kozbial 40ef586260 Refactoring Ui events in core (#4418)
* Ui events base (#4370)

* Add constants for new ui event types

* Add property to indicate an event as UI event

* Click events (#4372)

* Creating new ui base class.

* Refactor theme event (#4391)

* Add themeName property to theme event

* Refactor marker move events. (#4389)

* Refactor trashcan open event (#4392)

* Refactor selected event (#4387)

* Refactor toolbox item change event (#4394)

* Refactor bubble open events (#4390)

* Refactor block drag event (#4388)

* Viewport events (#4395)

* Fix event filtering for ui events (#4401)

* Move events to new directory and rename Ui events base (#4400)

* Move events to new directory and rename Ui events base

* Add missing fromJson implementation for click event (#4410)

* Adding serialization tests for events

* Zoom controls event (#4407)

* Refactor zoom event

* Rename IS_UI_EVENT to isUiEvent
2020-11-04 14:43:54 -08:00
Sam El-Husseini db40e44b7c Move Blockly.utils.dom.SvgElementType to Blockly.utils.Svg (#4285)
* Move SVGElementType to its own file shaving off 2.7KB
2020-09-16 14:42:58 -07:00
alschmiedt 22d598484f Update blockToDom types to include document fragments (#4280) 2020-09-16 10:51:09 -07:00
alschmiedt d01169fa79 Toolbox Rewrite (#4223)
Rewrite the toolbox in order to get rid of old closure code and make it easier to extend.

Co-authored-by: Maribeth Bottorff <maribethb@google.com>
2020-09-02 08:13:07 -07:00
Beka Westberg af9be6d9c3 Update some inline docs in block.js (#4241)
* Update some inline docs in block.js

* Fix build error
2020-09-01 10:27:17 -07:00