Wykres commitów

95 Commity (84d6186b51cc7f7d5ecf795d6a56b23fc87df8e0)

Autor SHA1 Wiadomość Data
Jens Mönig 5dbb6ad8a1 Retina display support tweaks - IN PROGRESS -
* fixes the FILL block on retina screens
* fixes turning pentrails into costumes on retina screens
* adds an option to the settings menu letting the user switch between
non-retina and retina resolutions on devices and in browsers that
support it
* Morphic documentation update for retina support

Again, folks, this is IN PROGRESS and not yet ready to be released. But
it’s getting closer to being testable :-)
2016-05-11 18:03:49 +02:00
Jens Mönig 179d93f103 support for retina displays, integrates #1063 - IN PROGRESS
This has bee designed and written by the amazing Bartosz Leper
(@bl-nero). Since I totally suck at Git and find myself incompetent to
resolve merge conflicts, I’ve decided to manually copy Bartosz’s
changes mostly verbatim over, tweaking them only ever so slightly in
ways that don’t alter their functionality, except for introducing a
tiny test so current Safari still loads Snap, albeit not in retina
mode. THIS IT NOT READY FOR RELEASE YET, IT’S WORK IN PROGRESS. Get it?
Thanks!
2016-05-10 20:33:44 +02:00
Jens Mönig 71333021d4 cloning speedup
significantly speed up sprite cloning through partial shallow-copying
of scripts and costumes instead of deep-duplication
2016-05-04 16:37:46 +02:00
Jens Mönig df0269f5cc support for viewing 2D lists as tables 2016-02-24 11:35:18 +01:00
Thomas P 31b8f6eac8 Fixed #1090
Fixes a bug in Morph.fullImageClassic() where it uses the bounds instead of the fullBounds.
2016-01-07 12:49:36 -08:00
Jens Mönig 663c1af1ce fixed #1083 (hopefully) 2015-12-23 16:13:21 +01:00
Jens Mönig 4fd33f7de9 fixed #1083 2015-12-23 11:32:28 +01:00
Jens Mönig 6170e32248 update documentation 2015-12-21 16:06:47 +01:00
Michael Ball 1f9e923d04 Remove extra hiddenText assignment in clipboards 2015-12-17 00:41:23 -08:00
Michael Ball abe5f3fe1d minor stylistic tweak to clipboard code 2015-12-15 22:52:03 -08:00
Michael Ball 719d7dc400 cleanup debug logs 2015-12-15 22:50:11 -08:00
Michael Ball cad8f21e74 Add native C&P support to morphic text inputs!
All the hard work goes to the folks working on Edgy for this one!
@cyderize wrote Edgy's implementation, and I copied that almost exactly.

08f6c473ae/edgy/clipboard.js

* In the current edgy implementation, there's a `hiddenDiv` which
contains the `hiddenText` textarea. I found that div to not be
necessary, so it was removed.
* I tweaked a couple `==` to be `===`.

Fix #353 really fix #88
2015-12-15 22:48:08 -08:00
Jens Mönig 6448f9d670 Merge pull request #1039 from DarDoro/DarDoro-Alt-key
Handling of diacritics , [Alt] + key in input fields
2015-12-15 10:37:58 +01:00
Jens Mönig f24b65f673 towards v4.0.4 - under construction -
* Show result bubble when the user clicks on a command script that uses
REPORT (You can now click on REPORT and it actually does something)
* New generic “When” hat block, enhances red stop button behavior
* New block (instance) variables feature (experimental)
* evaluator performance optimizations
* Morphic grab-threshold fix for scroll frames
* fixed several block rendering glitches
* List category LENGTH reporter now also works on text
* Changed “any” to “random” (in English only)
* new FILL primitive in the Pen category
* switched to animation frame scheduling, please use TURBO for music
* Updated German translation
2015-12-15 10:14:56 +01:00
DarDoro dc76fd1cb7 Handling of diacritics , [Alt] + key in input fields
Workaround for diacritics handling in browser. Sequences [Ctrl] + key should be processed only when [Alt] is not pressed.
2015-12-03 00:59:59 +01:00
Jens Mönig 55cfc1fb39 Merge pull request #978 from bl-nero/backspace-ie
Fix backspace & tab keys in IE
2015-11-16 12:46:27 +01:00
Jens Mönig 6061403a89 Prepare for v4.0.3
* fixed occasional horizontal rendering artifacts in block “holes”
(C-shaped slots and Ring holes)
* improved user editing of input slots and fixed cursor behavior (note:
the text cursor inside input slots also blinks again, as it should have)
* always export comments attached to prototype hat blocks in the block
editor along with script pic
* when first opening a block editor on a custom block definition make
it big enough to show everything (as much as fits on the screen)
* remember block editor position and dimensions for each edited custom
block definition when acknowledging (pressing OK or APPLY) for the
session
* speed up stacking of commands and loading of projects by suppressing
redundant block redraws
* introducing a “grab threshold” preference to suppress accidental
grabbing through micro-movements of the hand. This addresses the
“cannot-click-on-drop-downs-in-Chrome-under-Windows” set of bug
reports, and also the issues that arise out of accidentally dragging
off a copy of a parameter blob when trying to just click on it to
rename it
* new hidden (shift-click) option to adjust the grab threshold in the
settings menu for the current session
* expand list watchers inside result bubbles and speech/thought
balloons to show everything (as much of the list’s first level as fist
into either the scripting area for result bubbles or the stage for
speech balloons - note resizing the stage affects the size of the list
watchers inside speech balloons, i.e. making the stage bigger increases
the number of visible elements even while the balloon is showing)
* fixed a bug that make an occasional gray rectangle appear at the
mouse pointer
* added a way to invoke blocks synchronously in JavaScript - under
construction (possibly to be used for generic “When” hat blocks and
user-customizable drop-downs)
* added methods to cache morphs’ fullImage and fullBounds while dragging
* Reporters (also nested reporters) and sprite icons (in the corral)
are now semi-transparent when being dragged, so you can see possible
drop target halos /through/ them
* in “prefer empty slot drops” mode (default) it is now much harder to
drop reporters onto non-static C-slots inside custom blocks (e.g. in
FOR loops) and onto variadic input arrowheads (to replace the whole
input with an input list)
* ScriptsMorphs are now noticing transparent clicks (addresses #997)
* %interaction slots are now static, fixed #982 (it is no longer
possible to drop reporters into the input slot of a “When I am…” hat
block (never was intended that it should be possible)
* fixed ctrl-f for the block editor in all situations (thanks, Brian,
for the bug report)
2015-11-16 12:18:40 +01:00
Bartosz Leper 81fd181260 Fix backspace & tab keys in IE
Fixes #569
2015-10-18 22:29:10 +02:00
Jens Mönig 42254bd644 Improve display precision (stop rounding display coordinates) 2015-09-23 11:41:21 +02:00
Jens Mönig 4e0fe2458c eep BlockEditors open when <enter> or <esc> keys are pressed 2015-07-28 12:22:46 +02:00
Jens Mönig e8172e83dd update history 2015-07-27 01:12:12 +02:00
Jens Mönig f829635106 Morphic enhancements
* enable exporting a screenshot of the World
* enable more fine-grained control over dragging position correction
* enable all Morphs to “scrollIntoView()”
* keyboard accessibility for menus
2015-07-26 22:52:46 +02:00
jmoenig 7d1db3dfe9 update Morphic
to the latest version
2015-06-26 13:04:27 +02:00
jmoenig 58cae438bb Simplify Morphic
* revert to “new” for object creation (for now)
* take out fallback for missing Map
2015-06-25 14:43:09 +02:00
Nathan Dinsmore aef56afebf Use associative arrays if Map doesn't exist 2015-06-25 02:34:13 -04:00
Nathan Dinsmore bc79cd8df2 Call isTransparentAt 2015-06-18 15:33:44 -04:00
Nathan Dinsmore bae22f0804 Add braces 2015-06-18 15:33:36 -04:00
Nathan Dinsmore 82197c7a8c Declare some variables earlier 2015-06-18 15:33:25 -04:00
Nathan Dinsmore 0245a81fc0 Optimize loading projects a bit more 2015-06-17 23:05:34 -04:00
Nathan Dinsmore aaa3c407bc Add a missing super call in overridden updateReferences() 2015-06-17 21:11:04 -04:00
Nathan Dinsmore f20ea67926 Provide a fallback for browsers that don't support Map 2015-06-17 21:08:12 -04:00
Nathan Dinsmore 6a82960cf7 Optimize moveBy and friends
This results in realtime speed for dragging where I used to get 10-15 fps before this change.
2015-06-17 20:46:54 -04:00
Nathan Dinsmore d5761b074d Remove clone function (unused) 2015-06-17 20:09:43 -04:00
Nathan Dinsmore 3e613a4409 Fix and greatly simplify copying mechanism
Due to an error in the original implementation of updateReferences(), Morph subclasses which stored references to other morphs needed to manually override copyRecordingReferences() to update these references (which should have been done automatically by updateReferences). This change fixes updateReferences() and changes the copying mechanism to use Maps, which are much faster.
2015-06-17 19:47:27 -04:00
Nathan Dinsmore 81b9245d25 Optimize copy()
1356.2 ms before => 73.3 ms after (on a large block stack)
2015-06-17 19:10:30 -04:00
Nathan Dinsmore 1f52f4f152 Optimize StringMorph::clearSelection()
This was taking a very large chunk of CPU time when copying large scripts.
2015-06-17 18:52:20 -04:00
Nathan Dinsmore 7bb046856c Remove extra space 2015-06-17 18:28:18 -04:00
Nathan Dinsmore c8cbbeb2ad Optimize HandMorph::morphAtPointer a lot
On large morph hierarchies this goes from ~85% CPU usage when moving the mouse around to ~5%.
2015-06-17 18:25:09 -04:00
Nathan Dinsmore 87c2503571 Use Object.create(…) instead of new …() for inheritance (faster) 2015-06-17 17:11:40 -04:00
Jens Mönig 30e43a359e Morphic: Dynamic enhancements
new event hooks for “reactToTemplateCopy”, first mouse click on
editable text, and allow trigger hint to also be a function returning a
dynamic help string rather than only a static string
2015-05-01 11:49:35 -04:00
jmoenig 6608d1098f Avoid auto-scaling artefacts in Safari on retina displays
(resulting in “traces” when dragging items)
2014-12-05 12:53:02 +01:00
jmoenig d94d9ff4e8 Cache actual bounding box of the Pen arrow shape
for improved collision detection
2014-12-03 12:42:46 +01:00
jmoenig 3cc28b1f1c push morphic.js version date 2014-11-20 15:40:24 +01:00
Jens Mönig ebc1d3779c Merge pull request #615 from tonychenr/slider_range_one
Slider range one
2014-11-20 15:37:35 +01:00
jmoenig 7b96be6c40 enable mouseMove events with right button pressed
to support user interactions in 3D environments, such as CAD systems or
Beetleblocks
2014-11-06 17:03:51 +01:00
tonychenr f308c23824 Fixed range 1 slider bug issue # 301 2014-10-07 19:15:08 -07:00
jmoenig e88ea49374 updated history 2014-09-30 09:49:43 +02:00
Jens Mönig 03390418ae Merge pull request #549 from Gubolin/issue_285
allow negative min/max values for sliders (fix #285)
2014-09-30 09:40:28 +02:00
jmoenig 8f7d1833f6 Fix #563 (Paste into Chrome), thanks, @Muon, for the hint! 2014-08-13 18:06:57 +02:00
Gubolin f28c50ed7f allow negative min/max values for sliders (fix #285) 2014-08-02 16:24:27 +02:00