marisaleung
9577e5ddc4
Created a variable model with name, id, and type.
...
Created a jsunit test file for variable model.
2017-04-20 13:19:53 -07:00
marisaleung
21bf339e5d
bumpNeighbours_ function moved to block_svg.
...
Fixed #1009
2017-04-17 15:22:53 -07:00
marisaleung
bc1ca547a4
field_angle renders degree symbol consistently.
...
Fixes #973
2017-04-14 12:17:09 -07:00
marisaleung
f19b2c87aa
Renames Blockly.workspaceDragSurface to Blockly.WorkspaceDragSurface.
...
Fixes #880 .
2017-04-11 14:01:25 -07:00
vicng
ae2aaa2159
- Allows use of Blockly's messaging format for category name, colour,… ( #1028 )
...
...in toolbox XML.
- Updated code editor demo to use this message format
- Re-built blockly_compressed.js
2017-04-07 15:32:50 -07:00
Rachel Fenichel
f2f522d77a
Miscellaneous comment cleanup
2017-04-05 15:52:49 -07:00
Rachel Fenichel
077547ec90
Block browser context menu in the toolbox and flyout
2017-04-04 14:36:01 -07:00
CoryDCode
537bf17b7d
Adding the remove variable modal and functionality to accessible Blockly. ( #1011 )
2017-03-30 11:31:31 -07:00
Rachel Fenichel
92f3880008
RemoveAttribute doesn't work on SVG elements in IE 10. Use setAttribute to null instead.
2017-03-27 17:25:41 -07:00
Rachel Fenichel
85b4f5f1a8
Fix #969
2017-03-17 16:25:45 -07:00
picklesrus
fd7d8b1ac8
Fix #967 by overriding the updateWidth method in FieldImage blocks to be a no-op. FieldImage fields should not change size after the width is set in init. The updateWidth and, therefore, getCachedWidth is now being called by BlockSvg renderFields_ (see commit d55d9cbd9f). IIUC, updateWidth/getCachedWidth was only called from render before which is overridden in FieldImage to be a no-op already. ( #979 )
2017-03-17 16:15:40 -07:00
picklesrus
847d83e4af
Another attempt to fix #904 to keep the page from jumping to the focused workspace in IE 11 ( #974 )
2017-03-10 14:58:09 -08:00
picklesrus
9b98573327
Cross browser friendly fix for #904 . This calls blur and focus from … ( #972 )
...
* Cross browser friendly fix for #904 . This calls blur and focus from workspace.markFocused and removes the event listener on focus events. markFocused is called from all of our mouse down handlers, which triggers the focus event leading to an infinite loop of focus. As far as I can tell, there are no uses of the focus handler that actually did anything for us.
2017-03-08 14:27:53 -08:00
picklesrus
63c899e4e1
Potential fix for #888 . Stops checking whether we are mid workspace drag since we do not always get mosue up events when blockly is in an iframe. ( #899 )
2017-03-06 16:19:29 -08:00
picklesrus
ab042d4dd8
Fix bug #904 by explicitly grabbing focus on the workspace svg element. ( #964 )
2017-03-03 16:15:02 -08:00
Rachel Fenichel
72256a187d
Annotation fixes
2017-03-03 13:22:50 -08:00
Andrew n marshall
6e1ffe09c2
Adding Blockly.Xml.appendDomToWorkspace() ( #962 )
...
This is a copy (with additional comments) of PR #822 (and also #961 ) by @qnoirhomme with unrelated files removed. See #822 for full review.
2017-03-03 08:40:00 -08:00
Rachel Fenichel
4b75b6271b
Make it easier to read the code that creates the variable category in the tolbox
2017-03-02 13:55:25 -08:00
Rachel Fenichel
05312c9bf7
Merge pull request #952 from rachel-fenichel/feature/if_else_update
...
Use mutator extension for controls_if block
2017-02-27 19:56:32 -08:00
Rachel Fenichel
c30928a177
Make some functions private and add tests
2017-02-24 15:51:59 -08:00
Andrew n marshall
1bc74819aa
period
2017-02-24 15:47:35 -08:00
Andrew n marshall
a9aabd637f
Adding warning on duplicate JSON block definition.
2017-02-24 15:41:56 -08:00
Rachel Fenichel
aa8e996799
Handle mutations with both mixins and functions
2017-02-23 17:07:06 -08:00
Rachel Fenichel
4b0c32e91f
Add safety checks for mutators and non-mutator extensions
2017-02-23 15:55:13 -08:00
Andrew n marshall
3db3cf551f
Fix #945 (annotations) and an eslint issue (constant condition)
2017-02-22 23:15:39 -08:00
Rachel Fenichel
455432250e
Use mutator extension for controls_if block
2017-02-22 17:05:52 -08:00
Rachel Fenichel
3d08099950
Merge pull request #809 from google/paternity
...
Option for moving one block from stack.
2017-02-22 10:39:11 -08:00
Rachel Fenichel
0a73ae38f9
Merge pull request #933 from K-ran/bugfix/rounding_error
...
Potential bug fix for issue #661
2017-02-15 09:12:23 -08:00
Karan Purohit
4a81623f8d
Code correction from previous commit. Moved style to css.js and set ROUNDING=15;
2017-02-15 14:33:20 +05:30
Andrew n marshall
b32136d81f
Clarification update.
...
Unraveling nested ternaries in Blockly.utils.tokenizeInterpolation_()
2017-02-14 15:51:24 -08:00
Andrew n marshall
afd1fdeb15
.utils.replaceMessageReferences(..) now gracefully returns non-string arguments.
2017-02-14 11:00:34 -08:00
Andrew n marshall
750c0300ec
Addressing comments.
2017-02-14 11:00:34 -08:00
Andrew n marshall
dc0d3beba3
Moving FieldImage string dereferencing back into Block.interpolate_() (part of jsonInit()). This sets a clear boundary of where dereferencing should happen.
...
Towards this, I've added message dereferencing for other field types here, as well. I've used a pattern of field-type specific helper functions.
2017-02-14 11:00:34 -08:00
Andrew n marshall
640fb9c733
Dereference string table references when loading variable fields from JSON.
2017-02-14 11:00:34 -08:00
Karan Purohit
cdef092683
Potential bug fix for issue #661
2017-02-14 23:00:14 +05:30
Andrew n marshall
79becd6b31
Add no-op stub .neighbors() for headless Connection.
2017-02-13 16:28:43 -08:00
Andrew n marshall
6b692a0802
Initial text block, with a mixin to generate quote image fields. ( #923 )
...
Text block now uses the extension "text_quotes", supported by Blockly.Constants.Text.QUOTE_IMAGE_MIXIN.quoteField_(fieldName), so that each platform can use the best platform appropriate image (size, density, etc.) for the quotes.
2017-02-13 15:00:02 -08:00
Rachel Fenichel
3af6238457
Merge pull request #921 from rachel-fenichel/feature/workspace_isMovable
...
Workspace isDraggable
2017-02-08 13:02:42 -08:00
Rachel Fenichel
1a8383180e
Workspace isDraggable
2017-02-08 12:31:52 -08:00
Andrew n marshall
a4cfd5cbc8
Porting Loop blocks to JSON ( #919 )
...
* Improved documentation on `Blockly.Extensions.buildTooltipForDropdown`
* Replaced incorrect uses of `@mixes` JSDoc annotation (on mixin extensions) with `@augments Blockly.Block`.
* Added Blockly.Extensions.buildTooltipWithFieldValue() extension helper.
2017-02-08 11:36:38 -08:00
Rachel Fenichel
7afefa09f8
Merge pull request #914 from rachel-fenichel/feature/isFieldEditable
...
Add isEditable to field, and add tests
2017-02-06 15:46:33 -08:00
Rachel Fenichel
5a40208138
Separate tests
2017-02-06 15:25:59 -08:00
Rachel Fenichel
630863d9db
Add isEditable to field, and add tests
2017-02-06 14:47:45 -08:00
Andrew n marshall
24ebbcaad0
Improving errors/warnings with Block.toDevString() and Connection.toString(). ( #911 )
2017-02-06 14:15:20 -08:00
Andrew n marshall
680fc4b6d3
Porting Logic blocks to JSON ( #913 )
...
Extensions, mixins, mutators and constants now grouped under the new namespace Blockly.Constants.Logic.
2017-02-06 13:40:05 -08:00
Rachel Fenichel
e429e0c42f
Merge pull request #912 from rachel-fenichel/lint
...
Fix some lint errors
2017-02-06 12:39:45 -08:00
Andrew n marshall
15827c5d30
Adds Block.prototype.mixin() and Blockly.Extensions.registerMixin(). ( #907 )
...
Adds Block.prototype.mixin() and Blockly.Extensions.registerMixin().
This adds support for a common use pattern in extensions, and adds
error checking to avoid future incompatibilities.
2017-02-06 10:00:08 -08:00
Jim Mussared
ec878b02cd
Correct changedState in setWarningText() ( #908 )
...
When clearing warnings on blocks with IDs, the changedState variable should be true if the text changed. This will trigger the block being reshaped and remove the space for the notification icon (this.bumpNeighbours_).
2017-02-06 08:41:17 -08:00
Rachel Fenichel
4152542c2f
Fix some lint errors
2017-02-03 14:01:18 -08:00
Rachel Fenichel
cab3afd677
Merge pull request #894 from google/seanlip-block-descriptions
...
Use the empty field placeholder for dropdowns that do not have a value selected.
2017-02-02 11:53:33 -08:00