/// /// /// /// /// /// /// declare module "copyright" { export class FoundationEditorViewCopyright { static toString(): string; } } declare module "foundation/editor/view/IndexSpace" { export class IndexSpace { static namespaces(): string[]; } } declare module "foundation/editor/view/action/ActionEventEnum" { export class ActionEventEnum { static Starting: string; static Started: string; static Suspending: string; static Suspended: string; static Resuming: string; static Resumed: string; static Terminating: string; static Terminated: string; static Completing: string; static Complete: string; static Finish: string; static Restart: string; } } declare module "foundation/editor/view/action/ActionStateEnum" { export enum ActionStateEnum { Created = 0, Executing = 1, Running = 2, Suspending = 3, Suspended = 4, Resuming = 5, Terminating = 6, Terminated = 7 } } declare module "foundation/editor/view/action/ActionObject" { import { Dispatcher } from 'cross/runtime/lang/Dispatcher'; import { EventObject } from 'cross/runtime/lang/EventObject'; import { ListenerContext } from 'cross/runtime/lang/ListenerContext'; import { ResultObject } from 'cross/runtime/lang/ResultObject'; import { ActionStateEnum } from "foundation/editor/view/action/ActionStateEnum"; export class ActionObject extends Dispatcher { protected _actionId: string; lockCode: string; lockTick: number; showGizmo: boolean; ignoreObserver: boolean; event: any; element: any; entity: any; stateCd: ActionStateEnum; description: string; protected _optionEntityDirty: boolean; protected _optionSuspend: boolean; protected _optionIndependent: boolean; protected _optionUndoRedo: boolean; protected _optionRestart: boolean; protected _optionMultiPick: boolean; protected _optionLogger: boolean; protected _statusSetup: boolean; protected _oldContent: any; protected _newContent: any; constructor(); get actionId(): string; get optionRestart(): boolean; get optionMultiPick(): boolean; get optionLogger(): boolean; onSetup(event?: EventObject): void; setup(event?: EventObject): void; linkEvent(event: EventObject): void; canIndependent(): boolean; onExecute(event?: any): any; execute(event?: any): any; canSuspend(): boolean; onSuspend(): void; suspend(): void; onResume(): void; resume(): void; canUndoRedo(): boolean; setCanUndoRedo(canUndoRedo: boolean): void; protected onUndoRedo(): void; onUndo(): void; onUndoAsync(): Promise>; undoAsync(): Promise>; onRedo(): void; onRedoAsync(): Promise>; redoAsync(): Promise>; canCompleteContinuous(): boolean; complete(event?: any): ActionObject; commit(): void; cancel(event?: any): void; onReceive(code: string, event: any): boolean; receive(code: string, event: any): boolean; willDirtyDataModel(): boolean; onProcessFinish(sender: ListenerContext, event: EventObject): void; onCleanup(event?: any): void; } } declare module "foundation/editor/view/script/Script" { import { InstanceObject } from 'cross/runtime/lang/InstanceObject'; export class Script extends InstanceObject { tick: number; text: string; code: string; parameters: Array; parse(text: string): void; toScript(): string; } } declare module "foundation/editor/view/script/ScriptContext" { import { Dictionary } from 'cross/runtime/lang/collection/Dictionary'; import { Types } from 'cross/runtime/lang/collection/Types'; import { ContextObject } from 'cross/runtime/lang/ContextObject'; import { Script } from "foundation/editor/view/script/Script"; export class ScriptContext extends ContextObject { code: string; name: string; protected _input: Dictionary; protected _global: Dictionary; protected _session: Dictionary; protected _selection: Dictionary; protected _local: Dictionary; protected _output: Dictionary; protected _scripts: Types