Commit Graph

436 Commits

Author SHA1 Message Date
Rachel Fenichel
9de572283e Refactor: pull rendering code out of block_svg 2016-02-25 13:55:36 -08:00
Neil Fraser
5297344a8b Fix RTL XML. 2016-02-16 13:04:47 -08:00
Neil Fraser
a0a61d2f33 Add event grouping. Add event monitoring to playground. 2016-02-12 22:09:21 -08:00
Neil Fraser
0fab13400a Fire function events instead of DOM events. 2016-02-11 21:40:33 -08:00
Neil Fraser
cf257ea5e9 Add event filtering. 2016-02-10 19:25:17 -08:00
Neil Fraser
63c112932b Rename Field.setChangeHandler to Field.setValidator 2016-02-10 14:33:13 -08:00
picklesrus
80d8d55315 Cache delete area rectangle bounds in the on mouse down event
to avoid getting it for every mouse move event. The delete areas
won't change while the user is dragging blocks around.
Also switch calculations for delete area inclusion to be done in
client coordinates so we don't have to convert to svg coordinates on
every mouse move event.
This should speed up dragging blocks a bunch.
2016-02-03 15:36:39 -08:00
Neil Fraser
acd6af1c45 Add Move event. 2016-02-02 00:28:49 -08:00
Neil Fraser
0027d9294a Double speed of workspace drag. 2016-02-01 16:13:05 -08:00
Neil Fraser
c429949a4e Add Create, Delete, and Change events.
Not counting change for mutators.
2016-01-20 19:11:03 -08:00
Neil Fraser
4253de041a Remove old realtime. 2016-01-08 13:03:22 -08:00
Neil Fraser
3bce368115 Simplify workspace options by removing svg property. 2016-01-07 17:01:01 -08:00
Neil Fraser
9746650aee Disable comment creation in IE. 2016-01-04 12:05:41 -08:00
Neil Fraser
a5ea93a1db Allow comments in flyouts. 2015-12-17 14:16:04 -08:00
Neil Fraser
e1acdf5caf Allow RGB colours. 2015-12-13 19:13:05 +01:00
Neil Fraser
3b3ef79fbd Create block id database. 2015-12-09 10:02:42 +01:00
Neil Fraser
6acaf35967 Add workspace.newBlock, deprecate Blockly.Block.obtain. 2015-12-07 16:40:45 +01:00
Neil Fraser
fa279b91ce Add option to delete all blocks on workspace. 2015-12-02 22:10:09 -08:00
Troy McKinnon
482c62dfa2 adding additional type annotations 2015-12-01 14:04:54 -06:00
Troy McKinnon
11906b7535 improve type annotations 2015-11-10 17:28:46 -06:00
Neil Fraser
17ead475b9 Don't mistakenly animate deletion of whole stack. 2015-10-14 22:06:13 -07:00
Neil Fraser
9b26d0d260 De-shadow blocks that have been edited. 2015-10-14 18:20:53 -07:00
Neil Fraser
ded524ff3a Add tabbing between text fields. 2015-10-14 16:23:23 -07:00
Neil Fraser
879cacbb8d Add 'clean up blocks' command to workspace menu. 2015-10-09 19:22:22 -07:00
Neil Fraser
799835943a Shadow Blocks 2015-10-06 18:09:27 -07:00
Neil Fraser
90e3ccb2b7 Add Blockly.BlockSvg.START_HAT option. 2015-10-04 07:15:18 -07:00
Neil Fraser
c82c460da8 Move icon reference to block SVG.
No functional change.
2015-09-30 19:33:05 -07:00
Neil Fraser
8ecfab014f Separate overlapping emboss filter and disabled pattern across multiple Blockly instances. Issue 184. 2015-09-28 12:20:28 -07:00
Neil Fraser
33a0cc98de Switch focus to correct workspace when clicking on block. 2015-09-23 14:46:29 -07:00
Neil Fraser
890d8d8d73 Fix zoom center button. Reverse disconnect wiggle. 2015-09-22 17:28:51 -07:00
Neil Fraser
c14951c928 Add disconnect sound and animation. 2015-09-20 14:28:39 -07:00
Neil Fraser
ad1d1261c8 Duplicate should spread blocks out like copy and paste do. 2015-09-18 18:46:19 -07:00
Neil Fraser
2b345bbcb6 Fix centering of fields. 2015-09-17 17:12:18 -07:00
Neil Fraser
0061482977 Disallow output coupled with next statement. 2015-09-17 16:47:13 -07:00
Neil Fraser
6f2f3914f6 Double rendering speeds by adding a cache to prevent repeated calls to getComputedTextLength. 2015-09-15 16:20:13 -07:00
Neil Fraser
db940ca493 Fix reversed height and width on image fields. 2015-09-07 18:52:07 -07:00
Neil Fraser
84838a67f3 Don't delete connected child blocks. 2015-08-20 12:07:48 -07:00
Neil Fraser
96d5987db1 Fix Audio test in IE (issue 272) and fix error when deleting block with warning. 2015-08-19 18:42:35 -07:00
Neil Fraser
058760e30d Merge pull request #158 from carlosperate/ie_comment_fix
Rename Warning getAllText function for Comment object compatibility.
2015-08-19 17:36:03 -07:00
Neil Fraser
5b7fec7092 Add zooming feature.
By carloslfu.
2015-08-19 17:21:05 -07:00
carlosperate
d773adb7b3 Rename Warning getAllText function for Comment object compatibility. 2015-08-17 15:23:08 +01:00
Neil Fraser
07e4b92443 Fix cross-linked validators (issue #133) 2015-07-20 16:18:40 -07:00
Neil Fraser
98a76a62db Corrections to warning bubbling. 2015-07-20 11:54:03 -07:00
Neil Fraser
0b9749166c Make warnings bubble up to collapsed parents. 2015-07-19 16:49:11 -07:00
carlosperate
e829f30f1a setWarningText can now take optional ID to maintain multiple warnings. 2015-07-14 22:22:13 +01:00
Neil Fraser
e0f90e6e33 Adding more type documentation. 2015-07-13 15:03:22 -07:00
Neil Fraser
64bd9d498d Stop calling onchange on deleted blocks. 2015-07-13 14:16:09 -07:00
Neil Fraser
a939235959 Fix path glitch when block selected (issue 121) 2015-07-12 15:38:59 -07:00
Neil Fraser
798312a6b8 Fix open trashcan with undeletable block. 2015-07-01 14:04:59 -07:00
Neil Fraser
edd3e3bf33 Lint corrections. 2015-06-17 13:05:24 -07:00