Commit graph

338 commits

Author SHA1 Message Date
Andy O'Neill
ffcd546474 feat: add quaternary color for selected dropdowns 2023-03-02 13:46:07 -05:00
Ashwin Ramaswami
5af97eae06 Duplicated block goes to mouse pointer, not corner of block 2018-12-17 09:49:13 -05:00
Andrew Sliwinski
1e750d5b60
Merge pull request from rachel-fenichel/merge_cleanup_1
Utility function cleanup for merges
2018-10-25 08:52:11 -04:00
Rachel Fenichel
d398e99f34 Fix () 2018-10-23 16:47:04 -04:00
Andrew Sliwinski
5b34893292
Revert "Throw Errors instead of using goog.asserts" 2018-08-22 15:29:43 -04:00
Rachel Fenichel
c8b820d811 Move duplicateAndDragCallback into scratchBlocksUtils 2018-08-16 17:07:13 -07:00
Rachel Fenichel
733ff2012a Move isRecyclable into scratchblocksutils 2018-08-16 17:02:55 -07:00
Rachel Fenichel
7e25f38cb3 Utility function cleanup for merges 2018-08-16 16:54:20 -07:00
Rachel Fenichel
c88b1f8d2a Throw Errors instead of using goog.asserts 2018-07-24 16:21:15 -07:00
kchadha
fec13d62d8
Merge pull request from kchadha/comment-events
Comment Events
2018-06-07 14:31:16 -04:00
Karishma Chadha
058c68eebb Cleaning up undo and redo of events some more (particularly undo deletion). Setting the size of a comment is separate from setting the visual comment bubble. E.g. minimizing a comment changes the bubble size but not the comment size. Separate this functionaltiy into two separate functions. Creating a comment should also take in stater text. Creating a comment for the first time does not also need to trigger an event for setting the comment text. 2018-06-06 15:29:03 -04:00
Rachel Fenichel
9836019fd0
Merge pull request from rachel-fenichel/bugfix/selected_check
Don't check for the selected block in setParent
2018-06-05 13:43:27 -07:00
Karishma Chadha
3d3b8f3427 Final changes for comment events. Resizing and minimizing/maximizing changes are recorded in CommentChange event. Undo/Redo works for all events. 2018-06-01 17:22:10 -04:00
Rachel Fenichel
fe4ed5255c Don't check for the selected block in setParent 2018-05-31 15:02:12 -07:00
Lee Howett
d9c91d958d Randomized id for svg filters 2018-05-31 12:23:20 -07:00
kchadha
e38969831e
Merge pull request from kchadha/comments
Scratch Block Comments
2018-05-30 19:31:06 -04:00
Karishma Chadha
516ca3372b Use ScratchBlockComment everywhere and break out comment to dom translation into a helper function. 2018-05-30 10:28:14 -04:00
Karishma Chadha
4afc8e5085 Scratch block comments. 2018-05-25 17:21:31 -04:00
Rachel Fenichel
af4060c75b Add ordered option to getDescendants and all uses.
"
2018-05-16 12:51:41 -07:00
Rachel Fenichel
bcb7c29b6d Update comment 2018-05-15 17:09:08 -07:00
Rachel Fenichel
4836e55536 Break events.js into multiple files 2018-05-09 13:34:21 -07:00
Corey Frang
d0b33636c8 More general approach to procedures_call reasoning for being dynamic 2018-05-04 15:01:41 -04:00
Corey Frang
099e15ab4c Recycle flyout blocks 2018-05-04 13:29:14 -04:00
Corey Frang
51c3e8e96c Optimize block.setParent during clearing workspace 2018-05-04 13:29:14 -04:00
Rachel Fenichel
fc0da3e070 All remaining lint in core 2018-05-02 15:32:28 -07:00
Rachel Fenichel
61a1517bf9
Merge pull request from rachel-fenichel/lint
More lint and small changes from Blockly
2018-05-01 10:04:14 -07:00
Rachel Fenichel
26b82223b4 Add a file for scratch-blocks-specific util functions 2018-04-30 15:55:31 -07:00
Rachel Fenichel
3c992dee6a More lint and small changes from Blockly 2018-04-30 15:42:02 -07:00
Rachel Fenichel
88bb0bff3e Lint that caused conflicts with Blockly 2018-04-26 14:28:59 -07:00
Rachel Fenichel
48b1648013 Move block animation code to a new file 2018-04-16 15:33:10 -07:00
Eric Rosenbaum
fdbc3c1882
Merge pull request from towerofnix/remove-help-option
Remove 'help' option from block context menu
2018-03-15 14:10:04 -04:00
Florrie
a8414da274 Remove 'help' option from block context menu 2018-03-07 18:56:50 -04:00
DD
353fa3a078 Immediately undo move to outside blockly 2018-02-15 18:13:06 -05:00
DD
f057073552 Move style change to block css 2018-02-15 18:13:06 -05:00
Paul Kaplan
9841b8b1de Wait to emit new block events until positioned and shadows are fixed.
This follows the pattern from workspace.paste.
2017-11-30 11:45:49 -05:00
Paul Kaplan
07904ede5e Fix issue by checking for workspace before gettings gesture. 2017-11-30 11:37:50 -05:00
Rachel Fenichel
d014a7de6e Make inputs own input shapes, and dispose of them correctly 2017-11-09 13:29:51 -08:00
Rachel Fenichel
df2e5c90bb
Check workspace.isDragging() instead of Blockly.dragMode_
Scratch-blocks version of https://github.com/google/blockly/pull/1418
2017-11-03 16:08:00 -07:00
Paul Kaplan
7fc1a4894d Fix trailing spaces. 2017-10-23 10:09:05 -04:00
picklesrus
13e5c30e26 Revert and changes made on top of it. See discusson on and . We will fix this a different way next week 2017-10-20 17:53:14 -07:00
Neil Fraser
75f52db086 Strip licences from compiled code. () 2017-10-19 14:04:45 -04:00
Rachel Fenichel
92e6d339f4 Code cleanup in BlockSvg.prototype.tab () 2017-10-19 11:56:44 -04:00
Neil Fraser
a119cca83b Compatibility for Closure Compiler. () 2017-10-19 11:47:04 -04:00
Rachel Fenichel
995222fb2e Merge pull request from rachel-fenichel/bugfix/1133
Enable bulk updating during duplication
2017-10-13 10:07:28 -07:00
Rachel Fenichel
cbe4aec9e6 Make functions package instead of private 2017-10-12 15:22:49 -07:00
Rachel Fenichel
f34ac37f2f Move context menu helpers to contextmenu.js 2017-10-12 15:20:57 -07:00
Rachel Fenichel
5f01772df6 Create helper functions for creating block context menu options 2017-10-12 15:07:18 -07:00
Rachel Fenichel
970db3cef9 Enable bulk updating during duplication 2017-10-12 14:17:26 -07:00
Paul Kaplan
ddb623455f Merge pull request from paulkaplan/fix-duplicate-on-duplicate
Add shadow dom ID uniquifier to 'Duplicate' code path
2017-08-09 09:33:43 -04:00
Paul Kaplan
3efae4ce3f Move function into helper 2017-08-05 13:37:10 -04:00