|
|
|
|
@ -2,6 +2,7 @@ import { IElement } from '../..'
|
|
|
|
|
import { EditorMode } from '../../dataset/enum/Editor'
|
|
|
|
|
import { RowFlex } from '../../dataset/enum/Row'
|
|
|
|
|
import { IDrawImagePayload } from '../../interface/Draw'
|
|
|
|
|
import { IEditorResult } from '../../interface/Editor'
|
|
|
|
|
import { IWatermark } from '../../interface/Watermark'
|
|
|
|
|
import { CommandAdapt } from './CommandAdapt'
|
|
|
|
|
|
|
|
|
|
@ -55,6 +56,7 @@ export class Command {
|
|
|
|
|
private static replace: Function
|
|
|
|
|
private static print: Function
|
|
|
|
|
private static getImage: Function
|
|
|
|
|
private static getValue: Function
|
|
|
|
|
private static pageScaleRecovery: Function
|
|
|
|
|
private static pageScaleMinus: Function
|
|
|
|
|
private static pageScaleAdd: Function
|
|
|
|
|
@ -108,6 +110,7 @@ export class Command {
|
|
|
|
|
Command.replace = adapt.replace.bind(adapt)
|
|
|
|
|
Command.print = adapt.print.bind(adapt)
|
|
|
|
|
Command.getImage = adapt.getImage.bind(adapt)
|
|
|
|
|
Command.getValue = adapt.getValue.bind(adapt)
|
|
|
|
|
Command.pageScaleRecovery = adapt.pageScaleRecovery.bind(adapt)
|
|
|
|
|
Command.pageScaleMinus = adapt.pageScaleMinus.bind(adapt)
|
|
|
|
|
Command.pageScaleAdd = adapt.pageScaleAdd.bind(adapt)
|
|
|
|
|
@ -306,6 +309,10 @@ export class Command {
|
|
|
|
|
return Command.getImage()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public getValue(): IEditorResult {
|
|
|
|
|
return Command.getValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 页面缩放
|
|
|
|
|
public executePageScaleRecovery() {
|
|
|
|
|
return Command.pageScaleRecovery()
|
|
|
|
|
|