updated release feature list

pull/95/head
jmoenig 2020-12-01 13:31:27 +01:00
rodzic 8ca886e0c8
commit 74b33a4dcc
2 zmienionych plików z 16 dodań i 10 usunięć

Wyświetl plik

@ -11,6 +11,7 @@
* changed VIDEOP _ ON _ reporter primitive to be hyper-monadic (second slot)
* **Notable Fixes:**
* keep internal linked-list organization intact for hyperblocks
* improved SVG loading in Firefox, thanks, Joan!
### 2020-12-01
* threads, objects: added hyperdyadic MIN and MAX primitives reachable via "relabel"

Wyświetl plik

@ -2142,9 +2142,12 @@ IDE_Morph.prototype.droppedSVG = function (anImage, name) {
var myself,
viewBox, w, h,
svgNormalized,
headerLenght = anImage.src.search('base64') + 7, // usually 26 from "data:image/svg+xml;base64,"
headerLenght = anImage.src.search('base64') + 7,
// usually 26 from "data:image/svg+xml;base64,"
svgStrEncoded = anImage.src.substring(headerLenght),
svgObj = new DOMParser().parseFromString(atob(svgStrEncoded), "image/svg+xml").firstElementChild;
svgObj = new DOMParser().parseFromString(
atob(svgStrEncoded), "image/svg+xml"
).firstElementChild;
name = name.split('.')[0];
@ -2165,14 +2168,16 @@ IDE_Morph.prototype.droppedSVG = function (anImage, name) {
w = Math.ceil(viewBox[2]);
h = Math.ceil(viewBox[3]);
}
}
svgNormalized = new Image(w, h);
svgObj.setAttribute('width', w);
svgObj.setAttribute('height', h);
svgNormalized.src = 'data:image/svg+xml;base64,' +
btoa(new XMLSerializer().serializeToString(svgObj));
myself = this;
svgNormalized.onload = function () { myself.loadSVG(svgNormalized, name); }
}
svgNormalized = new Image(w, h);
svgObj.setAttribute('width', w);
svgObj.setAttribute('height', h);
svgNormalized.src = 'data:image/svg+xml;base64,' +
btoa(new XMLSerializer().serializeToString(svgObj));
myself = this;
svgNormalized.onload = function () {
myself.loadSVG(svgNormalized, name);
};
}
};