Rachel Fenichel
4841f136f1
More lint and eslint configuration.
2016-05-25 15:35:11 -07:00
rachel-fenichel
4de98b9f83
Merge pull request #291 from rachel-fenichel/feature/horizontal_toolbox_port
...
Horizontal toolbox layout with positioning at start or end.
2016-05-13 16:08:30 -07:00
Rachel Fenichel
71d3023a50
jsdoc
2016-05-12 13:24:08 -07:00
Rachel Fenichel
954b061e4a
Merge branch 'develop' into feature/dragged_connection_list
2016-05-12 13:20:16 -07:00
Rachel Fenichel
77a8b92ac2
Merge branch 'develop' into feature/horizontal_toolbox_port
2016-05-11 11:44:38 -07:00
Neil Fraser
3ecdd2fc61
Merge branch 'master' into develop
2016-05-10 16:50:13 -07:00
Neil Fraser
28c62ce00b
Merge pull request #358 from picklesrus/develop-selectable
...
An alternate (and less expensive) way to keep stuff outside of the bl…
2016-05-09 16:02:17 -07:00
Rodrigo Queiro
005706096f
Fix typo in svgResize
2016-05-09 09:13:37 -07:00
rachel-fenichel
f468b6a6cb
Merge pull request #357 from rachel-fenichel/feature/field_number_js
...
Add lightweight field_number
2016-05-05 12:32:01 -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
Rachel Fenichel
d89d8a2113
Add lightweight field_number
2016-05-04 13:30:18 -07:00
Rachel Fenichel
e596e23012
Position toolbox correctly at bottom
2016-04-27 16:38:22 -07:00
Rachel Fenichel
2591e12a46
Fix janky scrolling in vertical case
2016-04-26 18:16:26 -07:00
Rachel Fenichel
a27fe99be4
Merge branch 'develop' into feature/horizontal_toolbox_port
2016-04-25 14:25:36 -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
21e999678c
correctly position trash can and zoom controls when the flyout is always open; add flyout and toolbox size to main workspace metrics; get rid of flyout's vertical offset.
2016-04-13 15:30:11 -07:00
rachel-fenichel
90b1cce5d5
Correctly locate and size scrollbar for all toolbox positions.
2016-04-13 13:56:09 -07:00
rachel-fenichel
18a1550285
Horizontal toolbox layout with positioning at start or end.
2016-04-07 14:02:22 -07:00
Neil Fraser
effa81f622
Create fromJson for events. Add master-slave demo.
2016-04-06 14:27:15 -07:00
rachel-fenichel
5c8ff88587
Keep a list of connections that are being dragged
2016-04-05 16:13:19 -07:00
Neil Fraser
960b07daab
Fix grouping of disconnect and delete.
2016-04-03 15:45:19 -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
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
05fc1ad91b
Add workspace.clearUndo
2016-03-25 19:03:18 -07:00
Neil Fraser
d086634394
Lint and recompile.
2016-03-18 15:19:26 -07:00
rachel-fenichel
b37efe829e
Move constants to their own file
2016-03-18 14:35:18 -07: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
2a1ffa11c4
Add undo/redo. Also refactor connections.
...
Bugs in undoing mutators and renaming variables.
2016-03-03 17:48:54 -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
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
4253de041a
Remove old realtime.
2016-01-08 13:03:22 -08:00
Neil Fraser
3bce368115
Simplify workspace options by removing svg property.
2016-01-07 17:01:01 -08:00
Neil Fraser
e1acdf5caf
Allow RGB colours.
2015-12-13 19:13:05 +01:00
Neil Fraser
96e130d113
Remove old realtime files.
2015-12-02 22:37:55 -08:00
James Tarling
9b438fd88d
Fix to Blockly.doCommand to call Blockly.Realtime.isEnabled
2015-12-01 11:01:06 +00:00
Neil Fraser
349146743b
Remove dependency on goog.cssom.
2015-09-29 15:40:19 -07:00
Neil Fraser
f23702f2c7
Turn off debugging in compiled mode.
2015-09-21 18:05:34 -07:00
Neil Fraser
317db942d5
Fix jump when blocks are added from top of flyout. Issue 179.
2015-09-21 16:23:33 -07:00
Neil Fraser
c00f95f45b
Stub out Realtime. Saves 15kb in blockly_compressed.js
2015-09-21 15:11:51 -07:00
Neil Fraser
bd77e4c1bf
Fix deletion or cutting block that is being dragged.
2015-09-21 15:08:35 -07:00
Neil Fraser
ad1d1261c8
Duplicate should spread blocks out like copy and paste do.
2015-09-18 18:46:19 -07:00
Neil Fraser
76697301e7
Fix IE's failure to scroll grid (issue 173)
...
IE does not realize that when a pattern changes, objects painted with
said pattern need to be rerendered.
2015-09-14 16:17:36 -07:00
Neil Fraser
58db773526
Move trashcan split by 1px.
...
Firefox on Windows is off by a pixel.
2015-09-11 21:50:44 -07:00
Neil Fraser
20820b5861
Fix drag events.
2015-08-21 19:37:57 -07:00
Neil Fraser
d4a8012b72
Routine recompile.
2015-08-21 14:54:11 -07:00
Neil Fraser
739918b870
Merge pull request #162 from skcamp/fix-issue-161-pinch-gesture-error
...
fix: https://github.com/google/blockly/issues/161
2015-08-21 14:39:15 -07:00