Commit Graph

45 Commits

Author SHA1 Message Date
Rachel Fenichel
98914fcf6b Dragging changes, rebased on develop (#1078)
* Add block drag surface translateSurfaceBy

* Add dragged connection manager

* Add gesture.js

* Add GestureHandler

* Implemented gesture skeleton

* Most basic workspace dragging

* Add dragged connection manager

* cleanup

* doc

* more cleanup

* Add gesture handler

* Add translateSurfaceInternal

* core/block_dragger.js

* cleanup

* Pull in changes to dragged connection manager

* Pull in changes to dragged connection manager

* comments

* more annotations

* Add workspace dragger

* Add coordinate annotations

* Start on block dragging

* Limit number of concurrent gestures

* Add some TODOs

* start using dragged connection manager

* Set origin correctly for dragging blocks

* Connect or delete at the end of a block drag.

* cleanup

* handle field clicks and block + workspace right-clicks

* move code into BlockDragger class, but still reach into Gesture internals a lot

* Clean up block dragger

* Call blockDragger constructor with correct arguments

* Enable block dragging in a mutator workspace

* Add workspace dragger

* click todos

* Drag flyout with background

* more dragging from flyout

* nit

* fix dragging from flyouts

* Remove unused code and rename gestureHandler to gestureDB

* Rename gesture handler

* Added some jsdoc in gesture.js

* Update some docs

* Move some code to block_svg and clean up code

* Lots of coordinate annotations

* Fix block dragging when zoomed.

* Remove built files from branch

* More dragging work (#1026)

-- Drag bubbles while dragging blocks
-- Use bindEventWithChecks to work in touch on Android. Not tested anywhere else yet.
-- Handle dragging blocks while zoomed
-- Handle dragging blocks in mutators
-- Handle right-clicks (I hope)
-- Removed lots of unused code

* More dragging work (#1048)

- Removed gestureDB
- Removing uses of terminateDrag
- Cleaned up disposal code

* Dragging bugfixes (#1058)

- Get rid of flyout.dragMode_ and blockly.dragMode_
- Make drags from the flyout start from the top block in the group
- Block tooltips from being scheduled or shown during gestures
- Don't resize mutator bubbles mid-drag

* Fix events in new dragging (#1060)

* rebuild for testing

* unbuild

* Fix events

* rebuild

* Fix up cursors

* Use language files from develop

* Remove handled TODOS

* attempt to fix IE rerendering bug, and recalculate workspace positions on scroll

* Rebuild all the things

* Comment cleanup; annotations; delete unused variables.
2017-05-05 12:42:53 -07:00
Rachel Fenichel
74adf30355 Merge master into develop (#1063)
- pick up translation changes
- clean up trailing spaces
2017-04-24 16:08:21 -07:00
appr
25555b5c20 Fix French translation of "colour with rgb" block (#1053)
"colorier", which is currently used, is a verb and proposed "couleur" is
a noun: the block in question does not change colour of anything, it
creates new colour instead, thus noun is more applicable.

Also, noun is used in French translation of "random colour" block:
"couleur aléatoire".
2017-04-19 06:17:50 -07:00
Katelyn Mann
9e4ed972b0 update from master + build 2017-03-22 10:05:20 -07:00
Andrew n marshall
560d373c93 Adding support for untranslated messages. (#819)
This will be used to define constants accessible in JSON block definitions. Messages with descriptions that include `{{Notranslate}}` will not be included in the translation files sent to TranslateWiki. Instead, they are written to `msg/json/constants.json`, and later merged back into the `.js` files, similar to synonyms.

Template details: https://translatewiki.net/wiki/Template:Notranslate
2017-01-13 15:32:00 -08:00
Neil Fraser
c8ca24a000 Revert "Rebuild nov 3 16" 2016-11-08 16:46:00 -08:00
Rachel Fenichel
da5c7bcd2a Fix workspace factory bug and rebuild 2016-11-08 16:44:16 -08:00
Rachel Fenichel
e58671b99b rebuild 2016-09-07 18:50:36 -07:00
Rachel Fenichel
0f7907c680 Update variable-related messages 2016-08-17 16:08:38 -07:00
Rachel Fenichel
65d785a86d New message for deletion; block dispose is a noop if it's already been deleted 2016-08-09 17:17:08 -07:00
Rachel Fenichel
f040929bd8 Merge remote-tracking branch 'upstream/develop' into feature/merge_develop 2016-07-15 13:07:07 -07:00
Neil Fraser
f12c95f4a9 Routine recompile. 2016-07-12 11:36:47 -07:00
Neil Fraser
5ea49cdf4e Change tooltips on get/set list blocks to be 0/1 index aware. All languages. 2016-07-09 04:23:01 -07:00
Neil Fraser
b324efaa86 Change tooltip on text/list indexOf blocks to be 0/1 index aware. All languages.
Delete ta:TEXT_INDEXOF_TOOLTIP since that text does not appear to make
sense.
2016-07-08 18:58:28 -07:00
Neil Fraser
b51547826d Remove AUTH, CHAT, ME messages in all languages. 2016-07-08 17:26:13 -07:00
Rachel Fenichel
ef4882d90d Add variable deletion as dropdown action 2016-07-07 14:39:45 -07:00
Neil Fraser
29e10e0976 Routine recompile. 2016-05-14 03:50:35 -07:00
Neil Fraser
e69ddf9cd2 Routine recompile. 2016-05-10 17:22:17 -07:00
Dan LaLiberte
55eba0a39b Rebuild, add lists_sort block to demos/code/index.html 2016-05-06 11:14:23 -04:00
Dan LaLiberte
c1cfec8dbd Add lists_sort block. 2016-05-04 17:03:24 -04:00
Neil Fraser
f549744bf0 Recompile. 2016-03-28 15:41:05 -07:00
Neil Fraser
6ae436a153 Add undo/redo context menu options on workspace. 2016-03-17 14:44:26 -07:00
Neil Fraser
f56dd7930b Routine recompile. 2016-02-05 18:44:53 -08:00
Neil Fraser
19c71573b7 Update messages.
Remove unused PROCEDURES_CALLNORETURN_CALL.  Add
PROCEDURES_DEFNORETURN_COMMENT and PROCEDURES_IFRETURN_HELPURL.
2015-12-17 15:34:23 -08:00
Neil Fraser
fa279b91ce Add option to delete all blocks on workspace. 2015-12-02 22:10:09 -08:00
Neil Fraser
0b02c693fd Routine recompile. 2015-10-25 23:51:24 -07:00
Neil Fraser
c83faa3314 Fix colours on collapsed categories. 2015-10-14 15:00:32 -07:00
Neil Fraser
879cacbb8d Add 'clean up blocks' command to workspace menu. 2015-10-09 19:22:22 -07:00
Neil Fraser
4858d9ecfe Routine recompile. 2015-06-22 15:45:18 -07:00
Neil Fraser
059c2f1778 Add automatic mode for internal/external input layout. 2015-06-10 18:45:15 -07:00
Neil Fraser
838a6a954b Remove interpolateMsg. 2015-06-08 18:38:33 -07:00
Neil Fraser
9050e32954 Adding JsonInit method of creating blocks. 2015-06-08 15:54:18 -07:00
Neil Fraser
0c0258c833 Translate 'Today' in date picker. 2015-02-05 13:07:13 -08:00
Neil Fraser
28829f3f34 Fix duplicated collapsed block connection bug (issue 262). Recompile language update. 2015-01-27 12:51:29 -08:00
Neil Fraser
e69f5f4502 Add list/text join/split block. 2015-01-18 16:54:30 -08:00
Neil Fraser
b9fdd5d7e3 Recompile of new translations. 2015-01-01 14:34:52 -08:00
Neil Fraser
6748e43d30 Remove Puzzle app (now in Blockly Games). 2014-10-15 17:02:22 -07:00
Neil Fraser
70b9925218 Updating wiki links. 2014-10-15 14:44:31 -07:00
Neil Fraser
8c252abae4 Updating wiki help URLs. 2014-09-19 22:14:51 -07:00
Neil Fraser
c44c629725 Point context help to GitHub from Google Code. 2014-09-18 16:52:00 -07:00
Neil Fraser
d998a1c8ec Update to latest version. 2014-09-08 14:26:52 -07:00
ellen.spertus
1f5f0abd94 Automatic commit Sat Feb 1 03:00:04 PST 2014 2014-02-01 03:00:04 -08:00
ellen.spertus
ea211c5080 Manual commit 2013-12-20 16:25:26 -08:00
ellen.spertus
08e5254196 Manual commit 2013-11-25 17:33:36 -08:00
ellen.spertus
fadc65eda2 Cron update Wed Nov 13 09:42:10 PST 2013 2013-11-13 09:42:12 -08:00