Commit Graph

367 Commits

Author SHA1 Message Date
Rachel Fenichel
e3b05ad2c1 Move connection_db to a new file and start adding tests 2016-02-26 14:13:18 -08:00
Neil Fraser
b567d6b0d7 Allow shadow blocks to be edited. 2016-02-26 00:22:31 -08:00
Neil Fraser
ea6d875c34 Merge pull request #263 from rachel-fenichel/feature/rendering_refactor
Extract rendering code from block_svg.
2016-02-25 18:03:14 -08:00
Rachel Fenichel
5cb6cf5a1d Fix js style 2016-02-25 15:30:05 -08:00
Rachel Fenichel
9263e28263 Add tests for connection logic 2016-02-25 15:16:32 -08:00
Rachel Fenichel
9de572283e Refactor: pull rendering code out of block_svg 2016-02-25 13:55:36 -08:00
Rachel Fenichel
67aa5ef5bc Minor refactor of connection code 2016-02-25 13:37:19 -08:00
Neil Fraser
4d4521bed3 Fix scaled RTL coordinates. 2016-02-25 11:08:59 -08:00
Neil Fraser
e6db687234 Fix startScale on workspaces without a fixed flyout. 2016-02-24 19:27:03 -08:00
Neil Fraser
f0d04ba16b Fix RTL flyout events. 2016-02-24 16:52:55 -08:00
Neil Fraser
aeabf0ec6f Fix issue 251, $ in ID. 2016-02-16 22:16:36 -08:00
Neil Fraser
6e6a04b879 Add X/Y coordinates and block ID to create event. 2016-02-16 21:57:22 -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
1d44036cf9 Add missing move when unshadowing and missing XY when deleting. 2016-02-12 19:34:51 -08:00
Neil Fraser
0fab13400a Fire function events instead of DOM events. 2016-02-11 21:40:33 -08:00
Neil Fraser
d310b96f84 Add mutation events. 2016-02-10 21:40:51 -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
Neil Fraser
a481c1cff8 Customizable angle pickers. 2016-02-09 22:36:15 -08:00
Neil Fraser
3bbd46d6d7 Merge branch 'master' into 2016 2016-02-05 18:42:22 -08:00
Neil Fraser
5ca8b36cfc Allow <sep> to be used to add gaps between blocks. 2016-02-05 18:41:47 -08:00
Neil Fraser
0b467cf6b3 Minor style nits from PR #198. 2016-02-04 13:25:30 -08:00
Neil Fraser
e5e7c7aa81 Merge pull request #198 from carloslfu/zoom_to_fit_clean_pr
Add zoomToFit method to Workspaces
2016-02-04 13:13:42 -08:00
Neil Fraser
a4d330a75a Merge pull request #232 from rexpie/master
Fix for issue https://github.com/google/blockly/issues/210
2016-02-04 13:11:50 -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
0585cea1e3 Fix capacity filter to reenable blocks in non-closing flouts. 2016-02-02 19:53:52 -08:00
Neil Fraser
06858e8972 Trivial number/text/colour blocks should inherit parent's tooltip. 2016-02-02 16:20:02 -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
bbfd883629 Reduce duplication in Connection.connect. Support shadow statement blocks. Fix race condition. 2016-01-30 13:08:47 -05:00
Neil Fraser
a114849545 Remove duplicated connection path from connection.js 2016-01-28 22:12:42 -05:00
Neil Fraser
211595075e Make colour optional in JSON. Add ;/n in generator stub. 2016-01-28 14:25:38 -05:00
Neil Fraser
9804b31bb0 Allow easier addition of custom loops or functions. 2016-01-21 18:16:25 -08:00
Neil Fraser
c429949a4e Add Create, Delete, and Change events.
Not counting change for mutators.
2016-01-20 19:11:03 -08:00
Rachel Fenichel
fa53b8b18e fix scrollbar visibility when horizontal 2016-01-15 16:23:54 -08:00
Neil Fraser
36fe3994c9 Misc cleanup. 2016-01-15 15:36:06 -08:00
Neil Fraser
4b0ed0d372 Add custom event file. 2016-01-12 16:47:18 -08:00
Neil Fraser
dc1f03a168 Merge pull request #231 from carlosperate/toolbox_nodes
Allow XML DOM nodes to be injected as toolbox in IE
2016-01-08 15:13:47 -08:00
Neil Fraser
80f36f0629 Clean up for demo apps. 2016-01-08 13:58:18 -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
Rex Xia
a16f6f6207 Fix for issue https://github.com/google/blockly/issues/210 2016-01-05 13:54:52 +08:00
carlosperate
bda78da155 Allow nodes input to toolbox injection in IE 2016-01-05 00:56:57 +00:00
Neil Fraser
9746650aee Disable comment creation in IE. 2016-01-04 12:05:41 -08:00
Neil Fraser
554244fd35 Allow string hues. 2015-12-18 19:45:39 -08:00
Neil Fraser
a5ea93a1db Allow comments in flyouts. 2015-12-17 14:16:04 -08:00
Neil Fraser
26828d6c08 Simplify gear icon. 2015-12-16 18:22:42 -08:00
Neil Fraser
e1acdf5caf Allow RGB colours. 2015-12-13 19:13:05 +01:00
Neil Fraser
19263bdd5b Vectorize icons. 2015-12-13 11:06:15 +01:00