Wykres commitów

80 Commity (efbb3d5886183af4b32dedfb6d3c16e21b51e977)

Autor SHA1 Wiadomość Data
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
jmoenig 0cc14e2861 fixed #497 (prevent bubble shadows from getting cut-off)
thanks @Hardmath123 for this bug report
2014-07-29 13:09:18 +02:00
jmoenig c4968843e4 fixed #508 (don’t popup empty menus)
thanks, @cycomached!
2014-07-11 17:59:16 +02:00
jmoenig 05c7482688 Morphic: directly edit properties in inspectors 2014-07-11 11:16:05 +02:00
jmoenig d372e807a5 tweak glitch in event.keyCode/charCode
Thanks, Michael!
2014-07-11 09:35:49 +02:00
jmoenig 5185cead0b keyboard shortcut ctrl/cmd-shift-a for '@' 2014-07-11 09:21:16 +02:00
jmoenig 90b30ceed5 Morphic tweaks 2014-06-23 15:17:19 +02:00
jmoenig 9c1d06b9ef Morphic: Inspector enhancements
dynamic property update, keyboard shortcuts
2014-06-23 13:24:16 +02:00
jmoenig 089d1500b4 prepare release
correct last-changed-date
2014-05-20 10:55:14 +02:00
jmoenig a53c189e4b Morphic: Prevent default action for ctrl-/cmd-key events
… and allow using these for Snap! without having Chrome trigger its own
actions for them
2014-05-20 09:26:44 +02:00
jmoenig 8654d9c3fc Morphic: Replaced deprecated DOM “body” references with “documentElement” 2014-02-03 17:30:31 +01:00
jmoenig 4a60bfba18 Fixed Morphic updateReferences()
how could this go undetected so long? :-)
2014-01-09 17:49:44 +01:00
jmoenig f48460fc25 null-canvas blitting bug follow-up 2013-12-12 15:27:49 +01:00
jmoenig 59a39077b8 fixed #277, #279 (blitting null-canvasses fails)
Thanks, Nathan, for the pointer to this!
2013-12-12 14:55:40 +01:00
jmoenig c8bc990011 fixed #238 - don’t trigger events for eclipsed morphs
(whose parent-chain contains a hidden morph)
2013-11-22 11:00:05 +01:00
jmoenig a8d08c147d Condense damage list even more
by merging nearby rectangles, thanks, Craxic, for the idea for this in
#192
2013-10-15 11:29:51 +02:00