Neil Fraser
e62bb1af73
Remove all calls to goog.dom.createDom
...
All XML node cereations are now centralized.
2018-10-16 11:34:10 -07:00
Andrew n marshall
9252c947bc
Add new atan2 block (PR #2079 )
...
Merge pull request from nadyafebi/add-atan2-support-1835
2018-10-16 11:27:00 -07:00
Andrew n marshall
58bfab7c6c
Math.PI => Math.pi
...
The Dart test was failing prior to this.
2018-10-16 11:25:10 -07:00
Nadya Febiana Djojosantoso
e1217252ff
Update math_atan2 unit test
2018-10-15 21:01:53 -07:00
Neil Fraser
4f714716a5
Upgrade to dart 2.0
2018-10-15 16:17:50 -07:00
Neil Fraser
7531b323b2
Honour reductions to MAX_UNDO ( #2078 )
...
* Honour reductions to MAX_UNDO
If MAX_UNDO is reduced, we now throw away the extra records in the stack, as opposed to just not growing it anymore.
* shift != unshift
Apparently I need a new brain.
* Ensure MAX_UNDO isn’t negative.
2018-10-12 06:34:23 -07:00
Nadya Febiana Djojosantoso
da48f3c66f
Add math_atan2 unit test
2018-10-11 15:14:08 -07:00
Nadya Febiana Djojosantoso
d822efa322
Add math_atan2 block to demos and playgrounds
2018-10-11 14:56:13 -07:00
Nadya Febiana Djojosantoso
d3deeedc02
Add math_atan2 Python generator
2018-10-11 14:34:26 -07:00
Nadya Febiana Djojosantoso
c61822befa
Add math_atan2 PHP generator
2018-10-11 14:20:27 -07:00
Nadya Febiana Djojosantoso
683a738166
Add math_atan2 Lua generator
2018-10-11 14:19:40 -07:00
Nadya Febiana Djojosantoso
fd0bcabacd
Add math_atan2 Dart generator
2018-10-11 14:19:01 -07:00
Nadya Febiana Djojosantoso
23bb0e00d9
Add math_atan2 JavaScript generator
2018-10-11 14:18:25 -07:00
Andrew n marshall
1b9b613ca5
Adding hooks for Android dialogs upon console.prompt() and similar (PR #2077 )
...
Merge pull request from AnmAtAnm/android-js-prompt
2018-10-11 14:08:02 -07:00
Nadya Febiana Djojosantoso
c89909bd29
Add math_atan2 strings
2018-10-11 13:29:42 -07:00
Nadya Febiana Djojosantoso
633bbbc8fa
Add math_atan2 block with two inputs
2018-10-11 13:12:23 -07:00
Andrew n marshall
09958368e2
Adding hooks for Android dialogs upon console.prompt() and similar.
...
Adapting code from Android's JsDialogHelper, a private class in the
Android source code.
2018-10-10 14:08:32 -07:00
translatewiki.net
6608860a23
Localisation updates from https://translatewiki.net .
2018-10-09 10:15:54 +02:00
Andrew n marshall
8e81cc2672
Updating Android ContraintLayout (PR #2074 )
...
Merge pull request from AnmAtAnm/android-deps
2018-10-05 15:56:45 -07:00
Andrew n marshall
9062b0e23f
Updating Android constraint layout
2018-10-05 15:53:02 -07:00
Andrew n marshall
c9d1f3ec38
Update Android build tools and gradle (PR #2073 )
...
Merge pull request from AnmAtAnm/gradle-3.2.0
2018-10-05 15:33:01 -07:00
Andrew n marshall
3fc7cc5295
Update Android project to gradle 3.2.0
2018-10-04 17:12:08 -07:00
Andrew n marshall
f82ba8b73a
Update gradle to 3.1.4 (PR #2072 )
...
Merge pull request from AnmAtAnm/gradle-3.1.4
2018-10-04 16:52:21 -07:00
Andrew n marshall
645430df3d
Update gradle to 3.1.4
2018-10-04 16:14:35 -07:00
translatewiki.net
85661afe42
Localisation updates from https://translatewiki.net .
2018-10-03 21:58:32 +02:00
Rachel Fenichel
86e114fbbf
Merge pull request #2069 from google/rachel-fenichel-patch-1
...
Fix inconsistent return type warning
2018-09-25 14:28:43 -07:00
Rachel Fenichel
870e95a255
Fix inconsistent return type warning
2018-09-25 14:22:12 -07:00
Neil Fraser
f3a76cc288
Remove unneeded String() and str() calls.
...
String literals in JS and Python don’t need to be coerced to strings.
2018-09-25 14:00:00 -07:00
Neil Fraser
346b24aa74
Playground upgrades ( #2063 )
...
Adds two new blocks to the playground's test blocks.
Fixes dropdown which previously could not be set to 'Test Blocks' due to missing condition.
Simplifies detection of file:// url.
2018-09-25 13:59:26 -07:00
ImgBotApp
583dfea6dd
[ImgBot] optimizes images
...
*Total -- 61.18kb -> 44.41kb (27.42%)
/demos/headless/icon.png -- 4.26kb -> 1.80kb (57.72%)
/demos/interpreter/icon.png -- 3.13kb -> 1.71kb (45.13%)
/tests/media/g.png -- 1.14kb -> 0.66kb (42.17%)
/tests/media/50px.png -- 1.55kb -> 0.93kb (40.31%)
/demos/graph/icon.png -- 1.72kb -> 1.03kb (40.01%)
/tests/media/30px.png -- 1.10kb -> 0.67kb (39.4%)
/media/sprites.png -- 4.05kb -> 2.53kb (37.41%)
/tests/media/m.png -- 1.02kb -> 0.65kb (36.49%)
/tests/media/c.png -- 0.84kb -> 0.59kb (29.21%)
/tests/media/b.png -- 0.75kb -> 0.55kb (26.79%)
/demos/accessible/icon.png -- 1.38kb -> 1.01kb (26.69%)
/demos/generator/icon.png -- 3.52kb -> 2.61kb (25.64%)
/tests/media/a.png -- 0.76kb -> 0.57kb (25.45%)
/demos/fixed/icon.png -- 2.06kb -> 1.57kb (24.08%)
/tests/media/d.png -- 0.72kb -> 0.55kb (23.58%)
/demos/resizable/icon.png -- 3.18kb -> 2.47kb (22.27%)
/demos/toolbox/icon.png -- 2.76kb -> 2.16kb (21.83%)
/demos/rtl/icon.png -- 3.07kb -> 2.41kb (21.46%)
/tests/media/200px.png -- 2.11kb -> 1.67kb (21.06%)
/appengine/apple-touch-icon.png -- 3.93kb -> 3.15kb (19.78%)
/demos/code/icon.png -- 3.95kb -> 3.19kb (19.44%)
/demos/blockfactory_old/icon.png -- 4.34kb -> 3.55kb (18.17%)
/demos/maxBlocks/icon.png -- 1.96kb -> 1.61kb (17.87%)
/tests/media/k.png -- 0.60kb -> 0.50kb (16.18%)
/demos/plane/icon.png -- 3.32kb -> 2.80kb (15.63%)
/demos/storage/icon.png -- 3.19kb -> 2.71kb (14.99%)
/media/quote0.png -- 0.78kb -> 0.75kb (3.14%)
2018-09-23 13:31:54 -07:00
Neil Fraser
59a4db61b2
Remove .children access
...
Not supported in node.js’ xmldom package.
2018-09-20 20:34:07 -07:00
translatewiki.net
73b1e855c6
Localisation updates from https://translatewiki.net .
2018-09-20 11:02:05 +02:00
Andrew n marshall
d8cbc9ac13
Adding demos/mobile/README.md (PR #2058 )
...
Merge from AnmAtAnm/mobile-readme
2018-09-19 22:54:02 -07:00
Andrew n marshall
cb8eab2f42
Adding mobile HTML demo (PR #2057 )
...
Merge from AnmAtAnm/mobile-html
2018-09-19 22:53:20 -07:00
Andrew n marshall
7e107fbcb1
Adding demos/mobile/README.md
...
Also updateing demo/mobile/android/README.md
2018-09-19 22:21:22 -07:00
Andrew n marshall
eabea36953
Adding mobile HTML demo.
...
* Adds ln_resources script to generate Blockly symbolic links.
* Moves toolbox_standard.js into this directory. Relatedly,
updates Android and iOS copy scripts and .gitignore files.
* Corrects HTML viewport scale and disallows zoom.
2018-09-19 21:27:35 -07:00
Andrew n marshall
b028ab4743
Android/iOS demos (PR #2056 )
...
Merge from google/mobile-demos
2018-09-19 12:58:28 -07:00
Andrew n marshall
0eb7d09afb
Don't use XML escape inside a markdown code segment.
2018-09-19 12:30:26 -07:00
Andrew n marshall
8675a4c1a8
Moving all mobile demos into demos/mobile (PR #2054 )
...
Merge from AnmAtAnm/mobile-demos
2018-09-18 14:28:49 -07:00
Andrew n marshall
41236749ae
Moving all mobile demos into demos/mobile.
...
HTML for both demos is now checked in as demos/mobile/html/index.html.
Updated android and ios scripts to copy webview.html from above.
2018-09-17 17:23:28 -07:00
Andrew n marshall
3ea0d08c1f
Replacing repo copies with copy script.
...
Xcode project runs script during build.
2018-09-17 12:06:26 -07:00
Andrew n marshall
59c22169d6
Adding demo/ios/.gitignore
2018-09-17 12:06:26 -07:00
Andrew n marshall
852ad5e7b2
Load Blockly into webpage from files in Resources.
2018-09-17 12:06:26 -07:00
Andrew n marshall
7e375ce7a7
Load HTML from Resources, into WebView
...
The resource file URL appears to be wrong in some way
2018-09-17 12:06:26 -07:00
Andrew n marshall
43f10c52c3
Empty/baseline project for iOS app.
2018-09-17 12:06:26 -07:00
Andrew n marshall
5262544538
Basic Fragment with webview, and Blockly inside.
...
The necessary Blockly files are copied from the parent
directories via a gradle task.
2018-09-17 12:06:26 -07:00
Andrew n marshall
0fb1281cb3
Android demo initial project creation.
2018-09-17 12:06:26 -07:00
translatewiki.net
5f908aabd0
Localisation updates from https://translatewiki.net .
2018-09-17 08:03:39 +02:00
Rachel Fenichel
ce2880b628
Merge pull request #2053 from rachel-fenichel/is_connection_allowed
...
Restructure isConnectionAllowed to match scratch blocks
2018-09-14 15:46:56 -07:00
Rachel Fenichel
5d8d30935e
Restructure isConnectionAllowed to match scratch blocks
2018-09-14 13:58:31 -07:00