feat: add set active zone api
This commit is contained in:
@@ -85,6 +85,7 @@ export class Command {
|
||||
public executeSetGroup: CommandAdapt['setGroup']
|
||||
public executeDeleteGroup: CommandAdapt['deleteGroup']
|
||||
public executeLocationGroup: CommandAdapt['locationGroup']
|
||||
public executeSetZone: CommandAdapt['setZone']
|
||||
public executeSetControlValue: CommandAdapt['setControlValue']
|
||||
public executeSetControlExtension: CommandAdapt['setControlExtension']
|
||||
public getCatalog: CommandAdapt['getCatalog']
|
||||
@@ -198,6 +199,7 @@ export class Command {
|
||||
this.executeSetGroup = adapt.setGroup.bind(adapt)
|
||||
this.executeDeleteGroup = adapt.deleteGroup.bind(adapt)
|
||||
this.executeLocationGroup = adapt.locationGroup.bind(adapt)
|
||||
this.executeSetZone = adapt.setZone.bind(adapt)
|
||||
// 获取
|
||||
this.getImage = adapt.getImage.bind(adapt)
|
||||
this.getOptions = adapt.getOptions.bind(adapt)
|
||||
|
||||
@@ -6,6 +6,7 @@ import { ControlComponent, ImageDisplay } from '../../dataset/enum/Control'
|
||||
import {
|
||||
EditorContext,
|
||||
EditorMode,
|
||||
EditorZone,
|
||||
PageMode,
|
||||
PaperDirection
|
||||
} from '../../dataset/enum/Editor'
|
||||
@@ -2174,6 +2175,10 @@ export class CommandAdapt {
|
||||
})
|
||||
}
|
||||
|
||||
public setZone(zone: EditorZone) {
|
||||
this.draw.getZone().setZone(zone)
|
||||
}
|
||||
|
||||
public getControlValue(
|
||||
payload: IGetControlValueOption
|
||||
): IGetControlValueResult | null {
|
||||
|
||||
Reference in New Issue
Block a user