alschmiedt
cbf867f441
Add keyboard navigation support for multiple workspaces ( #3352 )
...
* Add keyboard navigation support for multiple workspaces
2019-10-28 12:53:51 -07:00
Sam El-Husseini
759875a6c0
Resolve remaining compiler type warnings ( #3334 )
...
* Resolve remaining compiler warnings with inconsistent types.
2019-10-25 19:07:17 -04:00
Sam El-Husseini
d387841db2
Resolve remaining compiler warnings with visibility issues ( #3335 )
2019-10-24 19:13:51 -04:00
Sam El-Husseini
bfe62f98ca
Dispose makes the types we use inconsistent. Suppress checkTypes in dispose. ( #3336 )
2019-10-24 15:47:42 -04:00
Sam El-Husseini
52bef4463c
Fix warnings related to connections. ( #3306 )
...
* Fix warnings related to connections.
2019-10-23 17:56:52 -04:00
Sam El-Husseini
270781113d
Fix warnings related to gestures and drag. ( #3307 )
...
* Fix warnings related to gestures and drag.
2019-10-22 14:21:00 -04:00
Sam El-Husseini
91717854c0
Fix warnings related to insertion markers. ( #3309 )
2019-10-22 14:20:42 -04:00
Beka Westberg
c00ee908e4
Removed positionNewBlock ( #3300 )
...
* Removed positionNewBlock
2019-10-21 21:51:04 -04:00
Sam El-Husseini
42552b5b22
Fix 6 warnings related to rendering. ( #3292 )
2019-10-21 17:49:38 -04:00
Sam El-Husseini
19018a5e8e
Fix compiler warnings related to XML ( #3277 )
...
* Fix 5 warnings.
2019-10-17 17:58:15 -05:00
Sam El-Husseini
a5a4e5161c
Fix 11 warnings related to block_svg ( #3276 )
...
* Fix 11 warnings related to block_svg
2019-10-17 16:30:48 -05:00
Sam El-Husseini
664cc3d6cd
Fix warnings related to number of arguments passed. ( #3270 )
2019-10-17 11:47:30 -05:00
Sam El-Husseini
526528354f
Fix 10 warnings related to visibility ( #3275 )
2019-10-17 11:46:57 -05:00
Sam El-Husseini
986e965be8
Private/protected visibility cleanup ( #3263 )
...
* Fix a number of private visibility issues
2019-10-16 11:48:09 -05:00
alschmiedt
a9420154a2
Update todos so they are no longer in jsdocs ( #3250 ) ( #3257 )
2019-10-15 10:14:39 -07:00
Josh Lory
43f9ab6889
Look up notch height from the current renderer ( #3217 )
2019-10-11 15:30:26 -07:00
Sam El-Husseini
e18dcd1bea
bringToFront optimization for large workspaces ( #3214 )
...
* bringToFront optimization for large workspaces
2019-10-09 16:08:23 -07:00
Rachel Fenichel
608ce7b93c
Merge pull request #3133 from BeksOmega/fixes/ConnectionTracking
...
Connection Tracking Pt 3: Changed connections to use 'tracked_' property
2019-10-07 11:05:10 -07:00
Beka Westberg
e09a7b8165
Renamed doNotCallTrackConnections_ to callTrackConnections. Flipped logic. Moved it to the constructor.
2019-10-05 12:28:25 -07:00
Sam El-Husseini
80aac249ea
Make bumpNeighbours public. ( #3156 )
2019-10-03 19:31:55 -07:00
Sam El-Husseini
d0772ad496
Fix compiler warnings related to fields. ( #3144 )
...
* Fix compiler warnings related to fields.
2019-10-03 15:58:46 -07:00
Sam El-Husseini
735a72c20a
mutation / compose fn annotations ( #3149 )
...
* Add compose / decompose type annotations.
2019-10-03 14:25:07 -07:00
Rachel Fenichel
771d6a119e
Merge pull request #3143 from rachel-fenichel/remove_block_render_svg
...
Remove block_render_svg
2019-10-02 16:33:47 -07:00
Rachel Fenichel
668731b545
add visibility annotations
2019-10-02 16:29:32 -07:00
Rachel Fenichel
7ed47670cf
Remove block_render_svg
2019-10-02 16:21:36 -07:00
Rachel Fenichel
79bedca5a7
Element -> SVGElement ( #3140 )
...
* Use SVGElement instead of Element for the results of createSvgElement
* More SVGElement annotations.
2019-10-02 16:12:31 -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
Beka Westberg
df5b5766c1
General cleanup.
2019-10-01 19:22:19 -07:00
Beka Westberg
5aaab251a3
Changed all other known 'hiding' references to 'tracking'.
2019-10-01 19:02:02 -07:00
Beka Westberg
08720929d3
Changed setConnectionsHidden to waitToTrackConnections and startTrackingConnections.
2019-10-01 19:00:53 -07:00
Beka Westberg
afbb2cca1e
Moved all database related code out of headless and into rendered.
2019-09-27 18:00:06 -07:00
Neil Fraser
6ef84035ca
Prevent dataset IDs from being renamed
...
The JS Compiler would rename ‘id’ and ‘blockId’ to something random. Normally that would be fine, but if it ended up with a ‘$’ in the name, then that becomes an illegal HTML property name and Blockly crashes.
A bug that’s been lurking in Blockly for years and randomly surfaced on a recent compile.
2019-09-25 19:50:39 -07:00
Sam El-Husseini
494487b37f
Mark fields as dirty when the workspace becomes visible. ( #3072 )
...
* Mark fields as dirty when the workspace becomes visible.
2019-09-23 11:21:45 -07:00
Beka Westberg
9e5df6216a
Fixed comment ownership. ( #2923 )
...
* Moved comment icons to use a model-based system. The block holds the model of the comment, and the comment icon holds a reference to it.
* Reorganized the setVisible function.
* Changed how xml.js serializes and deserializes comments.
2019-09-20 13:16:07 -07:00
Neil Fraser
a1e3973499
Make block comments an optional module. ( #3053 )
...
Measured as a 5 KB *increase* in code size, but that's because some other commit just landed between my tests. It's like running down an up escalator.
2019-09-19 14:53:28 -07:00
Neil Fraser
ec34698c53
Make trashcan and zoomcontrols optional modules. ( #3043 )
...
Saves 6 KB when compiled if there is no trashcan nor zoomcontrols.
2019-09-18 15:55:12 -07:00
Sam El-Husseini
8fae0411f7
Check if a type exists before testing instanceof ( #3031 )
...
* Check if a type exists before instance of
2019-09-17 16:28:18 -07:00
alschmiedt
2c98ecaed6
Update APIs and Add New Cursor Look ( #3009 )
...
* Updates methods to be private in navigation.js
* Update cursor with new look
2019-09-16 12:33:43 -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
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
alschmiedt
7bba4fa59c
Moves the cursor to correct location when block is deleted ( #2887 )
...
* Moves the cursor to correct location when block is deleted
* Moves cursor on block mutation
2019-08-21 16:33:16 -07:00
Neil Fraser
096959fde9
Cleanup of last fortnight’s commits. ( #2865 )
...
No functional changes.
2019-08-19 14:07:48 -07:00
Beka Westberg
cdc90f4059
Refactored field utilities.
2019-08-16 09:57:27 -07:00
Rachel Fenichel
9325e993b2
Remove call to renderInternal
2019-08-14 14:48:25 -07:00
Roy van Schaijk
bcadd836b2
Make the TabList exclude hidden fields ( #2764 )
...
* Make the TabList exclude hidden fields
* Stop using private variable
2019-08-01 11:14:52 -07:00
Rachel Fenichel
41c686e733
Use constants
2019-07-31 13:17:20 -07:00
Rachel Fenichel
bcdd691796
Make updating the connection locations called the same way for both renderers
2019-07-31 11:45:32 -07:00
alschmiedt
8ef540a8dc
Used moveBy in moveTo ( #2741 )
2019-07-30 10:50:59 -07:00
Sam El-Husseini
c1b49a1da7
Fix some jsdoc types ( #2701 )
...
* Fix JSDoc regarding type inconsistencies. Make image field src required and update image field tests.
2019-07-25 12:24:36 -07:00