url-clicking fix by @brollb, morphic documentation update

pull/89/head
jmoenig 2019-10-22 08:02:01 +02:00
rodzic b027b2a35d
commit 76eb311727
4 zmienionych plików z 34 dodań i 10 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
# Snap! (BYOB) History
## in development:
## v5.2.0 in development:
* **New Features:**
* new media creation primitives:
* new primitive in "looks": NEW COSTUME from a list of pixels and dimensions, allowing CURRENT
@ -13,10 +13,14 @@
* **Notable Fixes:**
* loading a project that fires STOP ALL from a WHEN hat block no longer "hangs" Snap
* assert that dimensions given for STRETCH are finite numbers (avoid crash)
* fixed occasional "dead clicks" on buttons and menu items
* **Translation Updates:**
* English
* German
### 2019-10-22
* morphic: url-clicking fix by @brollb, updated morphic documentation
### 2019-10-21
* blocks, threads: new experimental entry for "green flag pressed" in the BROADCAST block's dropdown when the shift key is pressed
* updated English and German translations for `__shout__go__`

Wyświetl plik

@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Snap! Build Your Own Blocks 5.2 - dev -</title>
<link rel="shortcut icon" href="src/favicon.ico">
<script type="text/javascript" src="src/morphic.js?version=2019-10-16"></script>
<script type="text/javascript" src="src/morphic.js?version=2019-10-22"></script>
<script type="text/javascript" src="src/widgets.js?version=2019-10-16"></script>
<script type="text/javascript" src="src/blocks.js?version=2019-10-21"></script>
<script type="text/javascript" src="src/threads.js?version=2019-10-21"></script>

Wyświetl plik

@ -1169,6 +1169,7 @@
Michael Ball found and fixed a longstanding scrolling bug.
Brian Harvey contributed to the design and implementation of submenus.
Ken Kahn contributed to Chinese keboard entry and Android support.
Brian Broll contributed clickable URLs in text elements.
- Jens Mönig
*/
@ -1177,7 +1178,7 @@
/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/
var morphicVersion = '2019-October-16';
var morphicVersion = '2019-October-22';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
@ -9612,6 +9613,7 @@ TextMorph.prototype.slotAt = function (aPoint) {
var charX,
row = 0,
col = 0,
columnLength,
shadowHeight = Math.abs(this.shadowOffset.y),
context = this.image.getContext('2d'),
textWidth;
@ -9630,7 +9632,8 @@ TextMorph.prototype.slotAt = function (aPoint) {
} else { // 'left'
charX = 0;
}
while (aPoint.x - this.left() > charX) {
columnLength = this.lines[row - 1].length;
while (col < columnLength - 2 && aPoint.x - this.left() > charX) {
charX += context.measureText(this.lines[row - 1][col]).width;
col += 1;
}

Wyświetl plik

@ -1,3 +1,4 @@
morphic.js
a lively Web-GUI
@ -8,7 +9,7 @@
Copyright (C) 2019 by Jens Mönig
this documentation last changed: January 1, 2019
this documentation last changed: October 22, 2019
This file is part of Snap!.
@ -654,7 +655,7 @@
Those are dispatched as
droppedAudio(anAudio, name)
droppedText(aString, name)
droppedText(aString, name, type)
events to interested Morphs at the mouse pointer.
@ -760,13 +761,24 @@
events:
Whenever the user presses a key on the keyboard while a text element
is being edited, a
is being edited, first a
reactToKeystroke(event)
is escalated up its parent chain, the "event" parameter being the
original one received by the World.
Whenever the input changes, by adding or removing one or more characters,
an additional
reactToInput(event)
is escalated up its parent chain, the "event" parameter again being the
original one received by the World or by the IME element.
Note that the "reactToKeystroke" event gets triggered before the input
changes, and thus befgore the "reactToInput" event fires.
Once the user has completed the edit, the following events are
dispatched:
@ -1042,7 +1054,7 @@
canvasses for simple shapes in order to save system resources and
optimize performance. Examples are costumes and backgrounds in Snap.
In Morphic you can create new canvas elements using
newCanvas(extentPoint [, nonRetinaFlag])
If retina support is enabled such new canvasses will automatically be
@ -1083,12 +1095,12 @@
stepping mechanism.
For an example how to use animations look at how the Morph's methods
glideTo()
fadeTo()
and
slideBackTo()
are implemented.
@ -1153,6 +1165,11 @@
Davide Della Casa contributed performance optimizations for Firefox.
Jason N (@cyderize) contributed native copy & paste for text editing.
Bartosz Leper contributed retina display support.
Zhenlei Jia and Dariusz Dorożalski pioneered IME text editing.
Bernat Romagosa contributed to text editing and to the core design.
Michael Ball found and fixed a longstanding scrolling bug.
Brian Harvey contributed to the design and implementation of submenus.
Ken Kahn contributed to Chinese keboard entry and Android support.
Brian Broll contributed clickable URLs in text elements.
- Jens Mönig