Maribeth Bottorff
3bac582edb
refactor: move Blockly.deleteBlock out of blockly.js ( #5483 )
2021-09-16 15:13:59 -07:00
Maribeth Bottorff
c5acc1de72
refactor: remove unused Blockly.onContextMenu_ ( #5480 )
2021-09-16 15:01:12 -07:00
Maribeth Bottorff
1334bd3f1b
refactor: Migrate Blockly.onKeyDown out of blockly.js ( #5476 )
...
* refactor: move Blockly.onKeyDown to inject.js
* fix the tests
2021-09-16 14:48:03 -07:00
Aaron Dodson
6a4a359f7b
Migrate hideChaff() from Blockly to WorkspaceSvg ( #5460 )
...
* Add hideChaff() to core/workspace_svg.js
* Mark Blockly.hideChaff as deprecated
* Update uses of Blockly.hideChaff() to WorkspaceSvg.hideChaff() in core
* Update uses of Blockly.hideChaff() to WorkspaceSvg.hideChaff() in demos
* Style and formatting fixes
* Switch from accessor to stub wrapper for Blockly.hideChaff
Co-authored-by: Christopher Allen <cpcallen+github@gmail.com >
Co-authored-by: Christopher Allen <cpcallen+github@gmail.com >
2021-09-15 13:41:20 -07:00
Aaron Dodson
2ba51d4d75
Migrate Blockly.hueToHex to Blockly.utils.colour.hueToHex ( #5462 )
...
* Move hueToHex to core/utils/colour.js
* Mark Blockly.hueToHex as deprecated and pass calls through to Blockly.utils.colour.hueToHex
* Migrate core to use Blockly.utils.colour.hueToHex
* Migrate demos to use Blockly.utils.colour.hueToHex
2021-09-14 14:13:24 -07:00
Aaron Dodson
ce8e7921a2
Move alert/confirm/prompt to a new file, dialog.js ( #5457 )
...
* Migrate prompt/alert/confirm to dedicated module
* Update core/blockly.js to pass through calls to prompt/alert/confirm to core/dialog.js
* Update calls to Blockly.prompt/alert/confirm to dialog.prompt/alert/confirm
* Fix typo and errant redeclaration of Blockly.prompt
* Clarify JSDoc on customizing Blockly.dialog.alert/confirm/prompt
2021-09-14 08:19:53 -07:00
Rachel Fenichel
d5a6d7d3db
Move draggingConnections to common
2021-08-04 15:59:41 -07:00
Rachel Fenichel
1eabe91fa6
Move set/getParentContainer into common
2021-08-04 15:59:41 -07:00
Rachel Fenichel
084c421597
Remove some unused functions and add deprecation warnings
2021-08-04 15:59:41 -07:00
Rachel Fenichel
2e30bbe7ce
Update uses of mainWorkspace in core
2021-07-30 11:30:34 -07:00
Rachel Fenichel
a86f1484d2
Move main workspace to a new file, common.js
2021-07-30 11:30:31 -07:00
Rachel Fenichel
f7549f73a6
Use CopyData type
2021-07-29 17:16:58 -07:00
Rachel Fenichel
714bb6120f
Fix annotations
2021-07-29 12:52:14 -07:00
Rachel Fenichel
d58a878fad
Switch to getter for keyboard contents.
2021-07-29 12:43:49 -07:00
Rachel Fenichel
961254663d
Move clipboard functions to a separate namespace
2021-07-28 11:57:24 -07:00
Rachel Fenichel
8b5f5f72d6
Refer to more constants through internalConstants
2021-07-21 15:33:55 -07:00
Rachel Fenichel
c15f1e4767
Move constants to internal_constants.js and add aliases
2021-07-21 15:33:16 -07:00
Rachel Fenichel
5c48bfc188
Tweak comment
2021-06-28 11:09:01 -07:00
Rachel Fenichel
2fcdd846be
Remove deprecated build.py script
2021-06-24 16:58:28 -07:00
Monica Kozbial
d2579a7369
Add removeComponent to ComponentManager ( #4884 )
2021-06-09 22:29:33 -07:00
jschanker
53d8754ee9
Remove row healing for block deletion #4832 ( #4873 )
2021-06-08 17:13:17 -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
Sam El-Husseini
f2f878db8c
Fix multiple strict require warnings ( #4793 )
2021-04-21 16:46:04 -07:00
Sam El-Husseini
0cc79b1366
Fix missing require - constructors ( #4676 )
...
* Fix missing constructors
2021-04-21 12:11:13 -07:00
Rachel Fenichel
f7e0d5f4ea
Use existing toolbox position enum
2021-03-05 14:16:43 -08:00
Rachel Fenichel
59084a043c
TOOLBOX_AT_TOP and friends -> constants.toolboxPosition.TOP, etc
2021-03-05 13:48:45 -08:00
alschmiedt
26104d280d
Update metrics to support mutators ( #4679 )
2021-03-05 11:44:29 -08:00
Sam El-Husseini
63d26dc186
Add extra requires check ( #4677 )
...
* Add extra requires check
2021-03-05 09:50:51 -08:00
Rachel Fenichel
c6d6df81be
Rebuild uncompressed
2021-03-04 10:23:18 -08:00
Rachel Fenichel
750b62030b
First pass at creating connectionTypes and inputTYpes
2021-03-04 10:22:24 -08:00
Rachel Fenichel
4e31deca2b
Align constants -> Blockly.constants.ALIGN enum
2021-02-26 11:12:53 -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
896ec0b637
Add jsdoc
2021-02-23 10:25:23 -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
40928634e5
Add some missing requires and requireTypes
2021-01-08 15:03:55 -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
alschmiedt
f1498e7f07
Keyboard shortcuts ( #4421 )
...
* Adds shortcut registry and removes action and key map (#4398 )
* Adds Shortcut tests and refactored navigation tests (#4412 )
* Adds shortcut items (#4408 )
* Add shortcuts for navigation (#4409 )
* Add final keyboard shortcut cleanup (#4413 )
2020-11-02 13:30:05 -08:00
alschmiedt
22d598484f
Update blockToDom types to include document fragments ( #4280 )
2020-09-16 10:51:09 -07:00
Monica Kozbial
26993a120f
Emitting event on trashcan close. ( #4056 )
...
* Emitting event on trashcan close.
2020-07-21 13:14:29 -07:00
alschmiedt
1349017c8a
Check if a gesture is in progress before doing keyboard nav ( #3950 )
...
* Check if a gesture is in progress before doing keyboard nav
2020-06-10 10:28:02 -07:00
Sam El-Husseini
e3babee1f3
Add Blockly.utils.Metrics @record ( #3913 )
...
* Add Blockly.utils.Metrics
2020-05-21 15:03:17 -07:00
Sam El-Husseini
317834ff59
Add accessibility interfaces and fix navigation types ( #3908 )
...
* Add accessibility interfaces and fix navigation types
2020-05-21 11:18:10 -07:00
Neil Fraser
f4fc455f83
Add Ctrl-y (redo) support.
...
Does not trigger on Command-y since this is a Windows-only shortcut.
2020-04-30 16:28:19 -04:00
Sam El-Husseini
4b20383831
Add Selectable interface ( #3823 )
...
* Add I Selectable interface
2020-04-16 18:22:32 -07:00