Tim Mickel
50ff6e4654
Implement field_number stub and num-pad on mobile ( #293 )
...
* Implement basic field_number type
* Add whole number and positive number
* Remove bad arguments for showEditor_
* Basic implementation and styling of num-pad
* Remove virtual keyboards; add selection and read-only
* Add editing for the number pad
* Add backspace button to number pad
* Fix text padding for font-weight and extra magic
* Don't show decimal point for integers
* Re-update default WeDo numbers
* Refactor and improve documentation of field_number
2016-04-26 21:32:29 -04:00
Tim Mickel
33a71b112f
Implement number and string field specs ( #230 )
...
* Animate the font-size of text fields
* Allow WidgetDiv to hide immediately, no animation
And add calls to this where the div animation may become out of sync with the field itself.
* Fix CSS colour substitution to replace all
* Add box-shadow to text field
* Fix padding on blocklyHtmlInput
* Add utility for measuring text using canvas
* Grow the input textbox based on the text size
* Fix the text field width to a maximum depending on render mode
* Fix text input field height for scaling
* Position text input field based width
* Animate out width, height, margin of text input
* Fix scale of marginLeft and extra 1px
* Fix height, padding, font-weight on text input field
* Make input field text smaller on truncation per spec
* Re-apply change to Blockly.WidgetDiv.disposeAnimationTimer_
* Add comment to Blockly.Field.maxDisplayLength
2016-04-15 16:44:30 -04:00
Tim Mickel
382a1f4f82
Keep text-input widget div options to CSS class
2016-04-06 21:01:55 -04:00
Tim Mickel
8c180f0c52
Add additonal X bump for WEBKIT
2016-04-05 19:43:41 -04:00
Tim Mickel
464946d358
Use calculated value for RTL offset
2016-04-05 19:41:04 -04:00
Tim Mickel
5d71c82203
Improve handling of field border radius and colour
2016-04-05 19:37:32 -04:00
Tim Mickel
154d4e1851
Draw text fields entirely using CSS during edit
2016-04-05 18:36:02 -04:00
Tim Mickel
a65109f423
Merge remote-tracking branch 'Google/master' into google-master-april-1
...
# Conflicts:
# blockly_compressed_horizontal.js
# blockly_uncompressed_vertical.js
# blocks_compressed.js
# core/block.js
# core/block_svg.js
# core/blockly.js
# core/connection.js
# core/field_textinput.js
# core/workspace_svg.js
# generators/lua/lists.js
# generators/lua/text.js
# msg/js/he.js
# msg/js/id.js
# msg/js/sr.js
# msg/js/zh-hant.js
# msg/json/en.json
2016-04-01 14:44:46 -04:00
Neil Fraser
2b71aacac6
Fix error in closing text input if block is deleted. See PR #300 and Issue #303 .
2016-03-29 21:41:20 -07:00
Neil Fraser
b567d6b0d7
Allow shadow blocks to be edited.
2016-02-26 00:22:31 -08:00
Rachel Fenichel
6ee0744b5c
Refactor block_svg to share code between horizontal and vertical versionss.
2016-02-24 10:19:59 -08:00
Ray Schamp
9d82e79e9c
Update inputs to match spec
2016-02-23 16:59:53 -05:00
Ray Schamp
1a6dff7f42
Merge branch 'master' of github.com:google/blockly into merge/google-2016
...
# Conflicts:
# blockly_compressed_vertical.js
# blockly_uncompressed_vertical.js
# blocks/text.js
# blocks_compressed.js
# core/block_svg.js
# core/connection.js
# core/field_textinput.js
# core/flyout.js
# core/toolbox.js
# tests/playground.html
2016-02-18 13:29:25 -05:00
Neil Fraser
0fab13400a
Fire function events instead of DOM events.
2016-02-11 21:40:33 -08:00
Neil Fraser
63c112932b
Rename Field.setChangeHandler to Field.setValidator
2016-02-10 14:33:13 -08:00
Andrew Sliwinski
6a708da899
Initial SVG rendering modifications.
2016-01-26 14:57:43 -05: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
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
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
f601bdc3c7
Fix FF editor location by a pixel.
2015-08-21 14:13:07 -07:00
carlosperate
17be3219ee
Update FieldTextInput to not edit possible read-only attributes.
...
The SVGRect returned from getBBox can be have its attributes as read-only.
2015-08-21 19:20:00 +01:00
Neil Fraser
5b7fec7092
Add zooming feature.
...
By carloslfu.
2015-08-19 17:21:05 -07:00
Allison Lamm
cca88beb30
adding type annotation to field text input
2015-08-10 13:46:16 -05:00
Neil Fraser
45fd0e9d44
Remove unused field clone.
2015-07-20 16:17:21 -07:00
Neil Fraser
e0f90e6e33
Adding more type documentation.
2015-07-13 15:03:22 -07:00
Neil Fraser
842783f442
Add block name as JSON id.
2015-06-11 18:06:44 -07:00
Neil Fraser
9050e32954
Adding JsonInit method of creating blocks.
2015-06-08 15:54:18 -07:00
Neil Fraser
17961f7f58
Support multiple Blockly instances.
2015-04-28 13:51:25 -07:00
Neil Fraser
6ee32c285a
Allow enabling/disabling of spellcheck on text fields.
2015-02-25 13:35:37 -08:00
Kouji Takao
033a6b88aa
Fixed issue with pressed enter key with IME.
...
keyup and keypress don't care IME on or off. so, I added handling
keydown event to check pressing enter key with IME (keycode is 229) or
without IME (keycode is 13).
2015-02-17 23:20:36 +09:00
Neil Fraser
c9addf7e31
Improve accuracy of goog.require calls.
2015-02-06 15:27:25 -08:00
Neil Fraser
1c39a638e3
Lint fixes.
2015-01-22 15:58:10 -08:00
Neil Fraser
df89e1060a
Remove some DOM creation from headless fields.
2014-12-24 00:22:01 -08:00
Neil Fraser
0f8d01209c
Headless workspaces and blocks.
2014-12-23 11:22:02 -08:00
Brian Geppert
713397b008
Don't crash on prompt cancel.
2014-12-07 19:19:35 -06:00
Neil Fraser
6539211104
Change official project URL.
2014-10-07 13:09:55 -07:00
Neil Fraser
7122410373
Changing project location from Google Code to GitHub.
2014-09-08 15:18:02 -07:00
Neil Fraser
d998a1c8ec
Update to latest version.
2014-09-08 14:26:52 -07:00
ellen.spertus
6ee38cdec3
Automatic commit Tue Jan 28 03:00:09 PST 2014
2014-01-28 03:00:09 -08:00
ellen.spertus
c2230e6bf8
Automatic commit Tue Dec 24 03:00:01 PST 2013
2013-12-24 03:00:01 -08:00
ellen.spertus
ea211c5080
Manual commit
2013-12-20 16:25:26 -08:00
ellen.spertus
eb5895d70a
Automatic commit Sat Dec 14 03:00:02 PST 2013
2013-12-14 03:00:02 -08:00
ellen.spertus
a8acffd81c
New initial commit with .svn directories and their contents ignored.
2013-10-30 14:46:03 -07:00