mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
3a991f8075
commit
06abf29c27
6 changed files with 81 additions and 13 deletions
|
|
@ -46,7 +46,7 @@ import {openCalcMenu} from "./calc";
|
|||
import {escapeAttr, escapeHtml} from "../../../util/escape";
|
||||
import {Dialog} from "../../../dialog";
|
||||
import {bindLayoutEvent, getLayoutHTML, updateLayout} from "./layout";
|
||||
import {setGalleryCover, setGallerySize} from "./gallery/util";
|
||||
import {setGalleryCover, setGalleryRatio, setGallerySize} from "./gallery/util";
|
||||
|
||||
export const openMenuPanel = (options: {
|
||||
protyle: IProtyle,
|
||||
|
|
@ -1394,6 +1394,16 @@ export const openMenuPanel = (options: {
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "set-gallery-ratio") {
|
||||
setGalleryRatio({
|
||||
target,
|
||||
protyle: options.protyle,
|
||||
nodeElement: options.blockElement,
|
||||
view: data.view as IAVGallery
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "set-layout") {
|
||||
updateLayout({
|
||||
target,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue