summaryrefslogtreecommitdiff
path: root/morphic.js
Commit message (Collapse)AuthorAgeFilesLines
* update Morphicjmoenig2015-06-261-7/+31
| | | | to the latest version
* Simplify Morphicjmoenig2015-06-251-192/+142
| | | | | * revert to “new” for object creation (for now) * take out fallback for missing Map
* Use associative arrays if Map doesn't existNathan Dinsmore2015-06-251-72/+69
|
* Call isTransparentAtNathan Dinsmore2015-06-181-3/+4
|
* Add bracesNathan Dinsmore2015-06-181-1/+1
|
* Declare some variables earlierNathan Dinsmore2015-06-181-3/+3
|
* Optimize loading projects a bit moreNathan Dinsmore2015-06-171-3/+3
|
* Add a missing super call in overridden updateReferences()Nathan Dinsmore2015-06-171-1/+2
|
* Provide a fallback for browsers that don't support MapNathan Dinsmore2015-06-171-0/+34
|
* Optimize moveBy and friendsNathan Dinsmore2015-06-171-34/+9
| | | | This results in realtime speed for dragging where I used to get 10-15 fps before this change.
* Remove clone function (unused)Nathan Dinsmore2015-06-171-10/+0
|
* Fix and greatly simplify copying mechanismNathan Dinsmore2015-06-171-128/+34
| | | | 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.
* Optimize copy()Nathan Dinsmore2015-06-171-8/+6
| | | | 1356.2 ms before => 73.3 ms after (on a large block stack)
* Optimize StringMorph::clearSelection()Nathan Dinsmore2015-06-171-0/+1
| | | | This was taking a very large chunk of CPU time when copying large scripts.
* Remove extra spaceNathan Dinsmore2015-06-171-1/+1
|
* Optimize HandMorph::morphAtPointer a lotNathan Dinsmore2015-06-171-21/+20
| | | | On large morph hierarchies this goes from ~85% CPU usage when moving the mouse around to ~5%.
* Use Object.create(…) instead of new …() for inheritance (faster)Nathan Dinsmore2015-06-171-29/+29
|
* Morphic: Dynamic enhancementsJens Mönig2015-05-011-14/+28
| | | | | | 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
* Avoid auto-scaling artefacts in Safari on retina displaysjmoenig2014-12-051-2/+4
| | | | (resulting in “traces” when dragging items)
* Cache actual bounding box of the Pen arrow shapejmoenig2014-12-031-6/+13
| | | | for improved collision detection
* push morphic.js version datejmoenig2014-11-201-1/+1
|
* Merge pull request #615 from tonychenr/slider_range_oneJens Mönig2014-11-201-1/+1
|\ | | | | Slider range one
| * Fixed range 1 slider bug issue # 301tonychenr2014-10-071-1/+1
| |
* | enable mouseMove events with right button pressedjmoenig2014-11-061-16/+19
|/ | | | | to support user interactions in 3D environments, such as CAD systems or Beetleblocks
* updated historyjmoenig2014-09-301-1/+1
|
* Merge pull request #549 from Gubolin/issue_285Jens Mönig2014-09-301-2/+2
|\ | | | | allow negative min/max values for sliders (fix #285)
| * allow negative min/max values for sliders (fix #285)Gubolin2014-08-021-2/+2
| |
* | Fix #563 (Paste into Chrome), thanks, @Muon, for the hint!jmoenig2014-08-131-2/+3
|/
* fixed #497 (prevent bubble shadows from getting cut-off)jmoenig2014-07-291-2/+2
| | | | thanks @Hardmath123 for this bug report
* fixed #508 (don’t popup empty menus)jmoenig2014-07-111-0/+3
| | | | thanks, @cycomached!
* Morphic: directly edit properties in inspectorsjmoenig2014-07-111-3/+14
|
* tweak glitch in event.keyCode/charCodejmoenig2014-07-111-1/+1
| | | | Thanks, Michael!
* keyboard shortcut ctrl/cmd-shift-a for '@'jmoenig2014-07-111-13/+15
|
* Morphic tweaksjmoenig2014-06-231-2/+7
|
* Morphic: Inspector enhancementsjmoenig2014-06-231-19/+51
| | | | dynamic property update, keyboard shortcuts
* prepare releasejmoenig2014-05-201-1/+1
| | | | correct last-changed-date
* Morphic: Prevent default action for ctrl-/cmd-key eventsjmoenig2014-05-201-1/+4
| | | | | … and allow using these for Snap! without having Chrome trigger its own actions for them
* Morphic: Replaced deprecated DOM “body” references with ↵jmoenig2014-02-031-4/+5
| | | | “documentElement”
* Fixed Morphic updateReferences()jmoenig2014-01-091-3/+3
| | | | how could this go undetected so long? :-)
* null-canvas blitting bug follow-upjmoenig2013-12-121-1/+1
|
* fixed #277, #279 (blitting null-canvasses fails)jmoenig2013-12-121-6/+9
| | | | Thanks, Nathan, for the pointer to this!
* fixed #238 - don’t trigger events for eclipsed morphsjmoenig2013-11-221-2/+5
| | | | (whose parent-chain contains a hidden morph)
* Condense damage list even morejmoenig2013-10-151-3/+11
| | | | | by merging nearby rectangles, thanks, Craxic, for the idea for this in #192
* Condense damage list by merging overlapping dirty rectanglesjmoenig2013-10-141-1/+36
| | | | thanks, Craxic, for suggesting the idea for this optimization in #192 !
* fixed #172, IF ON EDGE, BOUNCEjmoenig2013-09-201-3/+3
| | | | Morphic: Rectangle.amountToTranslateWithin()
* Morphic: mouseEnterDragging fixjmoenig2013-08-061-9/+9
| | | | and a few cosmetic changes due to JSLint's latest nitpickings
* improved importing costumesjmoenig2013-06-281-1/+21
| | | | | by dragging in pictures from other web pages, which now allows for dragging links to pictures as well
* Morphic, Blocks: "flat" design fixjmoenig2013-06-211-8/+8
| | | | | Handle manually "unshadowed" StringMorphs without throwing an exception. This lets you load the tools library into "flat" mode again.
* Morphic: focus World canvas on mouse down (otherwise prevent default)jmoenig2013-06-061-1/+2
|
* prevent undesired HTML5 dragstart eventjmoenig2013-06-041-1/+2
| | | | (a new glitch introduced in Chrome 27)