@leafer-in/editor
Version:
18 lines (11 loc) • 434 B
text/typescript
import { IEditorRotateEvent } from '@leafer-in/interface'
import { EditorEvent } from './EditorEvent'
export class EditorRotateEvent extends EditorEvent implements IEditorRotateEvent {
static BEFORE_ROTATE = 'editor.before_rotate'
static ROTATE = 'editor.rotate'
// rotateOf(origin, rotation)
readonly rotation: number
constructor(type: string, data?: IEditorRotateEvent) {
super(type, data)
}
}