Rachel Fenichel
4841f136f1
More lint and eslint configuration.
2016-05-25 15:35:11 -07:00
Neil Fraser
006bb36b89
Prevent sounds from playing on top of each other.
2016-05-21 05:55:24 -07:00
Rachel Fenichel
954b061e4a
Merge branch 'develop' into feature/dragged_connection_list
2016-05-12 13:20:16 -07:00
Rachel Fenichel
4a94952f6d
update requires and compressed/uncompressed versions of blockly
2016-05-10 16:53:47 -07:00
Rachel Fenichel
e28db7bc4e
JS Doc and private
2016-05-10 15:46:51 -07:00
rachel-fenichel
7b1fdcb7c6
make tests work; make connext_ a member function.
2016-05-10 15:45:19 -07:00
Rachel Fenichel
32eed0d2f8
Merge branch 'develop' into cleanup/lint
2016-05-10 14:43:09 -07:00
Rachel Fenichel
3605dfb9c0
Undo decimation of variable redeclarations
2016-05-10 14:40:48 -07:00
Rachel Fenichel
640b38f38e
lint
2016-05-05 13:13:48 -07:00
Katelyn Mann
ca16d1fefe
An alternate (and less expensive) way to keep stuff outside of the blockly div
...
from getting selected. Use e.preventDefault instead of adding and removing
classes on mousedown and mouseup. This keeps the browser from having to
potentially recacluate style on mousedown and mouseup events.
2016-05-04 19:12:38 -07:00
Neil Fraser
217c681b86
Use direct call to svg resize rather than event. Also fix issue #296 .
2016-05-04 15:00:57 -07:00
Neil Fraser
8242e715c2
Remove obsolete blocklySelectChange event.
2016-05-04 10:40:44 -07:00
Neil Fraser
c785cabe40
Use more coordinates.
2016-04-19 23:24:42 -07:00
Neil Fraser
7e96a60da7
Use goog.math.Coordinate instead of separate X and Y properties.
2016-04-19 21:14:49 -07:00
Neil Fraser
6d58f7959f
Don't fire click when editing a field. Issue #336 part 1.
2016-04-19 21:14:49 -07:00
rachel-fenichel
5c8ff88587
Keep a list of connections that are being dragged
2016-04-05 16:13:19 -07:00
Neil Fraser
d69209a7db
Merge branch 'master' into develop
2016-04-04 14:54:07 -07:00
Neil Fraser
7705d2226e
Merge pull request #314 from miguel76/fix-313
...
Fix #313
2016-04-04 14:50:37 -07:00
miguel76
f7e455e856
Fix #313
2016-04-04 18:09:18 -03:00
rachel-fenichel
a26fe6acf8
Disable connecting to last block in stack
2016-04-04 11:10:05 -07:00
Neil Fraser
960b07daab
Fix grouping of disconnect and delete.
2016-04-03 15:45:19 -07:00
Neil Fraser
2ce0a25f92
Fix error thrown when disconnecting blocks that have never been dragged.
2016-04-02 04:53:04 -07:00
rachel-fenichel
7665066565
Move Blockly.Block rendered into Blockly.BlockSvg
2016-03-29 17:30:39 -07:00
Neil Fraser
ac0b5e7871
Use ENUM for dragMode. Blocks no longer sticky when created from disappearing flyout.
2016-03-29 08:36:11 -07:00
Neil Fraser
5f1cb3b92c
Add click UI event.
2016-03-29 08:10:44 -07:00
Neil Fraser
741491347b
Add list of ids to create/delete events for robustness.
2016-03-28 18:10:54 -07:00
Neil Fraser
db7a787778
Add UI events.
2016-03-28 15:40:37 -07:00
Neil Fraser
92f224dd52
Merge pull request #297 from picklesrus/develop-perf-1
...
Remove Blockly.removeAllRanges and replace it with calls to add/remove
2016-03-28 12:17:11 -07:00
Katelyn Mann
b11bd4fb71
Remove Blockly.removeAllRanges and replace it with calls to add/remove
...
css to mark text as unselectable instead. I can't prove this is
significantly faster with numbers since the call to setup the time out
costs ~.1ms and the call when the timer fires is ~.05. This happens on almost
every mouse event though. Plus, it seems to remove a flicker of highlighting when
frames are skipped and keeps scrolling via the scrollbar from highlighting.
2016-03-28 10:06:43 -07:00
Neil Fraser
b8d48ebabe
Destroy attached shadow block when input is destroyed.
2016-03-26 19:37:12 -07:00
Neil Fraser
d086634394
Lint and recompile.
2016-03-18 15:19:26 -07:00
Neil Fraser
a3b850b0d3
Merge pull request #287 from rachel-fenichel/feature/source_block_fn
...
Add a getter; stop accessing private field sourceBlock_ from outside …
2016-03-16 19:45:20 -07:00
Neil Fraser
2b96d7a756
Don't select blocks if readOnly is changed.
2016-03-16 19:10:36 -07:00
rachel-fenichel
2c70f7ec26
Add a getter; stop accessing private field sourceBlock_ from outside of a connection.
2016-03-15 16:03:49 -07:00
Neil Fraser
95fbc0bb49
Fix checkbox events. Fix block deletion while mutator is open.
2016-03-14 23:14:58 -07:00
rachel-fenichel
74ea1f1ffe
consider the last block on the stack when looking for places to attach a dragging stack.
2016-03-11 18:07:26 -08:00
Neil Fraser
06ff90bcaf
Merge pull request #274 from picklesrus/bbox-develop
...
Replace the call to getBBox() in getMainWorkspaceMetrics
2016-03-11 14:24:01 -08:00
Neil Fraser
55784580e9
Group mutations into same event.
2016-03-06 18:32:20 -08:00
Neil Fraser
2a1ffa11c4
Add undo/redo. Also refactor connections.
...
Bugs in undoing mutators and renaming variables.
2016-03-03 17:48:54 -08:00
Neil Fraser
5097963cb1
Reduce code duplication in 'if' block.
2016-03-01 18:21:02 -08:00
picklesrus
a67f841671
Replace the call to getBBox() in getMainWorkspaceMetrics
...
with a manual calculation. getBBox() can cause the browser to
re-layout the whole page and we have much of the information
(e.g. individual block height and width) we need already cached.
Note that getBoundingRectangle's calculation is slightly different
than the one returned by getBBox. It is off by 3 in the y direction
due to how one of the curves is drawn. This new calculation is
technically more accurate.
2016-02-29 16:29:15 -08:00
Rachel Fenichel
9de572283e
Refactor: pull rendering code out of block_svg
2016-02-25 13:55:36 -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
0fab13400a
Fire function events instead of DOM events.
2016-02-11 21:40:33 -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
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
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