@worktile/theia 3.0.12 → 3.0.13
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.
|
@@ -3494,7 +3494,7 @@
|
|
|
3494
3494
|
var images = getAllNodesByType(this.editor.children, exports.ElementKinds.image);
|
|
3495
3495
|
var previewImages = images.map(function (item) {
|
|
3496
3496
|
return {
|
|
3497
|
-
src: item.
|
|
3497
|
+
src: item.thumbUrl,
|
|
3498
3498
|
name: item.name,
|
|
3499
3499
|
width: item.width,
|
|
3500
3500
|
height: item.height,
|
|
@@ -3506,8 +3506,7 @@
|
|
|
3506
3506
|
});
|
|
3507
3507
|
var startIndex = previewImages.findIndex(function (item) { return item.key === _this.element.key; });
|
|
3508
3508
|
var config = {
|
|
3509
|
-
startIndex: startIndex
|
|
3510
|
-
operations: ['zoom-out', 'zoom-in', 'rotate-right', 'download']
|
|
3509
|
+
startIndex: startIndex
|
|
3511
3510
|
};
|
|
3512
3511
|
this.thyImageService.preview(previewImages, config);
|
|
3513
3512
|
}
|