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
Winston
575b712462
fix: https://github.com/google/blockly/issues/161
...
On iOS, if I use a pinch gesture in the workspace, these errors appear in the console:
Error: Invalid value for <rect> attribute x="NaN"
2015-08-20 15:26:56 -07:00
Neil Fraser
e8f1de3bdf
Fix bottom-right workspace metrics when not at 100% zoom.
2015-08-20 14:09:14 -07:00
Neil Fraser
5b7fec7092
Add zooming feature.
...
By carloslfu.
2015-08-19 17:21:05 -07:00
Neil Fraser
0478d308a6
Trivial cleanup.
2015-08-18 11:34:22 -07:00
Neil Fraser
09f5ac6f7b
Remove non-functioning workspace long-click.
2015-07-13 17:48:50 -07:00
Neil Fraser
345b0cb668
Remove selection in Block Factory when switching modes.
2015-06-29 17:06:36 -07:00
Neil Fraser
767d7fe556
Add expanded property to toolbox XML.
2015-05-22 13:10:58 -07:00
Neil Fraser
ede636361d
Simplify workspace resizing.
2015-04-28 17:55:45 -07:00
Neil Fraser
17961f7f58
Support multiple Blockly instances.
2015-04-28 13:51:25 -07:00
Neil Fraser
6d1df4dfb5
Revert "De-singleton Blockly. Part 1."
...
This reverts commit 3122c8a93f .
2015-04-07 21:01:37 -07:00
Neil Fraser
3122c8a93f
De-singleton Blockly. Part 1.
2015-04-06 18:36:53 -07:00
Neil Fraser
2c7618597e
Fix comments' cursor in Chrome.
2015-03-26 15:08:36 -07:00
Neil Fraser
1916f2351d
Remove failed attempt at spriting icons.
2015-03-25 17:24:28 -07:00
Neil Fraser
3e12c1ea5e
Render sprites from vectors. Remove blurry shadow from trash.
2015-03-23 23:55:13 -07:00
Neil Fraser
c4d3fb721e
Make scrolling margins be more accurate (issue 82).
2015-03-17 17:07:44 -07:00
Neil Fraser
da122e2a31
Enable long-press context menus.
2015-03-17 15:37:33 -07:00
Neil Fraser
764452eb10
Squeltch double-click highlighting on workspace and toolbox.
2015-03-17 12:20:56 -07:00
carlosperate
5b3c411eaf
IE deselect exception fix.
...
IE11 with the developer tools open would still throw an exception on this line of code, so remove it as it is also executed and caught in the setTimeout.
2015-03-13 06:38:21 +00:00
Neil Fraser
4d2aac4f19
Bug-fixes to background grid.
2015-03-08 17:39:30 -07:00
Neil Fraser
612b190ef4
Add background grid for snapping.
2015-03-08 12:48:42 -07:00
Neil Fraser
bdc4795fb6
Simplify workspace construction.
2015-03-06 15:27:41 -06:00
Neil Fraser
66fc235721
Comment out date picker (it increases compile size by 60%).
2015-02-25 01:06:10 -08:00