icn3d 3.36.0 → 3.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icn3d.js +8 -5
- package/icn3d.min.js +4 -4
- package/icn3d.module.js +8 -5
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -16360,6 +16360,9 @@ class Events {
|
|
|
16360
16360
|
if(bPng) {
|
|
16361
16361
|
let result = await me.htmlCls.setHtmlCls.loadPng(dataStr);
|
|
16362
16362
|
dataStr = result.pdb;
|
|
16363
|
+
|
|
16364
|
+
if(!dataStr) return; // old iCn3D PNG with sharable link
|
|
16365
|
+
|
|
16363
16366
|
if(!ic.statefileArray) ic.statefileArray = [];
|
|
16364
16367
|
ic.statefileArray.push(result.statefile);
|
|
16365
16368
|
}
|
|
@@ -20135,11 +20138,11 @@ class SetHtml {
|
|
|
20135
20138
|
if(pos == -1 && posState == -1) {
|
|
20136
20139
|
alert('Please load a PNG image saved by clicking the menu "File > Save File > iCn3D PNG Image"...');
|
|
20137
20140
|
}
|
|
20138
|
-
|
|
20139
|
-
|
|
20140
|
-
|
|
20141
|
-
|
|
20142
|
-
|
|
20141
|
+
else if(pos != -1) {
|
|
20142
|
+
let url = imageStr.substr(pos + matchedStr.length);
|
|
20143
|
+
me.htmlCls.clickMenuCls.setLogCmd('load iCn3D PNG image ' + $("#" + me.pre + "pngimage").val(), false);
|
|
20144
|
+
window.open(url, '_self');
|
|
20145
|
+
}
|
|
20143
20146
|
else if(posState != -1) {
|
|
20144
20147
|
let matchedStrData = "Start of data file======\n";
|
|
20145
20148
|
let posData = imageStr.indexOf(matchedStrData);
|