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
Beka Westberg
7e221c20de
refactor: convert PathObject to an ES6 class ( #5954 )
...
* refactor: add super call to geras path_object
* refactor: run conversion script
* clean: cleanup from conversion script
* fix: make debug build happy
* clean: add clarifying comment
* clean: format
2022-02-23 14:12:32 -08: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
Rachel Fenichel
e8d6f7f408
chore: auto-fix violations of comma-dangle rule ( #5625 )
2021-10-21 09:01:51 -07: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
kozbial
e75a50b8b9
clang-format core/renderers/zelos/path_object.js
2021-08-17 12:31:31 -07:00
kozbial
07ddf67aa9
Migrate core/renderers/zelos/path_object.js named requires
2021-08-17 12:31:31 -07:00
kozbial
d6eb6c14ef
Migrate core/renderers/zelos/path_object.js to goog.module
2021-08-17 12:31:31 -07:00
kozbial
b4b8b22994
Migrate core/renderers/zelos/path_object.js to ES6 const/let
2021-08-17 12:31:31 -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
d919b0af21
Update JSDoc from Array.<> to Array<>
...
Same with Object.
2021-05-27 21:30:26 -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
3c43738999
Add missing requireTypes to zelos
2021-02-02 11:38:08 -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
Sam El-Husseini
0f3db47fa5
Use generics to derive SVG element type ( #4036 )
...
* Encapsulate type in a generic to automatically derive type of SVG element when using createSvgElement
2020-07-13 10:40:31 -07:00
Monica Kozbial
a9223b0b22
Typo fixes. ( #3769 )
2020-03-25 15:47:27 -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
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
Beka Westberg
025d087e6a
fix: Fixed insertion preview logic. And fixed markers not handling typed statements. ( #3526 )
...
* Added planned functions.
* Added default getConnectionPreviewMethod method.
* Moved show preview logic into their new functions.
* Fixed default getConnectinPreviewMethod logic.
* Reverted to lastConnectionInRow call (for output connections) for behavioral backwards-compat.
* Added zelos logic.
* Removed unused functions, and added docs.
2020-01-24 07:49:31 -08:00
Sam El-Husseini
af84e6a40c
Zelos rename highlightfilter ( #3630 )
...
* Rename highlight filter to selected filter
* Update comment
2020-01-22 11:07:45 -08:00
Sam El-Husseini
38fe5189bb
[zelos] Limit vertical tightnesting ( #3504 )
...
* Limit vertical tight nesting to blocks with a certain height
* Use const.
2019-12-10 16:51:36 -08:00
Sam El-Husseini
5852bef90d
Inject constants CSS in createDom ( #3502 )
...
* Inject constants CSS in createDom instead. Use a random identifier to pre-emptively set CSS that uses the disabled pattern id.
2019-12-10 15:00:32 -08:00
Sam El-Husseini
63f7af115c
[zelos] Set field rect background colour ( #3500 )
...
* More consistent field rect colour in zelos. Only overriding in full block fields. Fix disabled block colours.
* Use a better constant name and fix build.
2019-12-10 08:31:43 -08:00
Sam El-Husseini
f5bb5b6143
Zelos horizontal tight nesting. ( #3490 )
...
* Reduce the amount of implicit spacing added by the connection shape by adding negative spacing to the first and last spacer in an output block
2019-12-06 10:51:50 -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
f4431b3361
[Zelos] apply Colour ( #3465 )
...
* Only apply colour from a single entry point. Zelos rendering apply colour
2019-11-25 14:18:10 -08:00
Sam El-Husseini
24627f0b3e
Fix zelos flickering in flyout ( #3448 )
2019-11-19 08:41:00 -08:00
Sam El-Husseini
3c120f9d46
Highlight input shape in Zelos ( #3444 )
...
* Highlight shape for input in zelos rendering
2019-11-15 13:14:39 -08:00
Sam El-Husseini
f9dcb60f82
Zelos replacement highlight ( #3431 )
...
* Zelos replacement highlight
2019-11-13 17:14:28 -08:00
Sam El-Husseini
ed79ea6d94
Fix zelos input outline rendering in RTL ( #3435 )
2019-11-13 10:38:29 -08:00
Sam El-Husseini
ee09aafd57
[zelos] Add input outlines on the path object. ( #3410 )
...
* Add input outlines on the path object.
2019-11-07 15:15:49 -08:00
Sam El-Husseini
d49b3400e6
Add zelos selection highlight. ( #3390 )
...
* zelos selection highlight
2019-11-06 13:47:30 -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