Aaron Dodson
1647a3299a
fix: Move @alias onto classes instead of constructors ( #6003 )
...
* fix: Move @alias onto classes instead of constructors
* fix: Fix JSDoc for constructors.
2022-03-16 15:48:32 -07:00
Rachel Fenichel
f5caf964aa
refactor: convert renderer classes to es6 classes ( #5874 )
...
* refactor: convert zelos renderer classes to es6 classes
* refactor: convert zelos measurables to es6 classes
* refactor: convert thrasos classes to es6 classes
* refactor: convert minimalist classes to es6 classes
* refactor: update geras classes to es6 classes
* chore: rebuild and format
* chore: fix indentation in comments
2022-01-14 12:43:13 -08:00
Aaron Dodson
3851b14627
refactor: Migrate to named exports ( #5623 )
...
* refactor: Migrate to named exports
* fix: Sort requires
* fix: Remove duplicate deps
2021-10-20 15:53:23 -07:00
Neil Fraser
90b3f75d82
Remove @author tags ( #5601 )
...
Our files are up to a decade old, and have churned so much, that the initial author of the file no longer has much meaning.
Furthermore, this will encourage developers to post to the developer group, rather than emailing Googlers (usually me) directly.
2021-10-15 09:50:46 -07:00
Monica Kozbial
49bc2b1ae4
Replace namespace annotation with class annotation in files that define a class ( #5566 )
2021-09-28 15:57:09 -07:00
Monica Kozbial
d8fbe1b05b
Add namespace and alias annotations to jsdoc ( #5550 )
...
* Add annotations to files under core/events
* Add annotations to files under core/interfaces
* Add annotations to files under core/keyboard_nav
* Add annotations to files under core/renderers
* Add annotations to files under core/serialization
* Add annotations to files under core/theme
* Add annotations to files under core/toolbox
* Add annotations to files under core/utils
* Add annotations to files under core
2021-09-27 14:42:54 -07:00
Aaron Dodson
6b07ccab96
chore: Remove declareLegacyNamespace from renderers ( #5528 )
...
* chore: Remove declareLegacyNamespace from Geras renderer
* chore: Remove declareLegacyNamespace from minimalist renderer
* chore: Remove declareLegacyNamespace from thrasos renderer
* chore: Remove declareLegacyNamespace from zelos renderer
* fix: Move debugger functionality out of Blockly.blockRendering to avoid dependency cycle when re-exporting submodules
* chore: Remove declareLegacyNamespace from Blockly.blockRendering.*
2021-09-24 08:33:35 -07:00
Rachel Fenichel
3adfaaf6d9
chore: named exports for block* files ( #5512 )
...
* chore: named export for block.js
* chore: named export for block_drag_surface.js
* chore: named export for block_dragger.js
* chore: named export for block_svg.js
* Fix import ordering
* chore: fix imports using requireType
* Remove extra require
2021-09-22 08:46:19 -07:00
Aaron Dodson
228ecb0f2d
Migrate core/renderers/geras/renderer.js to goog.module syntax ( #5307 )
...
* Migrate core/renderers/geras/renderer.js to goog.module
* Migrate core/renderers/geras/renderer.js to named requires
* clang-format core/renderers/geras/renderer.js
2021-08-11 08:30:05 -07:00
Sam El-Husseini
f97730e83c
Sort requires ( #4658 )
...
* Cleanup gulp method to sort requires
2021-02-25 17:17:42 -08:00
Rachel Fenichel
52c77c70d6
Fix missing require and requireTypes in geras
2021-02-02 11:38:08 -08:00
Sam El-Husseini
1d3a1655c6
Support multiple renderer / theme combos on the same page. ( #3732 )
...
* Support multiple renderer / theme combos on the same page.
2020-03-11 20:09:00 -07:00
Sam El-Husseini
13ac939b91
Support passing renderer overrides in options ( #3734 )
...
* Support passing in renderer options through workspace options.
2020-03-10 18:36:29 -07:00
Sam El-Husseini
eb40ca44ba
Dynamic fonts ( #3698 )
...
* Piping themes into the renderer and ensuring fields update their size information when constants change.
2020-02-20 17:16:01 -08:00
Neil Fraser
4e2f8e6e02
Use SPDX licences.
...
This is a followup to #3127 .
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
Sam El-Husseini
55997784ca
Move blockStyles into constants ( #3485 )
...
* Move blockStyles into constants.
2019-12-06 10:51:36 -08:00
Sam El-Husseini
70c24cf94e
CSS in renderers ( #3446 )
...
* Have each renderer declare some CSS that is specific to the renderer.
2019-11-18 16:14:19 -08:00
Sam El-Husseini
337cb9c486
Fix path_object inheritance ( #3403 )
...
* Fix path_object inheritance, add zelos path_object
2019-11-05 16:36:30 -08:00
Rachel Fenichel
13e4d671c3
Moved setHighlighted and setDisabled into the path object.
2019-11-01 14:28:51 -07:00
Neil Fraser
b46a4fe286
Bring our license format up to date ( #3127 )
...
* Google changed from an Inc to an LLC.
This happened back in 2017 but we didn’t notice. Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.
* Remove project description/titles from licenses
This is no longer part of Google’s header requirements. Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).
* License no longer requires URL.
* Fix license regexps.
2019-10-02 14:46:56 -07:00
Monica Kozbial
21c5698e98
Moving DARK_PATH_OFFSET to geras only. ( #3066 )
...
* Moving DARK_PATH_OFFSET to geras.
* Adding compressed and uncompressed files.
* Adding missing newlines
* Reverting commit of messages.
* Reverting compressed files.
* Updating compressed files.
* Addressing PR comments.
* Removing unecessary input overrides.
2019-09-23 15:57:59 -07:00
Rachel Fenichel
77185906d8
Renderers define which paths a block has. ( #2981 )
...
* Move render elements into a path object.
2019-09-16 12:13:32 -07:00
Sam El-Husseini
e339ae26bc
Move the rendering object to live on the workspace_svg ( #3016 )
...
* Move the rendering object onto the workspace allowing the various workspaces to have different renderers.
2019-09-13 14:20:34 -07:00
Sam El-Husseini
fc420b7037
Support for registering renderers and switching between them ( #3013 )
...
* Added support for registering renderers and for choosing which renderer the workspace wants to use.
2019-09-13 10:30:20 -07:00
Sam El-Husseini
8ab51c8639
Remove closure base file dependency ( #2976 )
...
* Trim down closure's base dependency even further by removing the dependency on closure's base file.
2019-09-11 17:30:51 -07:00
Rachel Fenichel
4b17234cba
Alphabetize requires
2019-09-10 13:01:13 -07:00
Rachel Fenichel
da6d28b818
More cleanup
2019-09-05 11:16:27 -07:00
Rachel Fenichel
87e7be9619
Cleanup
2019-09-04 17:19:31 -07:00
Rachel Fenichel
581705cc7b
Create a Renderer base class and extend it for each type of renderer
2019-09-04 17:16:08 -07:00