feat:移除无用的UNO封装代码
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
/**
|
||||
* Collabora 缩放功能模块
|
||||
*
|
||||
* @encoding UTF-8
|
||||
*/
|
||||
// /**
|
||||
// * Collabora 缩放功能模块
|
||||
// *
|
||||
// * @encoding UTF-8
|
||||
// */
|
||||
|
||||
import { sendUnoCommand } from '../Uno';
|
||||
// import { sendUnoCommand } from '../Uno';
|
||||
|
||||
/**
|
||||
* 放大文档(固定步长)
|
||||
* @param iframeWindow - iframe 的 contentWindow
|
||||
*/
|
||||
export function unoZoomPlus(iframeWindow: Window): void {
|
||||
sendUnoCommand(iframeWindow, '.uno:ZoomPlus', {});
|
||||
}
|
||||
// /**
|
||||
// * 放大文档(固定步长)
|
||||
// * @param iframeWindow - iframe 的 contentWindow
|
||||
// */
|
||||
// export function unoZoomPlus(iframeWindow: Window): void {
|
||||
// sendUnoCommand(iframeWindow, '.uno:ZoomPlus', {});
|
||||
// }
|
||||
|
||||
/**
|
||||
* 缩小文档(固定步长)
|
||||
* @param iframeWindow - iframe 的 contentWindow
|
||||
*/
|
||||
export function unoZoomMinus(iframeWindow: Window): void {
|
||||
sendUnoCommand(iframeWindow, '.uno:ZoomMinus', {});
|
||||
}
|
||||
// /**
|
||||
// * 缩小文档(固定步长)
|
||||
// * @param iframeWindow - iframe 的 contentWindow
|
||||
// */
|
||||
// export function unoZoomMinus(iframeWindow: Window): void {
|
||||
// sendUnoCommand(iframeWindow, '.uno:ZoomMinus', {});
|
||||
// }
|
||||
|
||||
/**
|
||||
* 设置文档缩放比例
|
||||
* @param iframeWindow - iframe 的 contentWindow
|
||||
* @param percentage - 缩放百分比(例如:100 表示 100%)
|
||||
*/
|
||||
export function unoSetZoom(iframeWindow: Window, percentage: number): void {
|
||||
sendUnoCommand(iframeWindow, '.uno:Zoom', {
|
||||
Zoom: {
|
||||
type: 'short',
|
||||
value: percentage,
|
||||
},
|
||||
});
|
||||
}
|
||||
// /**
|
||||
// * 设置文档缩放比例
|
||||
// * @param iframeWindow - iframe 的 contentWindow
|
||||
// * @param percentage - 缩放百分比(例如:100 表示 100%)
|
||||
// */
|
||||
// export function unoSetZoom(iframeWindow: Window, percentage: number): void {
|
||||
// sendUnoCommand(iframeWindow, '.uno:Zoom', {
|
||||
// Zoom: {
|
||||
// type: 'short',
|
||||
// value: percentage,
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user