jmoenig
cdb5f87574
optimized dragging complex morphs
2020-04-24 15:21:24 +02:00
jmoenig
c50ff6c16f
removed an obsolete method
2020-04-17 16:14:42 +02:00
jmoenig
314a0414b7
tweaked a bunch of comments
2020-04-17 16:07:10 +02:00
jmoenig
aeb499c677
deprecated Pen / Sprite wantsRedraw property
2020-04-17 15:03:24 +02:00
jmoenig
2b719db106
tweaked sprite duplication
2020-04-17 08:49:49 +02:00
jmoenig
2729580a9f
text editing improvements
2020-04-05 10:14:29 +02:00
jmoenig
be17e07e5a
make sure the stage has keyboard focus after opening a project
2020-04-04 15:03:05 +02:00
jmoenig
9ed1f4e4f9
holes mechanism for c-shots
2020-04-03 13:18:50 +02:00
jmoenig
a86bc9452a
fixed Morpic StringMorph >> enableSelecting()
2020-03-25 17:36:32 +01:00
jmoenig
23152b5419
damage list housekeeping optimizations
2020-03-24 09:56:03 +01:00
jmoenig
a5aaaccb07
migration tweaks
2020-03-23 17:26:27 +01:00
jmoenig
322245e1ea
more migration for zoom blocks feature dialog
2020-03-23 10:14:43 +01:00
jmoenig
823c0068df
fixed thread count readout
2020-03-20 15:51:12 +01:00
jmoenig
299177a5e7
speed up clones by suppressing shadows for thread readouts
2020-03-10 19:20:47 +01:00
jmoenig
7d0767c3dd
migrated sprite-collision detection
2020-03-09 19:00:20 +01:00
jmoenig
ff75185232
simplified sprite cotume rendering
2020-03-06 12:04:30 +01:00
jmoenig
235f3e66de
initialize trigger widgets with non-zero label strings
2020-03-03 17:23:49 +01:00
jmoenig
43bf03efa5
update push button / toggle button label colors when fixing layout
2020-02-26 10:57:21 +01:00
jmoenig
9a3d216002
removed obsolete blurred shadow support check
2020-02-20 18:14:29 +01:00
jmoenig
ec20db9ec9
new "fullShadowSource" flag, optimizes shadow images
2020-02-20 18:07:35 +01:00
jmoenig
fabd10b9e4
shallow permanent shadows for dialog box widgets
2020-02-20 16:11:40 +01:00
jmoenig
3f400b653a
reverted to sane version of getGlobalPixelColor()
2020-02-18 09:42:15 +01:00
jmoenig
f33ff0cff2
tweak block testing
2020-02-13 20:04:29 +01:00
jmoenig
17c90c2106
tweaked Morphic setExtent()
2020-02-12 12:52:18 +01:00
jmoenig
8fddfb0faa
tweaked demo menu
2020-02-12 10:12:22 +01:00
jmoenig
eabeb7c87c
added demo menu suppor for symbols
2020-02-12 09:53:24 +01:00
jmoenig
e492817349
fixed symbols extent
2020-02-10 23:09:52 +01:00
jmoenig
004a624bce
new Morphic architecture
2020-02-10 11:34:45 +01:00
jmoenig
acab6f7d94
prevent Morphs from sharing canvasses when rerendering
2020-01-04 23:49:42 +01:00
jmoenig
5103b07977
recycle cached Canvasses in Morphic
2020-01-03 13:51:22 +01:00
jmoenig
4a1094e7c5
added translation control for submenus in dropdowns
...
and simplified the translation mechanism slightly
2019-11-12 16:37:17 +01:00
Joan Guillén i Pelegay
6aabeb6487
Fixing also submenu dropdowns translations
2019-11-06 08:30:58 +01:00
jmoenig
a0261c52f1
added support for "verbatim" (untranslated) menu items
2019-11-06 01:17:07 +01:00
jmoenig
db6cda6ca2
restored previous translation mechanism
2019-11-06 00:39:33 +01:00
jmoenig
6f54bc0ede
reverted recent changes to tranlation mechanism
2019-11-06 00:35:09 +01:00
jmoenig
c9b06bcb0c
limit translation of menu items to specially marked ones
...
fixes the bug that variable names for which translations exist are shown in their translation in drop-down menus
2019-11-04 23:01:22 +01:00
jmoenig
70e2e513bd
made sure the pen trails layer is always retina (if enabled)
2019-10-29 18:51:58 +01:00
jmoenig
4ac02f9873
improved morphic canvas recycling
2019-10-29 17:27:01 +01:00
jmoenig
da724b66f8
enable recycling and deep copying canvas elements
2019-10-28 18:40:24 +01:00
jmoenig
aaa3ded7bf
more optimizations for collision detection
2019-10-25 12:48:33 +02:00
jmoenig
f67760f563
optimized Morphic collision detection
2019-10-24 16:32:32 +02:00
jmoenig
76eb311727
url-clicking fix by @brollb, morphic documentation update
2019-10-22 08:02:01 +02:00
jmoenig
b458b1d543
addded "enableLinks" flag to Morphic text elements
...
off by default this flag lets you specify whether a text might contain a clickable URL or not.
2019-10-16 15:48:18 +02:00
jmoenig
1a4bcb4959
(morpic): Make urls clickable in read-only StringMorphs, thanks, @brollb !
2019-10-14 18:49:04 +02:00
jmoenig
6c01f82354
fix for text alignment offset, thanks, @brollb
2019-10-14 17:50:15 +02:00
jmoenig
5bdad135ca
added new "reactToInput" text-editing event to Morphic
...
to address timing conflicts between "reactToKeystroke", which new gets triggeref before the input actually changes.
2019-10-14 12:51:03 +02:00
jmoenig
71e12709d6
updated Morphic version date
2019-10-09 13:55:04 +02:00
Dariusz Dorożalski
fb9797482c
Sprite touching : first row, column included, Issue #2476
2019-08-19 01:46:43 +02:00
jmoenig
1d66211c92
Simplify scrollBar size calculations
...
thanks, @cycomachead !
2019-08-06 13:17:29 +02:00
jmoenig
7cd4a56684
updated version history and morphic credits
2019-08-06 09:39:54 +02:00
Jens Mönig
4921597b1c
Merge pull request #2470 from jmoenig/fix-scrollframe-bars
...
Accounts for the scrollbars in ScrollFrameMorphs.
2019-08-06 09:24:54 +02:00
jmoenig
7564dca5fc
updated version history
2019-08-06 08:59:55 +02:00
Michael Ball
b7bf8bab1a
Accounts for the scrollbars in ScrollFrameMorphs.
...
This ensures that the stopping point of the scrollbar is beyond the length of
the contents that it is scrolling, and that when scrolling is calculated, it
will now account for the presence of a scrollbar. This allows
you to scroll a little extra so you can always see all content.
Fixes #2468
Fixes #638
Fixes #804
2019-08-05 01:28:35 -07:00
Bernat Romagosa
a73c562b11
fixes importing OGGs in Firefox
2019-07-29 10:19:44 +02:00
jmoenig
421c5dafd5
updated credits
2019-07-23 15:58:01 +02:00
jmoenig
5795f18883
updated credits, prepared maintenance release
...
mentioning @swiperthefox , @DarDoro and @ToonTalk for their contributions to IME support
2019-07-23 09:17:12 +02:00
jmoenig
e652c32162
upated morphic credits
...
with mentions of @swiperthefox, @DarDoro and @bromagosa
2019-07-23 09:02:49 +02:00
jmoenig
3d3e098103
minor code reformatting for LINTers
2019-07-23 08:00:07 +02:00
jmoenig
159196113e
updated version history
2019-07-22 19:08:02 +02:00
Jens Mönig
e90ec0fa5d
Merge pull request #2322 from swiperthefox/hidden-textarea-ime
...
Provide IME support to text editing using hidden textarea
2019-07-22 18:39:39 +02:00
Zhenlei Jia
e42ccf1b53
resolved conflicts to push to github.
2019-07-11 09:05:49 -04:00
Zhenlei Jia
d8e2bc3129
1. The underlying textarea now listens to "input" event, and update the content of target morphic
...
accordingly.
2. The textarea still listens to "keydown" and "keyup" events, for the following puerpose:
"keydown" event handler will detech some system shortcuts, add will pass it to "the world".
"keyup" event handler is used to capture the change of selection status and cursor position of the
textarea (which is not captured in the above "input" event), and update the target morphic.
2019-07-11 08:38:51 -04:00
jmoenig
0e9e9a05a7
experimental tolerant color collision detection (in dev mode)
2019-07-08 12:32:29 +02:00
jmoenig
71f3b37f14
optimized collision detection
...
by only looking at the alpha channel data
2019-07-02 16:50:11 +02:00
jmoenig
f0c192778c
fixed a race condition in Morph.glideTo()
2019-07-01 19:03:11 +02:00
jmoenig
780d5256d2
use "event.key" to detect (+) and (-) keystrokes across browsers
2019-05-21 23:09:11 +02:00
Zhenlei Jia
1c5d6970a9
Fix a bug that a single key stroke will be escalated twice.
2019-02-12 08:17:55 -05:00
Zhenlei Jia
e972ae0ccd
Set the right cursor position at the start of editing.
...
I assumed that all editing start with the whold content being selected.
The project note editor shows that this assumption might not be sure.
Added code in initializeTextarea to get the cursor right at the start
of editing.
2019-02-08 20:58:40 -05:00
Zhenlei Jia
aabdfeade6
Provide IME support to the text editing in Snap.
...
1. Design Outline:
Three parties are involved:
- the target: the StringMorph/TextMorph to be edited
- the editor: the hidden textarea
- the manager: the CursorMorph
The manager takes care of the lifecycle of the editor, and provide visual
presentation of the cursor.
The editor holds the content being edited, handles keyboard events, perform
the required editing, then update the target with the result of editing.
The target handles mouse events, which result into changes of cursor position
and selection status, then it will update the editor with these information.
2. Change of WorldMorph.edit(target) method
At the start of the method, added two guards to check:
- if `target` is actually currently being edited, do nothing.
- if another morph is being edited, call stopEditing().
- ... the old codes
This is to fix a bug in mouse event handling. The bug is that shift+click does not
select the text between the clicked position and previous position, instead
all text wiil be selected.
The cause of this bug is the morph that being edited called stopEditing() and then
.edit(), which starts a new editing session, and the previous selection state is lost.
By adding above mentioned guard, the force restart will be avoid.
2019-02-08 10:54:03 -05:00
jmoenig
22e12c834a
simplified and optimized Node>>parentThatIsA / parentThatIsAnyOf
2019-02-07 09:48:17 +01:00
jmoenig
6275793507
recognize data sets in dropped text files (csv, json)
2019-01-10 15:28:57 +01:00
jmoenig
2f268ed3b7
added option to include alpha in color comparison
2019-01-09 08:37:08 +01:00
jmoenig
e8f134fbe3
fixed glitch in WorldMorph >> getGlobalPixelColor
2019-01-01 15:41:51 +01:00
jmoenig
0bb72fbbdb
added HSL color conversion support to Morphic
...
and updated Morphic documentation
2019-01-01 15:25:50 +01:00
jmoenig
258e476e5f
moved *.js files into subfolder "src"
...
and edited gui.js to deal with ypr.js
2018-10-02 15:48:42 +02:00