/** * @license * Copyright 2022 Aglyn LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export type TransformationMatrix = { a: number; b: number; c: number; d: number; x: number; y: number; }; export type BoundingBox = { top: number; left: number; width: number; height: number; }; export type BoundaryRatio = { vertical: number; horizontal: number; }; export type Coordinates = { x: number; y: number; }; export type BoundCoordinates = { boundX: number; boundY: number; offsetX: number; offsetY: number; }; export type TransformationParameters = { angle: number; scale: number; offsetX: number; offsetY: number; }; export declare const ZOOM_SPEED_MULTIPLIER = 0.065; export declare const TransformMatrix: (transformationParameters: TransformationParameters, centerCoordinates: Coordinates) => TransformationMatrix; export declare const getTransformedBoundingBox: (transformationParameters: TransformationParameters, boundingBox: BoundingBox) => BoundingBox; export declare const getScaleMultiplier: (delta: number, zoomSpeed?: number) => number; export declare const boundCoordinates: (x: number, y: number, boundaryRatio: BoundaryRatio, boundingBox: BoundingBox, containerHeight: number, containerWidth: number, offsetX?: number, offsetY?: number) => BoundCoordinates; export declare const preventDefault: (e: Event) => void; export declare const captureTextSelection: () => void; export declare const releaseTextSelection: () => void;