@ones-editor/editor 1.0.2-beta.18 → 1.0.2-beta.19
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +14 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4818,7 +4818,6 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
4818
4818
|
}
|
|
4819
4819
|
.version-list-root .version-list-content .version-item .version-item-author {
|
|
4820
4820
|
display: flex;
|
|
4821
|
-
align-items: center;
|
|
4822
4821
|
margin-top: 10px;
|
|
4823
4822
|
color: #606060;
|
|
4824
4823
|
}
|
|
@@ -4831,6 +4830,7 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
4831
4830
|
border-radius: 3px;
|
|
4832
4831
|
margin-right: 5px;
|
|
4833
4832
|
flex-shrink: 0;
|
|
4833
|
+
margin-top: 5px;
|
|
4834
4834
|
}
|
|
4835
4835
|
.version-list-root .version-list-content .version-item .version-item-memo {
|
|
4836
4836
|
font-size: 14px;
|
|
@@ -65232,16 +65232,24 @@ ${codeText}
|
|
|
65232
65232
|
img.src = url;
|
|
65233
65233
|
img.draggable = false;
|
|
65234
65234
|
setGraph(embedEl, { src });
|
|
65235
|
-
img.onload = () => {
|
|
65236
|
-
|
|
65235
|
+
img.onload = (e2) => {
|
|
65236
|
+
const img2 = embedEl.querySelector("img");
|
|
65237
|
+
if (e2.target !== img2 || !img2) {
|
|
65238
|
+
return;
|
|
65239
|
+
}
|
|
65240
|
+
if (isEmptyImage(img2)) {
|
|
65237
65241
|
addDrawioEmptyStatus(embed);
|
|
65238
65242
|
} else {
|
|
65239
|
-
|
|
65240
|
-
|
|
65243
|
+
img2.style.width = "100%";
|
|
65244
|
+
img2.style.height = "100%";
|
|
65241
65245
|
removeDrawioEmptyStatus(embed);
|
|
65242
65246
|
}
|
|
65243
65247
|
};
|
|
65244
|
-
img.onerror = () => {
|
|
65248
|
+
img.onerror = (e2) => {
|
|
65249
|
+
const img2 = embedEl.querySelector("img");
|
|
65250
|
+
if (e2.target !== img2) {
|
|
65251
|
+
return;
|
|
65252
|
+
}
|
|
65245
65253
|
addDrawioLoadErrorStatus(editor, embed, {
|
|
65246
65254
|
src
|
|
65247
65255
|
});
|