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
Christopher Allen
c0d22f2002
refactor: Rename ALIGN to Align and move from constants.js to input.js ( #5742 )
...
This constant is used to specify the alignment of
an Input, so it should live in the same file as the Input class.
I've done this as a separate named export, but it could alternatively
be made a static member of Input (i.e., Input.Align with only Input
being exported by name).
Where mocha tests were referring to Blockly.constants.ALIGN.*
without actually requiring Blockly.constants, I have reverted
them to refer to Blockly.ALIGN_* instead (pending conversion
to named requries).
Part of #5073 .
2021-11-29 21:59:48 +00:00
yang
bc7329f34a
fix(zelos): typo ( #5649 )
2021-10-31 23:21:15 -07:00
alschmiedt
0f3c06306f
chore: runs clang format on all files ( #5627 )
2021-10-21 15:22:24 -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
Neil Fraser
c929b3015b
chore: Convert == to === and != to !== where possible. ( #5599 )
2021-10-15 09:17:04 -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
900dfc7c68
Remove references to fully qualified namespace
2021-09-22 09:37:47 -07:00
kozbial
fd251dae22
Merge branch 'goog_module' into merge-develop-to-goog_module
2021-09-22 09:27:52 -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
kozbial
6fc90213a6
Merge branch 'develop' into merge-develop-to-goog_module
2021-09-21 16:04:33 -07:00
hpnrep6
2a9ef4f0f0
fix: blocks with no next connections overlapping statement input in Zelos ( #5369 )
...
* Use zelos' StatementInput function in addInput_
* Add align check to addInput_
2021-08-13 17:32:26 -07:00
kozbial
8e5fcaf724
clang-format core/renderers/zelos/info.js
2021-08-12 16:00:29 -07:00
kozbial
10e8349bad
Migrate core/renderers/zelos/info.js named requires
2021-08-12 16:00:29 -07:00
kozbial
a0980ae3be
Migrate core/renderers/zelos/info.js to goog.module
2021-08-12 16:00:29 -07:00
kozbial
390cc692bb
Migrate core/renderers/zelos/info.js to ES6 const/let
2021-08-12 16:00:29 -07:00
Rachel Fenichel
cf7a8b95b8
Remove extra requires of Blockly.constants
2021-07-21 15:35:19 -07:00
Sam El-Husseini
63d26dc186
Add extra requires check ( #4677 )
...
* Add extra requires check
2021-03-05 09:50:51 -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
Rachel Fenichel
6791e1aff2
Fix missing requires and requireTypes in zelos
2021-02-02 11:38:08 -08:00
Sam El-Husseini
fba35d342c
Add missing require Blockly.constants ( #4366 )
2020-10-12 17:56:42 -04:00
Monica Kozbial
a9223b0b22
Typo fixes. ( #3769 )
2020-03-25 15:47:27 -07:00
Sam El-Husseini
9b071ff7f7
[Zelos] Value to stack block support ( #3741 )
...
* Zelos value to stack block support
2020-03-12 11:47:47 -07:00
Sam El-Husseini
0db1f418ab
Fix block connected bounds for Zelos and minimalist renderers. ( #3740 )
...
* Fix block connected bounds for zelos and minimalist renderers.
2020-03-12 11:04:29 -07:00
Sam El-Husseini
56ca1e4330
[zelos] Fix centered textinputs ( #3703 )
...
* Fix bug in centering text inputs. Shouldn't add right corner element for output only blocks.
2020-02-21 12:03:28 -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
33e082414d
Adjust what the spacers at after the top and before the bottom rows depend on. Make them depend on the top row's minHeight and desired height. ( #3686 )
2020-02-10 08:58:07 -08:00
Sam El-Husseini
95aadbffb1
[zelos] Set a maximum width for dynamic connection shapes. ( #3685 )
...
* Set a maximum width for dynamic connection shapes.
* Only render the left side connection if a block has a statement input
2020-02-07 15:13:51 -08:00
Sam El-Husseini
899162c420
Fix zelos top row spacer height when it precedes a statement input. ( #3587 )
2020-01-13 18:39:24 -08:00
Sam El-Husseini
4f80bd6cbf
Simplify zelos tight nesting logic ( #3583 )
2020-01-13 15:47:54 -08:00
Sam El-Husseini
8013f80251
Start hat support in zelos. ( #3580 )
...
* Start hat support in zelos.
2020-01-13 13:22:49 -08:00
Sam El-Husseini
1661d640d6
Geras inline alignment of rows + max bottom row width ( #3575 )
...
* Add a desired width getter method for input rows. Override in geras to fix the width of the bottom row and statement input to a max width.
2020-01-13 10:40:52 -08:00
Sam El-Husseini
8b50df01c0
Fix zelos statement input alignment for spacers ( #3578 )
2020-01-13 10:32:49 -08:00
Sam El-Husseini
e162f3b45f
[zelos] Don't add next notch in a statement input if the connection block doesn't have a next connection ( #3562 )
...
* Don't add a next notch for statement inputs that have a connected block without a next connection.
2020-01-09 08:37:20 -08:00
Sam El-Husseini
e530f209cd
Fix bug in zelos tight nesting code. ( #3565 )
2020-01-08 08:47:10 -08:00
Sam El-Husseini
267877115f
Adjust single field row alignment so that it takes up less vertical space ( #3557 )
2020-01-07 13:52:57 -08:00
Sam El-Husseini
ec0ba27afc
Reduce an empty row surrounded by statement inputs to match size of bottom row ( #3544 )
2020-01-06 12:39:07 -08:00
Sam El-Husseini
6794f282d4
[zelos] Fix breakout loop block ( #3545 )
...
* Fix breakout loop block by only applying the small padding if the block doesn't have a statement input
2020-01-06 12:38:54 -08:00
Sam El-Husseini
b6596ceddb
Deal with the case where we have two dummy inputs on the same row, one with left alignment and the other right. ( #3540 )
2020-01-03 15:31:28 -08:00
Sam El-Husseini
8c80c3e509
[zelos] Bump / tight nest for all rows that are preceded and followed by a notch ( #3541 )
...
* Bump inputs past notch for every row that has a prev and next notch. Use the same logic for tight nesting.
2020-01-03 15:31:11 -08:00
Sam El-Husseini
3d66eab311
[zelos] Output connection position ( #3516 )
...
* Move connection point for output connections to the left and centerline
2019-12-16 14:06:10 -08:00
Sam El-Husseini
38e2b9d3ca
[zelos] Statement input centreline ( #3513 )
...
* Make statement inputs in zelos use the top row centreline.
2019-12-15 02:34:58 -08:00
Sam El-Husseini
595bc5270f
Remove BEFORE/AFTER statement input spacer measurable ( #3506 )
...
* Remove before / after statement input measurable and use spacer properties instead.
2019-12-11 19:29:31 -08:00
Sam El-Husseini
bb5939f77c
[zelos] Multi-line rendering ( #3501 )
...
* Add isMultiRow property and computation for padding with multirow blocks.
2019-12-11 14:12:36 -08:00
Sam El-Husseini
2b335dcb6b
Make alignment common renderer behaviour ( #3498 )
...
* Make alignment common
2019-12-11 13:42:10 -08:00