import { Engine, VFXItem } from '@galacean/effects'; import { Vector2, Vector3 } from '../math'; /** * 视图缩放 / 平移与画板(Frame)resize。 */ /** * 缩放视图。 * @param engine 引擎 * @param zoom 缩放值 * @param center 缩放中心 */ export declare function zoomView(engine: Engine, zoom: number, center?: Vector2): void; /** * 平移视图。 * @param engine 引擎 * @param translation 位移值 */ export declare function panView(engine: Engine, translation: Vector2): void; /** * 调整画板元素(Frame)的尺寸与位置,并同步其子合成 Item 的位移。 * @param frameItem 画板元素(Frame 空节点控制器) * @param worldSize 目标世界尺寸(所属合成坐标系,不受 viewport zoom 影响) * @param translation 位移 * @param initialSize pointer down 时冻结的本地 / 世界尺寸;传入后允许尺寸连续经过 0 并变为负值 */ export declare function resizeFrameItem(frameItem: VFXItem, worldSize: Vector2, translation: Vector3, initialSize?: { localSize: Vector2; worldSize: Vector2; }): void;